Log in

View Full Version : Mencoder Desync Problem


Oline 61
5th June 2006, 02:01
Back in the day I recorded the first season of Lost with my TV tuner card. Because the original captures were in MPEG2 and of significant size, I compressed them with Xvid and LAME. Now I am trying to use mencoder to reencode them to DVD:
mencoder -nosound -ovc lavc -of rawvideo \
-vf scale=720:480,harddup -noskip -mc 0 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:\
vrc_maxrate=8000:vbitrate=2000:keyint=15:aspect=16/9:vpass=1:turbo \
-ofps 24000/1001 -o /dev/null ~/My\ Recorded\ TV Shows/Lost\ 1x01.avi
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:telecine \
-vf scale=720:480,harddup -srate 48000 -af lavcresample=48000 -noskip -mc 0 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:\
vrc_maxrate=8000:vbitrate=2000:keyint=15:acodec=ac3:abitrate=192:aspect=16/9:vpass=2\
:trell:mbd=2:dia=-10:predia=-10:cbp:mv0:subcmp=2:cmp=2 \
-ofps 24000/1001 -o ~/LOST_DVD/lost\ 1x01.mpg ~/My\ Recorded\ TV Shows/Lost\ 1x01.avi
The sync at the beginning is fine, but near the end the sync is over 1 second off. The sync of the original AVI played by MPlayer is perfect.

The original file uses LAME CBR @ 128kbps, and is 23.976 FPS.

Oline 61
6th June 2006, 01:40
Okay, since it appears no one has a solution to this problem, I will travel a different path. I have encoded the video to mpeg2 with HCenc, and the audio to AC3 with FFMPEG. Now I need to mux the streams into a .mpg I can use with DVD Author. Can anyone help me? (I tried muxing with mencoder, but got the same desync as I did when encoding with mencoder).

Boulder
6th June 2006, 15:17
I recommend using MuxMan for authoring, you don't need to mux anything. If you must use DVD Author, there's MPlex for multiplexing.

Oline 61
6th June 2006, 20:30
The problem with MuxMan is that I have 6 m2vs and 6 ac3s and I want each to be a separate title. Can I just mux each individually with muxman, then feed the VOBs into DVDAuthor?