[MEncoder-users] mkv to hard sub avi to m4v command line options and sync problems

v4r4n console.cowboy at gmail.com
Wed Jan 13 09:04:50 CET 2010


I've been having trouble finding out how to properly re-encode an mkv file
with multiple audio tracks and subtitles.

$> mkvmerge -i <filename>.mkv

give me this information:

File '<filename>.mkv': container: Matroska
Track ID 1: video (V_MS/VFW/FOURCC, DX50)
Track ID 2: audio (A_AAC/MPEG4/LC/SBR)
Track ID 3: audio (A_AAC/MPEG4/LC/SBR)
Track ID 4: subtitles (S_TEXT/UTF8)
Track ID 5: subtitles (S_VOBSUB)
Track ID 6: subtitles (S_VOBSUB)

$> mkvextract tracks <filename>.mkv 1:video.avi 2:audio.aac 4:subtitles.srt

gives me the streams of data I'd like to combine into a single .avi or .m4v
file.  The problem is when I try to do something like this:

$> mencoder -ovc copy -faac -oac -audiofile audio.aac -o test.avi

The audio no longer matches the video?

What am I doing wrong?  How do I use mencoder to combine a divx video file
and acc audio file?  I thought this would be simple, but I can't find any
examples/tutorials that work.

If this is the wrong place to ask for help, please point me in the right
direction.

Thanks.


More information about the MEncoder-users mailing list