OpusMediaInfo : All the MediaInfo data you can ask for!

OpusMediaInfo

All the MediaInfo data you could ever want in Opus!

OpusMediaInfo is a script add-in for Directory Opus that extends the default multimedia columns, letting you access any MediaInfo value directly in Opus. What really sets it apart is its intuitive UI. No more manual edits just to add columns. Simply preview and select the data you need, then choose how it should appear in Opus.

NOTE: Since v6.0, OpusMediaInfo has used its own Go-based helper and MediaInfo.dll.
Versions prior to v6.0 require DOpusScriptingExtensions. Older versions are considered deprecated.

Key Features:

  • Full support for virtually every property exposed by MediaInfo, including unofficial ones.
  • Easy to use. Just open the config dialog with a file, or drop a file into it, select the properties you want to add based on their preview values, and you're good to go.
  • A built-in UI for managing columns: customize their names, headers, types, categories, applicable extensions, and more.
  • Designed for both casual and advanced users: the interface is simple yet powerful enough to define custom rules and formatting.
  • Supports both single-value and multi-stream outputs at runtime, with no need to modify the script manually.
  • Real-time preview of each property's values as they would appear in the file display.
  • Fully customizable infotips, with special entries that display live results.
  • Support for custom columns that can retrieve values from multiple MediaInfo fields in a single column.
  • Easily change data types on the fly.
  • Easy configuration import/export.
  • Very fast data retrieval.
  • Support for localized values.
  • Built-in support for caching values through a SQlite database, based on a configurable file size, with automatic file change detection.
  • Dump MediaInfo data for selected files in various formats.
  • Much more...

editor


Requirements:

  • Windows 10 1803 or higher (required for communication with the helper).
  • Directory Opus 13.25.4 or higher.
  • MediaInfo.dll.
    • It's already included in the installer. You can also obtain it here (choose the 64-bit DLL version without the installer).
    • Alternatively, if you already have it somewhere on your system, you can specify its path in Script Options.
  • If you need localization (for non-English users), place the corresponding .csv language files alongside the DLL or the helper. It's recommended to do this before the database starts being populated.
    • Language files can be installed through the installer.

Installation:

This script comes with its own installer, which you can download here.

The installer will put the helper in place and automatically launch the script installation. Optionally, it can also copy MediaInfo.dll and the language files.

If, for some reason, the installer cannot start the script installation, you can always find the latest .opusscriptinstall package and the helper here.

The first time you install the script, you'll be asked if you want to start configuring columns, assuming MediaInfo.dll is already set up correctly. If it isn't, the script will show you where to download it so you can continue.

welcome

Once you've placed MediaInfo.dll in the appropriate location, you're good to go.

Alternatively, you can open the Script Management window and set the path to your existing DLL under the MediaInfo && DB tab.


Columns Editor

To configure which columns are enabled, open the configuration dialog in one of the following ways:

  • From the Script Management window, click the Configure button.
  • Run the OpusMediaInfo CONFIG command. You can also include the full path to a file you want to preview.

The configuration dialog has two tabs: one for column settings and another for infotips.

When the dialog opens, if no columns are enabled, you'll be asked to select a file so MediaInfo can populate the list with values from its report.

no_cols

Checked properties will be enabled as columns in Opus once you close the dialog.

MediaInfo groups each field into one of the following categories: General, Video, Audio, Text, Menu, Image, and Other. Each property belongs to only one group, and properties with the same name can exist in different groups. Only properties in the "General" group have a single value; properties in other groups can have multiple values, one for each stream in the file.

Use the controls on the right to edit each column's label, header, type, and other settings.

The Multiple control lets you choose whether the column displays the property for every stream in its group or only the first one. If Multiple is set to True, the selected separator will be used to join the values. The list includes a # column showing how many values a given keyword has, which is useful when deciding which properties to use.

The Type control sets the data type of the column's content. Allowed types are: String (text), number (int), double, star (rating), datetime, date, time, duration, and size.

