I have folder structure like this
i want to mux mp4 to mkv and remove the mp4 file after that. i got a sample batch script but it require to place it inside the folder where the file is located.Code:C:\TV\1\file.mp4 C:\TV\2\file.mp4 C:\TV\3\file.mp4
i am not sure how can i add command by which batch script will read all the subfolder files. any help please?Code:FOR %%A IN (*.mp4) DO "C:\Program Files\MKVToolNix\mkvmerge.exe" -o "%%~nA.mkv" "%%~A"
+ Reply to Thread
Results 1 to 5 of 5
-
-
Code:
FOR /R %%A IN (*.mp4) DO "C:\Program Files\MKVToolNix\mkvmerge.exe" -o "%%~dpnA.mkv" "%%~dpnxA"
-
I would like to do the same but NOT remove the mp4 file?
SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 11 Professional, QNAP NAS TS851 -
Neither of the above batch files deletes the source video. If you wanted to delete the source videos you would have add a second command:
Code:FOR /R %%A IN (*.mp4) DO ( "G:\Program Files\MKVToolNix\mkvmerge.exe" -o "%%~dpnA.mkv" "%%~dpnxA" del "%%~dpnxA" )
Similar Threads
-
[FFMPEG BATCH SCRIPT] Remux MP4 to MKV removing all details data!
By Cauptain in forum Video ConversionReplies: 3Last Post: 12th Aug 2021, 03:38 -
Looking for Batch MP4 Normalization Script of existing script
By VideoFanatic in forum Video ConversionReplies: 6Last Post: 31st Jul 2021, 19:50 -
Mux audio and Video in Mkvmerge using Batch File
By Daringbaaz in forum Newbie / General discussionsReplies: 2Last Post: 18th Oct 2019, 04:30 -
How can i edit this script to batch mux chapters with MkvToolsNix
By Red_Rain77 in forum Newbie / General discussionsReplies: 0Last Post: 25th Aug 2019, 20:20 -
MKVMerge batch file keeps old extension, only appends .mkv
By NDMMackay in forum EditingReplies: 2Last Post: 8th Jan 2018, 06:06