Fastest way to cut and remove parts of a video

adobe-premiereffmpegvideo editing

I have a movie which is encoded using H264 (mp4) and is 800 MB in 720p format.
I need to remove some parts of it for example remove 10:25 to 10:30 and so on.
I've worked with adobe premiere buy it gets too much time and energy (laptop's fan run high and goes hot) cause it decodes and re-encodes video.
I dont know much about internals of video editing but is there any better or faster way for this kind of works? Maybe better tool or better settings (i use default settings for output in premiere). Thanks in advance.

Best Answer

It is possible that your software is re-encoding the file. If you just want to copy a 5 second chunk of the movie, you can use this command:

ffmpeg -i YourFile.mp4 -ss 00:10:25 -t 00:00:05 -acodec copy -vcodec copy Output.mp4

  • Where -i is the name of your file.
  • -ss is the start position in Hours:Minutes:Seconds
  • -t is how long a clip you want - again in HH:MM:SS
  • The acodec and vcodec tells ffmpeg just to copy the file without changing it at all.

That's about the fastest you can get it.

Related Question