You can change the type and immediately see how it affects the preview below.

Note: When Multiple is set to True, the type is always treated as String, since mixing value types in a single column is not recommended.

The Category control lets you choose where the column appears. By default, columns are added under Script > OpusMediaInfo. You can change this to any category you prefer. This doesn't affect the column's behavior or output.

The Pattern controls let you apply advanced formatting using regular expressions.

By default, the script uses predefined formats to adjust the type of each value, but you can override them with your own.

The first field defines the pattern to match. Use the same format as an ECMAScript regex literal: /pattern/flags.

The second field defines the replacement string. Both follow the format used by JScript's String.replace(pattern, replace), so compatibility depends on that context.

The extensions listed below determine which files the column applies to.

You can add file type groups by entering grp: followed by the group's internal or display name.

You can also list specific extensions (including the dot). Wildcards are not supported.

Whenever you open a file for preview, the script saves the listed properties for later use, so you don't have to remember which file had which properties when adding a new column.

You can export or import columns from this window using the provided buttons.

You can also choose which columns should have their contents blurred when using Directory Opus's Secure Screenshot feature.

For keyboard navigation, the following hotkeys are available when the list has focus:

  • Ctrl+L: Focuses the Label field.
  • Ctrl+H: Focuses the Header field.
  • Ctrl+T: Focuses the Type field.
  • Ctrl+M: Focuses the Multiple field.
  • Ctrl+G: Focuses the Category field.
  • Ctrl+R: Focuses the Pattern field.
  • Ctrl+A: Focuses the Alignment field.

You can also press F3 to move focus to the Filter field.

Press Ctrl+Alt+T to toggle the window's always-on-top status (only when opened via the command).

After you close the dialog, the columns will be added automatically and will be ready to use in Opus wherever they apply.

Note: If the columns are already visible, you may need to refresh the lister to see the changes.


Options Window

You can access the Options dialog from here to configure settings such as the script log level, the separator used for multiple values, and options related to cache usage.

options1

options2

(This dialog is also accessible from the Script Management window by clicking the About button.)


Infotips

infotips

You can create custom infotips for each group and then reference them in Opus using their respective keywords.

Available infotip groups are: General, Audio, Video, Text, Menu, and Image.

To get the keyword you need when building infotips, select it from the list and press Ctrl+C to copy it to the clipboard.

Infotips use a special syntax that works as follows:

{keyword|value if not available|simple format|conversion/format as}

Parts 2, 3, and 4 are optional.

The simple format uses %1 as a placeholder for inserting the keyword's value at the desired position.

If the keyword doesn't exist, or the text isn't enclosed in {}, the text is passed through unchanged.

These values support all markup codes allowed by Opus.

For conversion/format as, you can use the same logic as the Evaluator's As function to convert values to specific types.

For example, {File_Created_Date||Created: %1|date} uses the fourth part to convert the value to the date type, using the local date format.


Custom Columns

You can create custom columns that retrieve values from multiple fields. Select multiple MediaInfo fields and arrange them in the desired order. The script will use the first value it finds as the column's value.

This lets you create a single column that combines multiple sources and adapts to the file type. For example, you could create a column that displays the width of the first video stream for video files and the image width for image files. The possibilities are extensive.

Custom columns have the same customization options as regular columns (type, Multiple, etc.). The only difference is that their values can come from multiple fields rather than a single one.

To create a custom column, click the Custom button in the main UI. This opens a dialog where you can enter the new column's name (keyword), select the fields to retrieve values from, and define their processing order.

custom_column

You can also edit existing custom columns using the Edit... button, which appears only when a custom column is selected.


Database

This script optionally uses an SQLite database for caching. It includes built-in support for storing data extracted by MediaInfo in a database so that subsequent requests can retrieve it quickly and efficiently.

Caching is enabled by default and can be configured in the Options window, accessible from the Column Editor or by clicking the About button in Opus Script Management.

You can also specify the minimum file size for files whose data should be read and stored in the database.

