PBCore MediaInfo Output

From
Jump to: navigation, search

The MediaInfo application allows a user to see various types of technical metadata that are embedded in the file or are interpretable from the file’s structure. This metadata can then be stored as a record which provides future users with a great deal of information without having to open or view the file. This information, such as the runtime of a video file, the sample rate of an audio file, or the resolution of a still image file, is formatted to MediaInfo’s various output options. MediaInfo can be downloaded for Windows, Mac, and Linux, here: https://mediaarea.net/en/MediaInfo

PBCore 2.0 MediaInfoReports

MediaInfo can export reports in fields that comply with the PBCore 2.0 data structure standard. PBCore is a metadata schema intended to describe audiovisual material, created with the Public Broadcasting community in mind. PBCore 2.1 is now available. The standard can be reviewed, and issues reported at: https://github.com/WGBH/PBCore_2.1/ The scripting to incorporate the PBCore 2.0 standard into MediaInfo is publicly available on the MediaArea Github: https://github.com/MediaArea/MediaInfoLib/blob/master/Source/MediaInfo/Export/Export_PBCore2.cpp

PBCore formatted MediaInfo reports have the potential to be very helpful to public broadcasters that use the PBCore schema in their databases or other archival documentation. The PBCore formatting allows technical metadata describing the station's audiovisual assets to be created automatically, while still complying with a standard that can be used to provide descriptive, structural, or administrative metadata as well. In this way automatically extracted metadata can be added to records which describe an asset more broadly.

To create a PBCore 2.0 compliant MediaInfo report, run the MediaInfo command with the flag --output=PBCore2

Automating MediaInfo Reports

In a Windows environment, this batch script creates a MediaInfo report as a PBCore 2.0 compliant XML file, named after the input video file, adding the suffix "_MediaInfo" to the file name:

for %%F in ('%1') do (mediainfo --output=PBCore2 %1 > %%~nF_MediaInfo.xml)

In a Mac environment, the same result can be achieved with the following bash script:

for FILE ; do mediainfo --output=PBCore2 "${FILE}" > "${FILE%%.*}_MediaInfo.xml" ; done

To use either of the scripts listed above, simply save the text strings into a .bat file for Windows, or a .sh file for Mac, and call them in the command line with the target media file or files listed after the .bat or .sh file.

Personal tools
MediaWiki Appliance - Powered by TurnKey Linux