Transcoding Audio stops randomly and the file refuses to play after

Server Version#:
Player Version#: Roku 4K

So recently out of the blue I’m experiencing transcode crashes when transcoding audio.

I’ll attached full logs later but here’s a screenshot.

I’m not sure if it’s the file or a server issue?

Is anyone else noticing this behavior?

I tried deleting everything out of the codecs folder too, but that didn’t help & I checked the transcode folder and that was empty

Hi,

Further to my last message here are my log files.

Its a bit random the issue, so any ideas would be great!

Thanks

D.
Plex Media Server Logs_2022-09-14_19-44-23.zip (4.3 MB)

I noticed your first post mentioned “invalid data found” in stream 0:1.
Would you be able to zip and upload a sample file or the xml info?

Would you tell us please what you were trying to do in general? I can see there was a Roku, but maybe explain it once in detail like we have no idea.

I’ll have a look at your logs too.

From your log file, it looks like Doomsday was aptly named but not well encoded?

Sep 14, 2022 18:23:45.919 [0x14f8f9c7db00] DEBUG - [Req#17333c/Transcode/85cb919e-1a0b-4e3a-863b-d579df759691-25/JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/config/Library/Application\ Support/Plex\ Media\ Server/Codecs/c4efa15-4365-linux-x86_64/' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Transcoder" -codec:1 h264 -noaccurate_seek -analyzeduration 20000000 -probesize 20000000 -i '/tv/The Super Hero Squad Show/Season 01/The Super Hero Squad Show - S01E25 - Last Exit Before Doomsday!.mkv' -map 0:1 -metadata:s:0 language=eng -codec:0 copy -map 0:2 -metadata:s:1 language=eng -codec:1 copy -break_non_keyframes 1 -segment_format mpegts -f ssegment -individual_header_trailer 0 -segment_time 5 -segment_start_number 0 -segment_copyts 1 -segment_time_delta 0.0625 -segment_list "http://127.0.0.1:32400/video/:/transcode/session/85cb919e-1a0b-4e3a-863b-d579df759691-25/adea792f-283f-48d7-aac3-1e3f7882ecc3/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" -start_at_zero -copyts -vsync cfr -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/85cb919e-1a0b-4e3a-863b-d579df759691-25/adea792f-283f-48d7-aac3-1e3f7882ecc3/progress
Sep 14, 2022 18:23:46.190 [0x14f8faa03b00] ERROR - [Req#17334e/Transcode/85cb919e-1a0b-4e3a-863b-d579df759691-25/adea792f-283f-48d7-aac3-1e3f7882ecc3] [stream_segment,ssegment @ 0x14e8fd86e6c0] Error applying bitstream filters to an output packet for stream #0: Invalid data found when processing input
Sep 14, 2022 18:23:46.191 [0x14f8f98cfb00] ERROR - [Req#173386/Transcode/85cb919e-1a0b-4e3a-863b-d579df759691-25/adea792f-283f-48d7-aac3-1e3f7882ecc3] av_interleaved_write_frame(): Invalid data found when processing input
Sep 14, 2022 18:23:46.195 [0x14f8f8b7cb00] DEBUG - Streaming Resource: Terminated session 0x14f8fdd9a488:cc173b2f305fc424990d39251ab7c376 with reason Conversion failed. The transcoder exited due to an error.
Sep 14, 2022 18:23:46.290 [0x14f910d11b00] ERROR - Session 0x14f8fdd9a488 terminated

Hi,

Thanks for helping.

Heres the XML info:-

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="2" librarySectionTitle="TV Shows" librarySectionUUID="c00bca21-c158-4c5c-a55c-f19e3f49390a" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1661864098">
<Video ratingKey="93101" key="/library/metadata/93101" parentRatingKey="93076" grandparentRatingKey="93075" guid="plex://episode/5d9c0b094eefaa001f5f7874" parentGuid="plex://season/602e592c88e0a9002df6f237" grandparentGuid="plex://show/5d9c07f14eefaa001f5d1caf" type="episode" title="Last Exit Before Doomsday!" grandparentKey="/library/metadata/93075" parentKey="/library/metadata/93076" librarySectionTitle="TV Shows" librarySectionID="2" librarySectionKey="/library/sections/2" grandparentTitle="The Super Hero Squad Show" parentTitle="Season 1" contentRating="TV-Y7" summary="Silver Surfer's past as Galactus' herald is revealed as he encounters another herald, Stardust. But Doctor Doom has plans of his own for Stardust and her big boss." index="25" parentIndex="1" viewCount="1" lastViewedAt="1628518632" thumb="/library/metadata/93101/thumb/1651935740" art="/library/metadata/93075/art/1651935733" parentThumb="/library/metadata/93076/thumb/1651935734" grandparentThumb="/library/metadata/93075/thumb/1651935733" grandparentArt="/library/metadata/93075/art/1651935733" grandparentTheme="/library/metadata/93075/theme/1651935733" duration="1390944" originallyAvailableAt="2010-02-13" addedAt="1545542689" updatedAt="1651935740">
<Media id="250695" duration="1390944" bitrate="4570" width="1280" height="718" aspectRatio="1.78" audioChannels="6" audioCodec="ac3" videoCodec="h264" videoResolution="720" container="mkv" videoFrameRate="24p" videoProfile="high">
<Part accessible="1" exists="1" id="486866" key="/library/parts/486866/1545538852/file.mkv" duration="1390944" file="/tv/The Super Hero Squad Show/Season 01/The Super Hero Squad Show - S01E25 - Last Exit Before Doomsday!.mkv" size="794937613" container="mkv" deepAnalysisVersion="6" requiredBandwidths="9770,9089,7236,6173,6173,6173,6173,6173" videoProfile="high">
<Stream id="629110" streamType="1" default="1" codec="h264" index="1" bitrate="4028" language="English" languageTag="en" languageCode="eng" bitDepth="8" chromaLocation="topleft" chromaSubsampling="4:2:0" codedHeight="720" codedWidth="1280" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="23.976" hasScalingMatrix="1" headerCompression="1" height="718" level="31" profile="high" refFrames="2" requiredBandwidths="9220,8540,6688,5643,5643,5643,5643,5643" scanType="progressive" width="1280" displayTitle="720p (H.264)" extendedDisplayTitle="720p (H.264)"> </Stream>
<Stream id="629109" streamType="2" selected="1" default="1" codec="aac" index="0" channels="2" bitrate="158" language="English" languageTag="en" languageCode="eng" audioChannelLayout="stereo" profile="lc" requiredBandwidths="159,159,159,159,159,159,159,159" samplingRate="48000" displayTitle="English (AAC Stereo)" extendedDisplayTitle="English (AAC Stereo)"> </Stream>
<Stream id="629111" streamType="2" codec="ac3" index="2" channels="6" bitrate="384" language="English" languageTag="en" languageCode="eng" audioChannelLayout="5.1(side)" headerCompression="1" requiredBandwidths="383,383,383,383,383,383,383,383" samplingRate="48000" displayTitle="English (AC3 5.1)" extendedDisplayTitle="English (AC3 5.1)"> </Stream>
</Part>
</Media>
<Guid id="tmdb://601168"/>
<Guid id="tvdb://1640311"/>
<Marker id="103168" type="intro" startTimeOffset="135932" endTimeOffset="207826">
<Attributes id="103168"/>
</Marker>
<Extras size="0"> </Extras>
<Related> </Related>
</Video>
</MediaContainer>

Someone told me the file might be corrupted and i should try to reencode it to see if that fixes the problem, its obviously a kids tv show for my sons, but they are not that patient when things in our house break :slight_smile:

1 Like

so re-encoding the file to mp4 so it doesn’t need to be transcoded has fixed my immediate issue.

However it doesnt confirm the fact that my transcoder might be having a wobble … if that makes sense ?

Remuxing from mkv to mp4 fixed it huh?
Sounds like you won the lottery :slight_smile:

it appears that way …

I’m still not convinced though.

I noticed it went from 5.1 to stereo too, which means it doesnt need to transcode the sound.

This is where it was falling over I think, but lets see.

Was there anything else in the logs that was screaming at you, i noticed a load of errors on boot that dont appear to be transcoder related ?

The media info told us you have a file with

  • a video stream (h264)
  • an audio stream (AAC 2.0)
  • an audio stream (AC3 5.1)

I’m not familiar with how Plex chooses which audio track to play when it knows your system has an AC3 compatible player. So I don’t know what to expect.

Also more often than not, the 5.1 track comes before any AAC track, unlike your file that has it reversed. On my system, I never have to choose the AC3 track unless it’s after a 7.1 track I can’t play.

Maybe it’s the order of tracks and the Roku in combination that’s forcing your to choose, though this doesn’t explain why the transcode stops. The devs would need to see server logs to dig further into this.

PMS will play the first audio track matching the language and fits within transcoding limits (is transcoding disabled or bit rate limited?) unless otherwise instructed

When remuxing a file, the track assignments are easily changed to put AC3 5.1 first.

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