83

w3m+mpv=magic - Vidme

 6 years ago
source link: https://vid.me/ye2Hg
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Using w3m's external browser (SHIFT+M) shortcut set to "mpv --vo=opengl --ao=alsa," (--vo=drm for TTY), you can watch videos that are embedded in the current URL. This is due to a combination of a mobile user-agent (MP4 > FLV) and mpv using youtube-dl to hunt and play videos or live streams. Therefore, this method will work with any website that youtube-dl supports: https://rg3.github.io/youtube-dl/supportedsites.html. Another thing to note, because of w3m now defaulting to a mobile user-agent, I recommend duplicating the original config file for when you need to load a website that may give you JavaScript errors (i.e., "w3m -config ~/.w3m/config-desktop"). I created an alias for this as "w3m-desktop" to make things faster.#linux #cli #commandline #w3m #mpv #technology

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK