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.11 or higher. The recommended way is to use pipx:

$ pipx install ytpb

To upgrade to the newer version, do:

$ pipx upgrade 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.5.3.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-2024.5.3-py3-none-any.whl (68.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ytpb-2024.5.3.tar.gz
Algorithm Hash digest
SHA256 14048f58b439aaa6264c687d247d7bdc571857bc5349ef4dbce87cc69141ee6e
MD5 eb79616d7995122e111c92b7117eecf9
BLAKE2b-256 52b034d6d3f471087f3219c86e6534c2848acba7896e8d7251d71477ce84209a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ytpb-2024.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 167c0f61e521ec63b1e1861c04b16aac360a75eb527879060339edc9fc96980e
MD5 114855db47c57d9083567a6094f639bf
BLAKE2b-256 4833199d3246f6d5404bde75a9472f9a4dca6e2a7a2950b6e06c839beb71888d

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