Skip to main content

PlayWithMpv

A server to support playing videos with mpv. Currently this project mainly supports for bilibili.com based on Tampermonkey-script Bilibili-Evolved (version 2.1.3)

img

You can also read the playwithmpv文档 in the ReadtheDocs.

Preparation

  1. Install MPV or MPV-lazy (If you're newer, strongly recommend MPV-lazy.)
  2. Install Tampermonkey-scrip Bilibili-Evolved (version 2.1.3)
  3. Install Python3 (>=3.8)

Installation

Just run pip install playwithmpv --user

Usage

  1. open the terminal, run playwithmpv to start the server.
  2. On Bilibili-Evolved:
    • 打开 下载视频
    • 格式选 flv (如若不可用,先选其他格式,再选回来)
    • 输出方式选 MPV播放
    • 若mpv 命令路径已加入环境变量, 默认设置就好,不用更改
  3. Click 开始 and enjoy.

img

Autostart

  • Linux: copy the script to ~/.config/autostart
  • MacOs: method
  • Windows: method

BTW

If you are interest in watching bangumi with MPV, could see:

Why use MPV? BTW, I think MPV is a so strong and free tool that can be easily for stream vidoes, user shaders and movement enhacement etc. The last one using SVP4 as movement enhacement, if you config SVP as the article said and make it work. Congratulation, a new world is there.Wooss.

Metadata

Release files for playwithmpv 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for playwithmpv 0.1.5
File Size Uploaded Provenance Actions
playwithmpv-0.1.5.tar.gz 6.6 kB Without provenance Details for playwithmpv-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for playwithmpv 0.1.5
File Interpreter ABI Platform Actions
playwithmpv-0.1.5-py3-none-any.whl Python 3 none any Details for playwithmpv-0.1.5-py3-none-any.whl

Total release size: 12.4 kB

Release files / playwithmpv-0.1.5.tar.gz

Download URL playwithmpv-0.1.5.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0aae80a2bc1c43b8b4d3f8972e0b2d5650223bf6f1be09d110d7082d476b6b53
BLAKE2b-256 checksum
How to use checksums
82b183633b963fbd12f3603155453e9281af2651096e3fd56dcfeb7cc76a079d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.1

Release files / playwithmpv-0.1.5-py3-none-any.whl

Download URL playwithmpv-0.1.5-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae520e045a3f18ba3582c9d06751e323937a25ab9c4c8697e7690890451fc330
BLAKE2b-256 checksum
How to use checksums
49590e7431264bafcd852ecd4043236b255a0443b359efdf94945300f97b5ad0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.1

Security for playwithmpv 0.1.5

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page