Thank you Chuck that is very helpful. It also helps me understand the logs a tad better.
In the working case (720p on client), I see the stream use the “Android” profile:
TranscodeUniversalRequest: using augmented profile Android
Which succeeds with:
DEBUG - Streaming Resource: Reached Decision id=127236 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=709717 part=(id=721056 decision=transcode container=mpegts protocol=hls streams=(Video=(id=1043126 decision=transcode bitrate=8932 encoder=h264_vaapi width=1920 height=808) Audio=(id=1043127 decision=transcode bitrate=477 encoder=aac channels=6 rate=48000))))
But in the non-working case (1080p selected on the client), it says its using profile “Generic”:
TranscodeUniversalRequest: using profile Generic
This eventually fails with:
DEBUG - Streaming Resource: Reached Decision id=127236 codes=(General=2000,Neither direct play nor conversion is available. Direct Play=3000,App cannot direct play this item. No direct play video profile exists for protocol http, with container mkv, and video codec h264. Transcode=4005,Cannot convert this item. No conversion profile found for protocol http.) media=(id=709717 part=(id=721056 decision=none protocol=http streams=(Video=(id=1043126 decision= width=1920 height=808) Audio=(id=1043127 decision= channels=6 rate=48000))))
Also observed in the success case, that Plex exercises the hardware to seemingly check what formats are supported. In the failure case, I do not see that happening. Here’s an example of what I’m referring to:
Mar 18, 2020 12:15:26.231 [0x7f4282ffd700] DEBUG - Codecs: Testing with profile 'High'
Mar 18, 2020 12:15:26.231 [0x7f4282ffd700] DEBUG - Scaled up video bitrate to 9246Kbps based on 1.500000x fudge factor.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - Codecs: testing h264 (decoder) with hwdevice vaapi
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - Codecs: hardware transcoding: testing API vaapi
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x41524742 -> bgra.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x42475241 -> argb.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x41424752 -> rgba.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x52474241 -> abgr.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x58524742 -> bgr0.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x42475258 -> 0rgb.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x58424752 -> rgb0.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x52474258 -> 0bgr.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x50424752 -> unknown.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x50524742 -> unknown.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x36314752 -> unknown.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x56555941 -> unknown.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x30303859 -> gray.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x3231564e -> nv12.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x3132564e -> unknown.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x32595559 -> yuyv422.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x59565955 -> uyvy422.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x32315659 -> yuv420p.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x30323449 -> yuv420p.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x50313134 -> yuv411p.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x48323234 -> yuv422p.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x56323234 -> yuv440p.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x50343434 -> yuv444p.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x33434d49 -> unknown.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x30313050 -> p010le.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x30335241 -> unknown.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x30334241 -> unknown.
Mar 18, 2020 12:15:26.232 [0x7f4282ffd700] DEBUG - Codecs: Testing with profile 'High'
Mar 18, 2020 12:15:26.233 [0x7f4282ffd700] DEBUG - Scaled up video bitrate to 9246Kbps based on 1.500000x fudge factor.
Mar 18, 2020 12:15:26.233 [0x7f4282ffd700] DEBUG - Streaming Resource: Reducing playback quality for 9523kbps stream bitrate: video resolution to 1920x808, audio channels to 6, quality to 39
Mar 18, 2020 12:15:26.233 [0x7f4282ffd700] DEBUG - Codecs: testing h264 (decoder) with hwdevice vaapi
Mar 18, 2020 12:15:26.233 [0x7f4282ffd700] DEBUG - Codecs: hardware transcoding: testing API vaapi
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x41524742 -> bgra.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x42475241 -> argb.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x41424752 -> rgba.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x52474241 -> abgr.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x58524742 -> bgr0.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x42475258 -> 0rgb.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x58424752 -> rgb0.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x52474258 -> 0bgr.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x50424752 -> unknown.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x50524742 -> unknown.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x36314752 -> unknown.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x56555941 -> unknown.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x30303859 -> gray.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x3231564e -> nv12.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x3132564e -> unknown.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x32595559 -> yuyv422.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x59565955 -> uyvy422.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x32315659 -> yuv420p.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x30323449 -> yuv420p.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x50313134 -> yuv411p.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x48323234 -> yuv422p.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x56323234 -> yuv440p.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x50343434 -> yuv444p.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x33434d49 -> unknown.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x30313050 -> p010le.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x30335241 -> unknown.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x30334241 -> unknown.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - Codecs: Testing with profile 'High'
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - Scaled up video bitrate to 9246Kbps based on 1.500000x fudge factor.
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - MDE: Selected protocol hls; container: mpegts
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - MDE: analyzing media item 709717
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - MDE: Spies in Disguise (2019): Direct Play is disabled
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - MDE: Spies in Disguise (2019): media must be transcoded in order to use the hls protocol
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - MDE: Spies in Disguise (2019): no direct play video profile exists for http/mkv/h264
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - MDE: Spies in Disguise (2019): no direct play video profile exists for http/mkv/h264/dca
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - MDE: Spies in Disguise (2019): Direct Streaming is disabled, so video stream will be transcoded
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - MDE: Spies in Disguise (2019): no remuxable profile found, so video stream will be transcoded
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - MDE: Cannot direct stream video stream due to profile or setting limitations
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - Codecs: testing h264 (decoder) with hwdevice vaapi
Mar 18, 2020 12:15:26.234 [0x7f4282ffd700] DEBUG - Codecs: hardware transcoding: testing API vaapi
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x41524742 -> bgra.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x42475241 -> argb.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x41424752 -> rgba.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x52474241 -> abgr.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x58524742 -> bgr0.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x42475258 -> 0rgb.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x58424752 -> rgb0.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x52474258 -> 0bgr.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x50424752 -> unknown.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x50524742 -> unknown.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x36314752 -> unknown.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x56555941 -> unknown.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x30303859 -> gray.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x3231564e -> nv12.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x3132564e -> unknown.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x32595559 -> yuyv422.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x59565955 -> uyvy422.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x32315659 -> yuv420p.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x30323449 -> yuv420p.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x50313134 -> yuv411p.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x48323234 -> yuv422p.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x56323234 -> yuv440p.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x50343434 -> yuv444p.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x33434d49 -> unknown.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x30313050 -> p010le.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x30335241 -> unknown.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - [FFMPEG] - Format 0x30334241 -> unknown.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - Codecs: Testing with profile 'High'
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - Scaled up video bitrate to 9246Kbps based on 1.500000x fudge factor.
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - MDE: Spies in Disguise (2019): Audio Direct Streaming is disabled, so video's audio stream will be transcoded
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - MDE: Cannot direct stream audio stream due to profile or setting limitations
Mar 18, 2020 12:15:26.235 [0x7f4282ffd700] DEBUG - MDE: Spies in Disguise (2019): selected media 0 / 709717
I’m not sure if this is helpful but even after staring at the logs for about an hour, I am still not seeing why 720p works but 1080p doesn’t.