Getting information from video (Mediainfo)

  1. Select media files
  2. Click the Mediainfo button
  3. Profiles with different templates for Mediainfo
  4. Mediainfo template
  5. A description of the variables for the Mediainfo template

image-1614680751354.jpg

In addition to the template variables enclosed in curly brackets {variable_name}, square brackets [group1~group2] are used. Where the ~ symbol divides the text inside into groups. The first group (searching from left to right), where the variables inside have a nonempty value, will be inserted instead of all the content enclosed in square brackets. This allows for variability in the formation of video information, because sometimes one type of information is specified for one type of video, and for another type, there is no information, but there is other information in other variables. If all variables inside square brackets are empty, everything in square brackets will be ignored.

Here is an example of getting information from the pattern in the top screenshot:

image-1614680959525.jpg

A complete list of variables to be used in the template:

If there are multiple audio tracks in a video file, the audio information line in the template will be automatically multiplied to output information about each audio track