Probe media file
Media Processing
Probe media file
Inspect a video or audio file to retrieve metadata: duration, dimensions, codec, fps, bitrate, and file size. Returns results synchronously.
Use this before trim or resize to understand the media you’re working with.
POST
Probe media file
Authorizations
API key from varg.ai/dashboard.
Pass as Authorization: Bearer varg_xxx.
Body
application/json
URL of the video or audio file to inspect
Example:
"https://s3.varg.ai/o/my-video.mp4"
Response
Media metadata
Duration in seconds
Example:
12.5
Video width in pixels
Example:
1920
Video height in pixels
Example:
1080
Video codec
Example:
"h264"
Audio codec
Example:
"aac"
Container format
Example:
"mov,mp4,m4a,3gp,3g2,mj2"
Overall bitrate in bits/second
Example:
5200000
Frames per second
Example:
30
File size in bytes
Example:
8125000