Skip to main content

A playback for YouTube live streams

Project description

A playback for YouTube live streams.

PyPI - Version Tests

Project page Documentation Contributing

Rewind to past moments in live streams and download or play excerpts

Ytpb is a playback for YouTube live streams written in Python. It lets you go back to past moments beyond the limits of the web player. You can keep selected moments by downloading excerpts or play them instantly in your video player via MPEG-DASH.

Check out also mpv-ytpb to play and rewind live streams interactively without leaving a player.

Features

  • Command line interface (CLI) and Python library

  • Rewind live streams far beyond the limits of the web player

  • Download audio and/or video excerpts

    • Save excerpts in different available audio and video formats

    • Precisely cut to exact moments without slow re-encoding

  • Play and rewind instantly via MPEG-DASH

    • Compose DASH manifests to play it in your favorite player

    • Transcode/download excerpts into local files with FFmpeg

  • Capture a single frame or create time-lapse images

  • Makes use of yt-dlp to reliably extract information about videos (optionally)

Demos

  • Downloading a live stream excerpt (link)

  • Composing an MPEG-DASH MPD and transcoding it to MP4 (link)

  • Creating a time-lapse of a live stream excerpt (link)

Installation

Ytpb requires Python 3.12 or higher and has been tested on Linux, macOS, and Windows. Also, it needs the recent version of FFmpeg to be installed.

Installing from PyPI

When you have all required dependencies, you can install Ytpb via pipx:

$ pipx install ytpb

To upgrade to the newer version, do:

$ pipx upgrade ytpb

Windows binaries

For Windows, pre-built binaries are available: check releases on GitHub. Make sure to add the ffmpeg.exe file to your system path or place it in the folder next to the Ytpb binary. Now you’re ready to use Ytpb in Terminal: type commands, not double-click.

Further reading

After installing, check out the documentation. The Why Ytpb? page explains why the project exists. For main usage scenarios, see Quick start. The Command line application page goes deeper into the usage. Reference provides some general aspects and terms. See Questions for answers to the most anticipated questions. Cookbook contains some useful examples. Have any issues, suggestions, or want to contribute code? Contributing tells how to participate in the project.

Similar projects

License

Ytpb is licensed under the MIT license. See LICENSE for details.

Project details


Download files

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

Source Distribution

ytpb-2026.1.18.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

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

ytpb-2026.1.18-py3-none-any.whl (74.9 kB view details)

Uploaded Python 3

File details

Details for the file ytpb-2026.1.18.tar.gz.

File metadata

  • Download URL: ytpb-2026.1.18.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.2 cpython/3.12.12 HTTPX/0.28.1

File hashes

Hashes for ytpb-2026.1.18.tar.gz
Algorithm Hash digest
SHA256 79226fb17c677fb76d67aa458b170b6efed33702c9cba12423703145ee07887f
MD5 93d1ec4360d9376dd82f077c7bb5efe3
BLAKE2b-256 dbbb7706cc1f0c0e531b8c55be2289d661be99dd0d580fc2ea78b44f7e9d4c63

See more details on using hashes here.

File details

Details for the file ytpb-2026.1.18-py3-none-any.whl.

File metadata

  • Download URL: ytpb-2026.1.18-py3-none-any.whl
  • Upload date:
  • Size: 74.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.2 cpython/3.12.12 HTTPX/0.28.1

File hashes

Hashes for ytpb-2026.1.18-py3-none-any.whl
Algorithm Hash digest
SHA256 0cdea843c9c6027207c57e6c3ae0f8adf26d70bd1411fceb632c948f928cd3fe
MD5 6eee574601c6a541e7ac8b7bdf0521be
BLAKE2b-256 f6210767b9d9b297a7266407e5e5a3689516210bf73ed1b9fba1629bf1ac35e3

See more details on using hashes here.

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