[MPlayer-dev-eng] [PATCH] demux_avi: instant A-V sync correction on seeking
Corey Hickey
bugfood-ml at fatooh.org
Fri Feb 3 07:17:18 CET 2006
In the process of implementing dwStart support, I ended up making a
couple other peripheral improvements with regard to audio/video delay.
The changes are rather diverse, so I'm sending patches in for review one
at a time.
MPlayer adjusts for delay in either stream at a rate defined by the
'-mc' option. Upon seeking, MPlayer has to slowly adjust all over again.
Try it:
$ mplayer test.avi -delay 10
...then seek forward.
-or-
$ mplayer test.avi -delay 10 -ss 1
The attached patch makes demux_avi recognize the current specified delay
and adjust the requisite stream position accordingly. On the first test
case above, mplayer will behave the same initially, but seeking will
instantly delay the video 10 seconds. Seeking after adjusting sync using
the +/- keys will work just as well. Stream delays from dwStart will
work well, too, once dwStart is supported.
It should be possible to make other demuxers work the same way; I tried
to do it with demux_lavf, but had some trouble and gave up. I'll send
the partial patch sometime later.
-Corey
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: demux_avi-fast-sync.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060202/1b8dc2e9/attachment.txt>
More information about the MPlayer-dev-eng
mailing list