我如何在ffmpeg流的任何位置添加徽标?这是我的命令:

时间:2017-12-09 03:23:40

标签: ffmpeg

ffmpeg -y -i input.mp4 -i“logo2.png”-filter_complex“[0:v] setpts = PTS / 1.15,boxblur = 2:1,scale = iw / 1.75:-1,pad = iw +26:ih + 26:13:13:color = blue [v1]; movie = bgmu.mp4:loop = 999,setpts = N /(FRAME_RATE * TB)[v2]; [v2] [v1] overlay = shortest = 1:x = Ww-30:y = Hh-22 [v3]; [v3] [1:v] overlay = 0:0,setdar = 16/9; [0:a] atempo = 1.15,aecho = 0.4 :0.66:2:0.2,合唱= 0.5:0.9:50 | 80:0.4 | 0.42:0.25 | 0.4:2 | 1.4,firequalizer = gain_entry ='entry(100,0); entry(400,-4); entry (1000,-6); entry(2000,0)',equalizer = f = 1000:width_type = q:width = 1:g = 2,equalizer = f = 100:width_type = q:width = 2:g = 5潘=立体声| C0

1 个答案:

答案 0 :(得分:0)

[v3][1:v]overlay=0:0中,第一个0是从[v3]的左边缘测量的x坐标,第二个0是从{{1}的顶部开始测量的y坐标}。所以改变这些价值观。您可以在表达式中使用[v3]WHw,分别是h[v3]的宽度和高度。

[1:v]表示在底部水平居中和垂直叠加,留下10像素的边距。