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
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 5 of 5
			
		- 
	
- 
	Try this: 
 Output in the 'New\' folder.
 split_mkv01.cmdCheers.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 pauseLast edited by pcspeak; 5th Jan 2025 at 00:11. 
- 
	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 
- 
	
- 
	is it possible to remove the creation of "new" folder on first command and just save the splits into same folder as the source? 
Similar Threads
- 
  Easy way to use mkvtoolnix as batch helpBy xonathan in forum Newbie / General discussionsReplies: 3Last Post: 31st Aug 2023, 23:36
- 
  MKVToolNix Batch convert?By vega69-ux in forum User guidesReplies: 4Last Post: 28th Aug 2022, 10:03
- 
  questions about cutting .mkv videos with ffmpeg and mkvtoolnixBy aaajan in forum EditingReplies: 5Last Post: 29th Mar 2021, 05:48
- 
  Batch edit with MKVToolnix not working?By Greatestguru in forum Video ConversionReplies: 1Last Post: 4th Sep 2020, 04:42
- 
  [MKVToolnix] Cutting and rejoining videos with audio causes a discrepancyBy Compositor in forum EditingReplies: 5Last Post: 22nd Mar 2020, 09:50


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			
 Quote
 Quote
