reavideo-breakdown
Parse a plain-text shot list into structured shots, timings and cut statistics.
A shot list is the cheapest artifact of video production: one line per cut,
usually something like 00:04 wide shot, empty street, slow push in. This
library turns that text into data you can sort, validate and diff, which is
what you need when a finished video has to be broken back down into its
component shots.
No dependencies outside the standard library.
Install
pip install reavideo-breakdown
Usage
from reavideo_breakdown import parse_shotlist, summarize, format_timecode
text = """
00:00-00:04 wide shot, empty street, slow push in
00:04-00:07 close up, hands tying a knot
00:07-00:12 3.5s drone pull back over the harbour
"""
shots = parse_shotlist(text)
for shot in shots:
print(shot["index"], format_timecode(shot["start"]), shot["description"])
summarize(shots)
parse_shotlist returns a list of dicts:
| key | meaning |
|---|---|
index |
1-based position in the list |
start |
start time in seconds |
end |
end time in seconds, or None when the line only marks a cut |
duration |
end - start, or None |
description |
the line with its timecode and optional 3.5s marker removed |
line |
the original line, so errors can be reported next to the source |
summarize adds the numbers editors ask for first: shot count, cuts per
minute, average, longest and shortest shot.
Timecodes
from reavideo_breakdown import parse_timecode, format_timecode
parse_timecode("1:02:03") # 3723.0
format_timecode(3723) # '01:02:03'
Both mm:ss and hh:mm:ss are accepted; output switches to hh:mm:ss past
one hour.
Link
Written for shot breakdown work on finished cuts; the tool this pairs with is Rea Video, which reconstructs a shot list from a delivered video.
License
MIT
Metadata
Release files for reavideo-breakdown 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 |
|---|---|---|---|---|
| reavideo_breakdown-1.0.0.tar.gz | 5.2 kB | Without provenance | Details for reavideo_breakdown-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reavideo_breakdown-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for reavideo_breakdown-1.0.0-py3-none-any.whl |
Total release size: 10.2 kB
Release files / reavideo_breakdown-1.0.0.tar.gz
| Download URL | reavideo_breakdown-1.0.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
956dc91cdd39dcc7e858f845cb3c319d82740fb14411ea6ef4ddea6982f1bd34
|
|
BLAKE2b-256 checksum How to use checksums |
5d55789f42777ae840edcfedff3133db8ee1626e7dfe8761cded398400c78292
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / reavideo_breakdown-1.0.0-py3-none-any.whl
| Download URL | reavideo_breakdown-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0bd78ac9a6684b16372d528297cfd3912a224d32e49566c1720ef6559f349a0
|
|
BLAKE2b-256 checksum How to use checksums |
73ea9292ddc27c23ae326f93a0b7c14e773fe9d683e3ac4fb34aacf664925a65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for reavideo-breakdown 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.