VIDEO.md
An open format for video breakdowns that models read layer by layer.
English · 中文
Every skill has a SKILL.md. Every video gets a VIDEO.md.
A VIDEO.md package describes one video: what it says, how each shot was made, what is on screen, what the sound is, and how to remake it. It starts with a card of about 150 tokens and opens up, level by level, down to a single shot. Every file says how many tokens it holds, and what was seen is always kept apart from what was inferred.
coffee-ad/
VIDEO.md the card (front matter) + overview and map
video/
timeline.md one line per shot
sound.md … one topic per file
shots/01.md everything about one shot
frames/ … raw data and media, as the producer likes
At a glance
The card, at the top of VIDEO.md:
---
videomd: 1
name: coffee-ad
description: Mixed — filmed 70% + code-rendered text card 30%
source: {file: coffee-ad.mp4, duration: 10.0, size: 1080x1920, fps: 30.0}
shots: 2
made_mix: {live_action: 0.7, code_render: 0.3}
readers: [tools, model]
lang: en
---
The timeline, one shot per line. A key ending in ~ is inferred; the others are seen or measured:
```videomd-timeline
#01 0.0-7.0 | seen hand pours coffee into a glass cup | cam handheld | made~ filmed(live_action) 92%
#02 7.0-10.0 | seen beige card with the price | cam static | over title | made~ code render(code_render) 61% · runner-up screen capture 30% | flag low confidence
```
Why
A breakdown's raw data runs to hundreds of thousands of tokens. A model that reads it for every question is slow, costly, and tends to repeat guesses as facts. With VIDEO.md:
- Most questions are answered from the card and the overview, about 2k tokens. Adding the timeline, about 4k, covers questions about single shots.
- The cost is known before reading. Every file and every row of the map gives its size in tokens.
- Seen and inferred are kept apart, in the syntax (
made~) and in the data (inferred, with a probability anddecided_by). - Programs get a stable surface: front matter with a JSON Schema, a one-line-per-shot grammar, fixed ids. Unknown fields, keys and files are ignored, so the format can grow.
More in DESIGN.md: how it borrows from Agent Skills and small DSLs, and the reasons behind each decision.
Documents
- SPEC.md: the specification, version 1
- TAXONOMY.md: standard ids for production methods, camera, overlays, readers, flags
- DESIGN.md: why it looks the way it does
- schema/videomd-1.schema.json: JSON Schema for every front matter
- examples/: complete packages
- conformance/: packages that conform, and packages that each break one rule
- IMPLEMENTATIONS.md: tools that write or read VIDEO.md
Check and read a package
pip install videomd
videomd check path/to/package # lists every rule it breaks; exit code 1 if any
videomd read path/to/package # card, timeline and shot data as JSON
import videomd
errors = videomd.check("path/to/package")
pkg = videomd.read("path/to/package") # {"card": {...}, "timeline": [...], "shots": {1: {...}}}
For agents
Read VIDEO.md first; most questions stop there. Read video/timeline.md for questions about shots, and look for flag. Open video/shots/<n>.md and its frames only to check one shot. Open topic files from the map when the question is about that topic. Leave raw data to programs.
Contributing
Proposals for new fields, keys or taxonomy ids are welcome as issues. See CONTRIBUTING.md.
License
The specification and documents are under CC BY 4.0. The code, schema and conformance files are under Apache-2.0.
Metadata
Release files for videomd 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| videomd-1.0.0.tar.gz | 12.2 kB | Without provenance | Details for videomd-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| videomd-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for videomd-1.0.0-py3-none-any.whl |
Total release size: 24.2 kB
Release files / videomd-1.0.0.tar.gz
| Download URL | videomd-1.0.0.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74b8e68b0c9273fa5d06a5ff57540763c8018586df4644eb319fe04179441135
|
|
BLAKE2b-256 checksum How to use checksums |
e68df3709d38bab13447310e14007d628c9e4d1b9e533f00dfe996bf460fff07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.9
|
Release files / videomd-1.0.0-py3-none-any.whl
| Download URL | videomd-1.0.0-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01e2a0de91731c5c8b5cf7419a76b1e854a8fa24814148d8dfc59307c88e9261
|
|
BLAKE2b-256 checksum How to use checksums |
6a5ef783168dfebe8ce7b06190610a4cc461fd6deb8a771c8cd62f1a88824fd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.9
|
Security for videomd 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.