1 |
ffmpeg -i video.mp4 -vf "fade=t=in:st=0:d=3" -c:a copy out.mp4 |
This is the fade in
command to apply the fade in
effect to the video Here
st=0
represents the video will start from 0
second to start the fade in effect
d=3
represemts the video will fade in after the 3 second
1 |
ffmpeg -i video.mp4 -vf "fade=t=out:st=10:d=5" -c:a copy out.mp4 |
This is the fade out
command to apply the fade out
effect to the video Here
st=10
represents the video will start from 10
second to start the fade out effect
d=5
represemts the video will fade out after the 5
second
1 |
ffmpeg -i music.mp3 -af "afade=t=in:st=0:d=5" out.mp3 |
1 |
ffmpeg -i music.mp3 -af "afade=t=out:st=5:d=5" out.mp3 |
1 |
ffmpeg -i video.mp4 -vf "fade=t=in:st=0:d=10,fade=t=out:st=10:d=5" -c:a copy out.mp4 |