six6
15th February 2005, 16:46
I'm wondering about getting multiple audio tracks into a file. I do
mplayer -dumpstream <input>
mplayer -dumpaudio <streams>
mencoder <input> -ofps 23.976 -ovc lavc -lavcopts <> -o file-without-audio.avi
mkvmerge -o file.mkv -a 1 -d 0 -S avi-with-ac3.avi -a 0 -D -S file.ogg --track-order 0:0,0:1,1:0
and have all the audio tracks merged with video, but the audio tracks drift out of sync (by a couple of seconds) by the end of the movie! Is this because of the '-ofps' adjustment to mencoder for the video only?
I know I can use mencoder and do '-oac copy' and copy just one audio track. Then the audio stays in sync.
In windows :eek: it was easy to demux audio tracks, and I wonder if no one is interested (enough) in doing this with *nix yet?
This (http://www.bunkus.org/dvdripping4linux/en/separate/changelog.html#changelog) [bunkus.org] guide says he's looking to add this info but hasn't yet.
mplayer -dumpstream <input>
mplayer -dumpaudio <streams>
mencoder <input> -ofps 23.976 -ovc lavc -lavcopts <> -o file-without-audio.avi
mkvmerge -o file.mkv -a 1 -d 0 -S avi-with-ac3.avi -a 0 -D -S file.ogg --track-order 0:0,0:1,1:0
and have all the audio tracks merged with video, but the audio tracks drift out of sync (by a couple of seconds) by the end of the movie! Is this because of the '-ofps' adjustment to mencoder for the video only?
I know I can use mencoder and do '-oac copy' and copy just one audio track. Then the audio stays in sync.
In windows :eek: it was easy to demux audio tracks, and I wonder if no one is interested (enough) in doing this with *nix yet?
This (http://www.bunkus.org/dvdripping4linux/en/separate/changelog.html#changelog) [bunkus.org] guide says he's looking to add this info but hasn't yet.