<p>Use the <a href="https://ffmpeg.org/ffmpeg-filters.html#acrossfade" rel="nofollow noreferrer">acrossfade</a> filter.</p>

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

<p><code>D</code> like in the original command is the duration of the wipe. <code>T</code> is the time at which the wipe starts.</p>

CC BY-SA 4.0
2020-02-26T14:19:18.147Z
2020-02-26T14:19:18.147Z
Gyan
<p><a href="https://video.stackexchange.com/questions/24608/how-to-create-diagonal-wipe-effect-in-ffmpeg/24616#24616?newreg=1c0bdf6bd6ec4e4ea14dec86fcc2a93c">How to create “diagonal wipe” effect in FFmpeg?</a></p>

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

<pre><code>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
</code></pre>

<ffmpeg><transitions>
Ffmpeg wipe diagonal transiton with audio concat
Hovhannes  Vardanyan
# Ffmpeg wipe diagonal transiton with audio concat

(Asked by: username_0 on 2020-02-26)

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

**Tags:** ffmpeg, transitions


---

## 1 answers

### Answer by username_1 on 2020-02-26. Score: 0 | Accepted answer

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.


---

