Error on playback of ts file

Server Version#: 1.18.9.2571
Player Version#: 7.29.2.16071 (735308920)

:::
On the client in the log I can see this line also:
Nano server version: 1.18.3.2156-349e9837e
:::
I think this one was before I updated server to 1.18.9.

I have a problem when I’m playing certain files. Here is an example, what happens, when I play one TS file.

On serverside there is no log at that particular time.
Client is a fire tv stick and this is the log.
This error happens always on the same spot (ca. 1 min 16 sec). But if I resume from that time I can continue to watch another period of time.

03-30 13:48:18.504  e: [Exo2VideoPlayer] Player error detected
03-30 13:48:18.513  e: An exception occurred: com.google.android.exoplayer2.i: java.lang.IllegalStateException
03-30 13:48:18.519  e: Stacktrace: com.google.android.exoplayer2.i: java.lang.IllegalStateException
	at com.google.android.exoplayer2.o.handleMessage(SourceFile:397)
	at android.os.Handler.dispatchMessage(Handler.java:98)
	at android.os.Looper.loop(Looper.java:135)
	at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: java.lang.IllegalStateException
	at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
	at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:1055)
	at com.google.android.exoplayer2.e.b.a(SourceFile:1477)
	at com.google.android.exoplayer2.e.b.render(SourceFile:666)
	at com.google.android.exoplayer2.o.h(SourceFile:575)
	at com.google.android.exoplayer2.o.handleMessage(SourceFile:326)
	... 3 more

03-30 13:48:18.563  i: [FF] Native renderer has been stopped.
03-30 13:48:18.579  i: [FF][Plex.Audio] Decoder is being released.
03-30 13:48:18.627  i: [video] Error detected during playback

Plex does not support TS files: https://support.plex.tv/articles/200264956-iso-img-and-video-ts-movie-files/
If it has worked in the past it is no guarantee it will continue to work. I’m surprised you’ve had any success.

You are confusing TS with Video_TS.
I just have tv records, which are TS, so it should play, as it is working with other files on other clients like in the browser.

.ts files work just fine as wertop says. There are challenges with this container, e.g. recordings sometimes come with extra tracks like subtitles and/or teletext that Plex seems to have issues with. Apart from that, they are supported and work.

This is the xml of that particular file:

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="9" librarySectionTitle="Rest" librarySectionUUID="2d6aa761-130d-4b74-b132-d538980df975" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1585084369">
<Video ratingKey="3527" key="/library/metadata/3527" guid="com.plexapp.agents.none://ead77d186b515efa22053fcb06fd3783d142d11a?lang=xn" type="movie" title="Шеф под прикритие 18.03.2020" librarySectionTitle="Rest" librarySectionID="9" librarySectionKey="/library/sections/9" summary="" viewOffset="68929" lastViewedAt="1585568898" year="2020" thumb="/library/metadata/3527/thumb/1585565356" art="/library/metadata/3527/art/1585565356" duration="2774472" originallyAvailableAt="2020-03-20" addedAt="1584733443" updatedAt="1585565356" createdAtAccuracy="epoch" createdAtTZOffset="3600">
<Media id="4111" duration="2774472" bitrate="6318" width="1920" height="1080" aspectRatio="1.78" audioChannels="2" audioCodec="mp2" videoCodec="h264" videoResolution="1080" container="mpegts" videoFrameRate="PAL" videoProfile="high">
<Part accessible="1" exists="1" id="4124" key="/library/parts/4124/1584733436/file.ts" duration="2774472" file="/volume1/media/Rest/Шеф под прикритие 18.03.2020.ts" size="2276365852" container="mpegts" deepAnalysisVersion="4" packetLength="188" requiredBandwidths="6308,6308,6308,6308,6308,6308,6308,6308" videoProfile="high">
<Stream id="10503" streamType="1" codec="h264" index="0" bitrate="6126" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codedHeight="1088" codedWidth="1920" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="25.000" hasScalingMatrix="1" height="1080" level="40" profile="high" refFrames="4" requiredBandwidths="6116,6116,6116,6116,6116,6116,6116,6116" scanType="interlaced" separateFields="1" streamIdentifier="421" width="1920" displayTitle="1080i (H.264)"/>
<Stream id="10504" streamType="2" selected="1" codec="mp2" index="1" channels="2" bitrate="192" language="български език" languageCode="bul" audioChannelLayout="stereo" requiredBandwidths="192,192,192,192,192,192,192,192" samplingRate="48000" streamIdentifier="422" displayTitle="български език (MP2 Stereo)"/>
</Part>
</Media>
<Extras size="0"> </Extras>
<Related> </Related>
</Video>
</MediaContainer>

Well an Android expert like @DaveBinM should have a look at this. I am pretty certain he would need full client and server logs :wink:

I’m definitely not an “expert” by any means! I just know the right people to ask :slight_smile: (then try to remember what they said, and continue to learn!). But yeah, logs from client and server would be most helpful :slight_smile:

I have investigated more and found out that is something with that particular ts file.
If I “optimize” this movie, then it will play without any issue.
Like I said on the server side, no log appear. On client side it is that error that is happening.

Could be a bad file, or something specific to that device :thinking:

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