diff --git a/index.html b/index.html index cfd43de..0d9a0de 100644 --- a/index.html +++ b/index.html @@ -729,6 +729,26 @@ + + + +
+
Fade both video and audio streams
+

ffmpeg -i input_file -filter:v "fade=in:st=0:d=1, fade=out:st=59:d=1" -filter:a "afade=in:st=0:d=1, afade=out:st=59:d=1" -c:v libx264 -c:a aac output_file

+

This command fades in and out the first and last 30 video frames and 44100 audio samples on a video

+
+
ffmpeg
starts the command
+
-i input_file
path, name and extension of the input file
+
-filter:v "fade=in:st=0:d=1, fade=out:st=59:d=1"
applies a video filter that fades in the first and last 30 video frames
+
-filter:a "afade=in:st=0:d=1, afade=out:st=59:d=1"
applies an audio filter that fades in the first and last 30 video frames. st sets the start and d sets the duration.
+
-c:v video_codec
as a video filter is used, it is not possible to use -c copy. The video must be re-encoded with whatever video codec is chosen, e.g. ffv1, v210 or prores.
+
-c:a audio_codec
as an audio filter is used, it is not possible to use -c copy. The audio must be re-encoded with whatever audio codec is chosen, e.g. aac.
+
output_file
path, name and extension of the output_file
+
+ +
+ +