Metadata
getVideoMetadata(inputUri): Promise<VideoMetadata> describes a readable video without starting or cancelling compression.
Field | Meaning |
|---|---|
| Displayed dimensions after source rotation. |
| Duration in seconds. |
| File size in bytes; |
| Estimated bitrate; video-track bitrate on iOS, container bitrate on Android. |
| Nominal frame rate when available, otherwise |
| Whether the input contains audio. |
| Source rotation in degrees, normalized to 0–360. |
The bitrate unit is bits per second. frameRate is nominal/metadata-derived, not a constant-frame-rate guarantee. size: 0 from an Android provider means unknown, not proof of an empty file. Metadata extraction succeeding does not guarantee that an encoder can later export the source.