Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 531 Bytes

cut-a-clip-from-video.md

File metadata and controls

13 lines (7 loc) · 531 Bytes

Cut a clip from a video with ffmpeg

To trim a video with ffmpeg without re-encoding (and affecting quality), use the this snippet:

ffmpeg -i in-file.mp4 -t 00:00:05 -c copy out-file.mp4

The -c copy flag will copy data without re-encoding.

See this Stack Overflow post for other variations, including re-encoding. Also, see the official documentation.