I'm doing some command line encoding with x264.

the avisynth script:
Code:
AVCSource("C:\workdir\movie\nmbchr\movieenc\test\source.dga")
Spline36Resize(1280,720)
The batch file:
Code:
@echo off
set input=C:\workdir\movie\nmbchr\movieenc\test\source.avs
set output=C:\workdir\movie\nmbchr\movieenc\test\encoded.264
set stats=C:\workdir\movie\nmbchr\movieenc\test\stats\x264.stats
set bitrate=3379
set dbl=1:1
x264 --level 4.1 --pass 1 --bitrate %bitrate% --slow-firstpass --me umh --subme 9 --trellis 1 --8x8dct --mixed-refs --weightb on --b-pyramid normal --bframes 3 --ref 9 --deblock %dbl% --vbv-maxrate 38000 --stats %stats% --output NUL "%input%"
x264 --level 4.1 --pass 2 --bitrate %bitrate% --me umh --subme 9 --trellis 1 --8x8dct --mixed-refs --weightb on --b-pyramid normal --bframes 3 --ref 9 --deblock %dbl% --vbv-maxrate 38000 --stats %stats% --output "%output%" "%input%" 
pause
The Error
Code:
ffms [error]: could not create index
lavf [error]: could not open input file
raw [error]: raw input requires a resolution.
x264 [error]: could not open input file `on' via any method!
ffms [error]: could not create index
lavf [error]: could not open input file
raw [error]: raw input requires a resolution.
x264 [error]: could not open input file `on' via any method!
Any help is appreciated!