If you have not already, we suggest setting your Plex username to something else rather than email which is displayed on your posts in forum. You can change the username at https://app.plex.tv/desktop#!/account
Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

Plex is transcoding when casting from Android but not when casting from Chrome on desktop.

snaltysnalty Posts: 2Members, Plex Pass Plex Pass

Here are the relevant MDE logs:

Casting from the android app:
Sep 10, 2017 22:24:57.820 [12256] DEBUG - Request: [192.168.0.97:40447 (Subnet)] OPTIONS /video/:/transcode/universal/decision?hasMDE=1&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F3057&mediaIndex=0&partIndex=0&protocol=http&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=lan&maxVideoBitrate=20000&videoQuality=100&videoResolution=1920x1080&session=7dkdchyav0bxgafrp50zrpqf&offset=0&subtitles=burn&copyts=1&Accept-Language=en (15 live) TLS GZIP Signed-in Token () Sep 10, 2017 22:24:57.823 [11176] DEBUG - Completed: [192.168.0.97:40447] 200 OPTIONS /video/:/transcode/universal/decision?hasMDE=1&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F3057&mediaIndex=0&partIndex=0&protocol=http&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=lan&maxVideoBitrate=20000&videoQuality=100&videoResolution=1920x1080&session=7dkdchyav0bxgafrp50zrpqf&offset=0&subtitles=burn&copyts=1&Accept-Language=en (15 live) TLS GZIP 3ms 521 bytes (pipelined: 4) Sep 10, 2017 22:24:57.852 [17872] INFO - [Chromecast] [MDE] Augmented profile: { "directPlay": { "mp4": { "mimeType": "video/mp4; codecs=\"avc1.42E01E\"", "video": { "codecs": { "h264": {} }, "maxBitDepth": 8, "maxFrameRate": 60, "maxLevel": 42, "maxWidth": 1920, "maxHeight": 1080, "maxBitrate": 20000, "maxVideoResolution": "1080" }, "audio": { "codecs": { "aac": { "maxSamplingRate": 48000, "maxChannels": 2 }, "mp3": {} } } }, "mkv": { "mimeType": "video/webm", "video": { "codecs": { "h264": {}, "vp8": {} }, "maxBitDepth": 8, "maxFrameRate": 60, "maxLevel": 42, "maxWidth": 1920, "maxHeight": 1080, "maxBitrate": 20000, "maxVideoResolution": "1080" }, "audio": { "codecs": { "aac": { "maxSamplingRate": 48000, "maxChannels": 2 }, "mp3": {}, "vorbis": { "maxChannels": 2 } } } } }, "directStream": { "video": { "codecs": { "h264": {} }, "maxBitDepth": 8, "maxLevel": 42, "maxWidth": 1920, "maxHeight": 1080, "maxBitrate": 20000, "maxVideoResolution": "1080" }, "audio": { "codecs": { "aac": { "maxSamplingRate": 48000, "maxChannels": 2 }, "mp3": {}, "opus": {} }, "maxChannels": 6 } } } Sep 10, 2017 22:24:57.866 [15020] DEBUG - Request: [192.168.0.97:40445 (Subnet)] GET /video/:/transcode/universal/decision?hasMDE=1&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F3057&mediaIndex=0&partIndex=0&protocol=http&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=lan&maxVideoBitrate=20000&videoQuality=100&videoResolution=1920x1080&session=7dkdchyav0bxgafrp50zrpqf&offset=0&subtitles=burn&copyts=1&Accept-Language=en (15 live) TLS GZIP Signed-in Token (snalty) Sep 10, 2017 22:24:57.882 [13460] INFO - [Chromecast] [MDE] Starting analysis of 1080 (mp4, h264, ac3, 40, high) Sep 10, 2017 22:24:57.891 [15020] DEBUG - MDE: analyzing media item 5608 Sep 10, 2017 22:24:57.891 [15020] DEBUG - MDE: Alien: Covenant (2017): Direct Play is disabled Sep 10, 2017 22:24:57.891 [15020] DEBUG - MDE: Alien: Covenant (2017): no direct play video profile exists for http/mp4/h264 Sep 10, 2017 22:24:57.892 [15020] DEBUG - MDE: Alien: Covenant (2017): no direct play video profile exists for http/mp4/h264/ac3 Sep 10, 2017 22:24:57.893 [15020] DEBUG - MDE: Alien: Covenant (2017): selected media 0 / 5608 Sep 10, 2017 22:24:57.894 [15020] DEBUG - MDE: analyzing media item 5608 Sep 10, 2017 22:24:57.894 [15020] DEBUG - MDE: Alien: Covenant (2017): Direct Play is disabled Sep 10, 2017 22:24:57.895 [15020] DEBUG - MDE: Alien: Covenant (2017): no direct play video profile exists for http/mp4/h264 Sep 10, 2017 22:24:57.895 [15020] DEBUG - MDE: Alien: Covenant (2017): no direct play video profile exists for http/mp4/h264/ac3 Sep 10, 2017 22:24:57.896 [15020] DEBUG - MDE: Alien: Covenant (2017): Direct Streaming is disabled, so video stream will be transcoded Sep 10, 2017 22:24:57.896 [15020] DEBUG - MDE: Alien: Covenant (2017): no remuxable profile found, so video stream will be transcoded Sep 10, 2017 22:24:57.897 [15020] DEBUG - MDE: Alien: Covenant (2017): Audio Direct Streaming is disabled, so video's audio stream will be transcoded Sep 10, 2017 22:24:57.898 [15020] DEBUG - MDE: Alien: Covenant (2017): selected media 0 / 5608 Sep 10, 2017 22:24:57.899 [15020] DEBUG - MDE: analyzing media item 5608 Sep 10, 2017 22:24:57.899 [15020] DEBUG - MDE: Alien: Covenant (2017): Direct Play is disabled Sep 10, 2017 22:24:57.899 [15020] DEBUG - MDE: Alien: Covenant (2017): no direct play video profile exists for http/mp4/h264 Sep 10, 2017 22:24:57.900 [15020] DEBUG - MDE: Alien: Covenant (2017): no direct play video profile exists for http/mp4/h264/ac3 Sep 10, 2017 22:24:57.900 [15020] DEBUG - MDE: Alien: Covenant (2017): Direct Streaming is disabled, so video stream will be transcoded Sep 10, 2017 22:24:57.900 [15020] DEBUG - MDE: Alien: Covenant (2017): no remuxable profile found, so video stream will be transcoded Sep 10, 2017 22:24:57.901 [15020] DEBUG - MDE: Alien: Covenant (2017): Audio Direct Streaming is disabled, so video's audio stream will be transcoded Sep 10, 2017 22:24:57.903 [15020] DEBUG - MDE: Alien: Covenant (2017): selected media 0 / 5608 Sep 10, 2017 22:24:57.908 [11176] DEBUG - Completed: [192.168.0.97:40445] 200 GET /video/:/transcode/universal/decision?hasMDE=1&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F3057&mediaIndex=0&partIndex=0&protocol=http&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=lan&maxVideoBitrate=20000&videoQuality=100&videoResolution=1920x1080&session=7dkdchyav0bxgafrp50zrpqf&offset=0&subtitles=burn&copyts=1&Accept-Language=en (16 live) TLS GZIP 42ms 2401 bytes (pipelined: 8) Sep 10, 2017 22:24:57.974 [17072] WARN - [Chromecast] [MDE] Unable to validate videoResolution; re-analyze the media if possible Sep 10, 2017 22:24:57.991 [12256] DEBUG - Request: [192.168.0.97:40450 (Subnet)] GET /video/:/transcode/universal/start?hasMDE=1&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F3057&mediaIndex=0&partIndex=0&protocol=http&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=lan&maxVideoBitrate=20000&videoQuality=100&videoResolution=1920x1080&session=7dkdchyav0bxgafrp50zrpqf&offset=0&subtitles=burn&copyts=1&Accept-Language=en (16 live) TLS Signed-in Token (snalty) Sep 10, 2017 22:24:58.075 [13460] WARN - [Chromecast] [MDE] Unable to validate videoResolution; re-analyze the media if possible Sep 10, 2017 22:24:58.243 [15020] INFO - [Chromecast] [MDE] Finished analysis of 1080 (mp4, h264, ac3, 40, high) Sep 10, 2017 22:24:58.871 [13460] INFO - [Chromecast] hasMDE: 1 Sep 10, 2017 22:25:00.033 [13460] INFO - [Chromecast] hasMDE: 1

