[MPlayer-users] MPEG-TS files still out of sync with mencoder (fixed!)

D Richard Felker III dalias at aerifal.cx
Fri Jun 11 19:00:11 CEST 2004


On Fri, Jun 11, 2004 at 06:56:48PM +0300, Ivan Kalvachev wrote:
> Adam Karkowski said:
> >> Well, I think I've solved this problem (hooray!)  The -mc option seems
> >> to control it, and when I tested it before I used -mc 10 (thinking that
> >> it could correct a maximum of 10 seconds of 'out-of-sync-ness' per
> >> frame, and thus go back in sync almost instantly) however this seems to
> >> be why I saw the same frame on the screen for almost 10 seconds.  So
> >> trying the opposite way, I used -mc 0.1 and that was *much* better, only
> >> making the video a little jerky.  I tried again with -mc 0.01 and that's
> >> almost perfect!  It only seems to drop a couple of frames, and in some
> >> cases you'd hardly know it went out of sync as it has been corrected
> >> almost instantly.
> >>
> >> At any rate, it seems that this encodes all the episodes perfectly which
> >> is most pleasing :-D  I'm still doing the first encode without audio,
> >> but so far everything seems to be in sync - I think the demuxer is more
> >> likely to pick up the errors before the audio/video decoder, so the
> >> audio doesn't have to be decoded to work out whether it's in sync or
> >> not.
> >>
> >> Cheers,
> >> Adam.
> >
> > Yeah I've been having desync problems too as mentioned in another thread.
> > They seem to come and go in other players (?) so but in mplayer the sound
> > always seemed to lag by about 400 ms. You stated previously that the "-mc
> > 0" option didn't help you but it solved my problem. It's now in my
> > defaults. Wierd that mplayer would desync only on files created by
> > itself...
> >
> > Cheers,
> > Adam.
> 
> 
> Hey,
> isn't -mc option in seconds?
> In other word setting it to 10 , mean that you can have 10 seconds a/v desync
> without starting correction?

Yes and no. Yes it's in seconds, but that's not what it means. It's
the maximum amount mencoder is allowed to compensate the error by per
frame.

Rich




More information about the MPlayer-users mailing list