GetMediaInfoEx

Retrieve more detailed information about your source asset.

Request

<?xml version="1.0"?>
<query>
    <userid><<id>></userid>
    <userkey><<key>></userkey>
    <action>GetMediaInfoEx</action>
    <mediaid>[MediaID]</mediaid> <!-- required -->
</query>
{
    "query": {
        "userid": "<<id>>",
        "userkey": "<<key>>",
        "action": "GetMediaInfoEx",
        "mediaid": "[MediaID]", // required
        "consistentarrays": "[1|0]"
    }
}

🚧

Note for JSON request

If MediaInfo contains only one track, by default track parameter in response will be object. To keep it as array add "consistentarrays": "1" parameter to request.

Parameter

Description

Allowed Values

Default Value

consistentarrays

Make arrays consistent in response

1, 0

0

Response

<?xml version="1.0"?>
<response>
    <Mediainfo version="[mediainfo version]">
        <File>
            <track type="[TrackType]">
                <!-- track parameters -->
                <Duration>[DurationHMS]</Duration>
                <Duration_seconds>[DurationInSeconds]</Duration_seconds>
                <Duration_timestamp>[DurationTimestamp]</Duration_timestamp>
            </track>
            <!-- multiple tracks -->
            <track type="[TrackType]">
                <!-- ... -->
            </track>
        </File>
    </Mediainfo>
</response>
{
    "response": {
        "Mediainfo": {
            "File": {
                "track": [
                    {
                        "@attributes": {"type": "[TrackType]"},
                        // track parameters
                        "Duration": "[DurationHMS]",
                        "Duration_seconds": "[DurationInSeconds]",
                        "Duration_timestamp": "[DurationTimestamp]"
                    },
                    // multiple tracks
                    {
                        "@attributes": {"type": "[TrackType]"}
                    },
                ]
            }
        }
    }
}

Parameter

Description

Duration

Tracks duration in HHh mmmn sss SSSms format.

Duration_seconds

Tracks duration in seconds.

Duration_timestamp

Tracks duration in HH:mm:ss:SSS format.

👍

Timestamp format notation

  • HH – hours
  • mm – minutes
  • ss – seconds
  • SSS – microseconds