<p>Assuming <code>input0.mkv</code> is 10 seconds long:</p>

<pre><code>ffmpeg -i input0.mkv -i input1.mkv -filter_complex "[0]fade=t=out:d=0.015:st=9.985:c=white[v0];[1]fade=t=in:d=0.015:c=white[v1];[v0][0:a][v1][1:a]concat=n=2:v=1:a=1[v][a]" -map "[v]" -map "[a]" output.mp4
</code></pre>

<ul>
<li><p>Note that using your values with typical input frame rate will result in only a few frames being white which will appear as a flash instead of a dip to white, so I recommend increasing the fade duration.</p></li>
<li><p>All inputs must have the same parameters (width, height, etc).</p></li>
<li><p>See <a href="https://ffmpeg.org/ffmpeg-filters.html" rel="nofollow noreferrer">FFmpeg Filters</a> for more info on fade and concat.</p></li>
</ul>

CC BY-SA 4.0
2019-10-04T22:48:25.980Z
2019-10-07T22:22:07.557Z
2019-10-07T22:22:07.557Z
llogan
<p>Is there any way to concatenate two video files with a dip to white (0.03 sec) with FFmpeg? </p>

<ffmpeg>
Concatenate two video files with a dip to white with FFmpeg
Arnold Hammie
# Concatenate two video files with a dip to white with FFmpeg

(Asked by: username_0 on 2019-10-04)

Is there any way to concatenate two video files with a dip to white (0.03 sec) with FFmpeg?

**Tags:** ffmpeg


---

## 1 answers

### Answer by username_1 on 2019-10-04. Score: 3 | Accepted answer

Assuming input0.mkv is 10 seconds long:
ffmpeg -i input0.mkv -i input1.mkv -filter_complex "[0]fade=t=out:d=0.015:st=9.985:c=white[v0];[1]fade=t=in:d=0.015:c=white[v1];[v0][0:a][v1][1:a]concat=n=2:v=1:a=1[v][a]" -map "[v]" -map "[a]" output.mp4


Note that using your values with typical input frame rate will result in only a few frames being white which will appear as a flash instead of a dip to white, so I recommend increasing the fade duration.
All inputs must have the same parameters (width, height, etc).
See FFmpeg Filters for more info on fade and concat.


---

