ytpb


Nameytpb JSON
Version 2024.12.23 PyPI version JSON
download
home_pageNone
SummaryA playback for YouTube live streams
upload_time2024-12-23 14:37:10
maintainerNone
docs_urlNone
authorMaxim Stolyarchuk
requires_python>=3.12
licenseMIT License Copyright (c) 2024 Maxim Stolyarchuk Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords youtube
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Ytpb
####

A playback for YouTube live streams.

|PyPI| |Tests|

.. |PyPI| image:: https://img.shields.io/pypi/v/ytpb
   :target: https://pypi.org/project/ytpb
   :alt: PyPI - Version

.. |Tests| image:: https://github.com/xymaxim/ytpb/actions/workflows/ci.yml/badge.svg
   :target: https://github.com/xymaxim/ytpb/actions/workflows/ci.yml
   :alt: Tests

`Project page`_ |sep| `Documentation`_ |sep| `Contributing`_

.. |sep| unicode:: 0xA0
   :trim:

.. _Project page: https://github.com/xymaxim/ytpb
.. _Documentation: https://ytpb.readthedocs.io/
.. _Contributing: https://ytpb.readthedocs.io/en/latest/contributing.html

*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 <https://github.com/xymaxim/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 <https://asciinema.org/a/653861>`__)
- Composing an MPEG-DASH MPD and transcoding it to MP4 (`link
  <https://asciinema.org/a/653865>`__)
- Creating a time-lapse of a live stream excerpt (`link
  <https://asciinema.org/a/653869>`__)

Installation
************

Ytpb requires Python 3.12 or higher and has been `tested
<https://github.com/xymaxim/ytpb/actions/workflows/ci.yml>`__ on Linux, macOS,
and Windows. Also, it needs the recent version of `FFmpeg
<https://ffmpeg.org/download.html>`__ to be installed.

Installing from PyPI
====================

When you have all required dependencies, you can install Ytpb via `pipx
<https://pypa.github.io/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
<https://github.com/xymaxim/ytpb/releases>`__ on GitHub. Make sure to `add
<https://www.wikihow.com/Install-FFmpeg-on-Windows>`__ 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.

.. _Why Ytpb?: https://ytpb.readthedocs.io/en/latest/why.html
.. _Quick start: https://ytpb.readthedocs.io/en/latest/quick.html
.. _Command line application: https://ytpb.readthedocs.io/en/latest/cli.html
.. _Reference: https://ytpb.readthedocs.io/en/latest/reference.html
.. _Questions: https://ytpb.readthedocs.io/en/latest/questions.html
.. _Cookbook: https://ytpb.readthedocs.io/en/latest/cookbook.html

Similar projects
****************

- `Kethsar/ytarchive <https://github.com/Kethsar/ytarchive>`__ — archive streams from the start
- `rytsikau/ee.Yrewind <https://github.com/rytsikau/ee.Yrewind>`__ — rewind and save streams
- `yt-dlp/yt-dlp#6498 <https://github.com/yt-dlp/yt-dlp/pull/6498>`__ — brings rewind range selection to yt-dlp

License
*******

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

