<pre><code>ffmpeg -i track1.wav -ss 00:00:38.160 -t 00:00:20.720 -vn -codec:a libmp3lame -ac 2 -b:a 256k -map a -af afade=t=in:ss=38:d=3,afade=t=out:st=55:d=3 output.mp3
</code></pre>

<p>This is how I am cutting the audio file.
My problem is, Fade in not working and fadeout working very well.
                   But if I cut audio from the beginning (0:0), Fade in and fade out working perfectly.</p>

<ffmpeg><audio>
Trouble in Cut a portion of an audio file, and add fade in and fadeout Effect
Lins Louis
# Trouble in Cut a portion of an audio file, and add fade in and fadeout Effect

(Asked by: username_0 on 2019-05-27)

ffmpeg -i track1.wav -ss 00:00:38.160 -t 00:00:20.720 -vn -codec:a libmp3lame -ac 2 -b:a 256k -map a -af afade=t=in:ss=38:d=3,afade=t=out:st=55:d=3 output.mp3

This is how I am cutting the audio file.
My problem is, Fade in not working and fadeout working very well.
                   But if I cut audio from the beginning (0:0), Fade in and fade out working perfectly.

**Tags:** ffmpeg, audio


---

## 0 answers

