Gentoo Archives: gentoo-user

From: Patrick Steinhardt <ps@×××.im>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] HTML5 player (YouTube) is a pain!...Alternatives?
Date: Wed, 30 Nov 2016 14:02:44
Message-Id: 20161130140234.GA2811@pks-xps
In Reply to: Re: [gentoo-user] HTML5 player (YouTube) is a pain!...Alternatives? by Meino.Cramer@gmx.de
1 On Wed, Nov 30, 2016 at 06:46:00AM +0100, Meino.Cramer@×××.de wrote:
2 > Patrick Steinhardt <ps@×××.im> [16-11-30 04:01]:
3 > > On Tue, Nov 29, 2016 at 06:39:28PM +0100, Meino.Cramer@×××.de wrote:
4 > > > Poncho <poncho@××××××.ch> [16-11-29 18:24]:
5 > > > > you can use the open-with extension ( see:
6 > > > > https://addons.mozilla.org/en-US/firefox/addon/open-with/ ) to get a
7 > > > > "open with mpv" shortcut in your right click menu
8 > > > >
9 > > > > On 29.11.2016 08:35, Meino.Cramer@×××.de wrote:
10 > > > > > Alarig Le Lay <alarig@××××××××××.fr> [16-11-29 08:16]:
11 > > > > >> On Tue Nov 29 07:42:16 2016, Meino.Cramer@×××.de wrote:
12 > > > > >>> Is there any way to feed the stream from youtube direktly into
13 > > > > >>> a not blown player like mpv/mplayer or such (I would prefer
14 > > > > >>> not to load a complete gui (vlc) with any click again and again.)?
15 > > > > >>
16 > > > > >> Hi,
17 > > > > >>
18 > > > > >> Yes, you can play video from youtube with mpv if you have emerged
19 > > > > >> net-misc/youtube-dl.
20 > > > > >>
21 > > > > >> --
22 > > > > >> alarig
23 > > > > >
24 > > > > > Hi Alarig,
25 > > > > >
26 > > > > > thanks for your help! :)
27 > > > > >
28 > > > > > yes...I know...but this implies (as far as I know):
29 > > > > > Copying the url from FF as argument to youtube-dl,
30 > > > > > downloading the file, and than watching it.
31 > > > > > This was my (painful) workaround the last days.
32 > > > > >
33 > > > > > I woyld like something like:
34 > > > > > Click on youtube-url, a window (console) pops up
35 > > > > > and starts <fill in something> to watch the video
36 > > > > > directly.
37 > > > > >
38 > > > > > Is it possible somehow?
39 > > > > >
40 > > > > > Thanks in advance for any help!
41 > > > > >
42 > > > > > Cheers,
43 > > > > > Meino
44 > > > > >
45 > > >
46 > > > Hi Poncho,
47 > > >
48 > > > thanks for your help - I installed this one.
49 > > >
50 > > > One problem: mpv seems to open the video with the highest
51 > > > possible resolution...and now.......the video.............stops
52 > > > from.........time..........to time.........due to..........too
53 > > > less............DSL bandwidth...........
54 > > >
55 > > > Can I tell who? to only access videos with 720p max???
56 > > >
57 > > > Cheers
58 > > > Meino
59 > >
60 > > Hi Meino,
61 > >
62 > > yes, it is possible. The format-selection is quite flexible with
63 > > youtube-dl. I've got the following line in
64 > > ~/.config/mpv/mpv.conf:
65 > >
66 > > '''
67 > > ytdl-format=bestvideo[ext!=webm,width<=1920]+bestaudio[protocol!=http_dash_segments]/best
68 > > '''
69 > >
70 > > Something like the following might work for you.
71 > >
72 > > '''
73 > > ytdl-format=bestvideo[width<=920]+bestaudio/best
74 > > '''
75 > >
76 > > It will select a format with width less than 920px together with
77 > > the best audio source, or, if nothing matches this criteria, the
78 > > best format available. But just take a look at youtube-dl(1),
79 > > FORMAT SELECTION.
80 > >
81 > > Patrick
82 >
83 >
84 > Hi Patrick,
85 >
86 > thanks for your help! :)
87 >
88 > Additionally I played around with the 'vo=' settings.
89 > Interestingly it hangs always at the same point in the video.
90 >
91 > I played back the video with
92 >
93 > mpv '<url>' from the commandline and get the same effect.
94 >
95 > BUT: The output of mpv changes from "playing video" to
96 > "buffering" (at this moment the video hangs) and back.
97 >
98 > I increased the cache and readahead in mpv.conf with
99 > no effect (it even hits the same point in the video
100 > every time!).
101 >
102 > If I configure width<1280 it seems to work...but does
103 > it really need to be that small?
104 >
105 > Am I out of luck?
106 >
107 > Cheers
108 > Meino
109
110 I always had problems with mpv when caching was enabled. In fact,
111 I'm now running mpv without caching ("cache=no") at all and it
112 runs smooth as butter, even for full HD and better. So maybe try
113 disabling the cache altogether?
114
115 Otherwise I've got no idea as to what might be causing your
116 issue. Never had any problems despite caching issues.
117
118 Regards
119 Partick

Attachments

File name MIME type
signature.asc application/pgp-signature