Batch convert MKV to MP4

Discussion in 'Mac Applications and Mac App Store' started by bmorris, Jan 17, 2011.

  1. macrumors 6502

    bmorris

    Joined:
    Nov 8, 2007
    Location:
    ATL
    #1
    Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7)

    I wanted to easily batch convert some Mkv files, about 150, to Apple TV mp4's. I love the Handbrake preset but I can only add one file at a time to the batch list. And unfortunately Compressor doesn't accept mkv's. Is there an easier solution?
     
  2. Dalton63841, Jan 17, 2011
    Last edited: Jan 18, 2011

    macrumors 65816

    Dalton63841

    Joined:
    Nov 27, 2010
    Location:
    SEMO, USA
    #2
    HandbrakeCLI is your friend here. I will post my script for you. It is so easy it is sick.

    EDIT: Okay here it is. Unzip, and put the file called convert into the folder with the mkv's. Then open terminal and type:

    Code:
    cd /path/to/mkv's
    convert
    It will convert every file one after another. After a successful conversion it will rename the originals with a .delete suffix. Also after each conversion it will printout how far along it is with converting them all.

    EDIT: You need to have HandbrakeCLI installed to /usr/bin/ to use this script. Otherwise, open the script in a text editor and edit the path to handbrake variable at the top of the script. It is easy to see.
     

    Attached Files:

  3. macrumors 68040

    Mackilroy

    Joined:
    Jun 29, 2006
    #3
    The new version of HandBrake supports adding multiple files at a time.
     
  4. macrumors regular

    Joined:
    Jul 28, 2010
    #4
    if this is for an appletv2, you likely don't even have to re-encode. You can use something like mkvtools to batch convert mkv to apple tv friendly mp4's. Some people report issues but I haven't run into any 720p rips that haven't been playable on the appletv2, and it only takes a few minutes to repackage rather than several hour re-encode. You'll need to purchase mkvtools to get access to the batch function, but I think it's only $5. There's a trial version that you can grab to try out.
     
  5. macrumors 6502a

    reel2reel

    Joined:
    Jul 24, 2009
    #5
    Really...How?
     
  6. macrumors 6502a

    Joined:
    Oct 27, 2012
    #6
    Is MKVTools the correct program or is it MP4Tools since the end result desired are MP4 files?
     
  7. macrumors newbie

    Joined:
    Dec 17, 2014
    #7
    Click source.
    Click the folder with all your files in it.
    choose that folder as your source.
    then go up to "file" and click "add all titles to queue"

    it will ask you if you are sure click yes and bam you got it sir!
     
  8. Partron22, Dec 17, 2014
    Last edited: Dec 17, 2014

    macrumors 65816

    Partron22

    Joined:
    Apr 13, 2011
    Location:
    Yes
    #8
    del
     
  9. macrumors newbie

    Joined:
    May 11, 2015
    #9
    Good thought but buggy. I tried it with 4 x mkv files in a folder.
    Yes, it loaded them all, but
    • audio passthrough didn't work (ignored passthru instruction)
    • subtitles didn't work.

    Might be OK for simple conversions when they really are required, but I still don't like the idea of re-encoding a video that really doesn't require re-encoding (with the inevitable loss of quality).

    We need a tool that will simply put the files from one container into the other, subs and all, with an option to convert ac3 audio to aac.
     
  10. vsvdesigner, Aug 1, 2015 at 9:58 PM
    Last edited: Aug 1, 2015 at 10:06 PM

    macrumors newbie

    vsvdesigner

    Joined:
    Yesterday
    Location:
    Spokane
    #10
    Use Playback. It does it without re-encoding and you can batch.
     

Share This Page