Current changes:(V.03b)Fixed again, might work this time hopefully!
(V.03a)Stupid fix for muxing anything other than AVIs, my fault
Fixed a small logging error. Wouldn't have affected anything, but the log is now right if you try to mux an unsupported file.
(V.03)Added MP4 muxing. The script will now also mux subtitles.
(V.02)Added OGM muxing & deleting the original source file to the possible options.
Overview:This script uses MrChriZ's scritping plugin to mux video files in Playing Now into MKV format with MKV Merge.
Please don't assume its ready for primetime/ use on a live library- Its not, so please test on non-critical data first! Again, my coding may not be the best, but I think just about everything works as intended.
Subtitles:These must be in the same folder and have the same name as your source video file.
They are not currently deleted
Available variablesThese are the variables, which should be altered depending on how you want the script to run-
const bool autoupdate=false;
true: The source AVI will be renamed to .avi.bak or deleted (See below), and the new MKV will be inserted into the library (The filename remains the same throughout).
false: You will be prompted as to whether to update the library with each muxed file. Choosing 'No' will produce both an AVI & an MKV with the same name, regardless of whether you have selected to delete or rename files
const bool ogmmux=false;
Determines whether OGMs should be muxed. This requires MKV Merge v2.2.0 or above.
const bool avimux=true;
Determines whether AVIs should be muxed.
const bool deletefiles=true;
WARNING: SEVERE DATA DAMAGE/ LOSS POTENTIAL!!!true: The source file will be deleted if a MKV is muxed. If the file is already MKV or you have selected not to mux this filetype your original file will remain intact.
false: Your original file will be re-named .avi.bak/ .ogm.bak This is the default option, I'd advise only changing it if you are 100% sure things will work out fine
A detailed log file may be found in %temp%\MKVMux_Log.txt (This logs to the scripting plugin console as well, but the detailed log should give times, as well as being persistant)
Download link-
http://www.bvecornwall.co.uk/downloads/mkvmux.txt
Copy & paste into the scripting plugin editor.
-Leezer-