PDA

View Full Version : avis problem when batch encording.


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.

buzzqw
6th January 2007, 14:05
post the avs

BHH

galaxy001
6th January 2007, 14:14
AVS:

fs="X:\FTP\111.avi"
avisource(fs)
converttoyv12()

bond
6th January 2007, 14:53
strange, DIB normally means that you try to feed x264 a wrong colorspace, rgb

can you check what colorspace this avs has?

buzzqw
6th January 2007, 15:00
try with this script

fs="X:\FTP\111.avi"
movie = avisource(fs,audio=false)
movie = isRGB(movie) ? ConvertToYV12(movie,interlaced=true) : movie
movie = isYUY2(movie) ? ConvertToYV12(movie,interlaced=true) : movie

BHH

galaxy001
6th January 2007, 15:17
I found the avs itself leads an error of sound decording.
so I use "avisource(fs, audio=false)" and it is all right.

I just happen to meet the 1st file is mp3 and the 2nd is AAC.

so, can we say anytime meet avis [error] just play the avs first ?

Still, I hope x264 can tell user which error it is, since AVS should tell the client there is an error and avis module can just output "avis [error]: Avisynth error" instead of "avis [error]: unsupported input format (DIB )"