diff --git a/index.html b/index.html index 15426a2..32e8192 100644 --- a/index.html +++ b/index.html @@ -370,9 +370,9 @@
ffmpeg -i input_file -t 5 -c copy 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 trims the beginning and end of a video file without re-encoding
ffmpeg -i input_file -ss 5 -t 10 -c copy output_file
This command captures a certain portion of a video file, starting from a designated point in the file and taking an excerpt as long as the amount of time (in seconds) specified in the script. This can be used to create a preview or clip out a desired segment. To be more specific, use timecode, such as 00:00:05.
+ffmpeg -i input_file -ss 00:02:00 -to 00:55:00 -c copy output_file
This command allows you to create an excerpt from a video file without re-encoding the image data.
-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.Variation: trim video by setting duration, by using -t
instead of -to
ffmpeg -i input_file -ss 00:05:00 -t 10 -c copy output_file
ffmpeg -i input_file -ss 00:02:00 -to 00:55:00 -c copy output_file
This command trims the beginning and end of a video file.
--ss
with -c copy
when 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.
-