Add sports-highlight-videos example - #20
Merged
dazzatronus merged 3 commits intoSep 28, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
dazzatronus
force-pushed
the
add-sports-highlight-videos
branch
from
September 22, 2026 11:57
4bdd895 to
0f94bbd
Compare
soniasriv
force-pushed
the
add-sports-highlight-videos
branch
from
September 24, 2026 07:25
0f94bbd to
508f50a
Compare
dazzatronus
approved these changes
Sep 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion code for the sports vertical: one vertical highlight video per match from a full recording and a list of goals.
Rebuilt 24 Sep after review. The first version was mostly 16:9 with heavy overlays. This version is vertical, with no text overlays or transitions.
What it does:
edit.mjstrims a 10 s clip at each goal withtrimand joins them withstart: "auto"in one render, in a 1080x1920 frame: the full landscape footage sits in the middle over a blurred, darker copy of the same clip, so nothing is cropped or blown up (the source is 1024x576), with the match sound lowered under music. Eachatstarts about 3 s before the build-up, so a clip shows the attack, the goal and the celebration.Related guide: https://shotstack.io/learn/automated-sports-highlight-video-api/
Shotstack does not find the moments. The recipe starts from timestamps that come from the user's own tagging or a detection model, and the README says so.
Changed from the first version: vertical instead of sd 16:9; the scoreboard, lower thirds and title cards are removed (they also clashed with the broadcast scoreboard already in the footage);
match.jsonkeeps only the fields the code reads.Verified: prettier clean; every generated Edit JSON passes
shotstack validate; a fresh clone with no key, a wrong key and a badSHOTSTACK_ENVeach print one line and exit 1; a rejected key stops the batch after one line; README claims checked against the code; rendered end to end on stage with the ids below.Stage render (28 Sep): ottoville-v-ottawa-hills
fee7abff-6ea7-4140-b21b-429d9dd2eb99, 30 s. Watch: https://cdn.shotstack.io/au/stage/m0018rioc2/fee7abff-6ea7-4140-b21b-429d9dd2eb99.mp4The three vertical PRs (#17, #18, #20) edit the example list in the root README; keep every bullet when resolving.