mpv icon indicating copy to clipboard operation
mpv copied to clipboard

mpv cannot switch correctly between programs in a Transport Stream (TS) file.

Open youns88 opened this issue 3 years ago • 16 comments

mpv version and platform versions

latest to this date

Reproduction steps

input any TS file containing many programs (channels) like a DVB-T TS file and try to switch channels using underscore key

Actual behavior

next channel not showing up or previous channel audio still running

youns88 avatar Aug 15 '22 15:08 youns88

The previous audio track being present makes sense, since _ cycles the video track only.

Also, if you have an issue, please provide a log file and/or a sample. Thank you :)

Traneptora avatar Aug 15 '22 16:08 Traneptora

mpv log: Track switched: Video --vid=1 (mpeg2video 720x576 25.000fps) (+) Video --vid=2 (mpeg2video 720x576 25.000fps) (+) Audio --aid=1 (mp2 2ch 48000Hz) Audio --aid=2 (mp2 2ch 48000Hz) AV: 00:00:45 / 00:16:28 (5%) A-V: 0.000

even video do not work and screen is black or frozen frame i hope this get fixed as mpv is the only player working on my ARM based SBC with hardware video decoding tested with this TS file https://gofile.io/d/IDheTm tested other players and switching is correct (vlc : use x key for switching)

youns88 avatar Aug 15 '22 18:08 youns88

I believe that functionality (or at least, the program identification and switching part) was essentially removed in: https://github.com/mpv-player/mpv/commit/a75b249b0b116b6ddc5c430f0a9974696361ebf9

olifre avatar Aug 15 '22 18:08 olifre

Checking with your file, vid=2 seems to be problematic. For me, switching to other vids works fine, e.g. starting with: mpv -v out2.ts --vid=4 I can switch just fine to 5 and 6. Issues may also be caused by audio not switching along the video stream, which is expected due to the missing program-switching functionality.

olifre avatar Aug 15 '22 18:08 olifre

I gave it a slightly longer look (would have been easier with a log): The problem is that the different streams have completely different timestamps, for example, vid=3 starts at 07:40:00 while vid=4 starts at 00:00:00. Switching from 3 to 4 causes a seek to 07:40:00 in vid=4 which yields EOF and mpv exits. So this is unrelated to the program switching functionality, it's just that mpv assumes a common time for all video streams, which does not seem to be the case for your recording.

olifre avatar Aug 15 '22 19:08 olifre

i have the same issue for a livestream dumped from usb DVB-T and sent mpv . i tried ffmpeg and switching work as expected for both livestream and local files

youns88 avatar Aug 15 '22 20:08 youns88

i confirm there is an issue with switching , such video player need this function for sure switching channels using commands is not the same as using a simple key

odenbarius avatar Aug 17 '22 11:08 odenbarius

...switching is correct (vlc : use x key for switching) The first good thing I see in VLC 🙂 Interesting.

jimmy-1000 avatar Aug 25 '22 17:08 jimmy-1000

Since the status line when playing back the provided sample file shows AV: 07:55:09 / 07:55:54 right after starting, I wonder whether the actual issue is one with rebase_start_time not being effective for some reason? I'm sadly not deep enough into the playloop code to identify whether this is the cause.

olifre avatar Aug 25 '22 18:08 olifre

Since the status line when playing back the provided sample file shows AV: 07:55:09 / 07:55:54 right after starting, I wonder whether the actual issue is one with rebase_start_time not being effective for some reason? I'm sadly not deep enough into the playloop code to identify whether this is the cause.

You are right, I saw that, but why It works good with VLC ?

jimmy-1000 avatar Aug 25 '22 19:08 jimmy-1000

[...] but why It works good with VLC ?

Please stop commenting if this as far as your personal input can go with regards to the issue at hand, for everyone's sake when old issues are bumped to the top.

mpv programmers don't need hand-holding to understand any of the issues in this website. If workarounds aren't being programmed into the codebase, is it because either it's an issue with poorly reproduction scenarios or it's a niche request that none of the developers indentify with or/and don't wan't to spend time with.

garoto avatar Aug 25 '22 23:08 garoto

switching channels is a basic feature that every so called a media player should have , this is not a plus feature and if its not there why you call it a media player ?

if audio is disabled switching works fine, but mpv select a random channel everytime and not the one that should be displayed

youns88 avatar Aug 26 '22 06:08 youns88

switching channels is a basic feature that every so called a media player should have , this is not a plus feature and if its not there why you call it a media player ?

fuck off you entitled shit

CounterPillow avatar Aug 26 '22 10:08 CounterPillow

switching channels is a basic feature that every so called a media player should have , this is not a plus feature and if its not there why you call it a media player ?

fuck off you entitled shit

you fuck off if your are not into fixing issues and encouraging ignorance

youns88 avatar Aug 26 '22 11:08 youns88

You are demanding free labour from volunteers who graciously let you use their software and code, and act like it is their duty to implement features that seemingly only you care about. This is not how FOSS works. I recommend you either apologise and show some understanding, or leave.

CounterPillow avatar Aug 26 '22 12:08 CounterPillow

This is getting out of hand, stop commenting with pointless redundant "please implement" things that don't add anything to the original issue.

Traneptora avatar Aug 26 '22 14:08 Traneptora