mpv
mpv copied to clipboard
mpv cannot switch correctly between programs in a Transport Stream (TS) file.
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
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 :)
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)
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
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.
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.
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
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
...switching is correct (vlc : use x key for switching) The first good thing I see in VLC 🙂 Interesting.
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.
Since the status line when playing back the provided sample file shows
AV: 07:55:09 / 07:55:54right after starting, I wonder whether the actual issue is one withrebase_start_timenot being effective for some reason? I'm sadly not deep enough into theplayloopcode to identify whether this is the cause.
You are right, I saw that, but why It works good with VLC ?
[...] 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.
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
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
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
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.
This is getting out of hand, stop commenting with pointless redundant "please implement" things that don't add anything to the original issue.