ffprobe and returns a key-value map ofvideoUrl must be a publicly reachable HTTP(S) URL. HLS playlists (.m3u8) and.mp4, .ts, etc.) are both supported. The probe may time outerrorCode: -1 is returneddata depend on the source format; all values are returned as-isffprobe output.| Code | Message | Cause |
|---|---|---|
0 | success | Metadata is in the data field |
-1 | get video format failed, err: ... | videoUrl is unreachable, unsupported format, or timed out |
-1 | json unmarshal failed, err: ... | Probe output could not be parsed; contact TVU Support |
curl --location 'https://api.tvunetworks.com/metadata?videoUrl=https%3A%2F%2Fmedia-export-bucket.s3.us-east-1.amazonaws.com%2Fexport%2Fclip_20231114_30s.mp4' \
--header 'SID: 92575d36dcb631ac94745e6b157de17a5a13d65b31e44869f06854ab928dd80235d4daae8696b4a92a7be5f802c45a219648701fc9ca59f44e9c0f022d5d38a7'{
"errorCode": 0,
"errorMessage": "success",
"data": {
"duration": 30.5,
"width": 1920,
"height": 1080,
"codec": "h264",
"framerate": "29.97",
"bitrate": 5000000
}
}