可以啊,写好一个音频转码的avs,然后用avsutil 后台play一下就行了啊
这是我常用的一个batch。
@echo off
rem 本程序用于将输入的音频avs编码为nero aac q 0.23
rem 用法: avs2aac.bat input.avs
setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
if not exist "%1" (
echo 须指定输入媒体文件!
pause
goto :EOF
)
set AVISDLL=%SystemRoot%\System32\avisynth.dll
set INSPATH=%~dp0
set neroaacenc=%INSPATH%neroaacenc.exe
set avsutil=%INSPATH%avsutil.exe
set INPUTPATH=%~dp1
set INPUTNAME=%~n1
if not "%AVISDLL%"=="" if not exist "%AVISDLL%" (
echo AVISynth 没有找到! 请上网下载:
echo
http://bengal.missouri.edu/~kes25c/echo 并安装
pause
goto :EOF
)
copy /y %1 %INPUTPATH%%INPUTNAME%.trans.avs
echo Soundout^(output^="cmd",type^=1,format=^3,autoclose^=true,executable^="%neroaacenc%",prefilename^="-ignorelength -q 0.23 -if - -of %INPUTPATH%%INPUTNAME%.mp4",postfilename^="",nofilename^=true,showoutput^=false)>>"%INPUTPATH%%INPUTNAME%.trans.avs"
echo ==========================================
echo jerryds' neroaac batch sript running...
echo ==========================================
%avsutil% %INPUTPATH%%INPUTNAME%.trans.avs play
del %INPUTPATH%%INPUTNAME%.trans.avs
if exist %INPUTPATH%%INPUTNAME%.mp4 echo nero aac 编码成功!