Skip to main content

Generates video highlights for an NBA player.

Project description

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/.

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

Beta

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-2025-10-21-git-535d4047d3-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-2025-10-21-git-535d4047d3-essentials_build\bin\ffmpeg.exe"}
)

Process

  1. Specify the player last name (as per NBA.com website), team abbreviation, and date(s) (yyyy-mm-dd).
  2. Programs crawls through play by play by quarter, keeping a list of links and times.
  3. Events within 5 seconds of each other are merged to a single event.
  4. Plays are concatenated together to make the video.

A video of the process is provided below.

https://www.youtube.com/watch?v=84GDSAL5CeE

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nba_video_generator-3.0.11.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nba_video_generator-3.0.11-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file nba_video_generator-3.0.11.tar.gz.

File metadata

  • Download URL: nba_video_generator-3.0.11.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nba_video_generator-3.0.11.tar.gz
Algorithm Hash digest
SHA256 e07159db79e0b635e02dbbd6b59a6b34956ebc7b12aa03f1c86ed0556b26b809
MD5 f7423893d8c98c99c53badd20bb02c6c
BLAKE2b-256 4c56ba9b25ed6896a9b06a7247c235255970dc5302d16e7115cc538faea7e4f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for nba_video_generator-3.0.11.tar.gz:

Publisher: python-publish.yml on ronenh24/nba_video_generator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nba_video_generator-3.0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for nba_video_generator-3.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 0462b8c3eec886888a14cc0ede184e0bf3eb0a81ec5be714deda1b3f6a805d78
MD5 5fd0914d974434f2d97e2fc0990b4232
BLAKE2b-256 c00f4aadb856db6286ee4e08ef06a06ba9a84b0c1ddd11744b594091893a8749

See more details on using hashes here.

Provenance

The following attestation bundles were made for nba_video_generator-3.0.11-py3-none-any.whl:

Publisher: python-publish.yml on ronenh24/nba_video_generator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page