[MPlayer-users] MPEG-TS files still out of sync with mencoder

Adam Nielsen a.nielsen at optushome.com.au
Sun Jun 6 09:31:30 CEST 2004


> I would try without -mc, -noskip, and -skiplimit, one of them is
> likely causing the problem.

Well, I tried without -mc and it definitely helped, the sound it back in
sync, but unfortunately mencoder now drops frames during the corrupted
section to catch up with the audio.  Obviously I don't want to lose
frames, especially as I get about two different frames over a four
second period while it's compensating - which looks *really* bad.  I'd
much rather have silence inserted into the audio stream and no frames
dropped, as the video would then stay nice and smooth - anyone know how
to do that?

> I don't know MPlayer internals very well, but I'd think encoding the
> first pass without sound may have the potential to cause sync problems
> as well.

It shouldn't, because only divx2pass.log comes out of the first pass
which tells mencoder how much space to give to each frame - if different
frames were encoded (e.g. frames were dropped in the first pass but not
in the second) then there could be problems, but as both encoding
commands are identical it shouldn't cause any issues.  I do have sound
in the second pass, and that's when the actual XviD data is written to
disk.

> I would suggest you start from scratch and develop a better
> command-line.  Most of those lavc options are probably using up a LOT
> of CPU time, for little, if any, quality improvements.

That's okay, I'm not worried about the CPU time.  I usually start
encoding five or six half hour episodes at the same time, leave them
going overnight and come back in the morning when they're finished, so
I'm happy to use up extra CPU time just to get the quality a tiny bit
better ;-)

Cheers,
Adam.




More information about the MPlayer-users mailing list