Ytpb
A playback for YouTube live streams.
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
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
Kethsar/ytarchive — archive streams from the start
rytsikau/ee.Yrewind — rewind and save streams
yt-dlp/yt-dlp#6498 — brings rewind range selection to yt-dlp
License
Ytpb is licensed under the MIT license. See LICENSE for details.
Metadata
Release files for ytpb 2026.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ytpb-2026.1.18.tar.gz | 1.5 MB | Without provenance | Details for ytpb-2026.1.18.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ytpb-2026.1.18-py3-none-any.whl | Python 3 | none | any | Details for ytpb-2026.1.18-py3-none-any.whl |
Total release size: 1.6 MB
Release files / ytpb-2026.1.18.tar.gz
| Download URL | ytpb-2026.1.18.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
79226fb17c677fb76d67aa458b170b6efed33702c9cba12423703145ee07887f
|
|
BLAKE2b-256 checksum How to use checksums |
dbbb7706cc1f0c0e531b8c55be2289d661be99dd0d580fc2ea78b44f7e9d4c63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.2 cpython/3.12.12 HTTPX/0.28.1
|
Release files / ytpb-2026.1.18-py3-none-any.whl
| Download URL | ytpb-2026.1.18-py3-none-any.whl |
|---|---|
| Size | 74.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0cdea843c9c6027207c57e6c3ae0f8adf26d70bd1411fceb632c948f928cd3fe
|
|
BLAKE2b-256 checksum How to use checksums |
f6210767b9d9b297a7266407e5e5a3689516210bf73ed1b9fba1629bf1ac35e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.2 cpython/3.12.12 HTTPX/0.28.1
|
Security for ytpb 2026.1.18
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.