I think I might help.
Once I wrote a shell script to convert .avi files to DVD, it worked
fine for a few years, but I don't know why, in Debian squeeze it
stopped working. It's probably some stupidity, but, as I had no time
to check, and found devede that did just what I needed, I dropped the
script.
Well, one of the things I miss from my script is the conversion of 2
or more audios, and it's kind of easy, but I simply don't know a shit
about python, so, I thought of "dumping" here the command lines, and
hope some of you to implement it on devede, what about that?
Well, to dump the audio files I actually use transcode, I tried using
mplayer/mencoder, but it didn't work, so, why bother?
Anyway, the command line I use is just:
/usr/bin/transcode -i "video.avi" -x raw -N 0x2000 -g 0x0 -y null,raw
-a 0 -b 224 -m "audio0.ac3" --export_fps 29.97
/usr/bin/transcode -i "video.avi" -x raw -N 0x2000 -g 0x0 -y null,raw
-a 1 -b 224 -m "audio1.ac3" --export_fps 29.97
/usr/bin/transcode -i "video.avi" -x raw -N 0x2000 -g 0x0 -y null,raw
-a 2 -b 224 -m "audio2.ac3" --export_fps 29.97
(....) and so on, as many as I need.
With the Options:
-N 0x2000 - export ac3 audio
-a # - number of the track
-m <name> - name of the extracted track file
-b <bitrate> - 224 sound nice, so, why bother? :-)
-x -y and -g just used to guarantee that only the audio is processed,
speed things up.
--export_fps <fps> - didn't see much of a difference touching this, though....
And then, to join everything, comes the easiest part.
mplex -o "outfile.mpg" -f 8 "tempvideo.m2v" audio0.ac3 audio1.ac3
audio2.ac3 (....)
with the whole bunch of audio files listed on the end.
--
Conrado Pinto Rebessi
Imagine there's no latency, No spam or phishing, a community of trust.
Imagine all the people, able to get online.
|_|0|_|
|_|_|0|
|0|0|0|