How can I split mkv files?

Discussion in 'Apple TV and Home Theater' started by theSeb, Apr 27, 2011.

  1. theSeb, Apr 27, 2011
    Last edited: Apr 27, 2011

    theSeb macrumors 604

    theSeb

    Joined:
    Aug 10, 2010
    Location:
    Poole, England
    #1
    I have a small problem. I am currently converting all of my dvds and BR discs using makeMkv. I am planning to keep 2 copies of my movie and tv series collections - original quality in mkv for XBMC in the lounge and compressed using handbrake for iPad and AppleTV in the bedroom/kitchen whatever.

    I have a small and niggly problem though. I like seeing all of the info about each episode in XBMC, but for some strange reason the last season of My Name Is Earl combines some episodes (2 of them) into one track so makeMKV pulls this out as one file. So episodes 1 and 2 are one file, episodes 3 and 4 are one file. I've looked at TVDb and I cannot imagine that XBMC will be able to index these properly and it will be annoying if I specifically want to watch episode 2.

    Is there any way to split the mkv file into 2 files in the middle of the running time? If not mkv files, can I split m4v files? :)
     
  2. roidy, Apr 27, 2011
    Last edited: Apr 27, 2011

    roidy macrumors 6502a

    Joined:
    Dec 30, 2008
    Location:
    Nottingham, UK
    #2
    MKVToolnix can split mkv files by chapter or by time. Take a look at this thread from the MakeMKV forum:-

    http://www.makemkv.com/forum2/viewtopic.php?f=1&t=690&p=3275&hilit=chapter+split#p3275

    Most mkv's that contain 2 or more episodes will have a chapter marker where the first episode ends and the second begins.

    I prefer to do it from the command line, heres a quick example command line to split a file:-

    Code:
    mkvmerge -o "outputfile.mkv" --split "timecodes:00:20:00.00" "inputfile.mkv"
    This will open "inputfile.mkv" and split it into 2 files named "outputfile-01.mkv" and "outputfile-02.mkv" with the split occurring at 20 minutes. The time code format is HH:MM:SS.milliseconds.

    Timecodes can also be seperated by a comma to split the file into more parts eg:-

    Code:
    --split "timecodes:00:10:00.00,00:20:00.00"
    Would split the file into 3 pieces occurring at 10 minutes and 20 minutes.
     
  3. theSeb thread starter macrumors 604

    theSeb

    Joined:
    Aug 10, 2010
    Location:
    Poole, England
    #3
    Thanks for that mate.
     

Share This Page