FFMPEG |重新排列作物

时间:2017-05-13 20:24:15

标签: ffmpeg crop

我需要"加密"视频与FFMPEG。

我做了很多研究,但没有找到解决问题的方法:(

有可能吗?

我需要什么:

enter image description here

1 个答案:

答案 0 :(得分:1)

enter image description here enter image description here
图像示例之前和之后。

使用crophstackvstack过滤器:

ffmpeg -i input -filter_complex \
"[0:v]crop=iw/2:ih/2:0:0[lt]; \
 [0:v]crop=iw/2:ih/2:ow:0[rt]; \
 [0:v]crop=iw/2:ih/2:0:oh[lb]; \
 [0:v]crop=iw/2:ih/2:ow:oh[rb]; \
 [lb][lt]hstack[top]; \
 [rt][rb]hstack[bottom]; \
 [top][bottom]vstack" \
-c:a copy output