.. _LICENSE: https://github.com/xymaxim/ytpb/blob/main/LICENSE

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ytpb",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": null,
    "keywords": "youtube",
    "author": "Maxim Stolyarchuk",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/64/90/fc6ce45e89b5715af2c6ddb5e356184c97ad7951a2b56ee02857731c64f0/ytpb-2024.12.23.tar.gz",
    "platform": null,
    "description": "Ytpb\n####\n\nA playback for YouTube live streams.\n\n|PyPI| |Tests|\n\n.. |PyPI| image:: https://img.shields.io/pypi/v/ytpb\n   :target: https://pypi.org/project/ytpb\n   :alt: PyPI - Version\n\n.. |Tests| image:: https://github.com/xymaxim/ytpb/actions/workflows/ci.yml/badge.svg\n   :target: https://github.com/xymaxim/ytpb/actions/workflows/ci.yml\n   :alt: Tests\n\n`Project\u00a0page`_ |sep| `Documentation`_ |sep| `Contributing`_\n\n.. |sep| unicode:: 0xA0\n   :trim:\n\n.. _Project page: https://github.com/xymaxim/ytpb\n.. _Documentation: https://ytpb.readthedocs.io/\n.. _Contributing: https://ytpb.readthedocs.io/en/latest/contributing.html\n\n*Rewind to past moments in live streams and download or play excerpts*\n\nYtpb is a playback for YouTube live streams written in Python. It lets you go\nback to past moments beyond the limits of the web player. You can keep selected\nmoments by downloading excerpts or play them instantly in your video player via\nMPEG-DASH.\n\nCheck out also `mpv-ytpb <https://github.com/xymaxim/mpv-ytpb>`__ to play and\nrewind live streams interactively without leaving a player.\n\nFeatures\n********\n\n- Command line interface (CLI) and Python library\n- Rewind live streams far beyond the limits of the web player\n- Download audio and/or video excerpts\n\n  - Save excerpts in different available audio and video formats\n  - Precisely cut to exact moments without slow re-encoding\n\n- Play and rewind instantly via MPEG-DASH\n\n  - Compose DASH manifests to play it in your favorite player\n  - Transcode/download excerpts into local files with FFmpeg\n\n- Capture a single frame or create time-lapse images\n- Makes use of yt-dlp to reliably extract information about videos (optionally)\n\nDemos\n*****\n\n- Downloading a live stream excerpt (`link <https://asciinema.org/a/653861>`__)\n- Composing an MPEG-DASH MPD and transcoding it to MP4 (`link\n  <https://asciinema.org/a/653865>`__)\n- Creating a time-lapse of a live stream excerpt (`link\n  <https://asciinema.org/a/653869>`__)\n\nInstallation\n************\n\nYtpb requires Python 3.12 or higher and has been `tested\n<https://github.com/xymaxim/ytpb/actions/workflows/ci.yml>`__ on Linux, macOS,\nand Windows. Also, it needs the recent version of `FFmpeg\n<https://ffmpeg.org/download.html>`__ to be installed.\n\nInstalling from PyPI\n====================\n\nWhen you have all required dependencies, you can install Ytpb via `pipx\n<https://pypa.github.io/pipx/>`_::\n\n  $ pipx install ytpb\n\nTo upgrade to the newer version, do::\n\n  $ pipx upgrade ytpb\n\nWindows binaries\n================\n\nFor Windows, pre-built binaries are available: check `releases\n<https://github.com/xymaxim/ytpb/releases>`__ on GitHub. Make sure to `add\n<https://www.wikihow.com/Install-FFmpeg-on-Windows>`__ the ``ffmpeg.exe`` file\nto your system path or place it in the folder next to the Ytpb binary. Now\nyou're ready to use Ytpb in Terminal: type commands, not double-click.\n\nFurther reading\n***************\n\nAfter installing, check out the `documentation`_. The `Why Ytpb?`_ page explains\nwhy the project exists. For main usage scenarios, see `Quick start`_. The\n`Command line application`_ page goes deeper into the usage. `Reference`_\nprovides some general aspects and terms. See `Questions`_ for answers to the\nmost anticipated questions. `Cookbook`_ contains some useful examples.  Have any\nissues, suggestions, or want to contribute code? `Contributing`_ tells how to\nparticipate in the project.\n\n.. _Why Ytpb?: https://ytpb.readthedocs.io/en/latest/why.html\n.. _Quick start: https://ytpb.readthedocs.io/en/latest/quick.html\n.. _Command line application: https://ytpb.readthedocs.io/en/latest/cli.html\n.. _Reference: https://ytpb.readthedocs.io/en/latest/reference.html\n.. _Questions: https://ytpb.readthedocs.io/en/latest/questions.html\n.. _Cookbook: https://ytpb.readthedocs.io/en/latest/cookbook.html\n\nSimilar projects\n****************\n\n- `Kethsar/ytarchive <https://github.com/Kethsar/ytarchive>`__ \u2014 archive streams from the start\n- `rytsikau/ee.Yrewind <https://github.com/rytsikau/ee.Yrewind>`__ \u2014 rewind and save streams\n- `yt-dlp/yt-dlp#6498 <https://github.com/yt-dlp/yt-dlp/pull/6498>`__ \u2014 brings rewind range selection to yt-dlp\n\nLicense\n*******\n\nYtpb is licensed under the MIT license. See `LICENSE`_ for details.\n\n.. _LICENSE: https://github.com/xymaxim/ytpb/blob/main/LICENSE\n",
    "bugtrack_url": null,
    "license": "MIT License\n        \n        Copyright (c) 2024 Maxim Stolyarchuk\n        \n        Permission is hereby granted, free of charge, to any person obtaining a copy\n        of this software and associated documentation files (the \"Software\"), to deal\n        in the Software without restriction, including without limitation the rights\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n        copies of the Software, and to permit persons to whom the Software is\n        furnished to do so, subject to the following conditions:\n        \n        The above copyright notice and this permission notice shall be included in all\n        copies or substantial portions of the Software.\n        \n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n        SOFTWARE.",
    "summary": "A playback for YouTube live streams",
    "version": "2024.12.23",
    "project_urls": {
        "Documentation": "https://ytpb.readthedocs.io",
        "Source": "https://github.com/xymaxim/ytpb"
    },
    "split_keywords": [
        "youtube"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "53c80f0143aad437dfc794b3969fe1c40d10fffeb167382d8b9577419335bc81",
                "md5": "18711d50fddce75291c50cec1d61a981",
                "sha256": "80ea50e4ef71dcfa5c92b2d34875db321d525fa2b5a47145a08b59131015f93e"
            },
            "downloads": -1,
            "filename": "ytpb-2024.12.23-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "18711d50fddce75291c50cec1d61a981",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 74626,
            "upload_time": "2024-12-23T14:37:13",
            "upload_time_iso_8601": "2024-12-23T14:37:13.290271Z",
            "url": "https://files.pythonhosted.org/packages/53/c8/0f0143aad437dfc794b3969fe1c40d10fffeb167382d8b9577419335bc81/ytpb-2024.12.23-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6490fc6ce45e89b5715af2c6ddb5e356184c97ad7951a2b56ee02857731c64f0",
                "md5": "e2844a658d9975fe850b3664ce073b14",
                "sha256": "ade2f3ce78bd2f82d24286aba89ae1dd50f446bd12d4ca4b55e0c6b33fb847b7"
            },
            "downloads": -1,
            "filename": "ytpb-2024.12.23.tar.gz",
            "has_sig": false,
            "md5_digest": "e2844a658d9975fe850b3664ce073b14",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 1480784,
            "upload_time": "2024-12-23T14:37:10",
            "upload_time_iso_8601": "2024-12-23T14:37:10.488102Z",
            "url": "https://files.pythonhosted.org/packages/64/90/fc6ce45e89b5715af2c6ddb5e356184c97ad7951a2b56ee02857731c64f0/ytpb-2024.12.23.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-23 14:37:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "xymaxim",
    "github_project": "ytpb",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "ytpb"
}
        
Elapsed time: 2.09047s