I noticed an issue with the Optimized Versions feature. I’m using the “Optimized for TV” preset to create an 1080p H264 version of a HEVC 4k movie which has embedded SRT subtitles.
The optimization process creates the Movie.mp4 together with a Movie.lang.srt subtitle file. When playing the optimized movie in Chrome, Plex decides to transcode the VIDEO stream while it should be able to just direct stream the video and audio tracks:

When not selecting the subtitles:

Using another movie (not optimized) which has SRT subtitles embedded doesn’t cause the video stream to transcode:

The same is happening when NOT using subtitles but just selecting another audio track:

Does anybody know why Plex decides to transcode whole video while it could just copy the video and audio streams (the client can definitely play them, as direct play is working without subtitles)?
This DOES NOT happen with files which are not optimized, direct streaming a movie which is not optimized and selecting another audio track works as expected:
Using audio track 1:

Using audio track 2:

Not direct streaming:
May 14, 2018 16:22:06.859 [0x7feda5bff700] DEBUG - Request: [::ffff:127.0.0.1:40482 (Loopback)] GET /video/:/transcode/universal/decision?hasMDE=1&path=%2Flibrary%2Fmetadata%2F1628&mediaIndex=1&partIndex=0&protocol=dash&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=wan&addDebugOverlay=0&autoAdjustQuality=0&directStreamAudio=1&mediaBufferSize=102400&session=9456mj4wjjbz6izvbx3ymyz9&subtitles=burn&Accept-Language=de (5 live) TLS GZIP Signed-in Token (steffend_)
May 14, 2018 16:22:06.860 [0x7feda5bff700] DEBUG - Found session GUID of 9456mj4wjjbz6izvbx3ymyz9 in session start.
May 14, 2018 16:22:06.860 [0x7feda5bff700] DEBUG - TranscodeUniversalRequest: using profile Web
May 14, 2018 16:22:06.861 [0x7feda5bff700] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/1628?includeBandwidths=1&offset=-1&X-Plex-Session-Identifier=qp01y7wsxb8opjlmx6vpv5tf
May 14, 2018 16:22:06.862 [0x7feda5bff700] DEBUG - Auth: authenticated user 1 as steffend_
May 14, 2018 16:22:06.874 [0x7feda5bff700] DEBUG - Audio Stream: 7422, Subtitle Stream: 0
May 14, 2018 16:22:06.874 [0x7feda5bff700] DEBUG - Audio Stream: 7461, Subtitle Stream: 0
May 14, 2018 16:22:06.876 [0x7feda5bff700] DEBUG - MDE: Selected protocol dash; container: mp4
May 14, 2018 16:22:06.876 [0x7feda5bff700] DEBUG - MDE: analyzing media item 2279
May 14, 2018 16:22:06.876 [0x7feda5bff700] DEBUG - MDE: MOVIE: Direct Play is disabled
May 14, 2018 16:22:06.876 [0x7feda5bff700] DEBUG - MDE: MOVIE: media must be transcoded in order to use the dash protocol
May 14, 2018 16:22:06.876 [0x7feda5bff700] DEBUG - MDE: MOVIE: selected audio stream is not the first audio stream and direct play stream selection is not enabled
May 14, 2018 16:22:06.876 [0x7feda5bff700] DEBUG - MDE: MOVIE: no direct play video profile exists for http/mp4/h264
May 14, 2018 16:22:06.876 [0x7feda5bff700] DEBUG - MDE: MOVIE: no direct play video profile exists for http/mp4/h264/aac
May 14, 2018 16:22:06.876 [0x7feda5bff700] DEBUG - MDE: MOVIE: no direct play video profile exists for http/mp4/h264/aac
May 14, 2018 16:22:06.876 [0x7feda5bff700] DEBUG - MDE: MOVIE: selected media 1 / 2279
May 14, 2018 16:22:06.876 [0x7feda5bff700] DEBUG - Streaming Resource: Calculated bandwidth of 10500000kbps exceeds bandwidth limit. Changing decision parameters provided by client to fit bandwidth limit of 800000kbps
May 14, 2018 16:22:06.876 [0x7feda5bff700] DEBUG - Streaming Resource: Determining preferred transcode encoders through transcode only decision.
May 14, 2018 16:22:06.876 [0x7feda5bff700] DEBUG - Scaled up video bitrate to 10846Kbps based on 1.500000x fudge factor.
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - Scaled up video bitrate to 10846Kbps based on 1.500000x fudge factor.
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - Streaming Resource: Reducing playback quality for 761904kbps stream bitrate: video resolution to 1920x800, audio channels to 6, quality to 99, disable video DS as 2147483647kbps is > the 15360kbps available, disable audio DS as 2147483647kbps is > the 768kbps available
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - Scaled up video bitrate to 10846Kbps based on 1.500000x fudge factor.
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - MDE: Selected protocol dash; container: mp4
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - MDE: analyzing media item 2279
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - MDE: MOVIE: Direct Play is disabled
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - MDE: MOVIE: media must be transcoded in order to use the dash protocol
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - MDE: MOVIE: selected audio stream is not the first audio stream and direct play stream selection is not enabled
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - MDE: MOVIE: no direct play video profile exists for http/mp4/h264
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - MDE: MOVIE: no direct play video profile exists for http/mp4/h264/aac
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - MDE: MOVIE: no direct play video profile exists for http/mp4/h264/aac
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - MDE: MOVIE: Direct Streaming is disabled, so video stream will be transcoded
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - MDE: MOVIE: no remuxable profile found, so video stream will be transcoded
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - MDE: Cannot direct stream video stream due to profile or setting limitations
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - Scaled up video bitrate to 10846Kbps based on 1.500000x fudge factor.
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - MDE: MOVIE: Audio Direct Streaming is disabled, so video's audio stream will be transcoded
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - MDE: Cannot direct stream audio stream due to profile or setting limitations
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - MDE: MOVIE: selected media 1 / 2279
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - Streaming Resource: Session 0x7fedbe623160:qp01y7wsxb8opjlmx6vpv5tf changed from using 16303kbps to 11658kbps of WAN bandwidth. Used bandwidth is now 11658kbps
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - Streaming Resource: Session 0x7fedbe623160:qp01y7wsxb8opjlmx6vpv5tf changed transcode slot usage to used. Used slots is now 1
May 14, 2018 16:22:06.877 [0x7feda5bff700] DEBUG - Streaming Resource: Reached Decision id=1628 codes=(General=1001,Direct play not available; Conversion OK. Direct Play=3000,App cannot direct play this item. Direct play is disabled. Transcode=1001,Direct play not available; Conversion OK.) media=(id=2279 part=(id=2281 decision=transcode container=mp4 protocol=dash streams=(Video=(id=7459 decision=transcode bitrate=10846 encoder=libx264 width=1920 height=800) Audio=(id=7461 decision=transcode bitrate=256 encoder=aac channels=2 rate=48000))))
vs.
May 14, 2018 16:28:41.583 [0x7fedbf3fd700] DEBUG - Request: [::ffff:127.0.0.1:43590 (Loopback)] GET /video/:/transcode/universal/decision?hasMDE=1&path=%2Flibrary%2Fmetadata%2F3&mediaIndex=0&partIndex=0&protocol=dash&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=wan&addDebugOverlay=0&autoAdjustQuality=0&directStreamAudio=1&mediaBufferSize=102400&session=j8im62guxkzudv898o74a8i1&subtitles=burn&Accept-Language=de (7 live) TLS GZIP Signed-in Token (steffend_)
May 14, 2018 16:28:41.583 [0x7fedbf3fd700] DEBUG - Found session GUID of j8im62guxkzudv898o74a8i1 in session start.
May 14, 2018 16:28:41.584 [0x7fedbf3fd700] DEBUG - TranscodeUniversalRequest: using profile Web
May 14, 2018 16:28:41.584 [0x7fedbf3fd700] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/3?includeBandwidths=1&offset=-1&X-Plex-Session-Identifier=qp01y7wsxb8opjlmx6vpv5tf
May 14, 2018 16:28:41.585 [0x7fedbf3fd700] DEBUG - Auth: authenticated user 1 as steffend_
May 14, 2018 16:28:41.601 [0x7fedbf3fd700] DEBUG - It took 10.000000 ms to retrieve 236 items.
May 14, 2018 16:28:41.602 [0x7fedbf3fd700] DEBUG - Audio Stream: 398, Subtitle Stream: 0
May 14, 2018 16:28:41.605 [0x7fedbf3fd700] DEBUG - MDE: Selected protocol dash; container: mp4
May 14, 2018 16:28:41.605 [0x7fedbf3fd700] DEBUG - MDE: analyzing media item 3
May 14, 2018 16:28:41.605 [0x7fedbf3fd700] DEBUG - MDE: MOVIE 2: Direct Play is disabled
May 14, 2018 16:28:41.605 [0x7fedbf3fd700] DEBUG - MDE: MOVIE 2: media must be transcoded in order to use the dash protocol
May 14, 2018 16:28:41.605 [0x7fedbf3fd700] DEBUG - MDE: MOVIE 2: selected audio stream is not the first audio stream and direct play stream selection is not enabled
May 14, 2018 16:28:41.605 [0x7fedbf3fd700] DEBUG - MDE: MOVIE 2: no direct play video profile exists for http/mp4/h264
May 14, 2018 16:28:41.605 [0x7fedbf3fd700] DEBUG - MDE: MOVIE 2: no direct play video profile exists for http/mp4/h264/aac
May 14, 2018 16:28:41.605 [0x7fedbf3fd700] DEBUG - MDE: MOVIE 2: no direct play video profile exists for http/mp4/h264/aac
May 14, 2018 16:28:41.605 [0x7fedbf3fd700] DEBUG - MDE: MOVIE 2: selected media 0 / 3
May 14, 2018 16:28:41.605 [0x7fedbf3fd700] DEBUG - Streaming Resource: Session 0x7fedb788eae0:qp01y7wsxb8opjlmx6vpv5tf changed from using 13290kbps to 12846kbps of WAN bandwidth. Used bandwidth is now 12846kbps
May 14, 2018 16:28:41.605 [0x7fedbf3fd700] DEBUG - Streaming Resource: Reached Decision id=3 codes=(General=1001,Direct play not available; Conversion OK. Direct Play=3000,App cannot direct play this item. Direct play is disabled. Transcode=1001,Direct play not available; Conversion OK.) media=(id=3 part=(id=3 decision=transcode container=mp4 protocol=dash streams=(Video=(id=396 decision=copy width=1920 height=804) Audio=(id=398 decision=copy channels=6 rate=48000))))
May 14, 2018 16:28:41.607 [0x7fedc03ff700] DEBUG - Completed: [::ffff:127.0.0.1:43590] 200 GET /video/:/transcode/universal/decision?hasMDE=1&path=%2Flibrary%2Fmetadata%2F3&mediaIndex=0&partIndex=0&protocol=dash&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=wan&addDebugOverlay=0&autoAdjustQuality=0&directStreamAudio=1&mediaBufferSize=102400&session=j8im62guxkzudv898o74a8i1&subtitles=burn&Accept-Language=de (6 live) TLS GZIP 24ms 5419 bytes (pipelined: 6)
Why does it say “Streaming Resource: Calculated bandwidth of 10500000kbps exceeds bandwidth limit. Changing decision parameters provided by client to fit bandwidth limit of 800000kbps”. I have no limit set on the client side or server side (1000 mbps uplink). There seems to be something wrong.




