Log in

View Full Version : eac3to batch processing?


billsantos
25th March 2011, 16:14
Any way to make eac3to do batch processing? Thanks.

ramicio
25th March 2011, 16:17
Yeah, a batch script or some other programming language...I use Perl, personally.

billsantos
25th March 2011, 16:32
Unfortunately, I don't know much about scripts. Can you or someone give me an example of how to set up eac3to with one?

ramicio
25th March 2011, 16:36
print "\n";
foreach (<*.ac3>) {
$filename = substr $_, 0, -4;
$cmdone = '"D:\\apps\\eac3to\\eac3to.exe" "E:\\tmp\\'.$filename.'.ac3" "E:\\tmp\\'.$filename.'.wav" -down2 -mixlfe';
$cmdtwo = 'del "'.$filename.' - Log.txt"';
print "$cmdone\n";
system($cmdone);
system($cmdtwo);
print "\n";
}

That's a Perl script I use to take ac3 and convert to stereo WAV, and it deletes the log file. I wish eac3to had a small .ini or config file to disable certain crap like that. I am a person who hates log files and other extra garbage with no option of disabling its existence.