Cannot direct play/stream .ts files anymore

Thanks for coming by.
I tried to dd a sample, but Plex doesn’t pick it up afterwards, so I cannot confirm whether the problem persists with the sample.

Interesting, thanks. I called it sample.ts :smiley:
Issue persists with this sample latest beta.
Here it is:

Just an FYI this line is saying that the Plex for Android software decoder doesn’t support H264, which is fine as every Android device has a hardware H264 decoder. :slightly_smiling_face:

Thanks for letting me know, it confused me so I pointed to it.

Thanks for reporting the issue and sharing a sample, a new beta will be released later on today with a fix!

Great to hear, thanks for your help!

Edit: tested the 7.28.0.15368-beta on my android phone and the respective files direct play again like a charm.
Thanks all for their quick solution!

1 Like

New issue with that very beta:
This file doesn’t have any audio played:

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="9" librarySectionTitle="Serien - ungeschnitten" librarySectionUUID="615e54a6-2d0d-4c0e-b4bf-2cc8fc3ca799" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1580813708">
<Video ratingKey="31484" key="/library/metadata/31484" parentRatingKey="31410" grandparentRatingKey="7049" guid="com.plexapp.agents.thetvdb://79491/15/2?lang=de" parentGuid="com.plexapp.agents.thetvdb://79491/15?lang=de" grandparentGuid="com.plexapp.agents.thetvdb://79491?lang=de" type="episode" title="Episode 2" grandparentKey="/library/metadata/7049" parentKey="/library/metadata/31410" librarySectionTitle="Serien - ungeschnitten" librarySectionID="9" librarySectionKey="/library/sections/9" grandparentTitle="Germany's Next Topmodel" parentTitle="Staffel 15" summary="Zu den Fachleuten, die Heidi Klum in dieser Staffel unterstützen werden, gehört die Schauspielerin Milla Jovovic, die auch als Model arbeitet, der amerikanische Modedesigner „The Blonds“, Star-Fotograf Rankin und der englische Modedesigner Julien MacDonald. Außerdem geben die international gefragten Topmodels Stella Maxwell und Joan Smalls ihr Know-How an die Nachwuchsmodels weiter" index="2" parentIndex="15" viewOffset="1492208" lastViewedAt="1581364442" year="2020" thumb="/library/metadata/31484/thumb/1581037399" art="/library/metadata/7049/art/1581037302" grandparentThumb="/library/metadata/7049/thumb/1581037302" grandparentArt="/library/metadata/7049/art/1581037302" duration="9029519" originallyAvailableAt="2020-02-06" addedAt="1581037248" updatedAt="1581037399">
<Media id="39482" duration="9029519" bitrate="12014" width="1920" height="1080" aspectRatio="1.78" audioChannels="2" audioCodec="ac3" videoCodec="h264" videoResolution="1080" container="mpegts" videoFrameRate="PAL" videoProfile="high">
<Part accessible="1" exists="1" id="39517" key="/library/parts/39517/1581025199/file.ts" duration="9029519" file="/google/aufnahmen/serien/Germany's Next Topmodel/Season 15/Germany's Next Topmodel - S15E02 - Folge 2.ts" size="14484987904" container="mpegts" deepAnalysisVersion="4" indexes="sd" packetLength="188" requiredBandwidths="16900,16225,15173,14246,13891,13553,12525,12413" videoProfile="high">
<Stream id="48080" streamType="1" codec="h264" index="1" bitrate="11381" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codedHeight="1088" codedWidth="1920" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="25.000" hasScalingMatrix="0" height="1080" level="40" profile="high" refFrames="4" requiredBandwidths="16267,15592,14540,13613,13258,12920,11892,11783" scanType="interlaced" separateFields="1" streamIdentifier="6841" width="1920" displayTitle="1080i (H.264)"/>
<Stream id="48081" streamType="2" selected="1" codec="ac3" index="2" channels="2" bitrate="384" language="Deutsch" languageCode="ger" audioChannelLayout="stereo" requiredBandwidths="384,384,384,384,384,384,384,384" samplingRate="48000" streamIdentifier="6842" displayTitle="Deutsch (AC3 Stereo)"/>
<Stream id="48079" streamType="3" codec="dvb_teletext" index="0" bitrate="249" language="ger,ger" languageCode="ger,ger" requiredBandwidths="249,249,249,249,249,249,249,249" streamIdentifier="6844" displayTitle="ger,ger (DVB_TELETEXT)"/>
</Part>
</Media>
<Extras size="0"> </Extras>
</Video>
</MediaContainer

