diff --git a/index.html b/index.html index 1645bf7..7101cd0 100644 --- a/index.html +++ b/index.html @@ -733,13 +733,13 @@
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 second (and 44100 audio samples) on a video.

+

ffmpeg -i input_file -filter:v "fade=in:st=IN_POINT:d=DURATION, fade=out:st=OUT_POINT:d=DURATION" -filter:a "afade=in:st=OUT_POINT:d=DURATION, afade=out:st=IN_POINT:d=DURATION" -c:v libx264 -c:a aac output_file

+

This command fades in and out the first and last second on a video. Change IN_POINT, OUT_POINT, DURATION to the time in seconds (expressed as integers) you want.

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 second of the video. (For example, it fades in and out on the first and last second of a 60s clip). st sets the start and d sets the duration.
-
-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 second of the video. (For example, it fades in and out on the first and last second of a 60s clip). st sets the start and d sets the duration.
+
-filter:v "fade=in:st=IN_POINT:d=DURATION, fade=out:st=OUT_POINT:d=DURATION"
applies a video filter that fades in the first and last second of the video. st sets the start and d sets the duration.
+
-filter:a "afade=in:st=IN_POINT:d=DURATION, afade=out:st=OUT_POINT:d=DURATION"
applies an audio filter that fades in the first and last second of the video. 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