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)

Install

Ytpb requires Python 3.11 or higher. The recommended way is to use pipx:

$ pipx install ytpb

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. Cookbook contains some useful examples. See Changelog for the history of releases. 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.4.20.tar.gz (1.5 MB view hashes)

Uploaded Source

Built Distribution

ytpb-2024.4.20-py3-none-any.whl (67.6 kB view hashes)

Uploaded Python 3

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