If I force transcode, audio works. Maybe you can have a look at it @sixones

Thanks, will take a look and get back to you.

Thanks for that.

Any news on the latest issue?

Anything reportable for this issue @sixones ? I still face this issue also on the 7.28 stable that I am now running.

Edit: tbh I am not sure, whether this was already fixed in one of the betas, which I left due to another problem for the stable… Have to investigate this.

Investigation done:
Not fixed in beta either :slight_smile:

Edit:
Made another analysis:

This file is recorded by PlexDVR and runs just fine (I cleared some of the redundant xml data):

XML Details #1
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="1" librarySectionTitle="Filme - ungeschnitten" librarySectionUUID="06fd845e-d003-4f00-9181-1a7bec59f1d0" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1582835515">
<Video ratingKey="32164" key="/library/metadata/32164" guid="tv.plex.xmltv://movie/Unter%20uns" type="movie" title="Unter uns" librarySectionTitle="Filme - ungeschnitten" librarySectionID="1" librarySectionKey="/library/sections/1" summary="Jakob glaubt sich durch die Unterstützung seines vermeintlichen Verbündeten Ringo beruflich auf der Siegerstraße und begeht einen Fehler... Bei dem Versuch, Robert aufzumuntern, keimt in Britta ein Verdacht, dem sie durch einen kleinen Test auf den Grund geht... Nika hadert mit sich, ob sie Conor ihre Knastvergangenheit gestehen soll, um sein Vertrauen zurück zu gewinnen..(n)" year="2019" thumb="/library/metadata/32164/thumb/1583742615" art="/library/metadata/32164/art/1583742615" duration="737558" originallyAvailableAt="2019-01-01" addedAt="1583742600" updatedAt="1583742615" oneShot="1">
<Media id="40419" duration="737558" bitrate="9665" width="1920" height="1080" aspectRatio="1.78" audioChannels="2" audioCodec="ac3" videoCodec="h264" videoResolution="1080" container="mpegts" videoFrameRate="PAL" beginOffset="1051" channelIdentifier="RTL" mediaGrabBeginsAt="1583740800" mediaGrabDevice="device://tv.plex.grabbers.hdhomerun/2019-12-3EMB-FHED5M:4" mediaGrabPartialRecording="1" mediaGrabPartialRecordingReason="Aufnahme wurde abgebrochen" mediaGrabStatus="complete" origin="dvr" videoProfile="high">
<Part accessible="1" exists="1" id="40454" key="/library/parts/40454/1583741875/file.ts" duration="737558" file="/google/aufnahmen/filme/Unter uns (2019)/Unter uns (2019).ts" size="891101388" container="mpegts" indexes="sd" packetLength="188" videoProfile="high">
<Stream id="50514" streamType="1" codec="h264" index="0" bitrate="9281" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codedHeight="1088" codedWidth="1920" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="25.000" hasScalingMatrix="0" height="1080" level="40" profile="high" refFrames="4" scanType="interlaced" separateFields="1" streamIdentifier="256" width="1920" displayTitle="1080i (H.264)"/>
<Stream id="50515" streamType="2" selected="1" codec="ac3" index="1" channels="2" bitrate="384" language="Deutsch" languageCode="ger" audioChannelLayout="stereo" samplingRate="48000" streamIdentifier="257" displayTitle="Deutsch (AC3 Stereo)"/>
<Stream id="50516" streamType="3" codec="dvb_subtitle" index="2" language="Deutsch" languageCode="ger" hearingImpaired="1" streamIdentifier="258" displayTitle="Deutsch GL (DVB_SUBTITLE)"/>
</Part>
</Media>
</Video>
</MediaContainer>

