Open low-batt opened 11 months ago
ffplay can seek through it, so it's an mpv issue.
edit: --demuxer=lavf
works around the issue, confirming that this is an issue with mpv's mkv demuxer.
Related commit https://github.com/mpv-player/mpv/commit/ba384fffca982465e63c3ffe3a3fb34c08e75de2 if mpv detect potentially broken index it is discarded, ffmpeg might have some workarounds, but mpv does not. I haven't look into details for this file though.
Looks like that the file in addition to having broken cues doesn't have any frames marked as keyframes either. As far as I can tell the mkv demuxer tries to find a keyframe to resync after seeking but since it can't it just seeks until the end of the stream.
Important Information
Provide following Information:
This problem was reported against IINA in issue https://github.com/iina/iina/issues/4711.
Reproduction steps
Start the attached video playing and then press the ← key to seek backwards.
Expected behavior
Playback restarts at an earlier time and
mpv
continues playing the video.Actual behavior
Playback terminates reporting the file is corrupt as shown here:
Full log attached. This clip from the log shows the warnings and error reported:
Playing this same video with VLC 3.0.20 I am able to seek backwards and forwards using the ← and → keys and playback restarts at the expected position and continues playing.
Log file
mpv.log
Sample files
288381484-1ee2c539-96a7-4307-89bc-4dac010fcb75.webm