VideoMetadataJob
Reads technical metadata from a video file without re-encoding it. Go method:Client.VideoMetadata(ctx, job)
Parameters
Path to the video file to inspect.
Metadata is returned in the
JobResult.Metadata field as a JSON object. No output file is produced by this operation.Returned metadata
Theresult.Metadata field contains a JSON object with the following properties:
| Field | Type | Description |
|---|---|---|
duration | number | Total duration in seconds |
codec | string | Video codec name (e.g., h264, vp9) |
width | number | Frame width in pixels |
height | number | Frame height in pixels |
fps | number | Frames per second |
bitrate | number | Overall bitrate in bits per second |
audio_codec | string | Audio codec name (e.g., aac, mp3) |
audio_channels | number | Number of audio channels |
audio_sample_rate | number | Audio sample rate in Hz |
format | string | Container format (e.g., mp4, webm) |