Additionally, you can choose whether caching should be available when Opus is running from a USB export.

You can also define exclusions using wildcards to ignore certain files and prevent them from being added to the database.

The script automatically determines whether a file's data needs to be updated using several metrics, including file size, modification date, and quick hash. This process is transparent to the user.

The script also provides commands for database maintenance and cleanup.


Cleaning the Database

You can clean up the database using several command arguments provided by the script.

If you use PURGEDB with a wildcard (*, ?) or without a value, the script searches for orphaned database entries, depending on the other arguments used. A list of matching files will be displayed, allowing you to choose which entries to delete and which to keep.

purge_select

If you use it along with FILES, you can remove specific entries from the database in a more direct way.

purge_files

You can also include VACUUM to compact the database.


Command Arguments

The command supports the following arguments:

Argument Type Value Description
CONFIG /O Displays the configuration dialog for columns and infotips.
filepath Accepts a file path to populate the column preview immediately after startup.
EXPORT /S Exports columns and infotips to a file.
IMPORT /O Imports columns and infotips from a file without deleting existing entries. If no file is specified, you'll be prompted to choose one.
!IMPORT /O Imports columns and infotips from a file, deleting existing entries. If no file is specified, you'll be prompted to choose one.
DUMP /M/O Saves the MediaInfo report for the specified items to a file. You can pass multiple filenames separated by spaces (use commas if a filename contains spaces). If no files are specified, the command uses the selected items in the source folder.
AS /K Used with DUMP to specify the output format. Valid values are json, xml, txt, csv, and html.
TO /K Used with DUMP to specify the output path.
PURGEDB /O Performs database cleanup, if applicable.
path/wildcard If a text value is specified, it can be the full name of a specific file or a path containing * and ? wildcards. If omitted, all entries for non-existing items are removed (KEEPMISSINGDRIVES can change this behavior).
KEEPMISSINGDRIVES /S Used with PURGEDB without a specified value to keep entries located on unavailable drives, such as external disks.
VACUUM /S Compacts the database. Use together with PURGEDB.
FILES /M Used with PURGEDB to specifically delete files from the database.
NOONTOP /S Used with CONFIG to prevent the window from opening on top (the default).

Importing from a File

The command supports importing columns directly from a valid JSON file encoded in UTF-8 without a BOM, using the following format:

There are two sections: "columns" and "infotips".

Each entry (key) in both sections must have the following properties:

  • "label": Cannot be empty.
  • "header":
  • "align": Must be left, center, or right.
  • "type": Must be string, number, number,signed, size, double, duration, durationh, graph, igraph, percent, datetime, date, or time.
  • "category": Must be music, movie, image, script, size, std, date, or sums.
  • "enabled": Must be 1 or 0.
  • "exts": Cannot be empty; must include at least one . or grp:. Multiple values are separated by ; .
  • "group": Must be General, Audio, Video, Image, Text, Menu, Other, or Custom.
  • "keyword": Cannot be empty (except for infotips).
  • "multi": Must be true or false.
  • "blurrable": Must be true or false.
  • "regex": The regex used for custom formatting.
  • "regex1": The regex flags.
  • "regex2": The replacement value for the regex.
  • "value": Only for infotips and custom columns. Cannot be empty.

Additionally:

  • The key must follow the internal format for columns (group_keyword) or infotips (group_infotip).

For example:

{
    "columns": {
        "Audio_Default": {
            "label": "Audio Default",
            "header": "Default",
            "align": "left",
            "type": "string",
            "category": "script",
            "enabled": 1,
            "exts": "grp:Video",
            "group": "Audio",
            "keyword": "Default",
            "multi": true,
            "blurrable": false,
            "regex": "",
            "regex1": "",
            "regex2": ""
        }
    },
    "infotips": {
        "General_infotip": {
            "label": "General_infotip",
            "header": "General_infotip",
            "align": "left",
            "type": "string",
            "category": "script",
            "enabled": 1,
            "exts": "grp:Music; grp:Movies; grp:Images",
            "group": "General",
            "keyword": "",
            "multi": true,
            "regex": "",
            "regex1": "",
            "regex2": "",
            "value": "{FileSize_String||Size: %1},{OverallBitRate_String|| Bitrate: %1}{Duration_String||, Duration: %1} {File_Created_Date||Created: %1} {Encoded_Date||Encoded: %1} {Released_Date||Released: %1}"
        }
    }
}

