Jump to content

FFmpeg: Difference between revisions

303 bytes added ,  12 August 2022
Line 248: Line 248:
       "[0]split=2[bg][fg];[bg]drawbox=c=blue@1:replace=1:t=fill[bg];
       "[0]split=2[bg][fg];[bg]drawbox=c=blue@1:replace=1:t=fill[bg];
         [bg][fg]overlay=format=auto" -c:a copy new.mov
         [bg][fg]overlay=format=auto" -c:a copy new.mov
</pre>
===Draw Text===
https://stackoverflow.com/questions/15364861/frame-number-overlay-with-ffmpeg
<pre>
ffmpeg -i input -vf "drawtext=fontfile=Arial.ttf: text='%{frame_num}': start_number=1: x=(w-tw)/2: y=h-(2*lh): fontcolor=black: fontsize=20: box=1: boxcolor=white: boxborderw=5" -c:a copy output
</pre>
</pre>