While this recording off my STB does not have any audio played:

XML-Details #2
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="12" librarySectionTitle="Test" librarySectionUUID="64a15182-d437-424e-8b9f-1aea1519fa1d" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1582835515">
<Video ratingKey="32165" key="/library/metadata/32165" guid="com.plexapp.agents.none://6a8223b12836b0f6b540a9782aba9093353f5ab7?lang=xn" type="movie" title="Alles was zählt" titleSort="Alles was zahlt" librarySectionTitle="Test" librarySectionID="12" librarySectionKey="/library/sections/12" summary="" year="2020" thumb="/library/metadata/32165/thumb/1583743709" art="/library/metadata/32165/art/1583743709" duration="493507" originallyAvailableAt="2020-03-09" addedAt="1583743705" updatedAt="1583743709" createdAtAccuracy="epoch" createdAtTZOffset="3600">
<Media id="40420" duration="493507" bitrate="9805" width="1920" height="1080" aspectRatio="1.78" audioChannels="2" audioCodec="ac3" videoCodec="h264" videoResolution="1080" container="mpegts" videoFrameRate="PAL" videoProfile="high">
<Part accessible="1" exists="1" id="40455" key="/library/parts/40455/1583743440/file.ts" duration="493507" file="/data/test/Alles was zählt.ts" size="604872704" container="mpegts" indexes="sd" packetLength="188" videoProfile="high">
<Stream id="50518" streamType="1" codec="h264" index="1" bitrate="9421" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codedHeight="1088" codedWidth="1920" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="25.000" hasScalingMatrix="0" height="1080" level="40" profile="high" refFrames="4" scanType="interlaced" separateFields="1" streamIdentifier="6641" width="1920" displayTitle="1080i (H.264)"/>
<Stream id="50520" streamType="2" selected="1" codec="ac3" index="3" channels="2" bitrate="384" language="Deutsch" languageCode="ger" audioChannelLayout="stereo" samplingRate="48000" streamIdentifier="6642" displayTitle="Deutsch (AC3 Stereo)"/>
<Stream id="50519" streamType="3" codec="dvb_subtitle" index="2" language="Deutsch" languageCode="ger" hearingImpaired="1" streamIdentifier="6640" displayTitle="Deutsch GL (DVB_SUBTITLE)"/>
<Stream id="50517" streamType="3" codec="dvb_teletext" index="0" language="Deutsch" languageCode="ger" streamIdentifier="6644" displayTitle="Deutsch (DVB_TELETEXT)"/>
</Part>
</Media>
</Video>
</MediaContainer>

If anybody can spot the difference it might bring me closer to where the problem is. Maybe you can help @OttoKerner?

I see that file #2 has a teletext stream and the “index” code for the audio and video stream is different, whatever that does.

Edit:
It’s the subtitle and/or teletext stream…
I stripped both streams from file #2 and it direct plays fine without issues.
The xml details of this stripped version as #3 are here:

