galaxy001
6th January 2007, 14:03
When I try to encode more than 1 avs file in 1 batch file, only the first file is normal. The rest end with: avis [error]: unsupported input format (DIB )
x264 [error]: could not open input file 'aaa.avs'
Why ?
my batch file are:
main.cmd
FOR /F usebackq %%i IN (`dir .\lm\avs\*.avs /b`) DO (echo %%~ni
start /LOW /b /w call subx264.cmd %%~ni %%i
echo .)
subx264.cmd
@echo off
x264 --pass 1 --stats ".\work\%1-1.stats" --seek 6000 --frames 100 --crf 20 --ref 16 --mixed-refs --no-fast-pskip --bframes 8 --b-pyramid --b-rdo --bime --weightb --direct auto --filter -2,-1 --subme 7 --trellis 2 --analyse all --8x8dct --qpmin 15 --qpmax 32 --pbratio 1.42 --vbv-maxrate 25000 --qcomp 0.64 --b-bias 16 --me esa --merange 32 --thread-input --progress --no-dct-decimate --output ".\work\%1-1.mkv" ".\lm\avs\%2" 2>>.\work\%1-1.txt
for /f "eol=x tokens=2,3,7 delims=,. " %%F in (.\work\%1-1.txt) do if "%%G"=="frames" (
SET _frames=%%F
SET _bps=%%H
)
copy .\work\%1-1.stats .\work\%1-2.stats
x264 --pass 3 --stats ".\work\%1-2.stats" --seek 6000 --frames 100 -B %_bps% --ref 16 --mixed-refs --no-fast-pskip --bframes 8 --b-pyramid --b-rdo --bime --weightb --direct auto --filter -2,-1 --subme 7 --trellis 2 --analyse all --8x8dct --qpmin 15 --qpmax 32 --pbratio 1.42 --vbv-maxrate 25000 --qcomp 0.64 --b-bias 16 --me esa --merange 32 --thread-input --progress --no-dct-decimate --output ".\work\%1-2.mkv" ".\lm\avs\%2" 2>>.\work\%1-2.txt
PS: I know it is 2 pass and 2 output file.
x264 [error]: could not open input file 'aaa.avs'
Why ?
my batch file are:
main.cmd
FOR /F usebackq %%i IN (`dir .\lm\avs\*.avs /b`) DO (echo %%~ni
start /LOW /b /w call subx264.cmd %%~ni %%i
echo .)
subx264.cmd
@echo off
x264 --pass 1 --stats ".\work\%1-1.stats" --seek 6000 --frames 100 --crf 20 --ref 16 --mixed-refs --no-fast-pskip --bframes 8 --b-pyramid --b-rdo --bime --weightb --direct auto --filter -2,-1 --subme 7 --trellis 2 --analyse all --8x8dct --qpmin 15 --qpmax 32 --pbratio 1.42 --vbv-maxrate 25000 --qcomp 0.64 --b-bias 16 --me esa --merange 32 --thread-input --progress --no-dct-decimate --output ".\work\%1-1.mkv" ".\lm\avs\%2" 2>>.\work\%1-1.txt
for /f "eol=x tokens=2,3,7 delims=,. " %%F in (.\work\%1-1.txt) do if "%%G"=="frames" (
SET _frames=%%F
SET _bps=%%H
)
copy .\work\%1-1.stats .\work\%1-2.stats
x264 --pass 3 --stats ".\work\%1-2.stats" --seek 6000 --frames 100 -B %_bps% --ref 16 --mixed-refs --no-fast-pskip --bframes 8 --b-pyramid --b-rdo --bime --weightb --direct auto --filter -2,-1 --subme 7 --trellis 2 --analyse all --8x8dct --qpmin 15 --qpmax 32 --pbratio 1.42 --vbv-maxrate 25000 --qcomp 0.64 --b-bias 16 --me esa --merange 32 --thread-input --progress --no-dct-decimate --output ".\work\%1-2.mkv" ".\lm\avs\%2" 2>>.\work\%1-2.txt
PS: I know it is 2 pass and 2 output file.