Casting from chrome:

Sep 10, 2017 22:27:03.345 [10528] DEBUG - Request: [192.168.0.97:40475 (Subnet)] OPTIONS /video/:/transcode/universal/decision?hasMDE=1&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F3057&mediaIndex=0&partIndex=0&protocol=http&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=lan&session=2v6073ms6d5w52xuniik3a7t&offset=0&subtitles=burn&copyts=1&Accept-Language=en (14 live) TLS GZIP Signed-in Token () Sep 10, 2017 22:27:03.348 [11176] DEBUG - Completed: [192.168.0.97:40475] 200 OPTIONS /video/:/transcode/universal/decision?hasMDE=1&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F3057&mediaIndex=0&partIndex=0&protocol=http&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=lan&session=2v6073ms6d5w52xuniik3a7t&offset=0&subtitles=burn&copyts=1&Accept-Language=en (14 live) TLS GZIP 3ms 521 bytes (pipelined: 4) Sep 10, 2017 22:27:03.441 [12612] DEBUG - Request: [192.168.0.97:40477 (Subnet)] GET /video/:/transcode/universal/decision?hasMDE=1&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F3057&mediaIndex=0&partIndex=0&protocol=http&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=lan&session=2v6073ms6d5w52xuniik3a7t&offset=0&subtitles=burn&copyts=1&Accept-Language=en (14 live) TLS GZIP Signed-in Token (snalty) Sep 10, 2017 22:27:03.451 [12612] DEBUG - MDE: analyzing media item 5608 Sep 10, 2017 22:27:03.451 [12612] DEBUG - MDE: Alien: Covenant (2017): Direct Play is disabled Sep 10, 2017 22:27:03.451 [12612] DEBUG - MDE: Alien: Covenant (2017): no direct play video profile exists for http/mp4/h264 Sep 10, 2017 22:27:03.451 [12612] DEBUG - MDE: Alien: Covenant (2017): no direct play video profile exists for http/mp4/h264/ac3 Sep 10, 2017 22:27:03.452 [12612] DEBUG - MDE: Alien: Covenant (2017): selected media 0 / 5608 Sep 10, 2017 22:27:03.455 [16448] DEBUG - Completed: [192.168.0.97:40477] 200 GET /video/:/transcode/universal/decision?hasMDE=1&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F3057&mediaIndex=0&partIndex=0&protocol=http&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=lan&session=2v6073ms6d5w52xuniik3a7t&offset=0&subtitles=burn&copyts=1&Accept-Language=en (15 live) TLS GZIP 14ms 2385 bytes (pipelined: 4) Sep 10, 2017 22:27:03.588 [16640] INFO - [Chromecast] [MDE] Augmented profile: { "directPlay": { "mp4": { "mimeType": "video/mp4; codecs=\"avc1.42E01E\"", "video": { "codecs": { "h264": {} }, "maxBitDepth": 8, "maxFrameRate": 60, "maxLevel": 42, "maxWidth": 1920, "maxHeight": 1080 }, "audio": { "codecs": { "aac": { "maxSamplingRate": 48000, "maxChannels": 2 }, "mp3": {} } } }, "mkv": { "mimeType": "video/webm", "video": { "codecs": { "h264": {}, "vp8": {} }, "maxBitDepth": 8, "maxFrameRate": 60, "maxLevel": 42, "maxWidth": 1920, "maxHeight": 1080 }, "audio": { "codecs": { "aac": { "maxSamplingRate": 48000, "maxChannels": 2 }, "mp3": {}, "vorbis": { "maxChannels": 2 } } } } }, "directStream": { "video": { "codecs": { "h264": {} }, "maxBitDepth": 8, "maxLevel": 42, "maxWidth": 1920, "maxHeight": 1080 }, "audio": { "codecs": { "aac": { "maxSamplingRate": 48000, "maxChannels": 2 }, "mp3": {}, "opus": {} }, "maxChannels": 6 } } } Sep 10, 2017 22:27:03.626 [4416] DEBUG - Request: [192.168.0.97:40481 (Subnet)] GET /video/:/transcode/universal/start?hasMDE=1&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F3057&mediaIndex=0&partIndex=0&protocol=http&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=lan&session=2v6073ms6d5w52xuniik3a7t&offset=0&subtitles=burn&copyts=1&Accept-Language=en (15 live) TLS Signed-in Token (snalty) Sep 10, 2017 22:27:03.675 [11288] INFO - [Chromecast] [MDE] Starting analysis of 1080 (mp4, h264, ac3, 40, high) Sep 10, 2017 22:27:04.048 [18944] INFO - [Chromecast] [MDE] Finished analysis of 1080 (mp4, h264, ac3, 40, high) Sep 10, 2017 22:27:04.923 [10528] INFO - [Chromecast] hasMDE: 1 Sep 10, 2017 22:27:06.765 [10528] DEBUG - Request: [192.168.0.97:40516 (Subnet)] OPTIONS /:/timeline?hasMDE=1&ratingKey=3057&key=%2Flibrary%2Fmetadata%2F3057&state=playing&playQueueItemID=17260&time=0&duration=7323316 (20 live) TLS GZIP Signed-in Sep 10, 2017 22:27:06.766 [11176] DEBUG - Completed: [192.168.0.97:40516] 200 OPTIONS /:/timeline?hasMDE=1&ratingKey=3057&key=%2Flibrary%2Fmetadata%2F3057&state=playing&playQueueItemID=17260&time=0&duration=7323316 (20 live) TLS GZIP 0ms 547 bytes (pipelined: 1) Sep 10, 2017 22:27:06.931 [12612] DEBUG - Request: [192.168.0.97:40518 (Subnet)] GET /:/timeline?hasMDE=1&ratingKey=3057&key=%2Flibrary%2Fmetadata%2F3057&state=playing&playQueueItemID=17260&time=0&duration=7323316 (19 live) TLS GZIP Signed-in Token (snalty) Sep 10, 2017 22:27:06.949 [16448] DEBUG - Completed: [192.168.0.97:40518] 200 GET /:/timeline?hasMDE=1&ratingKey=3057&key=%2Flibrary%2Fmetadata%2F3057&state=playing&playQueueItemID=17260&time=0&duration=7323316 (18 live) TLS GZIP 17ms 764 bytes (pipelined: 1) Sep 10, 2017 22:27:07.127 [18944] INFO - [Chromecast] hasMDE: 1 Sep 10, 2017 22:27:08.776 [12612] INFO - [Chromecast] URL: https://192-168-0-83.340302032bd548edb771c3e5fa688fd7.plex.direct:32400/video/:/transcode/universal/start?hasMDE=1&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F3057&mediaIndex=0&partIndex=0&protocol=http&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=lan&session=2v6073ms6d5w52xuniik3a7t&offset=0&subtitles=burn&copyts=1&Accept-Language=en&X-Plex-Session-Identifier=947sd36f3pnwx9jknltsqy96&X-Plex-Client-Profile-Extra=add-limitation%28scope%3DvideoAudioCodec%26scopeName%3Daac%26type%3DupperBound%26name%3Daudio.channels%26value%3D2%29&X-Plex-Chunked=1&X-Plex-Product=Plex%20Chromecast&X-Plex-Version=2.12.3&X-Plex-Client-Identifier=qr6tzn8f7ow6awq6wsoh1714&X-Plex-Platform=Chromecast&X-Plex-Platform-Version=2.0.0&X-Plex-Device=Chromecast&X-Plex-Device-Name=Chromecast&X-Plex-Token=xxxxxxxx Sep 10, 2017 22:27:09.431 [18700] INFO - [Chromecast] [Player] setting src attribute https://192-168-0-83.340302032bd548edb771c3e5fa688fd7.plex.direct:32400/video/:/transcode/universal/start?hasMDE=1&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F3057&mediaIndex=0&partIndex=0&protocol=http&fastSeek=1&directPlay=0&directStream=1&subtitleSize=100&audioBoost=100&location=lan&session=2v6073ms6d5w52xuniik3a7t&offset=0&subtitles=burn&copyts=1&Accept-Language=en&X-Plex-Session-Identifier=947sd36f3pnwx9jknltsqy96&X-Plex-Client-Profile-Extra=add-limitation%28scope%3DvideoAudioCodec%26scopeName%3Daac%26type%3DupperBound%26name%3Daudio.channels%26value%3D2%29&X-Plex-Chunked=1&X-Plex-Product=Plex%20Chromecast&X-Plex-Version=2.12.3&X-Plex-Client-Identifier=qr6tzn8f7ow6awq6wsoh1714&X-Plex-Platform=Chromecast&X-Plex-Platform-Version=2.0.0&X-Plex-Device=Chromecast&X-Plex-Device-Name=Chromecast&X-Plex-Token=xxxxxxxx

