<p>For example, given a video 1.mp4 (no audio) of 17s, output a 20s video where the last frame fades out.</p>
<p>What I came up with:</p>
<ol>
<li>Extract the last frame</li>
</ol>
<p><code>ffmpeg -sseof -1 -i 1.mp4 -update true last.png</code></p>
<ol start="2">
<li>Create a 3s fade-out video</li>
</ol>
<p><code>ffmpeg -r 60 -loop 1 -t 3 -i last.png -vf &quot;fade=out:st=0:d=3&quot; 2.mp4 -y</code></p>
<ol start="3">
<li>concatenate</li>
</ol>
<p>ffmpeg -f concat -i list.txt -c copy 3.mp4 -y</p>
<p>where list.txt is</p>
<pre><code>file '1.mp4'
file '2.mp4'
</code></pre>
<p>I was wondering if there's an easier method, e.g. something base on</p>
<p><a href="https://video.stackexchange.com/questions/23340/how-to-use-ffmpeg-to-fade-in-out-a-veriable-frame-rate-video-clip-with-unknown-d">How to use ffmpeg to fade in/out a veriable frame rate video clip with unknown duration</a></p>

CC BY-SA 4.0
2023-07-24T07:34:58.217Z
No shortcut while using ffmpeg. You have to write complex_filter to complete your task.
muhammad Haroon
CC BY-SA 4.0
2023-07-24T14:36:09.740Z
How do you do it with filter_complex?
Zohar Levi
<ffmpeg>
Add 3sec fade out of the last frame to a video
Zohar Levi
# Add 3sec fade out of the last frame to a video

(Asked by: username_0 on 2023-07-20)

For example, given a video 1.mp4 (no audio) of 17s, output a 20s video where the last frame fades out.
What I came up with:

Extract the last frame

ffmpeg -sseof -1 -i 1.mp4 -update true last.png

Create a 3s fade-out video

ffmpeg -r 60 -loop 1 -t 3 -i last.png -vf "fade=out:st=0:d=3" 2.mp4 -y

concatenate

ffmpeg -f concat -i list.txt -c copy 3.mp4 -y
where list.txt is
file '1.mp4'
file '2.mp4'

I was wondering if there's an easier method, e.g. something base on
How to use ffmpeg to fade in/out a veriable frame rate video clip with unknown duration

**Tags:** ffmpeg

> **Comments:**
> **username_1**: No shortcut while using ffmpeg. You have to write complex_filter to complete your task.  
> **username_0**: How do you do it with filter_complex?  

---

## 0 answers

