mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
26.74k stars 2.84k forks source link

M3U Video playback freezes when served stream changes #11932

Open nabeelr opened 12 months ago

nabeelr commented 12 months ago

Important Information

Provide following Information:

If you're not using git master or the latest release, update. Releases are listed here: https://github.com/mpv-player/mpv/releases

Reproduction steps

Open an M3U with video streams listed therein. For many broadcast video streams, during the "commercial brake" the video stream is interrupted and a placeholder video is played. When the video stream gets interrupted by the placeholder video, MPV stops playing back video, though audio continues into the new stream, the last frame of the previous chunk stays on screen. This can be fixed by changing to a different stream in the playlist and back again, however when the placeholder video ends and the main video resumes, the same thing happens.

Attached is a demo M3U file that reproduces this issue (if on windows, please rename the extension to .m3u). The streams may be Geo-Locked to US/Canada. Playing the second stream in the playlist, once a commercial brake hits, instead of seeing the "plutotv" logo, the stream stops entirely, or sometimes audio will continue, but the video will freeze. Changing streams and back again will temporally fix the issue, until the show resumes, in which case the video will freeze again, as before. demo.m3u.txt

Expected behavior

Video to continue playing when a different segment starts.

Actual behavior

Video freezes, sometimes audio will continue from the next segment, sometimes not.

Stream will need to be restarted to resume.

Log file

output.txt

Sample files

demo.m3u.txt

nabeelr commented 11 months ago

Just discovered this exact behavior happens in Android as well.

nabeelr commented 11 months ago

Any update on this? @Dudemanguy @sfan5 Is there a more appropreate place I can put this, or extra info I can provide to help?

If this is just a matter of other higher priority bugs/other things to resolve first, I understand. I just want to know that it is in queue somewhere.

sfan5 commented 10 months ago

As this is a purely volunteer project we can't guarantee that something is worked on or provide an estimate. FWIW I know Twitch also inserts ad breaks into streams and this works fine with mpv.

nabeelr commented 10 months ago

Cool cool, I totally understand that your time is limited. I just want to make sure that it was in the right place.

For what it's worth, it seems to be all Pluto TV streams that do this on MPV, but VLC and other media players don't seem to have this issue on the same streams.

Let me know if there's any way I can help.