Media Info Action Plugin



This action plugin retrieves media information about a video or audio file using the popular mediainfo application.

Saved Parameters Description

Inputs Description

The list of inputs depends on the configuration of the MediaInfo action template.

Outputs Description

Note: For each of those hash fields, if several values are provided by mediainfo for the same field, an array is returned instead. This is the case if the -f option is used.

For example, in default mode in the Video hash, a pair 'Bit rate'=>'638 Kbps' whereas in full mode (-f), the pair is 'Bit rate'=>['637520','638 Kbps']

Supported Actions

None

Dependencies

None

Operating Instructions

This action executes the specified file analysis operation on a remote node where MediaInfo is available.

The connection to the remote server is done over SSH, so please make sure that the target server has SSH enabled to it. If the server is a Windows machine, OpenSSH can be installed. Aspera PointToPoint or Enterprise Server will provided SSH with it.

It is typically a good idea to provide the explicit path to the mediainfo binary to avoid configuration issues. On a Unix machine, running which mediainfo should provide the path information.

Important:

1. This action plugins does not do any file movement. Hence, for it to run a file analysis, the specified file has to be accessible. Either the file is transferred to that server or it must be accessible from that server either on some type of network share.

2. MediaInfo does not explicitly fail when the file is not found. The plugin provides empty information for General, Video, Image. So during development or testing, when you encounter this scenario please check the file path (relative to the remote node) and also the permissions to the file.

Use on a Windows Node:

When the execution node is Windows, a couple of considerations need to be taken into account during the configuration:

1/ the mediainfo CLI needs to be installed. It can be downloaded separately from either of the following:
http://mediaarea.net/download/binary/mediainfo/0.7.64/MediaInfo_CLI_0.7.64_Windows_i386.zip (32 bit)
http://mediaarea.net/download/binary/mediainfo/0.7.64/MediaInfo_CLI_0.7.64_Windows_x64.zip (64 bit)


2/ the etc/passwd file needs to be set for the SSH user used by Orchestrator with a valid user root and to use the 'bin/sh' shell (the switch shell has bizarre escape rules that are best be avoided). In the case below '/' is used as the doc root for the user Orchestrator

The passwd file if Aspera Point to Point or Enterprise server is used to provide the remote access, will be found in C:\Program files\aspera\Enterprise Server\etc\passwd.