MediaInfo

Access all metadata about a media files in PowerShell

This product uses MediaInfo library, Copyright (c) 2002-2015 MediaArea.net SARL

Media information for images and video files can be extracted from each file using Windows PowerShell and the medainfo dll.

Download

I have included the 64bit MediaInfo.dll in the zip which must be in the same directory as VISE_MediaInfo.dll. If running 32bit PowerShell, you must get the 32bit version of MediaInfo.dll from https://mediaarea.net/download/binary/libmediainfo0/0.7.88/MediaInfo_DLL_0.7.88_Windows_i386_WithoutInstaller.7z


add-type -path 'C:\Users\username\Documents\WindowsPowerShell\vise_mediainfo.dll'
$MediaInfo = New-Object VISE_MediaInfo.MediaInfo
#Display all codec info about this PC
$MediaInfo.Option("Info_Codecs")
#Display information avout a specific file
$MediaInfo.Open('C:\Users\username\Videos\capture0000.mov)
$MediaInfo.Inform()

Example output:

PS C:\Windows\SysWOW64\WindowsPowerShell\v1.0> $MediaInfo.Inform()
 General
 Complete name : f:\Capture0000.mov
 Format : QuickTime
 Format/Info : Original Apple specifications
 File size : 300 MiB
 Duration : 29 s 800 ms
 Overall bit rate mode : Constant
 Overall bit rate : 84.5 Mb/s
 Encoded date : UTC 2016-07-26 19:13:23
 Tagged date : UTC 2016-07-26 19:13:23
 Writing library : Apple QuickTime

Video
 ID : 1
 Format : ProRes
 Format version : Version 0
 Format profile : 422 LT
 Codec ID : apcs
 Duration : 29 s 800 ms
 Bit rate mode : Constant
 Bit rate : 84.4 Mb/s
 Width : 1 280 pixels
 Clean aperture width : 1 248 pixels
 Height : 720 pixels
 Clean aperture height : 702 pixels
 Display aspect ratio : 16:9
 Clean aperture display aspect ratio : 16:9
 Frame rate mode : Constant
 Frame rate : 50.000 FPS
 Color space : YUV
 Chroma subsampling : 4:2:2
 Scan type : Progressive
 Bits/(Pixel*Frame) : 1.833
 Stream size : 300 MiB (100%)
 Writing library : bmd1
 Language : English
 Encoded date : UTC 2016-07-26 19:13:23
 Tagged date : UTC 2016-07-26 19:13:23
 Color primaries : BT.709
 Transfer characteristics : BT.709
 Matrix coefficients : BT.709
 matrix_coefficients_Original : BT.709
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s