ffmpeg:trimming_time_selection
Differences
This shows you the differences between two versions of the page.
ffmpeg:trimming_time_selection [2025/01/02 22:37] – created peter | ffmpeg:trimming_time_selection [2025/01/02 22:57] (current) – peter | ||
---|---|---|---|
Line 12: | Line 12: | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Lossless Cropping or Trimming of Videos ===== | ||
+ | |||
+ | <code bash> | ||
+ | ffmpeg -i input.mp4 -ss 00:00:00 -to 01:30:15 -c:v copy -c:a copy output.mp4 | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE:** | ||
+ | |||
+ | * Omit the **-to** parameter to trim till the end. | ||
+ | * Use **-t** parameter instead to specify duration, not end time. | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
ffmpeg/trimming_time_selection.1735857463.txt.gz · Last modified: 2025/01/02 22:37 by peter