I took a while to find how to trim a video using ffmpeg.
ffmpeg -i video.avi -vcodec copy -acodec copy -ss 00:00:00 -t 00:00:04 trimmed_video.avi
Will trim the video to 4 seconds starting from the beginning.
The -vcodec , -acodec options are required so that ffmpeg knows in what video/audio format you want for the new video.
Comments
Excellent!! Thanks a lot!! I
Submitted by Code Monkey (not verified) on
Excellent!! Thanks a lot!!
I wonder if that could somehow be coupled with zamzar.com ...
to crop & convert any video to any format!!
Very helpful, thank you for
Submitted by Code Monkey (not verified) on
Very helpful, thank you for posting :)
Pages
Add new comment