So, this has been driving me nuts. I have a video that I went to cut out the first 30-40 or so seconds without re-encoding the entire thing. Issue is, the part I want to cut on is not on a keyframe, so most software I used either cuts on the keyframe before the part I want (such as Avidemux) leaving in a few moments of garbage video, or gives me a video that is just bank for the first few moments (ffmpeg) until the next keyframe.
I couldn't figure out a way to make anything read the previous seconds of the video and generate a new keyframe at the beginning of the cut, so I figured my next best bet would be to actually split the video on that keyframe, then trim the part I want from the beginning by re-encoding just the half or so segment I want, and then joining that with the rest of the video.
Issue is, I have no idea how to attempt to duplicate the settings of the second half of the video so I can join it. All attempted have just resulted in it rejecting the second half of the video to join (mp4box) or spitting out a video that after that first half second or so is just corrupted and does not play the rest (avidemux).
Does anybody have any suggestions on this? I am assuming the re-encoding route is my only option, but how would I duplicate the settings of the original video so I can re-join it?
+ Reply to Thread
Results 1 to 2 of 2
-
-
See this thread for suggestions
https://forum.videohelp.com/threads/389413-Is-smart-rendering-on-MP4-files-possible
Similar Threads
-
keyframe interval recommended for h264 video at 50 fps
By codemaster in forum Video ConversionReplies: 15Last Post: 24th Sep 2020, 21:51 -
cut/delete first 5 seconds of 100s of videos
By gta5 in forum EditingReplies: 4Last Post: 22nd Nov 2018, 05:08 -
Cut/Copy .mp4 video losslessly to .ts container
By Rajesh Singh in forum EditingReplies: 2Last Post: 30th Aug 2017, 14:18 -
Does VOB2MPG Pro cut on a keyframe when selecting individual chapters?
By xero9009 in forum SVCD2DVD & VOB2MPGReplies: 0Last Post: 23rd Sep 2014, 11:30 -
How to cut MP4 video Files?
By OrtegaSeason in forum Video ConversionReplies: 2Last Post: 8th Dec 2013, 09:04