Notes

  • The script adds certain values for convenience: Dimensions, ChaptersCount, and ChaptersList.
  • The script includes some common predefined columns with suggested file types. Feel free to edit them, and you can add more entries to the list whenever you drop a file into it.
  • Conformance tags are supported. You can find the total count of all conformance issues in General_ConformanceErrors and General_ConformanceWarnings. This information can be useful for identifying damaged multimedia files or files with other issues.
  • For database caching, the script can automatically detect most file changes and update the stored values using a file-sampling technique that performs micro MD5 checksums. Note that this technique may fail to detect changes in some plain-text files.
  • Columns with duplicate labels will be renamed internally to avoid conflicts.
  • Custom columns cannot be used in other custom columns or infotips.
  • When using OpusMediaInfo PURGEDB, note that checking whether certain paths exist (e.g., slow remote paths) may take longer. During this time, no other operations will be available.
  • When the database is enabled, the script includes and populates two additional columns: Stored (a Boolean property indicating whether the file has data in the database) and Last Saved (the date the file was added to or updated in the database).
  • The database stores paths using the volume GUID instead of the drive letter. This is particularly useful for files on removable or USB drives, which are prone to changing drive letters.

Acknowledgments/Credits

  • This product uses the MediaInfo library, Copyright (c) 2002–2026 MediaArea.net SARL.
  • Main icon adapted from The Mightiest Icons on the Web.
  • The Opus developers, for creating an amazing program that goes far beyond a file manager.

The Go helper uses the following third-party libraries:

  • github.com/goccy/go-json
  • github.com/mattn/go-sqlite3
  • golang.org/x/sys

You can find the latest version and updates here.

22 Likes

Very impressive! :trophy:

2 Likes

