How to scale and position watermark to scale?

烂漫一生 提交于 2019-11-30 16:27:50

Answered by ubitux on the FFmpeg IRC:

Use scale and overlay in a single -filter_complex chain, like so:

ffmpeg -y -ss 0 -t 0:0:30.0 -i 'video.mp4' -i '/watermark.png'
 -filter_complex "[0:0] scale=400:225 [wm]; [wm][1:0] overlay=305:0 [out]"
 -map "[out]" -b:v 896k -r 20 -an 
 'out.flv'

Also load the watermark via -i rather than the movie filter.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!