View Full Version : Anyone know a application that can... ... .
Jynks
24th August 2006, 18:33
Hi, I am looking for an application that can batch rip out the audio tracks from avi files. It would be best that if they were not mp3 it auto converted the tracks to mp3, but i have batch audio apps i can run the ac files though.
I know that Vdub can do it but you have to manualy set up the each file and add it to the batch list as far as I know. I have about 200+ files to process and would prefrably be looking for a command line based app that can run on *.avi in a directory.
Any ideas?
Awatef
24th August 2006, 19:29
May be AVI2WAV can help you:
http://agrgic.tripod.com/avi2wav/
Jynks
24th August 2006, 23:34
as far as I can tell this extracts the audio into a wave file. It can be used as a command line to process a bunch of files. So it is pretty close. This as well as an app i have to batch convert wave files into mp3 DOSE do the trick.
Still, if there are any sugestions on an app that simply extracts the audio from the avi with out converting it in any way, just strips it out of the existing avi file. I would be more interested in that as the sound file will be better quality.
Mug Funky
25th August 2006, 10:05
ffmpeg will do it.
as far as detecting the audio type and treating it accordingly, i haven't a clue... if you're a clever enough batch scripter you can do it (play back with null output, dump the output to a text file, find the correct line, parse it, and if it doesn't say "mp3" then run an ffmpeg line that decodes and reencodes, else run an ffmpeg line that dumps raw audio).
smok3
25th August 2006, 10:49
just an addition to Mug Funky's post;
for extraction something like:
mplayer -ao pcm -vo null film.avi
or
mplayer.exe film.avi -dumpaudio -dumpfile film.wav
should do it.
---
you can also batch script virtualdub via vdub for extraction, like:
echo VirtualDub.Open(VirtualDub.params[0]); > "%inpfullnoext%.script"
echo VirtualDub.SaveWAV(VirtualDub.params[1]); >> "%inpfullnoext%.script"
@vdub /i "%inpfullnoext%.script" "%inpfull%" "%inpfullnoext%_vdub.wav"
where %inpfullnoext% is full path to selected avi without extension and %inpfull% is full path including extension.
---
as for detection you could find a way to play a part of extracted file via mplayer and catch its output from cli, saying mp3 is a clue then.
Awatef
25th August 2006, 22:47
Jynks, it doesn't convert to WAV, it just gives them a WAV header. You can still rename the files with a batch renaming tool to mp3 or whatever format they are originally in.
AVIL
26th August 2006, 00:20
Hi,
You can try mp4box (initially with yamb as GUI). It demuxes the stream, do not generate wav files. Then (I have not tried it) mp3 files will be generated as is, without any header. You can also try virtualdubmod, wich also demuxes. I don't know how to work in batch, but mp4box is a CLI and (probably) virtualdubmod can be launched as virtualdub in a batch file.
Good luck
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.