You are not logged in.

#21 2015-11-09 05:52:35

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,138
Website

Re: mpv-build notes (Jessie)

It's Vevo files that are borking with the version of youtube-dl I've installed, and it is in fact Vevo that's re-encoding their videos which is why the quality is not the same as what's being reported...
https://github.com/rg3/youtube-dl/issues/4889

How funny is that, one of the test URLs in that issue report is Katy Perry - Dark Horse (official).

8o


I don't care what you do at home. Would you care to explain?

Offline

#22 2015-11-09 06:18:27

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: mpv-build notes (Jessie)

@hhh, Yes, running Jessie (renamed thread title).

Last edited by brontosaurusrex (2015-11-09 13:36:05)

Offline

#23 2015-11-09 18:19:16

Snap
Member
Registered: 2015-10-02
Posts: 465

Re: mpv-build notes (Jessie)

Sorry for a bit of derrailment...

@bronto. Does mpv take a lifetime buffering for you? I don't use it as much as I would like and completely switch to it for that reason. For a short video like this

mpv https://www.youtube.com/watch?v=0KSOMA3QBU0

it takes about 20 seconds to start playback. For a longer video or a movie it takes several minutes. Quite annoying. Otherwise image quality is superb compared with mplayer or VLC.

Offline

#24 2015-11-09 23:44:18

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,138
Website

Re: mpv-build notes (Jessie)

I had a chance to try this today and it's brilliant. Running './rebuild -j2' (replace 2 with the number of cores in your system) produces an executable file that can be run from any location. There's no need to remove mpv stable from jessie if you don't want to, and it works great with the youtube-dl version from jessie-backports.

Screenshot_11092015_06_13_03_PM.jpg

Thanks a million for showing us this, brontosaurusrex!


I don't care what you do at home. Would you care to explain?

Offline

#25 2015-11-10 00:09:11

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,138
Website

Re: mpv-build notes (Jessie)

@snap, Dark Horse loads for me in a second and this hideous, psychologically damaging Top Videos playlist opens in under 10 and is 211 videos long...

https://www.youtube.com/playlist?list=P … A9FlkSgSL8

What version of youtube-dl are you using?



@bronto, a note about the number of cores should probably go in the OP for those too lazy to read the ReadMe instructions.


I don't care what you do at home. Would you care to explain?

Offline

#26 2015-11-10 02:18:33

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: mpv-build notes (Jessie)

note about the number of cores should probably go in the OP

@hhh: done.

Offline

#27 2015-11-10 02:53:55

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: mpv-build notes (Jessie)

Snap wrote:

Sorry for a bit of derrailment...

@bronto. Does mpv take a lifetime buffering for you? I don't use it as much as I would like and completely switch to it for that reason. For a short video like this

mpv https://www.youtube.com/watch?v=0KSOMA3QBU0

it takes about 20 seconds to start playback. For a longer video or a movie it takes several minutes. Quite annoying. Otherwise image quality is superb compared with mplayer or VLC.

It takes about 5 secs here (that is 720p version).

I don't see any difference for longer stuff, for example it will open (1h23min clip)

mpv https://www.youtube.com/watch?v=92A5iDjxgOg

in about 5s as well.

And this is very mediocre connection.

But yes, my original post is missing the big "why" or pros/cons (which are very user and hardware-speed related).  A try:

youtube-dl and mpv cons:
- looks like a hack
- not convenient in number of ways, obviously the browser gui is way better
- a bit slow to start (still better than the idea of stream switching in the middle of playback)

mpv pros:
- playback should be better/smoother, faster (less cpu should be used) < however flash seems to work pretty well in jessie, even the old iceweasel version (But will make a lot of difference if your hardware is really old)
- mpv can be configured in number of interesting ways
- if you are a video guy and love to analyze a cut, then , and . are moving video frame by frame
- It is cool to have a more bleeding-edge version of mpv (not just for youtube)
- supports vimeo and other sites as well
- screen estate considerations (one can easily scale-down mpv window and continue other work while video plays in "background")

p.s. btw: One can probably still use the repo version in a much less elegant and slower way with an intermediate script like:

mpv --cache 10000 $(youtube-dl -g "$1")

But your youtube-dl should be up to date and well: test yourself.

Last edited by brontosaurusrex (2015-11-10 03:46:25)

Offline

#28 2015-11-10 11:34:15

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: mpv-build notes (Jessie)

Snap wrote:

For a longer video or a movie it takes several minutes. Quite annoying. Otherwise image quality is superb compared with mplayer or VLC.

Yeah I see what you mean now (testing on another machine), the uber-latest version seems to take DASH stuff by default, I guess it has to download dash metadata first ....

for old/faster behavior

mpv https://www.youtube.com/watch?v=92A5iDjxgOg --ytdl-format=mp4

more: https://mpv.io/manual/master/
and about mpeg-dash: http://www.encoding.com/mpeg-dash/

Last edited by brontosaurusrex (2015-11-10 13:24:28)

Offline

#29 2015-11-10 13:51:57

Snap
Member
Registered: 2015-10-02
Posts: 465

Re: mpv-build notes (Jessie)

So it's that. Thanks, guys. My conection is not ultra fast but now slow either (averages 1.3 MB pre second downloads) and my computer is not old. It's an AMD FX-8350 eight core with a new GTX960. Gonna try the "old way". Let's see what happens.

Offline

#30 2015-11-10 13:55:36

Snap
Member
Registered: 2015-10-02
Posts: 465

Re: mpv-build notes (Jessie)

That's it!!! 5 secs (a bit less it seems). Thanks a bunch, bronto!

Last edited by Snap (2015-11-10 13:56:58)

Offline

#31 2015-11-10 14:18:42

Snap
Member
Registered: 2015-10-02
Posts: 465

Re: mpv-build notes (Jessie)

This used to be a nice setting

--ytdl-format=137/best

but "best" now it also checks the DASH formats too and it takes a lifetime. So what bronto said:

--ytdl-format=mp4

Offline

Board footer

Powered by FluxBB