Plex web is transcoding Opus 5.1 to AAC stereo and VP9 to h264

Server Version#: 1.15.8.1163
Player Version#: Version 3.95.2

I have a mkv file with Opus 5.1 and 2.0 and VP9 video. Streaming the opus 2.0 can direct play, but opus 5.1 makes everything transcode. even the video!

image

But I have a file, that is also mkv VP9 with a single 5.1 opus track that can direct play.

So what’s happening?

image

If you wanna be sure about what is going on, activate debug logging on your server and inspect the Plex Media Server.log.
Look out for lines starting with MDE:

Without any further technical details about your files, I am suspecting the upper file is not WEBM-compatible (or more specifically, not compatible with the WEBM implementation of the Chrome browser), while the lower file is compatible.

|Jun 07, 2019 00:25:40.651|DEBUG|MDE: Rick.and.Morty.S01E01.webm-merged (2019): no [remuxable profile found, so video stream will be transcoded]
|Jun 07, 2019 00:25:40.651|DEBUG|MDE: Cannot direct stream video stream due to profile or setting limitations|
|Jun 07, 2019 00:25:40.651|DEBUG|MDE: Cannot direct stream audio stream due to codec opus when profile only allows aac|
|Jun 07, 2019 00:25:40.651|DEBUG|MDE: Rick.and.Morty.S01E01.webm-merged (2019): selected media 0 / 118016|
|Jun 07, 2019 00:25:40.650|DEBUG|MDE: Selected protocol dash; container: mp4|
|Jun 07, 2019 00:25:40.650|DEBUG|MDE: analyzing media item 118016|
|Jun 07, 2019 00:25:40.650|DEBUG|MDE: Rick.and.Morty.S01E01.webm-merged (2019): Direct Play is disabled|
|Jun 07, 2019 00:25:40.650|DEBUG|MDE: Rick.and.Morty.S01E01.webm-merged (2019): media must be transcoded in order to use the dash protocol|
|Jun 07, 2019 00:25:40.650|DEBUG|MDE: Rick.and.Morty.S01E01.webm-merged (2019): selected audio stream is not the first audio stream and direct play stream selection is not enabled|
|Jun 07, 2019 00:25:40.650|DEBUG|MDE: Rick.and.Morty.S01E01.webm-merged (2019): no direct play video profile exists for http/mkv/vp9|
|Jun 07, 2019 00:25:40.650|DEBUG|MDE: Rick.and.Morty.S01E01.webm-merged (2019): no direct play video profile exists for http/mkv/vp9/opus|
|Jun 07, 2019 00:25:40.650|DEBUG|MDE: Rick.and.Morty.S01E01.webm-merged (2019): no direct play video profile exists for http/mkv/vp9/opus|

Getting this, so the issue is this

MDE: Selected protocol dash; container: mp4 obviously we are not going to get VP9 and Opus in a .mp4 container

This is weird because the same file playing with Opus 2.0 it direct plays fine. The issue is only when choosing the Opus 5.1 audio track

WEBM can never have a mp4 filename extension. Something is not right with your files.

So I created another .webm file with 2 audio tracks and 2 subtitles tracks (webvtt) and 1 VP9 video track.

If I try to play selecting the default audio, and default subtitles this happens:

|Jun 07, 2019 07:29:49.579|DEBUG|MDE: Rick.and.Morty.S01E01.ffmpeg (2019): no direct play video profile exists for http/mkv/vp9||
|Jun 07, 2019 07:29:49.579|DEBUG|MDE: Rick.and.Morty.S01E01.ffmpeg (2019): no direct play video profile exists for http/mkv/vp9/opus|
|Jun 07, 2019 07:29:49.579|DEBUG|MDE: Rick.and.Morty.S01E01.ffmpeg (2019): transcoding selected subtitle stream|
|Jun 07, 2019 07:29:49.579|DEBUG|MDE: Rick.and.Morty.S01E01.ffmpeg (2019): no direct play video profile exists for http/mkv/vp9/opus|
|Jun 07, 2019 07:29:49.579|DEBUG|MDE: Rick.and.Morty.S01E01.ffmpeg (2019): transcoding selected subtitle stream|
|Jun 07, 2019 07:29:49.579|DEBUG|MDE: Rick.and.Morty.S01E01.ffmpeg (2019): selected media 0 / 118250|
|Jun 07, 2019 07:29:49.578|DEBUG|MDE: Selected protocol http; container: ass|
|Jun 07, 2019 07:29:49.578|DEBUG|MDE: analyzing media item 118250|

image

However, if I try to other combinations like playing the first audio track, with the second subtitle track:

