Source: This reddit post on r/cli.
savvy run rb_40c9541209b8f7d3
Add a watermark to multiple MP4 files and save them in a new directory.
for file in *.mp4 do ffmpeg -i "$file" -vf "drawtext=text='@tulsacoffeememes':x=w-tw-5:y=h-th-5:fontcolor=white:fontsize=12" -codec:a copy "../Watermarked/$file" done
Add a watermark to multiple JPG files and save them in a new directory.
for file in *.jpg do ffmpeg -i "$file" -vf "drawtext=text='@tulsacoffeememes':x=w-tw-5:y=h-th-5:fontcolor=white:fontsize=12" "../Watermarked/$file" done
Add a black box at the bottom right corner of an MP4 video.
ffmpeg -i <file>.mp4 -vf "drawbox=x=in_w-500:y=in_h-100:w=500:h=100:color=black@1.0:t=fill" -c:a copy output.mp4
Loop a video 5 times and save it as a new file.
ffmpeg -stream_loop 5 -i <loop_file>.mp4 -c copy output.mp4