Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-03T05:06:45.190Z
Comments.Text: What's the value of `startCut.ToString()`
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-03T10:52:50.200Z
Comments.Text: Gyan thanks for the reply. It is 00:00:34.2210000
Comments.UserDisplayName: Eftekhari
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-03T10:59:01.840Z
Comments.Text: 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'`.
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-03T10:59:04.963Z
Comments.Text: and duration is `00:00:06.1600000`.
Comments.UserDisplayName: Eftekhari
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-03T11:12:34.243Z
Comments.Text: Gyan I've added this line to the command but the output is only audio no video `,[finalv]trim="+startCut.ToString()+ "[finalvtrimmed]"+`
Comments.UserDisplayName: Eftekhari
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-03T11:17:47.477Z
Comments.Text: What's your full cmd?
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-02-03T12:05:36.080Z
Comments.Text: Thanks, it works. `[v]fade=t=in:st=34:n=30[vfadein]`
Comments.UserDisplayName: Eftekhari
Tags: <ffmpeg>
Title: FFmpeg for fade in doesn't get applied to the final video
UserDisplayName: Eftekhari
ThreadText: # 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
  
  