+ Reply to Thread
Results 1 to 10 of 10
Thread
  1. Hello,

    I have an MKV file where I want to delete the first 16 seconds.
    If have tried Avidemux but this application crashes. I have also tried SolveigMM AVI Trimmer + MKV but this one doesn't save the edited file for some reason but the the whole file.


    What is the best tool to do this without reencoding ?
    Quote Quote  
  2. Member johns0's Avatar
    Join Date: Jun 2002
    Location: canada
    Search Comp PM
    I think,therefore i am a hamster.
    Quote Quote  
  3. I have tried that but how does it work with MKVMerge ?

    [EDIT]
    I think I have to use the split option. I will test it. Thanks.
    Last edited by jslegers73; 14th Feb 2013 at 02:48.
    Quote Quote  
  4. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    I have no problems with solveigmm avi trimmer. Open mkv, set and start and save. But it might not work all kinds of mkvs.

    But try mkvtoolnix / mkvmergegui. Add the mkv, under the global table enable splitting, set the after timecodes to 16s and it will create two files, one with the first 16s and the other with the rest.

    See screenshot:
    Attached Thumbnails Click image for larger version

Name:	mkvmergegui.png
Views:	16
Size:	66.0 KB
ID:	16270  

    Quote Quote  
  5. I have tested it and it creates 182 files not what i suspected.

    [EDIT]

    If I set it to two files it works only mkvmerge doesn't cut at the right time. When I enter 16s the first file is 20 seconds long.
    MKVmerge has a limitation on this from the FAQ:

    mkvmerge can only split right before a key frame. This is an intentional limitation that you cannot get around when you use mkvmerge for splitting.

    A key frame is a frame type that can be decoded and shown independently of any other frames in the file. That's how mkvmerge ensures that the next file starts with a key frame and can be played correctly right from the start. If mkvmerge allowed splitting at arbitrary timecodes, and therefore at any frame type, then the next file would show disrupted images until the next key frame is encountered.

    In general there is a way to split video files at arbitrary frame positions. This requires that all non-key frames after the split point up to but excluding the next key frame will have to be re-encoded so that the next file does start with a key frame.

    However, this requires that the program splitting the video file contains video decoders and encoders for all video formats that it can split. mkvmerge is not such a tool as it does not contain a single decoder or encoder, neither for audio nor for video. That's not its purpose. Therefore mkvmerge will never be able to split before arbitrary frame types.
    Last edited by jslegers73; 14th Feb 2013 at 03:41.
    Quote Quote  
  6. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    It can only cut at keyframes.
    Quote Quote  
  7. It looks like if i want to cut it at 16 sec i have to re-encode it.
    Quote Quote  
  8. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    Or use an editor that just reconverts at the cut. But I don't think you will find anything free for that.
    Quote Quote  
  9. Originally Posted by Baldrick View Post
    Or use an editor that just reconverts at the cut. But I don't think you will find anything free for that.
    What would you recommend?
    Quote Quote  
  10. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date: Aug 2000
    Location: Sweden
    Search Comp PM
    SolveigMM Video Splitter but as solveigmm avi trimmer doesn't work with your mkv it might also not work. But you can always try the trial.
    Quote Quote  



Similar Threads

Search   Contact us   About   Advertise   Forum   RSS Feeds   Statistics   Tools