Out of sync audio video using mencoder
Posted
by 1ch1g0
on Super User
See other posts from Super User
or by 1ch1g0
Published on 2009-09-26T05:30:03Z
Indexed on
2010/04/01
4:03 UTC
Read the original article
Hit count: 400
hi i converted a mkv (matroska) file to avi using ffmpeg:
ffmpeg -i input.mkv -f mp4 -vcodec mpeg4 -sameq -r 29.97 -b 512kb -acodec ac3 -ab 128kb -vol 512 output.avi
the output file plays fine using mplayer.
after that, i using mencoder to insert subtitles:
mencoder output.avi -o new.avi -oac pcm -ovc lavc -subfont-text-scale 3 -sub subtitle.srt
however, after i play back the video "new.avi", the video and audio is out of sync. What options can i put into mencoder to sync the A/V. ?
I have also tried ffmpeg -newsubtitle option but can't get it work. Any examples of usage of -newsubtitle would be greatly appreciated. thanks
© Super User or respective owner