I'm using ffmpeg in order to process videos.
ffmpeg -i C:\test.mp4 [rest of the command]
When I use above command it process whole video. How can I select a paticular part of the video and process?
Use the -t option to specify a time limit: `-t duration' Restrict the transcoded/captured video sequence to the duration specified in seconds. hh:mm:ss[. xxx] syntax is also supported.
This can be done by using -ss
and -t
options.
-ss
seeks for the start position
-t
limits the duration
so the command is like this.
ffmpeg -ss 50 -t 10 -i C:\test.mp4 [rest of the command]
this processes 10 seconds of video, starting at 50 and going onto 60.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With