如何使用FFMPEG缩放水印?
我正在使用FFMPEG更改视频的分辨率和类型(MP4),但我也想在它们上添加水印,但问题是我上传的每个视频中的水印大小都不同(在某些视频中,水印变小,在其他视频上变得更大)。
有没有办法为视频添加具有比例比例的水印,以便我没有不同的水印?
这是我的代码:
overlay_w):y =(main_h -h -overlay_h)
ffmpeg -i input_video.avi -i watermark.png -s 1280x720 -filter_complex覆盖= x = x =(main_w -
I am using ffmpeg to change the resolution and type(mp4) of my videos but I also want to add a watermark on them, but the problem is that the size of the watermark is different in every video I upload (on some videos the watermark becomes small and on other videos become bigger).
Is there a way to add a watermark with a proportional scale to the videos so I don't have different sizes of the watermark?
Here's my code:
ffmpeg -i input_video.avi -i watermark.png -s 1280x720 -filter_complex overlay=x=(main_w-overlay_w):y=(main_h-overlay_h) output_video.mp4
Thanks in advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论