Hi! I'm trying to swap track position on multiple files at once, I've tried this script:
for %%a in ("*.mkv") do mkvpropedit "%%a" ^
--track-order 0:0,0:2,0:1,0:3,0:4
Which should swap track 2 position with track 1 on all MKV files in the same folder, I say should but actually it doesn't - I am missing something?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 7 of 7
Thread
-
-
Tried but didn't work... what's the command to not auto-close the command prompt window so I can read what it says? maybe there's some an error it identifies
-
Edit: Okay I found a semi-working script:
for %%y in (*.mp4) do mkvmerge -o "%%~dpny.mkv" "%%~fy" --track-order 0:0,0:2,0:1,0:3,0:4
pause
However for this to work I have to rename all .mkv files to .mp4 because if I specify to process the .mkv files I get an error (since the output would overwrite the input files and the script won't let me do that)
[Attachment 67776 - Click to enlarge]
"Error: The name of the destination file "<path>" and of one of the source files is the same. This would case mkvmerge to overwrite one of your source files."
Is there a way to have to output files slightly renamed so it doesn't cause an overwrite error?Last edited by RandomNewbe; 23rd Nov 2022 at 07:58.
-
Similar Threads
-
Mkvmerge, batch to mkvmerge add multiple audio tracks
By SrBills in forum Newbie / General discussionsReplies: 5Last Post: 15th Mar 2024, 11:03 -
How to Swap Video Stream using ffmpeg / mkvmerge?
By Stimboi in forum Newbie / General discussionsReplies: 0Last Post: 13th Jan 2022, 00:13 -
Mediainfo track ID different than ffprobe and mkvmerge
By syrist in forum Video ConversionReplies: 4Last Post: 3rd Jun 2020, 17:31 -
TTML/CC to ass with positions?
By Hakunamatata67 in forum SubtitleReplies: 2Last Post: 25th May 2019, 02:36 -
Captured VHS Video Audio Track Swap, Best Method?
By dellsam34 in forum EditingReplies: 12Last Post: 4th Feb 2018, 02:18