using FFMPEG to split 1 to 2, slide 1 over other, or 2 side by side

Опубликовано: 20 Октябрь 2020
на канале: A Forum
327
3

https://ffmpeg.org/ffmpeg-all.html#Ex...
Carrying on from my last video these are more commands adapted from the ffmpeg documentation about overlay

Play an original video and a filtered version (here with the deshake filter) side by side using the ffmpeg tool (both commands do the same thing):

ffmpeg -i input1.MOV -vf "split[a][b]; [a]pad=iw*2:ih[src]; [b]deshake[filt]; [src][filt]overlay=w" output.MOV

ffmpeg -i input1.MOV -vf "split[b], pad=iw*2[src], [b]deshake, [src]overlay=w" output.MOV


Make a sliding overlay appearing from the left to the right top part of the screen starting since time 2:

ffmpeg -i input1.MOV -i input2.MOV -filter_complex "[0:v][1:v]overlay=x='if(gte(t,2), -w+(t-2)*20, NAN)':y=0[out]" -map '[out]' -y output.MOV

Compose output by putting two input videos side to side:

ffmpeg -i input2.MOV -i input1.MOV -filter_complex "
nullsrc=size=1000x500 [background];
[0:v] setpts=PTS-STARTPTS, scale=500x500 [left];
[1:v] setpts=PTS-STARTPTS, scale=500x500 [right];
[background][left]overlay=shortest=1 [background+left];
[background+left][right] overlay=shortest=1:x=500
" output.MOV

https://ffmpeg.org/ffmpeg-all.html#Ex...

00:00 intro
00:14 split video and show filtered deshake on right
00:51 slide 1 video over another
01:46 two different videos side by side


Смотрите видео using FFMPEG to split 1 to 2, slide 1 over other, or 2 side by side онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь A Forum 20 Октябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 327 раз и оно понравилось 3 людям.