Maybe someone here can help me.

I am trying to batch process a workflow of adding a corner bug and outro to a bunch of videos (around 100).
Since the Videos all have a different length, I thought it might be a good idea to do a batch process with automator and FFmpeg.

I got so far, that I can select a bunch of videos and add the corner bug to it, but I am failing at adding an outdo in the same process.

So far I have automator set up to ask for finder objects.

and then to do the following shell script
for f in "$@"
do
/usr/bin/ffmpeg -i "$f" -i "/Volumes/workhorse/mountainfilm/MF_Cornerbug.png" \
-filter_complex "[0:v][1:v] overlay=0:0" -pix_fmt yuv420p -c:a copy "${f%.*}_test.mp4"
done

but I am struggling to combine the result with the outro in the same step.

maybe someone can help me with this.