All Projects → stax76 → Get-MediaInfo

stax76 / Get-MediaInfo

Licence: other
Get-MediaInfo is a PowerShell MediaInfo solution

Programming Languages

powershell
5483 projects
C#
18002 projects

Projects that are alternatives of or similar to Get-MediaInfo

px
ps and top for human beings
Stars: ✭ 151 (+202%)
Mutual labels:  console
Differential
一个可以自动生成PTGen,MediaInfo/BDInfo,截图,并且生成发布所需内容的快速发种工具
Stars: ✭ 91 (+82%)
Mutual labels:  mediainfo
console-subscriber
Subscribe to the browser's console output.
Stars: ✭ 14 (-72%)
Mutual labels:  console
console
a debugger for async rust!
Stars: ✭ 2,101 (+4102%)
Mutual labels:  console
rvw developers core
SFCC Developers Core Cartridge. A Salesforce Commerce Cloud (Demandware) Cartridge for Developers.
Stars: ✭ 43 (-14%)
Mutual labels:  console
fpga-virtual-console
VT220-compatible console on Cyclone IV EP4CE55F23I7
Stars: ✭ 33 (-34%)
Mutual labels:  console
x-terminal
An xterm based Atom plugin for providing terminals inside your Atom workspace.
Stars: ✭ 34 (-32%)
Mutual labels:  console
spinnies
Node.js module to create and manage multiple spinners in command-line interface programs
Stars: ✭ 111 (+122%)
Mutual labels:  console
xplr
A hackable, minimal, fast TUI file explorer
Stars: ✭ 2,271 (+4442%)
Mutual labels:  console
wt-console
A lightweight, extendable react-native developer and tester tool
Stars: ✭ 31 (-38%)
Mutual labels:  console
stylish-log
🎉 Stylish-log "A beautiful way to see your web console logs"
Stars: ✭ 12 (-76%)
Mutual labels:  console
tput.cr
Low-level component for building term/console applications in Crystal
Stars: ✭ 22 (-56%)
Mutual labels:  console
pytermgui
Python TUI framework with mouse support, modular widget system, customizable and rapid terminal markup language and more!
Stars: ✭ 1,270 (+2440%)
Mutual labels:  console
laravel-console-spinner
Customized loading ⌛ spinner for Laravel Artisan Console.
Stars: ✭ 70 (+40%)
Mutual labels:  console
tinker-zero
Bridge laravel/tinker for your laravel-zero applications
Stars: ✭ 39 (-22%)
Mutual labels:  console
log-utils
Basic logging utils: colors, symbols and timestamp.
Stars: ✭ 24 (-52%)
Mutual labels:  console
alerta-webui
Alerta Web UI 7.0
Stars: ✭ 84 (+68%)
Mutual labels:  console
shiba
Display a random Shiba from your terminal whenever you feel the need to. Because why not?
Stars: ✭ 16 (-68%)
Mutual labels:  console
django-admin-shell
Django/Python shell for django admin site.
Stars: ✭ 62 (+24%)
Mutual labels:  console
ansicolor
A JavaScript ANSI color/style management. ANSI parsing. ANSI to CSS. Small, clean, no dependencies.
Stars: ✭ 91 (+82%)
Mutual labels:  console

Get-MediaInfo

Get-MediaInfo is a PowerShell MediaInfo solution.

It consists of three functions:

-

-

Installation

Installation or download via PowerShellGet:

https://www.powershellgallery.com/packages/Get-MediaInfo

Get-MediaInfo

Converts media file objects into MediaInfo objects.

NAME
    Get-MediaInfo

SYNTAX
    Get-MediaInfo [[-Path] <string[]>] [-Video] [-Audio]  [<CommonParameters>]

ALIASES
    gmi

Description

Converts media file objects into MediaInfo objects.

Examples

Displays media files of the defined folder using a grid view.

Get-ChildItem 'D:\Samples' | Get-MediaInfo | Out-GridView

Same as above but using the current folder and aliases.

gci | gmi | ogv

Find duplicates by comparing the duration.

gci | gmi | select filename, duration, filesize | group duration | where { $_.count -gt 1 } | select -expand group | format-list

Parameters

-Path

String array with audio or video files or FileInfo objects via pipeline.

-Video

Only video files will be processed.

-Audio

Only audio files will be processed.

Input

String array with audio or video files as Path parameter or FileInfo objects via pipeline.

Output

MediaInfo objects.

Get-MediaInfoValue

Returns specific properties from media files.

NAME
    Get-MediaInfoValue

SYNTAX
    Get-MediaInfoValue
        [-Path] <string>
        [-Kind] {General | Video | Audio | Text | Image | Menu}
        [[-Index] <int>]
        [-Parameter] <string>
        [<CommonParameters>]

ALIASES
    gmiv

Description

Returns specific properties from media files.

Examples

Get the artist from a MP3 file.

Get-MediaInfoValue '.\Meg Myers - Desire (Hucci Remix).mp3' -Kind General -Parameter Performer

Meg Myers

Get the channel count in a MP3 file. Return types are always strings and if necessary must be cast to integer.

'.\Meg Myers - Desire (Hucci Remix).mp3' | Get-MediaInfoValue -Kind Audio -Parameter 'Channel(s)'

2

Get the language of the second audio stream in a movie.

The Index parameter is zero based.

Get-MediaInfoValue '.\The Warriors.mkv' -Kind Audio -Index 1 -Parameter 'Language/String'

English

Get the count of subtitle streams in a movie.

Get-MediaInfoValue '.\The Warriors.mkv' -Kind General -Parameter 'TextCount'

2

Parameters

-Path

Path to a media file.

-Kind General | Video | Audio | Text | Image | Menu

A MediaInfo kind.

Kinds and their properties can be seen with MediaInfo.NET.

-Index

Zero based stream number.

-Parameter

Name of the property to get.

The property names can be seen with MediaInfo.NET with following setting enabled:

Show parameter names as they are used in the MediaInfo API

They can also be seen with Get-MediaInfoSummary with the -Raw flag enabled.

Input

Input can be defined with the Path parameter, pipe input supports a path as string or a FileInfo object.

Output

Output will always be of type string and must be cast to other types like integer if necessary.

Using the .NET class directly for highest performance

To retrieve specific properties with highest possible performance the .NET class must be used directly:

$mi = New-Object MediaInfo -ArgumentList $Path
$value1 = $mi.GetInfo($Kind, $Index, $Parameter)
$value2 = $mi.GetInfo($Kind, $Index, $Parameter)
$mi.Dispose()

Get-MediaInfoSummary

Shows a summary in text format for a media file.

NAME
    Get-MediaInfoSummary

SYNTAX
    Get-MediaInfoSummary [-Path] <string> [-Full] [-Raw]  [<CommonParameters>]

ALIASES
    gmis

Description

Shows a summary in text format for a media file.

Examples

 Get-MediaInfoSummary 'D:\Samples\Downton Abbey.mkv'

Parameters

-Path

Path to a media file. Can also be passed via pipeline.

-Full

Show a extended summary.

-Raw

Show not the friendly parameter names but rather the names as they are used in the MediaInfo API.

Parameter names passed to Get-MediaInfoValue -Parameter must use the raw parameter name.

Input

Path as string to a media file. Can also be passed via pipeline.

Output

A summary line by line as string array.

Related apps

Find a list of related apps:

https://stax76.github.io/frankskare

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].