[MPlayer-dev-eng] Subtitles out-of-sync with 23.976 mkv files with lavf demuxer

Anssi Hannula anssi.hannula at iki.fi
Fri Jan 28 01:40:17 CET 2011


Hi!

Frame-based (microdvd) subtitles currently get out of sync towards the
end of 23.976 fps H264 matroska files (some 1-2s in 40min). This doesn't
happen with the legacy demuxer (-demuxer mkv).

AFAICS this happens because demux_lavf.c uses st->r_frame_rate to
determine sh_video->fps and sh_video->frametime, and r_frame_rate is
rounded up to 24 fps by av_find_stream_info().

I'm not immediately sure what is the correct solution here, so does
someone else know?

-- 
Anssi Hannula


More information about the MPlayer-dev-eng mailing list