Skip to content

Boux/vidytmpv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About vidytmpv

Custom browser extension to play youtube videos directly in MPV

How it works

  • A browser extension adds buttons on the thumbnails with a custom url (such as vidytmpv://https://www.youtube.com/watch?v=Omy3BERUd1g).
  • A custom mimetype (x-scheme-handler/vidytmpv) captures vidytmpv:// urls and is configured to point to a vidytmpv-handler.desktop file.
  • The vidytmpv-handler.desktop file calls a shell script that executes pipe-viewer with the correct youtube video url.
  • pipe-viewer streams the video to mpv. It can be configured to launch vlc instead.

Setup

This is currently Linux only, unless you can figure out the way to execute a script through a custom URL scheme on other OSes

Dependencies: pipe-viewer, mpv, zsh

  • cd to the repo in the terminal
  • make sure the scripts are executable chmod +x ./scripts/*
  • install the custom url scheme handler file cp ./scripts/vidytmpv-handler.desktop ~/.local/share/applications/
  • install the mpv opener script to somewhere in your path cp ./scripts/vidytmpv-scheme-open ~/.local/bin/, this script uses zsh, but you can change it to bash if you don't have zsh installed
  • add this line under [Added Associations]: x-scheme-handler/vidytmpv=vidytmpv-handler.desktop in ~/.config/mimeapps.list or your distro's equivalent
  • manually install the extension (tested on brave, you may need to enable developer mode)

Here it is in action, adds buttons on every thumbnail, and in the video description.

vidytmpv.mp4

About

Adds button that calls custom vidytmpv:// url on a youtube video page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors