GetMediaInfoEx

Retrieve more detailed information about your source asset.

Request

<?xml version="1.0"?>
<query>
    <userid>[UserID]</userid>
    <userkey>[UserKey]</userkey>
    <action>GetMediaInfoEx</action>
    <mediaid>[MediaID]</mediaid> <!-- required -->
</query>
{
    "query": {
        "userid": "[UserID]",
        "userkey": "[UserKey]",
        "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.

ParameterDescriptionAllowed ValuesDefault Value
consistentarraysMake arrays consistent in response1, 00

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]"}
                    },
                ]
            }
        }
    }
}
ParameterDescription
DurationTracks duration in HHh mmmn sss SSSms format.
Duration_timestampTracks duration in HH:mm:ss:SSS format.
Duration_secondsTracks duration in seconds.

👍

Timestamp format notation

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