Determine Decision for Transcoding

Server Version#: 4.108.0
Player Version#: N/A

I like to automatically transcode files on import so they can be direct-played by my client devices and have scripts that do that automatically.

I have found some files being transcoded and I’m trying to determine exactly the reason why so I can adjust my scripts.

I think I found the relevant snippets from my log files. Is anybody able to tell the exact reason it’s deciding to transcode? I THINK it is this line, indicating a max bitrate, but anybody who can interpret with more confidence than I have and/or confirm would be a huge help.

Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] Streaming Resource: Required bandwidth unknown (media requires deep analysis) Changing decision parameters provided by client to fit bandwidth limit of 4000kbps

Jun 10, 2023 14:12:40.760 [281473383440608] DEBUG - [Req#e34b/Transcode] Found session GUID of e6i2mgrf614a7gabfj30okta in session start.
Jun 10, 2023 14:12:40.760 [281473383440608] DEBUG - [Req#e34b/Transcode] TranscodeUniversalRequest: adapting profile with augmentation data: add-transcode-target(type=videoProfile&context=streaming&protocol=hls&container=mpegts&videoCodec=h264,hevc,mpeg2video,mpeg4&audioCodec=aac,ac3,eac3,mp2,mp3)+add-limitation(scope=videoAudioCodec&scopeName=mp2&type=upperBound&name=audio.bitrate&value=350)+add-limitation(scope=videoAudioCodec&scopeName=mp3&type=upperBound&name=audio.bitrate&value=350)+add-limitation(scope=videoCodec&scopeName=h264&type=upperBound&name=video.level&value=51)+add-limitation(scope=videoTranscodeTarget&scopeName=h264&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.bitDepth&value=8)+add-limitation(scope=videoTranscodeTarget&scopeName=h264&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.width&value=3840)+add-limitation(scope=videoTranscodeTarget&scopeName=h264&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.height&value=2160)+add-limitation(scope=videoTranscodeTarget&scopeName=hevc&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.bitDepth&value=10)+add-limitation(scope=videoTranscodeTarget&scopeName=hevc&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.width&value=3840)+add-limitation(scope=videoTranscodeTarget&scopeName=hevc&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.height&value=2160)+add-limitation(scope=videoTranscodeTarget&scopeName=mpeg2video&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.bitDepth&value=8)+add-limitation(scope=videoTranscodeTarget&scopeName=mpeg2video&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.width&value=1920)+add-limitation(scope=videoTranscodeTarget&scopeName=mpeg2video&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.height&value=1080)+add-limitation(scope=videoTranscodeTarget&scopeName=mpeg4&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.bitDepth&value=8)+add-limitation(scope=videoTranscodeTarget&scopeName=mpeg4&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.width&value=1920)+add-limitation(scope=videoTranscodeTarget&scopeName=mpeg4&scopeType=videoCodec&context=streaming&protocol=hls&type=upperBound&name=video.height&value=1080)
Jun 10, 2023 14:12:40.760 [281473383440608] DEBUG - [Req#e34b/Transcode] TranscodeUniversalRequest: using augmented profile Generic
Jun 10, 2023 14:12:40.760 [281473383440608] DEBUG - [Req#e34b/Transcode] Downloading document http://127.0.0.1:32400/library/metadata/26617?includeBandwidths=1&offset=-1&X-Plex-Incomplete-Segments=1&X-Plex-Session-Identifier=0kcnkktagssm53mo157tnzyl
Jun 10, 2023 14:12:40.762 [281473383440608] DEBUG - [Req#e34b/Transcode/Req#e34c] We're going to try to auto-select an audio stream for account 1.
Jun 10, 2023 14:12:40.762 [281473383440608] DEBUG - [Req#e34b/Transcode/Req#e34c] Selecting best audio stream for part ID 63929 (language: en)
Jun 10, 2023 14:12:40.762 [281473383440608] DEBUG - [Req#e34b/Transcode/Req#e34c] Audio Stream: 176544, Subtitle Stream: -1
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: Selected protocol hls; container: mpegts
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: analyzing media item 46330
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: E2 - My Episode: Direct Play is disabled
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: E2 - My Episode: media must be transcoded in order to use the hls protocol
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: E2 - My Episode: no direct play video profile exists for http/mp4/h264
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: E2 - My Episode: no direct play video profile exists for http/mp4/h264/ac3
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: E2 - My Episode: no direct play video profile exists for http/mp4/h264/aac
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] My Episode - video.width limitation applies: 1920 > 1280
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: E2 - My Episode: Direct Streaming is disabled, so video stream will be transcoded
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: E2 - My Episode: no remuxable profile found, so video stream will be transcoded
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: Cannot direct stream video stream due to profile or setting limitations
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: My Season - S1 E2 - My Episode: selected media 0 / 46330
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] Streaming Resource: Required bandwidth unknown (media requires deep analysis) Changing decision parameters provided by client to fit bandwidth limit of 4000kbps
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] Streaming Resource: Determining preferred transcode encoders through transcode only decision.
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] Streaming Resource: Reducing playback quality for 3809kbps stream bitrate: audio channels to 6, quality to 10, disable audio DS as 640kbps is > the 336kbps available
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: Selected protocol hls; container: mpegts
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: analyzing media item 46330
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: E2 - My Episode: Direct Play is disabled
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: E2 - My Episode: media must be transcoded in order to use the hls protocol
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: E2 - My Episode: no direct play video profile exists for http/mp4/h264
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: E2 - My Episode: no direct play video profile exists for http/mp4/h264/ac3
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: E2 - My Episode: no direct play video profile exists for http/mp4/h264/aac
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] My Episode - video.width limitation applies: 1920 > 1280
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: E2 - My Episode: Direct Streaming is disabled, so video stream will be transcoded
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: E2 - My Episode: no remuxable profile found, so video stream will be transcoded
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: Cannot direct stream video stream due to profile or setting limitations
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: E2 - My Episode: Audio Direct Streaming is disabled, so video's audio stream will be transcoded
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: Cannot direct stream audio stream due to profile or setting limitations
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] MDE: My Season - S1 E2 - My Episode: selected media 0 / 46330
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] Streaming Resource: Adding session 0xffffa35cc808:0kcnkktagssm53mo157tnzyl which is using transcoder slot.  Used slots is now 1
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] Streaming Resource: Added session 0xffffa35cc808:0kcnkktagssm53mo157tnzyl
Jun 10, 2023 14:12:40.763 [281473383440608] DEBUG - [Req#e34b/Transcode] Streaming Resource: Reached Decision id=26617 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=46330 part=(id=63929 decision=transcode container=mpegts protocol=hls streams=(Video=(id=176543 decision=transcode bitrate=3416 encoder=libx264 width=1280 height=720) Audio=(id=176544 decision=transcode bitrate=336 encoder=aac channels=6 rate=48000))))

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