user29386: Any ideas on the proper syntax to get crop to work with resizing and overlay all in one go?
The crop parameters are crop=1728:970:96:54 and I'm trying to work them into:
ffmpeg -loop 1 -i backgroundimage.png -i INPUTVIDEO.MP4 -filter_complex "[1]scale=1612:906[inner]overlay=154:170:shortest=1[out]" -map "[out]" -map 1:a -c:a copy -y -b:v 2000k -b:a 192K OUTPUT.MP4


user1760: To crop before scaling INPUTVIDEO.MP4:
ffmpeg -y -loop 1 -i backgroundimage.png -i INPUTVIDEO.MP4 -filter_complex "[1]crop=1728:970:96:54,scale=1612:906[inner];[0][inner]overlay=154:170:shortest=1[out]" -map "[out]" -map 1:a -c:a copy -b:v 2000k OUTPUT.MP4


29386: <p>Any ideas on the proper syntax to get crop to work with resizing and overlay all in one go?</p>

<p>The crop parameters are <code>crop=1728:970:96:54</code> and I'm trying to work them into:</p>

<pre><code>ffmpeg -loop 1 -i backgroundimage.png -i INPUTVIDEO.MP4 -filter_complex "[1]scale=1612:906[inner]overlay=154:170:shortest=1[out]" -map "[out]" -map 1:a -c:a copy -y -b:v 2000k -b:a 192K OUTPUT.MP4
</code></pre>
 1760: <p>To crop before scaling <code>INPUTVIDEO.MP4</code>:</p>

<pre><code>ffmpeg -y -loop 1 -i backgroundimage.png -i INPUTVIDEO.MP4 -filter_complex "[1]crop=1728:970:96:54,scale=1612:906[inner];[0][inner]overlay=154:170:shortest=1[out]" -map "[out]" -map 1:a -c:a copy -b:v 2000k OUTPUT.MP4
</code></pre>
