Log in

View Full Version : Searching simple *.mp4 video editor which allows deletion of chunks without re-encodi


mike23
8th May 2017, 13:09
I got sometimes video files in MP4 format which contain ads (at the beginning, at the end and in the mid).

Now I search a simple, portable video editor which let me delete such ad chunks WITHOUT re-encoding the full video.

For a precise positioning onto the start and end frame for the interval to cut/delete the video editor needs
a comfortable frame-wise forward/backward stepping.

After having deleted some chunks I just want to select "Save" to save the remaining stuff into a new *.mp4 file.

I need no other, advanced features like fade in/out or resolution change or colorization or whatever....

Since I want to run that tool from USB flash drive the video editing sofwtare should be portable.

In the past there was the famous "VirtualDub" editor for that purpose.

Unfortunately this tool does not work for MP4 files.

Maybe someone can recommend me an alternative video editor for that task

Thank you

mariush
8th May 2017, 13:42
It would depend on how the h264 stream inside was created.

Such editor would only be able to cut at a keyframe or at the end of a GOP (which could have a bunch of frames, after all it's short for group of pictures) so you may not be able to cut exactly at some points. If you want to cut at an exact point, you would have to replicate what Virtualdub with the Smart Rendering feature , decode a large segment of let's say from 20-30 seconds before the cut and 20-30 seconds after the cut, make the cut in the middle, then recompress the 40-60 seconds .. but the tool would need to know the parameters you used to compress the original stream so that the decoder would treat that

If you create the h264 stream with x264 and option -stitchable, then it should be possible to cut at the end of keyframe/gops without issues, but otherwise the tool would have to parse the whole stream.

Maybe it would easily work with iframe only compression version of h264 like AVC intra because in theory you should be able to cut at any frame with such codecs. But otherwise it's difficult.

With AVI it was easier because codecs were also less "smart".

ChaosKing
8th May 2017, 14:58
I would try avidemux http://fixounet.free.fr/avidemux/download.html
(and yes, it is not only for avi)

sneaker_ger
8th May 2017, 15:28
SolveigMM Video Splitter (http://www.solveigmm.com/products/video-splitter/) seems to be popular as well but it's payware (with free trial).

If you create the h264 stream with x264 and option -stitchable, then it should be possible to cut at the end of keyframe/gops without issues, but otherwise the tool would have to parse the whole stream.
--stitchable has nothing to do with splitting a single encode or removing parts from a single encode. It will not create any additional splitting points. It is meant for when you want to do multiple separate encodes and later append them.