MediaInfo Inspector

All about user-defined episode / movie format expressions
Locked
User avatar
rednoah
The Source
Posts: 20177
Joined: 16 Nov 2011, 08:59

MediaInfo Inspector

Post by rednoah »

FileBot uses MediaInfo Image to read properties like {vc}, {ac}, {channels}, {resolution}, etc from the container file. You can access any MediaInfo property directly via the {general}, {video}, {audio} and {text} bindings.


e.g. get Title property from the general media properties:

Code: Select all

{ media.Title }

e.g. get Recorded_Date property from the general media properties and match the YYYY pattern:

Code: Select all

{ media.RecordedDate.match(/[0-9]{4}/) }

e.g. get the Format_Profile property from the first video stream:

Code: Select all

{ video[0].FormatProfile }

e.g. get the DisplayAspectRatio/String property from the first video stream:

Code: Select all

{ video[0].DisplayAspectRatioString }

Image
:idea: Open FileBot ➔ Image Edit Format ➔ Image Change Sample ➔ Image Open MediaInfo


:idea: Use the mediainfo script to export raw MediaInfo properties for all your files:

Code: Select all

filebot -script fn:mediainfo /path/to/files

:idea: Use -mediainfo --format to test custom bindings on all your files:

Code: Select all

filebot -mediainfo -r /path/to/files --format "{vc} | {ac} | {channels} | {resolution} | {duration} | {f}"

If you have issues with MediaInfo bindings such as {vc}, {ac}, {channels}, {resolution}, {duration}, etc, check the raw MediaInfo data to see what FileBot sees.
:idea: Please read the FAQ and How to Request Help.
Locked