FFMPEG single input file, crop to multiple streams, then overlay back into one output file? I'm currently using a couple commands to 1- output two files with cropped regions, and 2- overlay the 2 files back into a single file.

I would like to be able to merge this all into out command and have a single output if this would speed up the process.

Here are my current commands (I'm using this inside a batch file, please excuse the variables):

1.This takes the input file and creates 2 output files cropped at different regions.

ffmpeg -i %input% -filter_complex "[0:v]crop=%size%:%position%[out1];[0:v]crop=200:110:6558:106[out2]" -map "[out1]" -f mp4 -ss %startTime% -t %duration% -rtbufsize 100M -framerate 8 -c:v libx264 -qmin 35 -qmax 35 -b:v 50k -preset ultrafast -movflags +faststart tmp -map "[out2]" -f mp4 -ss %startTime% -t %duration% -rtbufsize 100M -framerate 8 -c:v libx264 -qmin 35 -qmax 35 -b:v 50k -preset ultrafast -movflags +faststart tmpclock


2.This takes the two ouput files from the previous command and overlays them into the final file.

ffmpeg -i tmp -i tmpclock -filter_complex "[0:v][1:v]overlay=%pixFrmLeft%:%pixFrmTop%" -rtbufsize 100M -framerate 8 -c:v libx264 -qmin 35 -qmax 35 -b:v 50k -preset ultrafast -movflags +faststart -f mp4 %input%_Converted.mp4
Use

ffmpeg -ss %startTime% -t %duration% -i %input% -filter_complex "[0:v]split=2[c1][c2];[c1]crop=%size%:%position%[c1];[c2]crop=200:110:6558:106[c2];[c1][c2]overlay=%pixFrmLeft%:%pixFrmTop%" {your encoding options} %input%_Converted.mp4

Note that -framerate 8 is an input option for certain file formats. For an output at 8 fps, use -r 8.