VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. i am currently using mkvtoolnix gui but takes much time to open each video and select the options and add them to queue.

    i want to split videos to equal parts and would be easier to do it with bat file

    i found this command but have some problems. Tried changing some things but didnt work

    @echo off
    set mkvmerge="D:\mkvtoolnix-64-bit-89.0\mkvtoolnix\mkvmerge.exe"
    for %%f in (*.mkv) do %mkvmerge% --output "%%~nf-split.mkv" --split size:700m "%%f"

    1) command splits video with naming it videoname-split-001 . i want to be named videoname-001
    2) also make it possible to drag drop specific videos and start splitting those specific only

    thank you
    Quote Quote  
  2. Member
    Join Date
    Apr 2007
    Location
    Australia
    Search Comp PM
    Try this:
    Output in the 'New\' folder.
    split_mkv01.cmd
    Code:
    if not exist New\ md New
    set mkvmerge="D:\mkvtoolnix-64-bit-89.0\mkvtoolnix\mkvmerge.exe"
    for %%a in ("*.mkv") do %mkvmerge% --output "New\%%~nxa" --split 700M --compression 0:none --compression 1:none "%%a" --track-order 0:0,0:1,0:2
    pause
    Cheers.
    Last edited by pcspeak; 5th Jan 2025 at 00:11.
    Quote Quote  
  3. Member
    Join Date
    Apr 2007
    Location
    Australia
    Search Comp PM
    Drag and drop multiple files. Split_MKV01(DROP).cmd
    Code:
    if not exist New\ md New
    set mkvmerge="D:\mkvtoolnix-64-bit-89.0\mkvtoolnix\mkvmerge.exe"
    
    :process
    %mkvmerge% --output "New\%~nx1" --split 700M --compression 0:none --compression 1:none "%~1" --track-order 0:0,0:1,0:2
    shift
    if not "%~1"=="" goto :process
    pause
    Quote Quote  
  4. Originally Posted by pcspeak View Post
    Try this:
    Output in the 'New\' folder.
    split_mkv01.cmd
    Code:
    if not exist New\ md New
    set mkvmerge="D:\mkvtoolnix-64-bit-89.0\mkvtoolnix\mkvmerge.exe"
    for %%a in ("*.mkv") do %mkvmerge% --output "New\%%~nxa" --split 700M --compression 0:none --compression 1:none "%%a" --track-order 0:0,0:1,0:2
    pause
    Cheers.
    thank you both works
    Last edited by khaled22; 5th Jan 2025 at 17:06.
    Quote Quote  
  5. is it possible to remove the creation of "new" folder on first command and just save the splits into same folder as the source?
    Quote Quote  



Similar Threads

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