[PLUG-TALK] Deleting frames from a video

Paul Mullen pm at nellump.net
Fri Jan 8 02:39:46 UTC 2016


On 12/22/2015 08:14 PM, John Jason Jordan wrote:
> I have a video file (MKV) that I wish to delete the first 7930
> frames from. I created it with Handbrake, but Handbrake doesn't seem
> to offer much in the way of editing tools.

There are a number of tools that can do that for you.  Note that the
choice of tool often depends on both the container file format
(Matroska, in your case), and the codec used on the video and audio
streams within.

I've used "mkvmerge", a command-line application, with success on
HandBrake-created Matroska files encoded in H264.  Despite the name,
mkvmerge also splits files.  Look for the "--split" option in the man
page.  There are examples included that are easy to adapt to your
needs:

    5. Keeping specific parts by specifying frame/field number ranges while discarding others.
  
       Syntax: --splitparts-frames:start1-end1[,[+]start2-end2[,[+]start3-end3...]]
       
       Examples:
       
        1. --split parts-frames:137-258,548-1211
       
        2. --split parts-frames:733-912,+1592-2730
       
        3. --split parts-frames:-430,2512-


-- 
Paul



More information about the PLUG-talk mailing list