XML-Details #3
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="12" librarySectionTitle="Test" librarySectionUUID="64a15182-d437-424e-8b9f-1aea1519fa1d" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1582835515">
<Video ratingKey="32166" key="/library/metadata/32166" guid="com.plexapp.agents.none://cb2641fd7cb46f24d43f0aa9d5af997b666fff22?lang=xn" type="movie" title="Alles was zählt-patched" titleSort="Alles was zahlt-patched" librarySectionTitle="Test" librarySectionID="12" librarySectionKey="/library/sections/12" summary="" year="2020" thumb="/library/metadata/32166/thumb/1583745959" art="/library/metadata/32166/art/1583745959" duration="493318" originallyAvailableAt="2020-03-09" addedAt="1583745158" updatedAt="1583745959" createdAtAccuracy="epoch" createdAtTZOffset="3600">
<Media id="40421" duration="493318" bitrate="8791" width="1920" height="1080" aspectRatio="1.78" audioChannels="2" audioCodec="ac3" videoCodec="h264" videoResolution="1080" container="mpegts" videoProfile="high">
<Part accessible="1" exists="1" id="40456" key="/library/parts/40456/1583745078/file.ts" duration="493318" file="/data/test/Alles was zählt-patched.ts" size="542075440" container="mpegts" packetLength="188" videoProfile="high">
<Stream id="50521" streamType="1" codec="h264" index="0" bitrate="8407" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codedHeight="1088" codedWidth="1920" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="50.000" hasScalingMatrix="0" height="1080" level="40" profile="high" refFrames="4" separateFields="1" streamIdentifier="6641" width="1920" displayTitle="1080p (H.264)"/>
<Stream id="50522" streamType="2" selected="1" codec="ac3" index="1" channels="2" bitrate="384" language="Deutsch" languageCode="ger" audioChannelLayout="stereo" samplingRate="48000" streamIdentifier="6642" displayTitle="Deutsch (AC3 Stereo)"/>
</Part>
</Media>
<Extras size="0"> </Extras>
<Related> </Related>
</Video>
</MediaContainer>

I have uploaded all files for analysis at Plexes end here:

I hope that there can be a way, that these files with the respective stream structure are properly played by Plex.

I have to not that other files also have teletext and/or subtitle stream and do not have this issues. This is particular with these files, mainly coming from the german private broadcasting stations (Pro 7, Vox, RTL…).
And that this is limited to the Android Clients! PMP Linux plays all files just fine. And I remember that I didn’t have issues in the past with those files, so they seem to have been a change in the android clients that broke the support for those files.

Any news on the latest issue? The same with 7.29 and 7.30.

Thank god some support :slight_smile:
I can confirm that the problem persists with the latest 7.30 beta.

@sixones any sign of life here? I made a lot of effort to isolate this issue. Now it’s your turn.

1 Like

This is a very strange issue.

Here’s the streams in the original Alles was zahlt file, the odd things are:

  • The 3 unknown streams.
  • The dvb_subtitle stream being at position zero (usually the video is first).
    Stream #0:0[0x19f0](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)
    Stream #0:1[0x19f1]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:2[0x19f2](ger): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 384 kb/s
    Stream #0:3[0x19f3]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:4[0x19f4](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:5[0x19f6]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:6[0x19f8]: Unknown: none ([12][0][0][0] / 0x000C)

If I produce a new file, copying the old streams over and removing the unknown streams then we get these streams in the new file and everything plays correctly (as you saw).

    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 50 tbr, 90k tbn, 90k tbc
    Stream #0:1(ger): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 384 kb/s
    Stream #0:2(deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)
    Stream #0:3(deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)

Producing another new file, with the same order of streams and without the unknown streams, the video won’t playback any audio and we have these streams:

    Stream #0:0[0x100](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)
    Stream #0:1[0x101]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc
    Stream #0:2[0x102](ger): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 384 kb/s
    Stream #0:3[0x103](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)

The issue seems like having the dvb_subtitle stream first throws the Android client out of place and we end up with no audio for some reason. Will investigate further and see if I can find a solution.

For now to get the files to play correctly on Android, you could use FFmpeg to remap the stream order (it’s a quick process);

ffmpeg -i input.ts -c copy -map 0:v -map 0:a -map 0:s -ignore_unknown output.ts

Great to have you back in this and thanks for looking into the issue. I really appreciate your help and I am looking forward to having a solution soon.

If I can be of any help, have a shout.

Any news on this one? The issue persist and I have a lot of recordings that do not work and I have not converted because I hoped there will be solution from Plex side…

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