konstantin-paulus 3099d1c122 Refactor asset reference handling and improve media command descriptions
- Updated the `AssetRef` type to only accept paths, simplifying asset reference management.
- Refactored media command descriptions to clarify that local files and URLs can be used without an open project, while library paths require one.
- Enhanced error handling in media commands to specify when paths cannot be resolved, improving user feedback.
- Removed the deprecated `ShellApi` component and integrated its functionality into the new `EditorApi` for better organization and clarity.
2026-08-25 10:27:25 +02:00

944 B

dapi media probe <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

  • <path>: a local file to probe in place without adding it to the library, or a project library path (required; library paths need an open project). 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 path can't be resolved.