Log in

View Full Version : Batch Audio Compression of Many AVI files!


Wesmosis
3rd May 2005, 21:43
hey guyz
plz I need a favour
I have about 250 xvid avi files, of varying names and sizes....and thier audio size quite big
I need a trick or something to do a batch audio conversion into mp3 or wma without processing each file in VDub and do the Audio Compression separatly! is that possible?!

buzzqw
3rd May 2005, 22:57
1) no crossposting

something like demux audio (with avi2wav, even command line for batch processing), process with lame.exe.

But for remuxing avi+mp3... don't know, avi_mux gui has a batch scripting guide (not so easy...)

BHH

Wesmosis
3rd May 2005, 23:47
I C ....thanx for answering
but I don't wanna Remux or DeMux ...only I wanna recompress the audio of the AVI fle into lower bitrate in order to reduce the size a little bit....but I have alot of AVI files and that's will a very lng process of Loading each avi file in the virtualDub and choose the Audio Compression and proceed......
any other solution

bobmaster
4th May 2005, 01:00
You can use VirtualDub script to do the lot.
Google and have a look around and you'll find plenty of examples.

If your still stuck in a month - i'll script it for you. Too busy at the moment.

Good Luck

Wesmosis
5th May 2005, 19:31
yeah thanx so much! i knew that there is some kinda of thing!
waiting for you script

stephanV
5th May 2005, 20:04
open up virtualdub, open up a file, configure your settings, press f4, edit --> process directory, start jobs.

bobmaster
23rd May 2005, 01:18
stephanV's way is easier/better but here is the script anyway.

Just an example, modify it to what you need.


declare eps;

eps = "Video1.avi";

VirtualDub.Open("C:\\INPUT\\" + eps,"",0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource(0x73647561,0);
VirtualDub.stream[0].SetMode(1);
VirtualDub.stream[0].SetInterleave(1,500,1,1,0);
VirtualDub.stream[0].SetClipMode(1,1);
VirtualDub.stream[0].SetConversion(0,0,0,0,0);
VirtualDub.stream[0].SetCompression(85,48000,2,0,20000,1,12,"AQAEAAAA4AEBAAAA");
VirtualDub.SaveAVI("C:\\OUTPUT\\" + eps);
VirtualDub.Close();

eps = "Video2.avi";

VirtualDub.Open("C:\\INPUT\\" + eps,"",0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource(0x73647561,0);
VirtualDub.stream[0].SetMode(1);
VirtualDub.stream[0].SetInterleave(1,500,1,1,0);
VirtualDub.stream[0].SetClipMode(1,1);
VirtualDub.stream[0].SetConversion(0,0,0,0,0);
VirtualDub.stream[0].SetCompression(85,48000,2,0,20000,1,12,"AQAEAAAA4AEBAAAA");
VirtualDub.SaveAVI("C:\\OUTPUT\\" + eps);
VirtualDub.Close();

ect...


This script will encode Video1.avi and Video2.avi from "c:\input"
It encodes Stream 0 (first audio track) to MP3-128Kbps. (Assuming you have LAME ACM codec installed). The output video will be saved in "c:\output". The only thing that changes is "eps = " the rest you can just copy and paste for as meny videos as you need.

TIP:
An easy way to make a list of files is - in command prompt type "dir /b > list.txt"

Hope it helps

Wesmosis
23rd May 2005, 20:06
thanx dude! I'll check it out