1
I converted an 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 used mencoder to insert subtitles:
mencoder output.avi -o new.avi -oac pcm -ovc lavc -subfont-text-scale 3 -sub subtitle.srt
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 the ffmpeg -newsubtitle
option but can't get it work. Any examples of usage of -newsubtitle
would be greatly appreciated.
I suggest looking at (a) doing the entire encode with mencoder, there is no need for ffmpeg here; (b) -mc 0, -noskip, and -vf harddup. – derobert – 2009-09-26T06:37:07.383
did you play it back after conversion, but before subtitle insertion? is it in sync then? – quack quixote – 2009-10-11T21:16:06.900