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.
Asked
Active
Viewed 1.1k times
10
Amir Hossein Baghernezad
- 502
- 2
- 5
- 17
-
The only way is to use lower quality, better tool!? if you mean different app try Movie maker, if you want something light on your laptop, small app easy and fast, give it a try – Narzan Q. Aug 23 '15 at 07:45
-
@narzan I think if I wanted to convert it to lower quality it takes longer! I dont think that Movie Maker is a good option since it exports to wmv, which makes me needing a software for wmv to mp4 conversion, which increases the spent time. – Amir Hossein Baghernezad Aug 23 '15 at 16:48
2 Answers
7
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
-iis the name of your file. -ssis the start position in Hours:Minutes:Seconds-tis how long a clip you want - again in HH:MM:SS- The
acodecandvcodectellsffmpegjust to copy the file without changing it at all.
That's about the fastest you can get it.
Terence Eden
- 813
- 2
- 7
- 22
-
3yeah as it seems it is. but how can I remove 5 seconds of a video (in the middle) ? should I do 3 works? (getting start to somewhere; getting somewhere+5 to end; join these 2) or there is a straight way ? – Amir Hossein Baghernezad Aug 23 '15 at 16:37
-
1
-
1could you give me the joining command? assume that I run that command twice and I have `firstoutput.mp4` and `secondoutput.mp4` files. what command should I use to join these two? – Amir Hossein Baghernezad Aug 23 '15 at 20:26
-
1@TechJS, FWIW, I've had good luck using the `cat` command to join video snippets that are in the `.mpg` container. – Digger Jun 18 '17 at 17:54
-
1@Digger Thanks for mentioning. I'll give it a try as soon as I come back to that issue. – Amir Hossein Baghernezad Jun 28 '17 at 13:53