I've been wrestling trying to get the syntax right on this batch file and I can't for the LIFE of me figure out why some things aren't working.
1) The variable 'i' is not getting incremented.
2) Concatenation on strc doesn't seem to want to...well, concatenate.
for %%f in (*.mp4) do (
set /a i+=1
set strc="%strc% %str%|"
ffmpeg -i "%%f" -c copy -bsf:v h264_mp4toannexb -f mpegts "%str%"
ffmpeg -i "%strc%" -c copy -bsf:a aac_adtstoasc Output.mp4