And here is the full log file:
https://snalty.xyz/files/share/pmslog.log

Thanks for the help :)

Answers

  • theonlycuretheonlycure Posts: 35Members, Plex Pass Plex Pass

    Now it seems to be transcoding opus to aac in browser instead of direct stream. Please bring back support of opus.

  • Jose00Jose00 Posts: 38Members, Plex Pass Plex Pass

    Try downgrading your Plex app on your phone or tablet. Something like version 5.9.7 which had the older settings options (i forget which one I used). See if that still transcodes..

  • abnatalabnatal Posts: 2Members

    Same issue here. Any updates?

  • JkunstJkunst Posts: 11Members, Plex Pass Plex Pass

    Same issue. Caring from Android transcodes and studders. Caring same file to same decide on chrome windows uses direct stream.

  • FygonzaloFygonzalo Posts: 8Members, Plex Pass Plex Pass

    Jkunst can you tell me the bitrate of content where this happens? I have the same problem but only on certain content and when I add subtitles.

    The movie can be direct played casting from my android.
    The same movie is transcoded casting from my android when I add subtitles.

    According to logs, its transcoded because the bandwidth limit its excessed and this is because of subtitles ?

  • JkunstJkunst Posts: 11Members, Plex Pass Plex Pass
    edited October 14

    The particular movie this happened with last night had the attributes below. Seems to happen with anything at higher than DVD quality. Casted from my android phone, it transcoded and studdered. Casted from Chrome Web on my windows computer it was Direct Stream I believe and played fine.

    No subtitiles for me. I believe Plex transcodes most of the time for subtitiles. Especally if you have the settings marked to burn them in.

    Codec H264
    Bitrate 11019 kbps
    Bit Depth 8
    Chroma Subsampling 4:2:0
    Color Range tv
    Color Space bt709
    Frame Rate 23.976 fps
    Height 1080
    Level 4.1
    Profile high
    Ref Frames 4
    Scan Type progressive
    Width 1920
    Codec TRUEHD
    Channels 5.1
    Language English
    Audio Channel Layout 5.1(side)
    Bit Depth 24
    Sampling Rate 48000 Hz
    Title Surround

  • FygonzaloFygonzalo Posts: 8Members, Plex Pass Plex Pass
    edited October 15

    @Jkunst said:
    No subtitiles for me. I believe Plex transcodes most of the time for subtitiles. Especally if you have the settings marked to burn them in.

    That's false, chromecast supports soft subtitles and I am able to direct stream other content with external subtitles without problem.

    Still I have the same problem as you, just different cause, because I can direct stream the same movie with subtitles that causes me problem but from Chrome browser.

    SKIP THIS COMMENT AND GO TO MY NEXT ONE

    I suggest you to check plex server logs (download them from Setting -> Server -> Help -> Download logs). The extract file named "Plex Media Server.log" (there are many, I don't know the difference).
    After that, search for "DEBUG - MDE:"
    Oct 13, 2017 18:47:42.434 [8404] DEBUG - MDE: analyzing media item 110 Oct 13, 2017 18:47:42.434 [8404] DEBUG - MDE: Life (2017): Direct Play is disabled Oct 13, 2017 18:47:42.434 [8404] DEBUG - MDE: Life (2017): no direct play video profile exists for http/mkv/h264 Oct 13, 2017 18:47:42.434 [8404] DEBUG - MDE: Life (2017): no direct play video profile exists for http/mkv/h264/ac3 Oct 13, 2017 18:47:42.435 [8404] ERROR - PropertyContainer::get - invalid frameRate value: 23.976 Oct 13, 2017 18:47:42.435 [8404] DEBUG - MDE: Life (2017): selected media 0 / 110 Oct 13, 2017 18:47:42.435 [8404] DEBUG - Streaming Resource: Changing decision parameters to fit bandwidth limit of 20000kbps Oct 13, 2017 18:47:42.435 [8404] DEBUG - MDE: analyzing media item 110 Oct 13, 2017 18:47:42.435 [8404] DEBUG - MDE: Life (2017): Direct Play is disabled Oct 13, 2017 18:47:42.436 [8404] DEBUG - MDE: Life (2017): no direct play video profile exists for http/mkv/h264 Oct 13, 2017 18:47:42.436 [8404] DEBUG - MDE: Life (2017): no direct play video profile exists for http/mkv/h264/ac3 Oct 13, 2017 18:47:42.436 [8404] DEBUG - MDE: Life (2017): Direct Streaming is disabled, so video stream will be transcoded Oct 13, 2017 18:47:42.436 [8404] DEBUG - MDE: Life (2017): no remuxable profile found, so video stream will be transcoded Oct 13, 2017 18:47:42.436 [8404] DEBUG - Scaled up video bitrate to 10074Kbps based on 1.500000x fudge factor. Oct 13, 2017 18:47:42.436 [8404] DEBUG - MDE: Life (2017): Audio Direct Streaming is disabled, so video's audio stream will be transcoded Oct 13, 2017 18:47:42.437 [8404] DEBUG - Codecs: testing aac_mf (encoder) Oct 13, 2017 18:47:42.437 [8404] DEBUG - Codecs: testing mp3_mf (encoder) Oct 13, 2017 18:47:42.437 [8404] DEBUG - MDE: Life (2017): selected media 0 / 110 Oct 13, 2017 18:47:42.437 [8404] DEBUG - Streaming Resource: Reducing playback quality for 19047kbps stream bitrate: video resolution to 1280x536, audio channels to 6, quality to 99 Oct 13, 2017 18:47:42.438 [8404] DEBUG - MDE: analyzing media item 110 Oct 13, 2017 18:47:42.438 [8404] DEBUG - MDE: Life (2017): Direct Play is disabled Oct 13, 2017 18:47:42.438 [8404] DEBUG - MDE: Life (2017): no direct play video profile exists for http/mkv/h264 Oct 13, 2017 18:47:42.438 [8404] DEBUG - MDE: Life (2017): no direct play video profile exists for http/mkv/h264/ac3 Oct 13, 2017 18:47:42.438 [8404] DEBUG - MDE: Life (2017): Direct Streaming is disabled, so video stream will be transcoded Oct 13, 2017 18:47:42.438 [8404] DEBUG - MDE: Life (2017): no remuxable profile found, so video stream will be transcoded Oct 13, 2017 18:47:42.438 [8404] DEBUG - Scaled up video bitrate to 10074Kbps based on 1.500000x fudge factor. Oct 13, 2017 18:47:42.439 [8404] DEBUG - MDE: Life (2017): selected media 0 / 110

    I think this line is causing problems:
    DEBUG - Streaming Resource: Changing decision parameters to fit bandwidth limit of 20000kbps

    When direct stream another video with subtitles the debug is different.
    Oct 13, 2017 18:48:24.607 [11508] DEBUG - MDE: analyzing media item 61 Oct 13, 2017 18:48:24.607 [11508] DEBUG - MDE: E1 - eps1.0_hellofriend.mov: Direct Play is disabled Oct 13, 2017 18:48:24.607 [11508] DEBUG - MDE: E1 - eps1.0_hellofriend.mov: no direct play video profile exists for http/mkv/h264 Oct 13, 2017 18:48:24.608 [11508] DEBUG - MDE: E1 - eps1.0_hellofriend.mov: no direct play video profile exists for http/mkv/h264/ac3 Oct 13, 2017 18:48:24.608 [11508] ERROR - PropertyContainer::get - invalid frameRate value: 23.976 Oct 13, 2017 18:48:24.609 [11508] DEBUG - MDE: Mr. Robot - S1 E1 - eps1.0_hellofriend.mov: selected media 0 / 61 Oct 13, 2017 18:48:24.610 [11508] DEBUG - Streaming Resource: Added session 09CDC308:xlmk2glhfxufqehl228zjuf7

  • FygonzaloFygonzalo Posts: 8Members, Plex Pass Plex Pass

    Ok, I think I found the problem. First of all I have replicated this problem on iOS app too.

    Somehow there is a bandwidth limit of 20000kbps, since I haven't tried from another device rather those two and from the PC where the server is running I will assume this bandwidth limit is applied always when using the casting function from any device different to the server, hence I don't have this problem when casting from chrome on my server pc, also you don't (would love to know if you're trying from the server too).

    Now you may be asking why is this limit applied if your video bitrate is less than 20000kbps. That's because the bitrate shown in mediainfo isn't the real bitrate that plex is using to send data to the client. Look at the end of this support article, from title "Bitrates and How They Matter" to the end.

    To know the true levels of bitrate your movie needs, see the xml version of media info (clicking on the 'View xml' link when the media info's modal is shown) and then add this to the your browser url "&includeBandwidths=1" (without quotes), after that refresh the browser.

    Now search for "streamType="1"" (without quotes) and the requiredBandwidth in the same node indicates the different levels of bitrates that may be used on that movie.
    You will find more info about this in this comment

    This resumes everything:

    The first number is the required bandwidth for the worst case, if your Plex client has only a tiny network buffer.
    The various numbers are the required bitrate for 5/10/25/50/75/100/250/500MB network buffer sizes.

    So my assumption is that the 20000kbps bandwidth limit is applied when using the casting function from any device different from the server to avoid stuttering. I don't understand the reason of this happening, doesn't makes sense because the content doesn't go throught your phone, but the limit it's still applied. I guess this could be a standard limit applied to any device that's receiving the cast from any other device different from the server.

    Analyzing my videos I found these required bandwidth:

    • TV SHOW: requiredBandwidths="10005,8171,5284,5284,5284,5284,5284,5284"
    • MOVIE #1: requiredBandwidths="24894,13913,13913,13913,13913,13913,13913,13913"
    • MOVIE #2: requiredBandwidths="21263,19105,14098,8528,7728,7612,7612,7612"

    So why is all my content direct played when not using subtitles but direct streamed for the tv show when I add them, and transcoded when add them to both movies?
    I guess it's because without subtitles the bitrate used is less than the max (first required bandwidth number), but when I add subtitles, I assume for some reason, it forces the max required bandwidth, so on the tv show the maximum required bandwidth is still less than 20000kbps and the content can be direct streamed. This isn't the case for both movies where the maximum required bandwidth is bigger than 20000kbps so the movie has to be transcoded to reduce bitrate.

    In your case the bitrate needed to just stream the movie (even without subtitles, so may not be the maximum required bandwidth) may be bigger than the limit and that's why transcode happens.

    Please share your movies' required bandwidth so I can verify this theory.

  • JkunstJkunst Posts: 11Members, Plex Pass Plex Pass

    I like the work you are doing, but I can say you are not quite right.

    First off the Chrome Web desktop computer that I use where it can Direct stream without issue is not the server. I have my Plex server on a Synology NAS. My android phone seems to force transcoding with a lot of studder, but my desktop PC with Chrome Web used direct stream and plays perfect.

    The TV show I tried to stream has the following bandwidths listed in the XML file
    requiredBandwidths="46284,28013,16137,16137,16137,16137,16137,16137" scanType="progressive" width="1916"/>

    It still transcoded.

  • FygonzaloFygonzalo Posts: 8Members, Plex Pass Plex Pass

    @Jkunst I realized when you cast from chrome you are casting direct from the server, even if you aren't on the server machine. I mean, you are accessing to the server ip so technically you are on the server.

    I have looked at logs and there are request streams that contains a var "maxVideoBitrate=20000", maybe mobile apps are enforcing that bitrate when casting, I still have to check if this happens also when you cast from any device or only from mobile. I will investigste this later.

  • JkunstJkunst Posts: 11Members, Plex Pass Plex Pass

    Interesting. I obviously have much to learn.

  • FygonzaloFygonzalo Posts: 8Members, Plex Pass Plex Pass
    edited October 16

    @Jkunst seems like this is an old problem

    I have downgraded the plex application on my phone to v5.9.0.707 with this guide

    Now I can stream to chromecast from my phone without transcoding. The problem with the last app available at play store (and ios store) is that you can't set the quality over 20mpbs for in-home streaming. I have tried but when I cast to chromecast with subtitles on those two movies automatically changes the quality to 20mbps and doesn't let you select original quality.

    Make sure you change the video quality over wifi to original (Settings -> Video -> Quality over wifi on you android phone)

    @MovieFan.Plex please fix this

  • JkunstJkunst Posts: 11Members, Plex Pass Plex Pass
    edited October 16

    @Fygonzalo I really appreciate you following up with the tip. I'll give it a shot.

    I can't believe we are the only ones having this issue.

Sign In or Register to comment.