View Full Version : AVI CLI/batch audio track extractor
check
21st April 2006, 12:02
Hi, I'm looking for a CLI program (or some program with batch functionality) that I can use to pull mp2 audio out of a bunch of AVI files.
I'm trying to transcode some clips to a format better suited for my PocketPC, and this is the only step I'm unable to automate.
Thanks :-D
setarip_old
21st April 2006, 19:09
Hi!(or some program with batch functionality) that I can use to pull mp2 audio out of a bunch of AVI files.
GoldWave, a commercial program, has such batch functionality...
check
26th April 2006, 10:14
Hi!GoldWave, a commercial program, has such batch functionality...
thanks for the suggestion, but that program will only extract the files and convert them, it includes no way to extract them as they are (mp2 streams). Any other ideas?
Nick
26th April 2006, 12:35
IIRC ffmpeg will do it with the following commandline syntax
ffmpeg -i "Drive:\Path\filename.avi" -vn -acodec copy "Drive:\Path\output.mp2"
check
26th April 2006, 15:54
Thanks for the tip Nic, I ended up giving up on this batch (~100 music video clips :O), but I'll give it a shot and see what it can do. What I ended up doing was ripping the audio to a raw PCM stream with mencoder:
"mencoder.exe" -ovc copy -oac pcm -of rawaudio -o <outfile.pcm> <infile>
And then encoding with my encoder of choice (vorbis in this case), specifying raw PCM input:
oggenc2 -r[aw PCM] -B[its] 16 -R[ate] 48000 -C[hannels] 2
For a direct stream dump, mencoder -of rawaudio should work
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.