v1.0.1 (03/07/2025) :

  • If a column value isn't found, it still respects the data type the column returns (so for a column of type number, it shows 0 instead of leaving it empty).
  • Fixed the text in the welcome dialog. (It shouldn't say preview anymore :grinning_face_with_smiling_eyes:)
2 Likes

You're telling me that MediaInfo has columns of data that aren't in DO? Hard to believe. :slightly_smiling_face:

This post led me to look at your website which of course I was really only familiar with MediaInfo, a long-time favorite of mine especially when video problems arose.

I also see you're involved in saving VHS data, although I'd suspect it goes further than just VHS to all formats. How do they decide what's worth saving? What do they save it on to ensure longevity?

Thanks for all your great work.

I'm very impressed with your script! But I'm not using the beta version yet, so I haven't checked if the script works yet, but if it does, I hope I can see the color space information in the video in Directory Opus
I always opened the media info, looked at the video information one by one, checked it one by one, managed the video, separated the color space, changed the name, and hung the tag and kept it
If it works like that, it will be very convenient for me to organize the video
It's not easy to see information only with the metadata on Windows
Therefore, the color space area, P3D65; Apple Log-HDR; Apple Log-HDR; LUT;
Apple Log - HDR; 422HQ; Rec.2020 - HDR; Rec.709; Sony HLG; Sony S-Log3; Samsung Log - BT.2020; I hope this information comes from Directory Opus as well

Why not try the script to see if it has what you need? You can always uninstall it afterwards.

2 Likes

image
I downloaded the beta version and made sure it worked well

Woah! You're officially a legend. Thank you!

1 Like

FWIW, consider updating to v13.16.8 to fix the issue where a different row appears visually edited when modifying a value in the list, if it had been previously sorted.

v1.5.1 (13/07/2025) :

  • New column in the config window that shows how many values a given keyword has—helpful to decide whether it's worth enabling "Multiple".
  • New "About" dialog. It includes useful info, like the number of columns added, and the script log settings have been moved there for easier access.
  • Added the ability to import/export columns from the configuration window.
  • Better handling when trying to import/export columns via command arguments while the config window is open. This should no longer be allowed.
  • Fixed some quirks when previewing values in the config dialog. Now, all values are reset every time a new file is used, to avoid confusion with metadata from a previous file.
  • Fixed an issue where some values weren't being reset properly.
  • Other minor fixes and improvements.
2 Likes

v1.6.0 (13/08/2025) :

  • When filtering the list, diacritics are now ignored.
  • The script can now detect new releases and notify you (both in the "About" dialog and the Configuration dialog).
  • Updated the "About" dialog.
  • Added support for English(UK) language. (If you'd like to help add support for your language, DM me.)

If you're using this script, you should definitely update to this version.
This release adds a feature that checks for new versions and notifies you (it doesn't download anything), so you can keep the script up to date. Please feel free to contact me for bug reports/suggestions about this.

1 Like

v1.6.1 (14/08/2025) :

  • Improved handling of certain cases (not currently reachable but possible in the future) where checking for updates might encounter an invalid pattern. Additionally, logs have been added for situations when the connection cannot be completed.
1 Like

Hello!
I keep getting this (I have DOpus-Scripting-Extensions installed):

Thank you!

1 Like

To use the latest version (1.6.1), you need to have at least Opus v13.17.6 installed.

Hello and first of all thank you.
I see. I do not use beta versions, so I will wait for the next stable.

Thank you again for this. I look forward to trying the updated version.

Hello again.

I have installed the new stable build of Dopus and finally could try your script. I like it very much, but is it possible to tell it not to make appear some values in folders? For example, I get this for channels and duration:

Thank you!

Oh, I see what you mean.
In hindsight that was a bad call on my part. I think that value should only be shown if the item in question is a "candidate" to have a value there. Thanks for the feedback, fixed in the next release.

BTW, v2.0 includes a bunch of new features, including:

  • Custom keywords (explained below)
  • New supported data types (graphics, percentage, etc.)
  • Faster performance
  • Other fixes

About Custom Keywords: Since this script can show only one value per MediaInfo keyword (even when there are multiple streams), if p.e. I wanted a column that shows the "width" from an image, a video, or an image embedded as a cover inside an audio file, I'd currently have to enable all three columns and then create an Evaluator column to "join" the three values using simple logic. With this new feature, you can create "custom keywords" that pull the value from a given list (in the example: Image:Width, Video:Width, Audio:Width). The user is the one who can build that list, and the value shown will be the first one found in that list.

Anyone still using this script and want to help with testing? Please DM me.

1 Like

the duration shows the folders 00:00

v2.0.0 (05/09/2025) :

  • New: Custom Columns
    • Now you can create custom columns that access multiple MediaInfo fields to get their value. This way you can have, e.g., a single column that shows the width of the first Video stream if the item is a video, or the width of an image if the item is an image.
    • These columns have the same customization options as the others (type, multiple or not, etc). The only difference is that their value can depend on multiple fields instead of just one.
    • To create them, from the main UI press the "Custom" button, which opens a dialog that asks for the name (keyword) of the new column and lets you pick the columns to pull data from (and define the processing order).
  • Added new column types: signed integer, unsigned integer, percentage, graph, inverse graph and duration with hours.
  • Added Dimensions fields for all streams in the "Video" and "Image" groups. (Its value is Height x Width x Bitdepth)
  • General improvements to item processing to obtain values, which speeds up the overall process.
  • Using the same label for columns in the same category is allowed. (they don't get hidden in the columns selection menu)
  • Added support for custom columns when exporting/importing columns.
  • Minor UI improvements (like tooltips, new icons, etc).
  • Other general fixes.
2 Likes