I am tried to trim my videos in Virtualdub but I also wanted to make a stream copy of the same video that I am trimming. Unfortunately, Virtualdub does not always give me the results I want as it always a few seconds off and I cannot stream copy the video as it does not always support the codecs that my video has. I am hoping to see if FFMPEG can do the job for me but I do not know how to trim and cut in FFMPEG. How do you cut and trim in FFMPEG?


ffmpeg parameters

  • -ss specifies the start time i.e. the 30th second of stream as 00:00:30
  • -t specifies the duration i.e. 10 second stream as 10
  • -to specifies the end time i.e. the 90th second of stream as 00:01:30

Note: Only -t will take effect if both -t and -to parameters are used.

  • Can you post an example of that script?
    – GAP
    Sep 17 at 10:57
  • 1
    ffmpeg -i canada.mp4 -ss 00:00:30 -to 00:01:30 -c copy oneMinute.mp4 and the result of ffprobe -i oneMinute.mp4 is Duration: 00:00:59.73, start: 0.333008, bitrate: 17036 kb/s
    – xer-rex
    Sep 19 at 8:54
  • So, it looks it need to learn how to use FFProbe and FFPlay. Thanks for the help.
    – GAP
    Sep 20 at 1:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.