Posted: . At: 7:16 AM. This was 6 years ago. Post ID: 12590
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



Trim a video with ffmpeg very easily.


How to properly trim out a section of video with ffmpeg

This ffmpeg command will trim out a section of video from a long video file. This is how a clip is snipped out of a movie file easily.

ffmpeg -i "baraka.mkv" -ss 00:14:59.691 -to 00:17:24.044 -c:v libx264 -preset veryslow -crf 0 -c:a copy "BarakaClip.mkv"

This preserves the quality of the video while properly snipping out a nice clip. So, this is very useful for snipping a video without using a video editor. Just playing the video file would allow a user to get the proper timestamps for beginning and end of the clip. This goes to show how useful ffmpeg is for editing video.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.