||Jun 07, 2019 07:34:20.709|DEBUG|MDE: Selected protocol dash; container: mp4|
|Jun 07, 2019 07:34:20.709|DEBUG|MDE: analyzing media item 118250|
|Jun 07, 2019 07:34:20.709|DEBUG|MDE: Rick.and.Morty.S01E01.ffmpeg (2019): Direct Play is disabled|
|Jun 07, 2019 07:34:20.709|DEBUG|MDE: Rick.and.Morty.S01E01.ffmpeg (2019): media must be transcoded in order to use the dash protocol|
|Jun 07, 2019 07:34:20.709|DEBUG|MDE: Rick.and.Morty.S01E01.ffmpeg (2019): selected audio stream is not the first audio stream and direct play stream selection is not enabled|
|Jun 07, 2019 07:34:20.709|DEBUG|MDE: Rick.and.Morty.S01E01.ffmpeg (2019): no direct play video profile exists for http/mkv/vp9|
|Jun 07, 2019 07:34:20.709|DEBUG|MDE: Rick.and.Morty.S01E01.ffmpeg (2019): no direct play video profile exists for http/mkv/vp9/opus|
|Jun 07, 2019 07:34:20.709|DEBUG|MDE: Rick.and.Morty.S01E01.ffmpeg (2019): selected embedded subtitle stream is not the first embedded subtitle stream|
|Jun 07, 2019 07:34:20.709|DEBUG|MDE: Rick.and.Morty.S01E01.ffmpeg (2019): no direct play video profile exists for http/mkv/vp9/opus|
|Jun 07, 2019 07:34:20.709|DEBUG|MDE: Rick.and.Morty.S01E01.ffmpeg (2019): selected embedded subtitle stream is not the first embedded subtitle stream|
|Jun 07, 2019 07:34:20.709|DEBUG|MDE: Rick.and.Morty.S01E01.ffmpeg (2019): no remuxable profile found, so video stream will be transcoded|
|Jun 07, 2019 07:34:20.709|DEBUG|MDE: Cannot direct stream video stream due to profile or setting limitations|
|Jun 07, 2019 07:34:20.709|DEBUG|MDE: Cannot direct stream audio stream due to codec opus when profile only allows aac|
|Jun 07, 2019 07:34:20.709|DEBUG|MDE: Rick.and.Morty.S01E01.ffmpeg (2019): selected media 0 / 118250|

image

I can direct play the first audio stream with the second subtitle stream. The only combination that won’t let me direct play/stream is if I choose to play the second audio track.

It’s not a file issue, it’s a issue with how plex handles multiple tracks, and can’t direct stream them properly.

What does this mean and how I can enable it?

direct play stream selection is not enabled

I can share the file in private if that helps

I have a hunch that the video player in Chrome simply cannot handle multiple audio streams. Don’t forget: it’s a web browser which is being wrangled into a media player. Thus Plex falls back to transcoding.

Either you avoid VP9 and OPUS for now, or you use PMP as your player.

It’s simple then. Plex takes the desired audio track, the desired subtitle track, and the video track, and merge them in a container and send to chrome.

Chrome doesn’t need to know how much streams the original file has. I still think this is a issue that plex should solve!

Playing the video with only the 2nd audio selected:

Jun 07, 2019 07:54:25.535	DEBUG	MDE: Selected protocol dash; container: mp4
Jun 07, 2019 07:54:25.535	DEBUG	MDE: analyzing media item 118251
Jun 07, 2019 07:54:25.535	DEBUG	MDE: Rick.and.Morty.S01E01.ffmpeg (2019): Direct Play is disabled
Jun 07, 2019 07:54:25.535	DEBUG	MDE: Rick.and.Morty.S01E01.ffmpeg (2019): media must be transcoded in order to use the dash protocol
Jun 07, 2019 07:54:25.535	DEBUG	MDE: Rick.and.Morty.S01E01.ffmpeg (2019): selected audio stream is not the first audio stream and direct play stream selection is not enabled
Jun 07, 2019 07:54:25.535	DEBUG	MDE: Rick.and.Morty.S01E01.ffmpeg (2019): no direct play video profile exists for http/mkv/vp9
Jun 07, 2019 07:54:25.535	DEBUG	MDE: Rick.and.Morty.S01E01.ffmpeg (2019): no direct play video profile exists for http/mkv/vp9/opus
Jun 07, 2019 07:54:25.535	DEBUG	MDE: Rick.and.Morty.S01E01.ffmpeg (2019): no direct play video profile exists for http/mkv/vp9/opus
Jun 07, 2019 07:54:25.535	DEBUG	MDE: Rick.and.Morty.S01E01.ffmpeg (2019): no remuxable profile found, so video stream will be transcoded
Jun 07, 2019 07:54:25.535	DEBUG	MDE: Cannot direct stream video stream due to profile or setting limitations
Jun 07, 2019 07:54:25.535	DEBUG	MDE: Cannot direct stream audio stream due to codec opus when profile only allows aac
Jun 07, 2019 07:54:25.535	DEBUG	MDE: Rick.and.Morty.S01E01.ffmpeg (2019): selected media 0 / 118251

There is no reason to choose the container dash with mp4. The container dash supports both vp9 and opus, I’m okay with it not direct playing, but it should be able to direct stream.

Also what does direct play stream selection is not enabled means exactly?

http://wiki.webmproject.org/adaptive-streaming/instructions-to-playback-adaptive-webm-using-dash

another evidence DASH VP9 + Opus exists and is used already (the issue here is unrelated to what we are talking)

Could you please verify the behaviour with the latest web app version app.plex.tv
?

Same behavior happens. More information about dash and opus with vp9

https://www.wowza.com/resources/webinars/streamtalk-jw-masterclass-session2

I have filed the issue in the internal bug tracker.

2 Likes

Thanks OttoKerner <3

If you want the file as well, I can PM it to you

Any news on this?

I want to know if I can expect a fix for this or if I should find a different software to play my vp9 files…

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.