NBA Highlights Video Generator
Videos
Posted on NBA Full Play Highlights.
Author
Ronen Huang
Time Frame
August 2025 to Present
FFmpeg Build
Download from https://www.gyan.dev/ffmpeg/builds/.
Ollama Build
Download from https://ollama.com/download and pull one time.
ollama pull qwen3.5:4b
NBA Team Abbreviations
- atl - Atlanta Hawks
- bkn - Brooklyn Nets
- bos - Boston Celtics
- cha - Charlotte Hornets
- chi - Chicago Bulls
- cle - Cleveland Cavaliers
- dal - Dallas Mavericks
- den - Denver Nuggets
- det - Detroit Pistons
- gsw - Golden State Warriors
- hou - Houston Rockets
- ind - Indiana Pacers
- lac - Los Angeles Clippers
- lal - Los Angeles Lakers
- mem - Memphis Grizzlies
- mia - Miami Heat
- mil - Milwaukee Bucks
- min - Minnesota Timberwolves
- nop - New Orleans Pelicans
- nyk - New York Knicks
- okc - Oklahoma City Thunder
- orl - Orlando Magic
- phi - Philadelphia 76ers
- phx - Phoenix Suns
- por - Portland Trail Blazers
- sac - Sacramento Kings
- sas - San Antonio Spurs
- tor - Toronto Raptors
- uta - Utah Jazz
- was - Washington Wizards
Manually Make Videos
The full play videos can be made from the reliable play by play rather than the unreliable box score.
from nba_video_generator.beta_search import pipeline
pipeline(
[
("DiVincenzo", "2026-04-20", "min"),
],
{
"ffmpeg_path": r"C:\Users\ronen\Documents\Projects\nba_video_generator\src\nba_video_generator\ffmpeg-9.0.2-essentials_build\bin\ffmpeg.exe"
}
)
A date range can be specified as well.
from nba_video_generator.beta_search import pipeline
pipeline(
[
("Booker", "2026-04-19", "2026-04-27", "phx"),
],
{"ffmpeg_path": r"C:\Users\ronen\Documents\Projects\nba_video_generator\src\nba_video_generator\ffmpeg-9.0.2-essentials_build\bin\ffmpeg.exe"}
)
Process
- Specify the player last name (as per NBA.com website), team abbreviation, and date(s) (yyyy-mm-dd).
- Programs crawls through play by play by quarter, keeping a list of links and times.
- Events within 5 seconds of each other are merged to a single event.
- Plays are concatenated together to make the video.
A video of the process is provided below.
https://www.youtube.com/watch?v=84GDSAL5CeE
Automatically Make Videos With Agent - NEW
Makes videos of the LLM determined best player performances of specified date.
from nba_video_generator.run_agent import nba_agent
date = "2025-12-25"
ffmpeg_path = r"C:\Users\ronen\Documents\Projects\nba_video_generator\src\nba_video_generator\ffmpeg-9.0.2-essentials_build\bin\ffmpeg.exe"
nba_agent(date, ffmpeg_path)
Process
- Specify the date (yyyy-mm-dd).
- LLM chooses players from pool of candidates that meet thresholds in src\nba_video_generator\nba_agent\config.py.
- The videos are made with the
pipelinemethod. The thumbnails with relevant statistics are made afterward. - (Optional) Upload to YouTube with Python. Example program in src\nba_video_generator\example_youtube_upload_scripts. Link to data api - https://developers.google.com/youtube/v3/guides/uploading_a_video.
A video of the process is provided below.
https://www.youtube.com/watch?v=IC8SrrvS4xE&feature=youtu.be
Metadata
Release files for nba-video-generator 5.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nba_video_generator-5.0.14.tar.gz | 43.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nba_video_generator-5.0.14-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 93.3 kB
Release files / nba_video_generator-5.0.14.tar.gz
| Download URL | nba_video_generator-5.0.14.tar.gz |
|---|---|
| Size | 43.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
feb4a86c8acbc7d4b82b310fa57502abdb7dc1c45733aca96e1a0fb469e61cb8
|
|
BLAKE2b-256 checksum How to use checksums |
7bd9e643003ac8da3e84b1d383792ae5be3e9dafaa55afc9333d4d4a40aefd95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.
Transparency logRelease files / nba_video_generator-5.0.14-py3-none-any.whl
| Download URL | nba_video_generator-5.0.14-py3-none-any.whl |
|---|---|
| Size | 50.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
928418f521c1bd7036f4b0abf8b5dcd58c0710dd633418d3c3881a97e808490f
|
|
BLAKE2b-256 checksum How to use checksums |
7365b5f244783c28131e83d3ef2d3e6d8d37ed4525fb091ecb18c1220bcf04ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.
Transparency log