<p>This is the way I'm trying to apply fade in inside a filtercomplex of FFmpeg command.</p>

<pre><code>[v]fade=t=in:s=0:n=30[vfadein]
</code></pre>

<p>This command doesn't return error but the result is a video without fade in effect. What's the problem?</p>

CC BY-SA 4.0
2019-02-03T05:06:45.190Z
What's the value of `startCut.ToString()`
Gyan
CC BY-SA 4.0
2019-02-03T10:52:50.200Z
Gyan thanks for the reply. It is 00:00:34.2210000
Eftekhari
CC BY-SA 4.0
2019-02-03T10:59:01.840Z
So your fade happens in the first 30 frames, but you only encode output from 34 seconds. Add a trim filter before the fade, `trim='00:00:34.221000'`.
Gyan
CC BY-SA 4.0
2019-02-03T10:59:04.963Z
and duration is `00:00:06.1600000`.
Eftekhari
CC BY-SA 4.0
2019-02-03T11:12:34.243Z
Gyan I've added this line to the command but the output is only audio no video `,[finalv]trim="+startCut.ToString()+ "[finalvtrimmed]"+`
Eftekhari
CC BY-SA 4.0
2019-02-03T11:17:47.477Z
What's your full cmd?
Gyan
CC BY-SA 4.0
2019-02-03T12:05:36.080Z
Thanks, it works. `[v]fade=t=in:st=34:n=30[vfadein]`
Eftekhari
<ffmpeg>
FFmpeg for fade in doesn't get applied to the final video
Eftekhari
# FFmpeg for fade in doesn't get applied to the final video

(Asked by: username_0 on 2019-02-03)

This is the way I'm trying to apply fade in inside a filtercomplex of FFmpeg command.
[v]fade=t=in:s=0:n=30[vfadein]

This command doesn't return error but the result is a video without fade in effect. What's the problem?

**Tags:** ffmpeg

> **Comments:**
> **username_1**: What's the value of `startCut.ToString()`  
> **username_0**: username_1 thanks for the reply. It is 00:00:34.2210000  
> **username_1**: So your fade happens in the first 30 frames, but you only encode output from 34 seconds. Add a trim filter before the fade, `trim='00:00:34.221000'`.  
> **username_0**: and duration is `00:00:06.1600000`.  
> **username_0**: username_1 I've added this line to the command but the output is only audio no video `,[finalv]trim="+startCut.ToString()+ "[finalvtrimmed]"+`  
> **username_1**: What's your full cmd?  
> **username_0**: Thanks, it works. `[v]fade=t=in:st=34:n=30[vfadein]`  

---

## 0 answers

