konstantin-paulus 4a92a1913b Refactor media command structure and update documentation for clarity
Introduce a new `media` command group to replace the previous `asset` command for media inspection tasks, including `probe`, `grab`, `visualize`, `transcribe`, and `analyze`. Update CLI descriptions and documentation to reflect this change, ensuring users can easily understand the functionalities related to media files. This refactor enhances the organization of commands and improves the user experience when working with media assets.
2026-07-10 07:48:28 +02:00

894 B

dapi media probe <id|path>

Reads the container and per-track technical metadata of an asset; like ffprobe, but demuxed locally with mediabunny. Reports the container format, duration, metadata tags, and every track's codec parameters without decoding any media. Reads locally; no credits.

Input

  • <id|path>: an asset id, or a local file to probe in place without adding it to the library (required). Any asset type is accepted.

Output

One JSON object. The shape is not yet stable: it reports whatever mediabunny surfaces about the container and its tracks. Packet stats (frame rate, bitrate, packet count) are estimated from a leading sample of packets, so they are fast but approximate. Assets mediabunny can't demux (images, transcripts) don't error; they report file-level info only, with format: null and no tracks.

Errors

Exits non-zero if the id is unknown.