Tennis Evolution

v0.2.0
io.github.bobobo2026/tennis-evolution Checked 4 days ago Published 1 month ago

Turn a long tennis recording into a labeled highlight reel: lossless rally clips, hit-count labels.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

probe_video Inspect a tennis recording

Read duration, resolution, rotation, HDR/colour, audio tracks and recording time of a local video file. Run this first to confirm the file is readable.

ParameterTypeDescription
video *stringLocal video path.

rank_highlights Parse and rank a rally list

Parse a rally list and show which rallies would be kept, so the user can confirm before rendering.

ParameterTypeDescription
highlights_pathstringPath to a rally list (.txt from sliceapp or .json).
highlights_textstringRally list pasted inline, one rally per line, e.g. '27:14 - 28:08 40 hits'. Use either this or highlights_path.
sortstringRanking: longest rally first (hits), longest clip, or chronological.
topintegerKeep the N best rallies (0 = all; free version caps at 5).

start_highlight_reel Render a labeled tennis highlight reel

Start the full pipeline in the background: lossless keyframe-aligned clips, a plain reel, a labeled reel (hit count / venue / wall clock / source timestamp) and manifest.json with self-check results. Returns a job_id; poll get_job. A 47-minute iPhone HDR recording with 5 rallies takes 3-5 minutes on an M-series Mac.

ParameterTypeDescription
outdir *stringOutput directory (created).
video *stringLocal source recording.
codecstring
highlights_pathstringPath to a rally list (.txt from sliceapp or .json).
highlights_textstringRally list pasted inline, one rally per line, e.g. '27:14 - 28:08 40 hits'. Use either this or highlights_path.
labelsboolean
placestringVenue text for the label.
sortstringRanking: longest rally first (hits), longest clip, or chronological.
source_labelstringPrefix for the source timestamp (default 片源; 'Source').
timezonestringIANA timezone for the wall clock, e.g. Asia/Shanghai.
topintegerKeep the N best rallies (0 = all; free version caps at 5).
unitstringHit counter unit (default 拍; 'hits').

get_job Check a render job

Status of a job from start_highlight_reel: running/done/failed, the last log lines, and once done the manifest (outputs and verification).

ParameterTypeDescription
job_id *string

verify_video Self-check a finished video

Clean decode, zero start offset, A/V duration match, non-black first/last frame, non-silent audio.

ParameterTypeDescription
path *string
fastboolean

license_status Show free/Pro status

Whether a Pro licence is active, the free-tier limits and the pricing URL.

activate_license Activate a Pro licence key

Verify a te1.… key offline and store it for future renders.

ParameterTypeDescription
key *string