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-2024.9.9.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

ytpb-2024.9.9-py3-none-any.whl (74.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ytpb-2024.9.9.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for ytpb-2024.9.9.tar.gz
Algorithm Hash digest
SHA256 0a6be72b3038f34c4ea0073a8ccda285e3fe3feac4bc4f8ca144cc8048733ec8
MD5 34497081b84c098df339617bd612fef0
BLAKE2b-256 13c94117009b38295a6fc1311a5e8a29b1828e43f2f05533a938a1beb723c662

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ytpb-2024.9.9-py3-none-any.whl
  • Upload date:
  • Size: 74.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.2

File hashes

Hashes for ytpb-2024.9.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ecc5704c6baa2dba4379fa0cce6b3c195547985392ba036b5633eae54d1d20af
MD5 0f0cafff10dabcd25f34ec9fe48207cb
BLAKE2b-256 851041e8d5acbe1e99e920dbf1afe96f3a6f65c2384bc75be19d0a8a9abdad52

See more details on using hashes here.

Supported by

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