0

How to create “diagonal wipe” effect in FFmpeg?

This question has an answer, however the answer does not concat the audios of videos. How can I fix it ?

ffmpeg -i old.mp4 -i new.mp4 -filter_complex
   "[1]format=yuva444p,
       geq=lum='p(X,Y)':
       a='st(1,(1+W/H/TN)*H/D);if(lt(W-X,((ld(1)*T-Y)/(ld(1)*T))*ld(1)*T*TN),p(X,Y),0)':
       enable='lte(t,D)',setpts=PTS+D/TB[new];
    [0:v][new]overlay" wipe.mp4
0

Use the acrossfade filter.

...
[0:v][new]overlay;
[0]atrim=0:T+D[a0];[a0][1:a]acrossfade=d=D"

D like in the original command is the duration of the wipe. T is the time at which the wipe starts.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.