Quote from: dosdan on January 11, 2024, 11:18:15 AMQuote from: inadream on January 08, 2024, 01:05:22 PMI am now wondering is there a way to convert ALL non-mkv files in a folder to mkv using batch code? Is it a simple alteration to my bat above?
I presume you are only working with a few different filetypes. If so, just specifically list each of the types you wish to convert in the filenameset inside the "(...)".
In the following example, the test folder I drop on to the batchfile icon contains .MKV, .MP4 and .TS media files. To only convert the .MP4 and .TS containers, but not the .MKVs, into MKV containers, change the line containing:for %%F in ("%~1\*.mp4") do (
tofor %%F in ("%~1\*.mp4" "%~1\*.ts") do (
Here, I have mentioned two filetypes in the filenameset, but you could add more, if needed.
Also, it does not matter if some of listed filetypes_to_be_converted do not exist in a folder - it won't produce an error message.
QuoteConverting "I:\TEST\40 The Big Red Thing.mpg" to "I:\TEST\converted\40 The Big Red Thing.mkv"
[matroska @ 06c6ea00] Only audio, video, and subtitles are supported for Matroska.
[out#0/matroska @ 08d34780] Could not write header (incorrect codec parameters ?): Invalid argument
[aost#0:2/copy @ 08b3db80] Error initializing output stream:
Quote from: guju on April 09, 2024, 12:54:22 PMwhat is going wrong here- container .avi