diff --git a/index.html b/index.html index f62d4a3..e1fc863 100644 --- a/index.html +++ b/index.html @@ -1135,12 +1135,12 @@ - +

Trim a video without re-encoding

ffmpeg -i input_file -ss 00:02:00 -to 00:55:00 -c copy -map 0 output_file

-

This command allows you to create an excerpt from a video file without re-encoding the image data.

+

This command allows you to create an excerpt from a file without re-encoding the audiovisual data.

ffmpeg
starts the command
-i input_file
path, name and extension of the input file
@@ -1151,7 +1151,7 @@ Note: watch out when using -ss with -c copy if the source is encoded with an interframe codec (e.g., H.264). Since FFmpeg must split on i-frames, it will seek to the nearest i-frame to begin the stream copy.
output_file
path, name and extension of the output file
-

Variation: trim video by setting duration, by using -t instead of -to

+

Variation: trim file by setting duration, by using -t instead of -to

ffmpeg -i input_file -ss 00:05:00 -t 10 -c copy output_file

-ss 00:05:00 -t 10
Beginning five minutes into the original video, this command will create a 10-second-long excerpt.
@@ -1167,7 +1167,7 @@

Excerpt from beginning

ffmpeg -i input_file -t 5 -c copy -map 0 output_file

-

This command captures a certain portion of a video file, starting from the beginning and continuing for the amount of time (in seconds) specified in the script. This can be used to create a preview file, or to remove unwanted content from the end of the file. To be more specific, use timecode, such as 00:00:05.

+

This command captures a certain portion of a file, starting from the beginning and continuing for the amount of time (in seconds) specified in the script. This can be used to create a preview file, or to remove unwanted content from the end of the file. To be more specific, use timecode, such as 00:00:05.

ffmpeg
starts the command
-i input_file
path, name and extension of the input file
@@ -1181,12 +1181,12 @@ - +

Excerpt to end

ffmpeg -i input_file -ss 5 -c copy -map 0 output_file

-

This command copies a video file starting from a specified time, removing the first few seconds from the output. This can be used to create an excerpt, or remove unwanted content from the beginning of a video file.

+

This command copies a file starting from a specified time, removing the first few seconds from the output. This can be used to create an excerpt, or remove unwanted content from the beginning of a file.

ffmpeg
starts the command
-i input_file
path, name and extension of the input file
@@ -1200,12 +1200,12 @@ - +

Excerpt from end

ffmpeg -sseof -5 -i input_file -c copy -map 0 output_file

-

This command copies a video file starting from a specified time before the end of the file, removing everything before from the output. This can be used to create an excerpt, or extract content from the end of a video file (e.g. for extracting the closing credits).

+

This command copies a file starting from a specified time before the end of the file, removing everything before from the output. This can be used to create an excerpt, or extract content from the end of a file (e.g. for extracting the closing credits).

ffmpeg
starts the command
-sseof -5
This parameter must stay before the input file. It tells FFmpeg what timecode in the file to look for to start copying, and specifies the number of seconds from the end of the video that FFmpeg should start copying. The end of the file has index 0 and the minus sign is needed to reference earlier portions. To be more specific, you can use timecode such as -00:00:05. Note that in most file formats it is not possible to seek exactly, so FFmpeg will seek to the closest point before.