Ffmpeg snippets

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the unix category.

Last Updated: 2024-04-18

How to cut a clip out of a longer video

# Format: -t (to: MM:SS) 
# -ss (start seek: MM:SS)
# -i (input)
ffmpeg -t 0:42 -i lamborghini.mp4 -ss 0:30 original.mp4

This sounds insane, but I have the impression that sometimes this did not work with different orderings of the arguments.