Edit an mkv file

Discussion in 'Other video questions' started by vtowner, Aug 8, 2007.

  1. vtowner

    vtowner Regular member

    Joined:
    Feb 9, 2007
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    26
    Alright, I'm tryin to cut off the end credits of an HD .mkv file to get a little smaller size so i can store it on a DVD+R.

    I demuxed the mkv into a raw h264 video and an ac3 audio. Then i'm pretty sure the program i used was mp4box to change the raw h264 into the avi container. Now i have an avi file that is just video, and an ac3 audio file. I've tried to mux them back together with Nandub, YAMB, etc. But none of them seem to accept the avi file.

    If anyone has an easy way to cut an .mkv i would really appreciate it. Cheers.
     
  2. celtic_d

    celtic_d Regular member

    Joined:
    Jan 23, 2005
    Messages:
    3,352
    Likes Received:
    0
    Trophy Points:
    46
    If you used mp4box then you have an mp4, not an avi. YAMB should accept it just fine since it uses mp4box. It won't like the AC3 audio though, you would need to convert to aac.
     
  3. vtowner

    vtowner Regular member

    Joined:
    Feb 9, 2007
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    26
    I saw on Doom9 that you can use MP4Box to change the raw h264 file to avi. And it has an extension of .avi, so i'm pretty sure that it's an avi unless i really screwed something up.

    Do you know what the command line syntax is cuz i can't remember. I thought it was "mp4box.exe -i input.h264 -o output.mp4" but it isn't.

    The first time i ran mp4box i had the output extension as .avi but i want to redo it so i have .mp4. I'd really appreciate the help.
     
  4. menaceuk

    menaceuk Member

    Joined:
    Jan 23, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    11
    What program did you use to get a raw h264 file??

     
  5. vtowner

    vtowner Regular member

    Joined:
    Feb 9, 2007
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    26
    I used MKVExtract.
     
  6. shiroh

    shiroh Guest

    you're doing it wrong.
    mkvtoolnix.
    in mkvmerge theres an option to split the files. check the time of the credits and cut it. just keep the first file.

    less step means less chance of you screwing up. heck its only 1 step. :D
     
  7. vtowner

    vtowner Regular member

    Joined:
    Feb 9, 2007
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    26
    Shiroh, it worked. Thanks man.
     
  8. youngfa1

    youngfa1 Member

    Joined:
    Sep 7, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    11
    Hi Shiroh,

    I have the same requirement but I don't quite follow.

    "in mkvmerge theres an option to split the files", this will only create a mkv file.

    Also, Vtowner, can you tell me what you done to make it work.

    Thanks a lot for both.
     
  9. youngfa1

    youngfa1 Member

    Joined:
    Sep 7, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    11
    Hi Shiroh,

    I have the same requirement but I don't quite follow.

    "in mkvmerge theres an option to split the files", this will only create a mkv file.

    Also, Vtowner, can you tell me what you done to make it work.

    Thanks a lot for both.
     
  10. vtowner

    vtowner Regular member

    Joined:
    Feb 9, 2007
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    26
    All you have to do is click the add button in the input tab and select your file. Then go to the Global tab and click Enable Splitting and select '...after this duration'. You will have to figure out what time you want to split it at and put it in the format of HH:MM:SS. Then click Start Muxing.
     
  11. youngfa1

    youngfa1 Member

    Joined:
    Sep 7, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    11
    Thanks Vtowner, I know how to split the file but I don't know how you remux h296 into an AVI container.

    Can you tell me what you did?

    Thank you.
     

Share This Page