I'm trying to batch a concat loop for a series of avi files where I need to add to each AVI a preroll and postroll movie.
Here's what I've tried:
_input.txt
file:
file '3D_preroll.avi'
file '%%a'
file '3D_postroll.avi'
concat.bat
file:
for %%a in ("*.avi") do ffmpeg -f concat -i _input.txt -c:v libx264 -b:v 1700k -minrate 1500k -maxrate 1900k -bufsize 1900k -deinterlace -acodec libvo_aacenc -ac 2 -ar 48000 -ab 92k "%%a"_432p.mp4
pause
Unfortunately, I get the following error message before FFMPEG crashes: Impossible to open '%%a'
What am I doing wrong?
Thank you :)
This might work for you: