1 |
On Tue, Nov 29, 2016 at 06:39:28PM +0100, 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 |
Hi Meino, |
59 |
|
60 |
yes, it is possible. The format-selection is quite flexible with |
61 |
youtube-dl. I've got the following line in |
62 |
~/.config/mpv/mpv.conf: |
63 |
|
64 |
''' |
65 |
ytdl-format=bestvideo[ext!=webm,width<=1920]+bestaudio[protocol!=http_dash_segments]/best |
66 |
''' |
67 |
|
68 |
Something like the following might work for you. |
69 |
|
70 |
''' |
71 |
ytdl-format=bestvideo[width<=920]+bestaudio/best |
72 |
''' |
73 |
|
74 |
It will select a format with width less than 920px together with |
75 |
the best audio source, or, if nothing matches this criteria, the |
76 |
best format available. But just take a look at youtube-dl(1), |
77 |
FORMAT SELECTION. |
78 |
|
79 |
Patrick |