Gentoo Archives: gentoo-user

From: Poncho <poncho@××××××.ch>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] HTML5 player (YouTube) is a pain!...Alternatives?
Date: Tue, 29 Nov 2016 20:59:44
Message-Id: 81ca4e2f-bcb6-f9a8-032a-7c2a7bcb42c3@spahan.ch
In Reply to: Re: [gentoo-user] HTML5 player (YouTube) is a pain!...Alternatives? by Meino.Cramer@gmx.de
1 On 29.11.2016 18:39, Meino.Cramer@×××.de wrote:
2 > Poncho <poncho@××××××.ch> [16-11-29 18:24]:
3 >> you can use the open-with extension ( see:
4 >> https://addons.mozilla.org/en-US/firefox/addon/open-with/ ) to get a
5 >> "open with mpv" shortcut in your right click menu
6 >>
7 >> On 29.11.2016 08:35, Meino.Cramer@×××.de wrote:
8 >>> Alarig Le Lay <alarig@××××××××××.fr> [16-11-29 08:16]:
9 >>>> On Tue Nov 29 07:42:16 2016, Meino.Cramer@×××.de wrote:
10 >>>>> Is there any way to feed the stream from youtube direktly into
11 >>>>> a not blown player like mpv/mplayer or such (I would prefer
12 >>>>> not to load a complete gui (vlc) with any click again and again.)?
13 >>>>
14 >>>> Hi,
15 >>>>
16 >>>> Yes, you can play video from youtube with mpv if you have emerged
17 >>>> net-misc/youtube-dl.
18 >>>>
19 >>>> --
20 >>>> alarig
21 >>>
22 >>> Hi Alarig,
23 >>>
24 >>> thanks for your help! :)
25 >>>
26 >>> yes...I know...but this implies (as far as I know):
27 >>> Copying the url from FF as argument to youtube-dl,
28 >>> downloading the file, and than watching it.
29 >>> This was my (painful) workaround the last days.
30 >>>
31 >>> I woyld like something like:
32 >>> Click on youtube-url, a window (console) pops up
33 >>> and starts <fill in something> to watch the video
34 >>> directly.
35 >>>
36 >>> Is it possible somehow?
37 >>>
38 >>> Thanks in advance for any help!
39 >>>
40 >>> Cheers,
41 >>> Meino
42 >>>
43 >
44 > Hi Poncho,
45 >
46 > thanks for your help - I installed this one.
47 >
48 > One problem: mpv seems to open the video with the highest
49 > possible resolution...and now.......the video.............stops
50 > from.........time..........to time.........due to..........too
51 > less............DSL bandwidth...........
52 >
53 > Can I tell who? to only access videos with 720p max???
54 >
55 > Cheers
56 > Meino
57 >
58 >
59 >
60
61 I use the following snippet in my /etc/mpv/mpv.conf
62
63 # The default --ytdl-format is bestvideo+bestaudio/best.
64 # In the following configuration example, only videos with
65 # a vertical resolution of 1080 pixels or less will
66 # be considered
67 ytdl-format=bestvideo[height<=?1080]+bestaudio/best