View Single Post
Old 18th January 2008, 18:52   #13  |  Link
AlanHK
Registered User
 
Join Date: May 2006
Posts: 237
WAVI - save WAV from AVI/AVS
http://sourceforge.net/projects/wavi-avi2wav

(Different from AVS2WAV)

I use a batch file with this to make AC3 at 128kb:

Code:
@echo avs2ac3 avsfile.avs
@echo audio from avs files and convert to AC3
@echo uses wavi and ffmpeg

@if %1X==X goto ALL

:LOOP
for %%I in (%1) do (
wavi %%I %%~nI.wav
p:\ffmpeggui\ffmpeg -i %%~nI.wav  -ab 128 -ar 48000 -ac 2 -acodec ac3 -y %%~nI.ac3
del %%~nI.wav
)

SHIFT
@if %1X==X goto END
@goto LOOP

:ALL
for %%I in (*.avs) do (
wavi %%I %%~nI.wav
p:\ffmpeggui\ffmpeg -i %%~nI.wav  -ab 128 -ar 48000 -ac 2 -acodec ac3 -y %%~nI.ac3
del %%~nI.wav
)

:END
Note the options for ffmpeg depend on which version you use.
The version I use came with ffmpeggui.
AlanHK is offline   Reply With Quote