A famous tool to process videos is FFMPEG. I'm using FFMPEG for my final year project in order to process videos. We can specify the input video by using -i option. That will take the video and process whole video. Today I had to process only a part of the video by using ffmpeg. So this is how I did that.
fmpeg -ss 50 -t 10 -i input.mp4 [rest of the code] [output file]
The task was done by -ss and -t options. This will process only from 50S to 60S of the video,
-ss is used to seeks in this input file to position. This should be called before -i option. -t option is used to limit the duration of data read from the input file. This also should be called before -i option.
We can use hh:mm:ss format also instead of using seconds directly.
Monday, August 10, 2015
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment