Gentoo Archives: gentoo-user

From: Simon Thelen <gentoo-user@××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] HTML5 player (YouTube) is a pain!...Alternatives?
Date: Tue, 29 Nov 2016 20:00:26
Message-Id: 20161129200010.GA2340@anonymous
In Reply to: Re: [gentoo-user] HTML5 player (YouTube) is a pain!...Alternatives? by Meino.Cramer@gmx.de
1 On 16-11-29 at 08:35, Meino.Cramer@×××.de wrote:
2 > Alarig Le Lay <alarig@××××××××××.fr> [16-11-29 08:16]:
3 > > On Tue Nov 29 07:42:16 2016, Meino.Cramer@×××.de wrote:
4 > > > Is there any way to feed the stream from youtube direktly into
5 > > > a not blown player like mpv/mplayer or such (I would prefer
6 > > > not to load a complete gui (vlc) with any click again and again.)?
7 > > Yes, you can play video from youtube with mpv if you have emerged
8 > > net-misc/youtube-dl.
9 > yes...I know...but this implies (as far as I know):
10 > Copying the url from FF as argument to youtube-dl,
11 > downloading the file, and than watching it.
12 > This was my (painful) workaround the last days.
13 It doesn't. As long as you have mpv built with +lua it ships with the
14 youtube-dl hook which will run youtube-dl (if installed) on any url
15 passed to mpv, parse the json output and then play the "real" video url.
16
17 > I woyld like something like:
18 > Click on youtube-url, a window (console) pops up
19 > and starts <fill in something> to watch the video
20 > directly.
21 >
22 > Is it possible somehow?
23 There's probably around a bazillion addons for that. A quick search
24 found [1] [2] [3] [4]. Though binding an alias to `mpv $(xsel -b)' and
25 then executing that after copying a url shouldn't be that hard.
26
27 [1] https://addons.mozilla.org/en-US/firefox/addon/watch-with-mpv
28 [2] https://addons.mozilla.org/en-US/firefox/addon/external-video
29 [3] https://addons.mozilla.org/en-US/firefox/addon/video-assistant
30 [4] https://github.com/agiz/youtube-mpv
31
32 --
33 Simon Thelen