FFMPEG Command to Overlay Transparent PNG Image Over Video and Scale it to Video Size in Command Line

 

 

 

 

The scale2ref scales the first input (to the filter) to the size of the second. The input pad indexes 0, and 1 refer to the first and 2nd input to FFmpeg, as that count begins from zero.

-map 0:a? – the ? tells FFmpeg to map the audio contingently i.e. if present. I have removed the amix since a) filters within a filter complex can’t be contingent and b) there’s only one input so there’s nothing to ‘mix’.

 

Leave a Reply