FFmpeg - How to scale a video then apply a watermark?

后端 未结 3 1300
Happy的楠姐
Happy的楠姐 2020-12-13 16:30

Im trying to scale a video so that it is always 512 wide where the height changes in proportion to the original video. Once scaled, I then want to apply a watermark/overlay

3条回答
  •  被撕碎了的回忆
    2020-12-13 16:58

    From what I understand, this might work:

    -vf "movie=watermark.png [watermark]; [in] scale=512:-1,[watermark] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2 [out]"
    

    You apply the scale filter to the input "[in]".

    Unfortunately I don't have much experience with the filters on ffmpeg so I can't help further. Sorry

提交回复
热议问题