如何使用ffmpeg在视频中心添加透明水印?

我目前正在使用以下命令:


Top left corner

ffmpeg –i inputvideo.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=10:10 [out]" outputvideo.flv


Top right corner

ffmpeg –i inputvideo.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:10 [out]" outputvideo.flv


Bottom left corner

ffmpeg –i inputvideo.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=10:main_h-overlay_h-10 [out]" outputvideo.flv


Bottom right corner

ffmpeg –i inputvideo.avi -vf "movie=watermarklogo.png [watermark]; [in][watermark] overlay=(main_w-overlay_w-10)/2:(main_h-overlay_h-10)/2 [out]" outputvideo.flv

如何放置视频的水印中心?


海绵宝宝撒
浏览 2756回答 2
2回答

12345678_0001

右下角是事实:ffmpeg –i inputvideo.avi -vf“ movie = watermarklogo.png [水印]; [in] [水印] overlay = main_w-overlay_w-10:main_h-overlay_h-10 [out]” outputvideo.flv
打开App,查看更多内容
随时随地看视频慕课网APP