ffmpeg生成对比视频

左右对比

ffmpeg -n -i 测试视频.MOV -i 测试视频_1080SR015_1080SR11VA6_crf18.mp4 -i 1_388x100.png -i 2_390x150.png -filter_complex
“[0:v]scale=-1:3840[a];[a][1:v]hstack=inputs=2[c];[c][3:v]overlay=main_w-overlay_w-800:10[c];[c][2:v]overlay=main_w-overlay_w-3200:10[v]”
-map [v] -crf 20 -map 0:a -c:a copy 测试视频_1080SR015_1080SR11VA6_crf18_diff_crf20.mp4

[0:v]输入的第一个视频流 scale后保存为[a]
[a]与输入的第二个视频流[1:v]hstack水平组合保存为[c]
[3:v]第三个输入的图片
[c][3:v]overlay=main_w-overlay_w-800:10[c]; 添加logo
-map [v] 控制[v]为最后的输出stream
https://www.jianshu.com/p/bb31d8031c0b
视频画面插入透明logo

左右对比加框框放大

ffmpeg -n -i 觉醒20181010.mp4 -i 觉醒20181010_1080SR015_1080SR11VA6_crf18.mp4 -i 1_388x100.png -i 2_390x150.png -filter_complex
“[0:v]crop=iw/2:ih[a];[a]scale=-1:1632[a];[1:v]crop=iw/2:ih[b];[a][b]hstack=inputs=2[c];[c][3:v]overlay=main_w-overlay_w-700:10[c];[c][2:v]overlay=main_w-overlay_w-2800:10[v]”
-map [v] -crf 18 -map 0:a -c:a copy 觉醒20181010_1080SR015_1080SR11VA6_crf18_diff_crf18.mp4

ffmpeg -n -i 觉醒20181010_1080SR015_1080SR11VA6_crf18_diff_crf18.mp4 -filter_complex
“[0:v]crop=300:300:900:800[a];[a]scale=600:600[a];[0:v]drawbox=900:800:300:300:green[b];[b][a]overlay=main_w-overlay_w-1930:10[c];[0:v]crop=300:300:2825:800[d];[d]scale=600:600[d];[c]drawbox=2825:800:300:300:green[c];[c][d]overlay=main_w-overlay_w-1310:10[d]”
-map [d] -crf 20 -map 0:a -c:a copy 觉醒20181010_1080SR015_1080SR11VA6_crf18_diff_crf18_diff_crf20.mp4

你可能感兴趣的:(FFmpeg)