LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Audio delay while encoding a DVD with mencoder (https://www.linuxquestions.org/questions/linux-software-2/audio-delay-while-encoding-a-dvd-with-mencoder-741029/)

SigStop 07-18-2009 11:52 AM

Audio delay while encoding a DVD with mencoder
 
Hi,

I want to encode DVDs and create MKV video files so that both video, soundtracks and subtitles are in the same file. However, I have a problem occuring for some DVDs (not all ones). Indeed, the audio of the result file is not synchronised with the video.

Here is how I proceed:
  1. To extract audio I run:
    $> mplayer dvd:// -dumpaudio -dumpfile audio.ac3
  2. To encode the video I use mencoder:
    $> mencoder dvd:// -ovc x264 -x264encopts ... -o video.264

Finally, when I create the container with mkvmerge, I get an audio delay.

With mkvmerge, I can add a "--sync" option. However, is there a way to find the proper sync value?

Thank you very much!


All times are GMT -5. The time now is 06:28 PM.