Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Thann/play-with-mpv
Chrome extension that allows you to play videos in webpages like youtube with MPV instead
https://github.com/Thann/play-with-mpv
chrome-extension freedom mpv video-player
Last synced: 3 months ago
JSON representation
Chrome extension that allows you to play videos in webpages like youtube with MPV instead
- Host: GitHub
- URL: https://github.com/Thann/play-with-mpv
- Owner: Thann
- License: unlicense
- Created: 2017-06-29T23:08:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-08T04:34:25.000Z (5 months ago)
- Last Synced: 2024-06-30T14:48:33.514Z (5 months ago)
- Topics: chrome-extension, freedom, mpv, video-player
- Language: JavaScript
- Homepage: https://chrome.google.com/webstore/detail/play-with-mpv/hahklcmnfgffdlchjigehabfbiigleji
- Size: 612 KB
- Stars: 344
- Watchers: 44
- Forks: 78
- Open Issues: 53
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mpv - play-with-mpv - Chrome extension for playing URLs in mpv, based on JavaScript/Python/Web. (Other)
README
# Play with MPV
Chrome extension and python server that allows you to play videos in webpages with MPV instead.
Works on [hundreds of sites](https://rg3.github.io/youtube-dl/supportedsites.html) thanks to youtube-dl,
and even torrents if you install [peerflix](https://github.com/mafintosh/peerflix).## Installation
1. Install [MPV](https://mpv.io/installation/)
2. Install [python 2 or 3](https://www.python.org/downloads/) and [pip](https://pip.pypa.io/en/stable/installing/)
3. Install [chrome extension](https://chrome.google.com/webstore/detail/play-with-mpv/hahklcmnfgffdlchjigehabfbiigleji)
4. Run `pip install git+git://github.com/thann/play-with-mpv --user`
5. Start server by running `play-with-mpv` (or use the Linux _free desktop_ shortcut)(optional) Install [fair-use](https://chrome.google.com/webstore/detail/fair-use-download/fhokdginneihphnneihijgbhbdoehjaj) extension.
(optional) Install [peerflix](https://github.com/mafintosh/peerflix) to stream torrents.
(optional) Install [mkchromecast](http://mkchromecast.com/) `pip install git+git://github.com/muammar/mkchromecast --user`
and [extension](https://chrome.google.com/webstore/detail/edeepcccaejnnodlpmcoackkdgaijakg).
(recommended) Install youtube-dl through your package manager for frequent updates.
(Arch Linux) [aur package](https://aur.archlinux.org/packages/play-with-mpv-git) available.## Usage
Right-click [this link](https://www.youtube.com/watch?v=dQw4w9WgXcQ) and select "Play with MPV".
MPV should popup and start playing the video. (Ctrl+Space also works)![screenshot](https://github.com/thann/play-with-mpv/raw/master/screenshot.png)
## Autostart
- Linux: `cp {/usr,~/.local}/share/applications/thann.play-with-mpv.desktop ~/.config/autostart`
- MacOS: [instructions](https://stackoverflow.com/questions/29338066/mac-osx-execute-a-python-script-at-startup)
- Windows [instructions](https://stackoverflow.com/questions/4438020/how-to-start-a-python-file-while-windows-starts)## Protips
MPV is [highly configurable](https://mpv.io/manual/stable/), this is just how I like to use it.To start in the corner, have no border, and stay on top: edit `~/.config/mpv/mpv.conf`
```
ontop=yes
border=no
window-scale=0.4
geometry=100%:100%
```In order to resize the window without borders, add keybinds: edit `~/.config/mpv/input.conf`
```
` cycle border
ALT+UP add window-scale 0.05
ALT+DOWN add window-scale -0.05
```