Watermarking video from the Linux command line

后端 未结 2 1300
无人及你
无人及你 2021-02-09 10:18

does anyone know how to watermark video from the Linux command line using a simple tool?

Watermarking in ffmpeg isn\'t supported in the current version, and requires a c

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-09 10:39

    Another simple way to do this is updating ffmpeg to the newest version and adding the overlay video filter:

    ffmpeg -y -i video.mp4 -i watermark.png -filter_complex "overlay=(main_w-overlay_w):(main_h-overlay_h)" watermark.mp4
    

    This also gives you more options on where to place the watermark as well. For example, if you wanted to place the watermark in the center of the video you would use:

    -filter_complex "overlay=(main_w-overlay_w/2):(main_h-overlay_h/2)"
    

提交回复
热议问题