Audio transcoding not working directly the first time

Server Version#: 1.40.5.8897
Player Version#: 10.19.4.1255 (Plex App in Chromecast with Google TV)

I have problems with audio transcoding in files with with the EAC3 codec sound. If I play in PC, or mobile Android or cast from android mobile to chromecast, plays perfect. But If I try to play directly in Chromecast TV, it´s stuck loading and not begin to play. The expected it´s direct play video and audio transcoding from EAC3 to OPUS.

I understand that it doesn’t do direct play because the device connected with ChromecastTV doesn’t support the EAC3 codec, but it doesn’t even start transcoding.

The funny thing is that there is an alternative solution, which is to perform the following steps:

  • I change the video quality and hit convert to HD (with any bitrate, 720p for example)
  • The movie starts playing by transcoding audio and video (with hardware transcoding)
  • I change the video quality again and hit play in original quality
  • The movie now plays correctly by transcoding only the audio and with direct play video, just as it should have done from the beginning.

It’s a bit of a pain to have to do this every time there is a file with this audio…

I checked the transcoder process inside container and it´s different when stuck loading and when plays fine transcoding audio. It seems that when it gets stuck, it doesn’t detect the segment format well.

The first time it plays the file when it gets stuck loading, checking the processes I see the following:

/usr/lib/plexmediaserver/Plex Transcoder -codec:0 h264 -codec:1 eac3_eae -eae_prefix:1 da1074df74f8dba6-com-plexapp-android_ -noaccurate_seek -analyzeduration 20000000 -probesize 20000000 -i /data/media/movies/IF (2024)/IF (2024).mkv -map 0:0 -codec:0 copy -filter_complex [0:1] aresample=async=1:ochl='5.1':rematrix_maxval=8.000000dB:osr=48000[0] -map [0] -metadata:s:1 language=spa -codec:1 libopus -b:1 774k -segment_format mpegts -f ssegment -individual_header_trailer 0 -segment_time 10 -segment_start_number 0 -segment_copyts 1 -segment_time_delta 0.0625 -segment_list http://127.0.0.1:32400/video/:/transcode/session/da1074df74f8dba6-com-plexapp-android/556286ec-2443-4599-a703-873c58552c0d/manifest?X-Plex-Http-Pipeline=infinite -segment_list_type csv -segment_list_size 5 -segment_list_separate_stream_times 1 -segment_list_unfinished 1 -max_delay 5000000 -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 media-%05d.ts -map 0:3 -metadata:s:0 language=spa -codec:0 copy -strict_ts:0 0 -f segment -segment_format matroska -segment_time 1 -segment_header_filename sub-header -segment_start_number 0 -segment_list http://127.0.0.1:32400/video/:/transcode/session/da1074df74f8dba6-com-plexapp-android/556286ec-2443-4599-a703-873c58552c0d/manifest?stream=subtitles&X-Plex-Http-Pipeline=infinite -segment_list_type csv -segment_list_size 5 -segment_list_separate_stream_times 1 -segment_list_unfinished 1 -fflags +flush_packets sub-chunk-%05d -start_at_zero -copyts -vsync cfr -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/da1074df74f8dba6-com-plexapp-android/556286ec-2443-4599-a703-873c58552c0d/progress

Once I change the video quality to 720p and return to original quality, where it does play correctly, I see the following process:

/usr/lib/plexmediaserver/Plex Transcoder -codec:0 h264 -codec:1 eac3_eae -eae_prefix:1 da1074df74f8dba6-com-plexapp-android_ -noaccurate_seek -analyzeduration 20000000 -probesize 20000000 -i /data/media/movies/IF (2024)/IF (2024).mkv -map 0:0 -codec:0 copy -filter_complex [0:1] aresample=async=1:ochl='5.1':rematrix_maxval=8.000000dB:osr=48000[0] -map [0] -metadata:s:1 language=spa -codec:1 libopus -b:1 768k -map 0:3 -metadata:s:2 language=spa -codec:2 ass -strict_ts:2 0 -map 0:t? -codec:t copy -segment_format matroska -f ssegment -individual_header_trailer 0 -flags +global_header -segment_header_filename header -segment_time 10 -segment_start_number 23 -segment_copyts 1 -segment_time_delta 0.0625 -segment_list http://127.0.0.1:32400/video/:/transcode/session/da1074df74f8dba6-com-plexapp-android/18ab5f16-8097-405b-beec-31355c9ffdf0/manifest?X-Plex-Http-Pipeline=infinite -segment_list_type csv -segment_list_size 5 -segment_list_separate_stream_times 1 -segment_list_unfinished 1 -segment_format_options output_ts_offset=10 -max_delay 5000000 -avoid_negative_ts disabled -map_metadata:g -1 -map_metadata:c -1 -map_chapters -1 media-%05d.ts -start_at_zero -copyts -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/da1074df74f8dba6-com-plexapp-android/18ab5f16-8097-405b-beec-31355c9ffdf0/progress

Finally, I have a CPU graph with the entire process:

Any idea?
Thank you!

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