我有以下命令来创建一系列图像的淡入效果,然后使用lut滤镜在生成的视频上放置水印png:
//创建淡入淡出的视频:
ffmpeg -t 5 -i 1.jpg -t 5 -i 2.jpg -t 5 -i 3.jpg -t 5 -i 4.jpg -i 5.jpg -filter_complex "[0:v]zoompan=z='min(zoom+0.0015,1.5)':d=125,fade=t=out:st=4:d=1[v0];[1:v]zoompan=z='min(zoom+0.0015,1.5)':d=125,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v1];[2:v]zoompan=z='min(zoom+0.0015,1.5)':d=125,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v2];[3:v]zoompan=z='min(zoom+0.0015,1.5)':d=125,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v3];[4:v]zoompan=z='min(zoom+0.0015,1.5)':d=125,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v4];[v0][v1][v2][v3][v4]concat=n=5:v=1:a=0,format=yuva444p[v]" -map "[v]" -s "480x600" -t 40 series_out_fade_v2_5images.mp4
创建视频后,我使用以下命令在其上放置水印徽标:
//水印
ffmpeg -y -i series_out_fade_v2_5images.mp4 -i optimaken_logo.png -filter_complex "[1]lut=a=val*0.5[a];[0][a]overlay=0:0" -c:v libx264 -an v4_output.mp4
我的问题是:
答案 0 :(得分:0)
使用
ffmpeg -i 1.jpg -i 2.jpg -i 3.jpg -i 4.jpg -i 5.jpg -i optimaken_logo.png -filter_complex "[0:v]zoompan=z='min(zoom+0.0015,1.5)':d=125:s=480x600,fade=t=out:st=4:d=1[v0];[1:v]zoompan=z='min(zoom+0.0015,1.5)':d=125:s=480x600,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v1];[2:v]zoompan=z='min(zoom+0.0015,1.5)':d=125:s=480x600,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v2];[3:v]zoompan=z='min(zoom+0.0015,1.5)':d=125:s=480x600,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v3];[4:v]zoompan=z='min(zoom+0.0015,1.5)':d=125:s=480x600,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v4];[v0][v1][v2][v3][v4]concat=n=5:v=1:a=0[v];[5]scale=-1:65,colorchannelmixer=aa=0.5[a];[v][a]overlay=W-w-10:10" -t 40 series_out_fade_v2_5images.mp4
colorchannelmixer
应该比lut
快。