You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lsmas fails the seek test miserably for some mkvs muxed by mkvmerge v51.
For one certain mkv, seeking to frame 32 will consistently return frame 8.
initial investigation showed that simply remux with ffmpeg -i input.mkv -c copy out.mkv would fix the issue.
ffms2 2.40 built with the same ffmpeg revision does not exhibit this issue.
Update: turns out it's because newer mkvmerge no longer generate a cuepoint for each IDR frame. Not sure why this change is made as it should affect players seeking mkv video as well.
Update 2: turns out it's not a regression introduced by mkvmerge v51. When remuxing mp4 to mkv, it seems mkvmerge will not recreate the cuepoints by parsing the video track, so if the input mp4 somehow does not contain full cuepoints, the mkv will exhibit the issue.
The text was updated successfully, but these errors were encountered:
AkarinVS
changed the title
incorrect seek for mkv made by mkvmerge v51
incorrect seek for mkv lacking complete cuepoints for all IDR frames
Sep 29, 2021
Unfortunately, the first two frames both have DTS AV_NOPTS_VALUE, so it confuses correct_current_frame_number and made it think ffmpeg has sought to the 2nd encoded frame, which is clearly impossible (not even I frame).
lsmas fails the seek test miserably for some mkvs muxed by mkvmerge v51.
For one certain mkv, seeking to frame 32 will consistently return frame 8.
initial investigation showed that simply remux with
ffmpeg -i input.mkv -c copy out.mkv
would fix the issue.ffms2 2.40 built with the same ffmpeg revision does not exhibit this issue.
Update: turns out it's because newer mkvmerge no longer generate a cuepoint for each IDR frame. Not sure why this change is made as it should affect players seeking mkv video as well.
Update 2: turns out it's not a regression introduced by mkvmerge v51. When remuxing mp4 to mkv, it seems mkvmerge will not recreate the cuepoints by parsing the video track, so if the input mp4 somehow does not contain full cuepoints, the mkv will exhibit the issue.
The text was updated successfully, but these errors were encountered: