Is there anyone still interested in this tool? I'm only asking because I made some improvements to it, like multiple audio / video tracks support for all fields and some bugfixing.
I've done this for my private use but maybe someone would still benefit from this. Actually releasing it is another matter though, as it is largely undocumented and untested: I've used this for thousands of my video files - but all similarly encoded.
all of the fields now support multiple audio and video tracks (largely untested but should be easy to fix in case of problems)
as a consequence, rescan of all media files is required, as the previous version only stored information about the first audio and video track; as a side note, I don't know why the original author didn't just store the MediaInfo output in full and went the route of partially parsing it; for now, the new version is still storing the parsed output but parsing has been changed
fixed / rewritten completely the logic of ME Duration (Combined) to properly detect duration differences between all of the tracks; it was necessary anyway for multiple tracks support but it was previously broken and not always reporting problems properly
changed the way of invoking MediaInfo CLI, as the previous one had problems with unicode characters; somehow, whenever certain characters (like ellipsis) occurred in the MediaInfo CLI output, there was an audible 'beep'; the new method might be slightly slower but the beeps are no more; the problem stems from MediaInfo CLI always dumping everything to stdout - even when asking for a file output, which cannot be disabled without recompiling it
speedup: for some reason DOpus is calling the column handler multiple times for the same columns, especially when nothing is returned; filling the queried columns' values with '' seems to alleviate that at least partially
speedup: while any file can be scanned by the MExt Update Metadata button, unsupported file extensions are skipped during columns generation - this is somewhat faster and also disk access is lessened (for example, I usually have subtitles as separate files alongside the videos and scanning these is pointless); the list of supported extensions is given verbatim inside CuMediaExtenders.js:2905 variable supported_extensions, so can be modified easily in case I missed some filetypes (all extensions must be in uppercase and starting with a dot)
it is a common problem with mkv/mka files that some of them are missing the 'track statistics' tag - ffmpeg / HandBrake are notorious for doing that and this results in bitrates being missing from MediaInfo analysis; the proper way of solving this is by using mkvpropedit.exe with --add-track-statistic-tags on all the mkv / mka files; as a convenience I've added a function that will do that for every mkv/mka file during the metadata updates while also preserving the original modtimes - for it to work one must uncomment the call to MKVPropEdit function in CuMediaExtenders.js:3962 and also set a correct path to mkvpropedit.exe inside a string in line CuMediaExtenders.js:5058. It is needed only once per file and will also slow down the scanning process, so it is recommended to leave the call commented out when not needed
I'm attaching the CuMediaExtenders.osp file, which is just a renamed .zip. The only file changed by me (inside it) is CuMediaExtenders.js.
I'll try to correct any bugs I've undoubtedly introduced but it seems something is off with this forum as I didn't receive the notification of someone answering in this thread, so expect some delays; sorry for that.
Due to how I was treated here (as a paying customer) I am leaving this forum indefinitely (along with DOpus as soon as I find a replacement) so if anyone wants to contact me / in case of any bugs - please write directly to ms-dopus >at< msys.info instead.
As Leo said, you unpack the osp and repack itYou can also put a file with the name CuMediaExtenders.json in script directory (type /dopusdata/Script Addins in location to go there). This is the one I'm using personally (see also the script settings UI - click the underlined script name - last section):
Hello there, since i upgraded to Windows 11 24H2, i'm getting this error with the tool, anyway to fix this please ? Thanks a lot ! just noticed that there is an update, i'll try it !
17/10/2024 08:51 CuMediaExtenders.js: initialization started
17/10/2024 08:51 CuMediaExtenders.js: Checking external config file under: undefinedundefined
17/10/2024 08:51 CuMediaExtenders.js: ...not found, skipping
17/10/2024 08:51 CuMediaExtenders.js: Error on line 803, position 38
17/10/2024 08:51 CuMediaExtenders.js: temp_files_dir does not exist (0x800a139e)
String.prototype.removecommentline = function () {
return this.replace(/^\s*\/\/.*$/mg, '');
};
JSON.stringify(JSON.parse(lookup_resolutions.removecommentline())); // test parseability on script load, do not remove
config.addString('ref_lookup_resolutions', lookup_resolutions.normalizeLeadingWhiteSpace(), 'REF_LOOKUP_RESOLUTIONS');
config.addPOJO('lookup_resolutions', JSON.parse(lookup_resolutions.removecommentline()), 'LOOKUP_RESOLUTIONS');