VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Hi Guys,

    I've read as much as I could find on MKVMerge command line, but I'm really struggling as a newb...

    My goal is to convert a large number of Itunes (DRM Free) M4V files to MKV files, maintaining the same audio/video contents.

    I've seen this command thrown around, and I imagine I could simply edit is, as I did below... However, I'm not sure how to use it:

    FOR %I IN (*.avi) DO mkvmerge -o %I.mkv %I

    to

    FOR %I IN (*.m4v) DO mkvmerge -o %I.mkv %I

    Do I simply put it in a batch file, in the same directory as the videos?

    Do I put it in the MKVToolNix directory?

    Do I need to include the program/input/output paths?

    Nothing I've tried seems to work.

    Any help would be really appreciated!

    The file names have spaces in them, if it matters...
    Thanks
    Last edited by newoski; 30th Nov 2013 at 19:00.
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Check my ffmpeg batch tutorial. Instead of ffmpeg use mkvmerge, https://www.videohelp.com/guides/how-to-batch-convert-multiplex-with-ffmpeg-id1272#1272

    edit: Or you can also try use ffmpeg instead of mkvmerge...just use -vcodec copy -acodec copy
    Quote Quote  
  3. Member
    Join Date
    Dec 2013
    Location
    NY FN30LS
    Search PM
    I delved into this question and came up with this answer. It involves using a quickbasic compiler called QB64 (google it)
    to create batch files. You can modify it to your preferred content. Not complicated. Please download the QB64 GL version it's
    self contained, does not require the .dll's to be included in the execution directory. It's found in the forum on QB64 site.
    The chapters file will give 4 minute spread hard chapters (99 of them). Very playable with VLC. Or don't use it. The
    downside to the chapters.txt file you have 99 chapters for 6 hours 32 minutes. Even if your video is only 32 minutes long.
    It works (ugly), but it works.

    The main good part about this process. The original files are not touched. MKVMERGE copies the file into a new container.
    IMPORTANT: Must be in different directories (input) (output). Or your mileage will not vary

    The qb64 program: Called "mkvchaps" attached as RAR
    Chapters file: Called "chapters" attached as RAR.

    What needs to be in the execution directory: I call it MP4BOXCHAPS

    CHAPTERS.TXT
    js32.dll
    libeay32.dll
    libgpac.dll
    MediaInfo.dll
    mkvchaps.exe
    mkvmerge.exe
    MP4Box.exe
    msvcr100.dll
    ssleay32.dll

    Some of these programs and dll's can be found in MP4BOX gui and MKVTOOL's. You only need to compile the
    QB64 program with your options and directories. And include it in the directory. All attachments are text files
    no EXE's are present (virus safe).

    The chapters.txt file can be modified to different minute spans. It's only text.

    Ron
    Image Attached Files
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!