using ffmpeg to create cross fade transition effects

using ffmpeg to create cross fade transition effects

A Forum

3 года назад

1,597 Просмотров

link: https://ffmpeg.org/ffmpeg-filters.html#Examples-121

fading 2 videos together 0:25
ffmpeg -i 1.MOV -i 2.MOV -filter_complex xfade=transition=fade:duration=2:offset=5 output.MOV

video wipes up 1:16
ffmpeg -i 1.MOV -i 2.MOV -filter_complex xfade=transition=wipeup:duration=2:offset=3 output.MOV

video transitions from the center 1:46
ffmpeg -i 1.MOV -i 2.MOV -filter_complex xfade=transition=circleclose:duration=2:offset=3 output.MOV

this command crashed when I first ran it, I cut the video up into 10 second chunks and it worked fine. my other video on how to do that https://www.youtube.com/watch?v=sAl1lZMVr5A

when I tried to concatenate the videos as I have done previously it came up with an error: Non-monotonous DTS in output stream 0:0

After a few different attempts I decided to use the overlay command which I have shown an example at 2:00
And heres a link to the documentaion on overlay:
https://ffmpeg.org/ffmpeg-all.html#Commands-58

link to xfade:
https://ffmpeg.org/ffmpeg-all.html#Examples-159

00:00 intro
00:06 fading in effect
01:10 wipe up effect
01:40 circle closing effect

hope everyone is doing ok. To my kids, I love you very much

Тэги:

#ffmpeg #cross_fading #video_editing #xfade #transitions #swipe #fade_in #circle_fade
Ссылки и html тэги не поддерживаются


Комментарии:

Coders Infinite
Coders Infinite - 06.04.2022 18:40

Thanks for your video, can you please make video for adding transition effects for multiple videos(not two videos) using xfade ? please

Ответить
raul perez
raul perez - 11.12.2021 09:25

Hi im using centos8 ffmpeg 4.2.5 but apear eror : No such filter: 'xfade'

Ответить
Syahrizal Akbar
Syahrizal Akbar - 17.05.2021 04:34

How we can join two or more videos with fade effect?

Ответить
Richard Wang
Richard Wang - 21.04.2021 17:30

Hi Thanks for our video.
I find xfade transition is not working well with acrossfade. any ideas?

Ответить
al pacino
al pacino - 25.03.2021 12:28

i am getting the following error -
[Parsed_xfade_4 @ 0x564fd9485d80] First input link main timebase (1/24000) do not match the corresponding second input link xfade timebase (1/12800)
[Parsed_xfade_4 @ 0x564fd9485d80] Failed to configure output pad on Parsed_xfade_4
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #1:0
Conversion failed!

Ответить
A Forum
A Forum - 20.10.2020 07:57

xfade transitions options are
‘custom’
‘fade’
‘wipeleft’
‘wiperight’
‘wipeup’
‘wipedown’
‘slideleft’
‘slideright’
‘slideup’
‘slidedown’
‘circlecrop’
‘rectcrop’
‘distance’
‘fadeblack’
‘fadewhite’
‘radial’
‘smoothleft’
‘smoothright’
‘smoothup’
‘smoothdown’
‘circleopen’
‘circleclose’
‘vertopen’
‘vertclose’
‘horzopen’
‘horzclose’
‘dissolve’
‘pixelize’
‘diagtl’
‘diagtr’
‘diagbl’
‘diagbr’
‘hlslice’
‘hrslice’
‘vuslice’
‘vdslice’
‘hblur’
‘fadegrays’
‘wipetl’
‘wipetr’
‘wipebl’
‘wipebr’

Ответить