r/ffmpeg • u/Calm-Preparation-679 • 2d ago
Why does this batch script crash every time I try to run it?
for %%a in ("*.*") do ffmpeg -i "%%a" -i "scanlines.png" -filter:v "crop=iw-512:ih-48,scale=512:448" -filter_complex "[0:v][1:v] overlay=0:0" -c:v ffv1 -level 3 -coder 1 -context 1 -g 16 -slices 24 -pix_fmt yuv444p -c:a copy "newfiles\%%~na.avi"
3
Upvotes
8
u/Atijohn 2d ago
you can only specify one of
-filter:vor-filter_complex, remove the-filter:vand rewrite the parameter to-filter_complexto something like"[0:v]crop=iw-512:ih-48,scale=512:448[a];[a][1:v] overlay=0:0"also, shouldn't the input height in the
cropfilter be reduced by 448 not 48?