You are not logged in.

#1 2015-11-08 20:00:06

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

mpv-build notes (Jessie)

sudo apt-get install libncurses5-dev liblua5.1-0.dev devscripts equivs

get the mpv-build git and cd to source dir
(remove any mpv-build-deps**.deb)

mk-build-deps
sudo dpkg -i mpv-build-deps(TAB).deb 
sudo apt-get install -f
./rebuild -j2

(replace 2 with # of cores)

after everything happens you can just copy mpv-build/mpv/build/mpv to ~/bin.

Last edited by brontosaurusrex (2015-11-10 02:17:42)

Offline

#2 2015-11-08 20:10:34

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

Re: mpv-build notes (Jessie)

Is there any advantage of this to backporting mpv 0.12 from stretch?

jessie's version 0.6 has been fine for me so far, but I might want shiny/new in the future.


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

Offline

#3 2015-11-08 20:12:57

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

Re: mpv-build notes (Jessie)

Sorry, looks like the github ReadMe answers my question, it also builds ffmpeg and libass (ha!) It also comes with a rather stern and humorous warning...
https://github.com/mpv-player/mpv-build … and-ubuntu


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

Offline

#4 2015-11-08 20:13:35

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

Re: mpv-build notes (Jessie)

@hhh, this version with latest youtube-dl will play youtube links (also playlists) fine, dunno about stretch version (might be the same, but they probably use the release?).

mpv --version
mpv 0.12.0-git-5b7d0fb (C) 2000-2015 mpv/MPlayer/mplayer2 projects
 built on Sun Nov  8 20:50:15 CET 2015
ffmpeg library versions:
   libavutil       54.31.100
   libavcodec      56.60.100
   libavformat     56.40.101
   libswscale      3.1.101
   libavfilter     5.40.101
   libswresample   1.2.101
ffmpeg version: n2.8.1

Last edited by brontosaurusrex (2015-11-08 20:19:08)

Offline

#5 2015-11-08 20:15:27

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

Re: mpv-build notes (Jessie)

hhh wrote:

Sorry, looks like the github ReadMe answers my question, it also builds ffmpeg and libass (ha!) It also comes with a rather stern and humorous warning...
https://github.com/mpv-player/mpv-build … and-ubuntu

Good find.

Offline

#6 2015-11-08 21:30:45

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

Re: mpv-build notes (Jessie)

I backported youtube-dl from the Ubuntu Trusty repositories and it's playing http youtube links fine with jessie's mpv version. Very cool!

Do you happen to know...

Is there a way to tell what video quality is being used or to specify it when opening the URL?

Is there a way to play https URLs?

I'm looking into this myself right now but thought 2 heads (or a forum full) would be better than one.


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

Offline

#7 2015-11-08 21:34:54

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: mpv-build notes (Jessie)

`man mpv`

       --ytdl-format=<best|worst|mp4|webm|...>
              Video format/quality that is directly passed to youtube-dl. The possible values are  specific  to  the
              website  and the video, for a given url the available formats can be found with the command youtube-dl
              --list-formats URL. See youtube-dl's documentation for available aliases.  To  use  experimental  DASH
              support for youtube, use bestvideo+bestaudio.  (Default: best)

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#8 2015-11-08 21:38:47

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

Re: mpv-build notes (Jessie)

hhh wrote:

Is there a way to play https URLs?

Working fine with the git version (I think it has to do with youtube-dl python ssl stuff thought, but don't quote me).

Last edited by brontosaurusrex (2015-11-08 21:48:52)

Offline

#9 2015-11-08 21:40:51

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

Re: mpv-build notes (Jessie)

Thanks gents! So best quality is default OOTB w/out setting up a config file, nice. I'll look into the git version bronto, cheers.


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

Offline

#10 2015-11-08 21:51:34

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

Re: mpv-build notes (Jessie)

@bronto, I was using this *cough* Katy Perry video as a quick Hi-def/https test URL, can you just confirm that it works for you so I don't beat myself up trying to make an unplayable URL work?
https://www.youtube.com/watch?v=0KSOMA3QBU0


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

Offline

#11 2015-11-08 22:00:04

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

Re: mpv-build notes (Jessie)

It does
.katty.png
(It is not the best format thought)

p.s. This does the best format:

mpv --ytdl-format=bestvideo+bestaudio https://www.youtube.com/watch?v=0KSOMA3QBU0

.katty2.png

Last edited by brontosaurusrex (2015-11-08 22:09:33)

Offline

#12 2015-11-08 22:02:40

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

Re: mpv-build notes (Jessie)

Thanks for testing! That looks like it's 720p, but I can't tell from the info in your scrot. I need to slow down, it says 420p right there. tongue


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

Offline

#13 2015-11-08 22:12:40

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

Re: mpv-build notes (Jessie)

hhh wrote:

it says 420p right there. tongue

Nope, thats color sampling of standard h.264, format is 720p on 1st scrot and 1080p on 2nd.

Offline

#14 2015-11-08 22:14:53

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

Re: mpv-build notes (Jessie)

Ah, OK. Many thanks again, this is very cool!


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

Offline

#15 2015-11-08 22:15:23

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

Re: mpv-build notes (Jessie)

^^ Why are they scaled down?  If the video in the lower screenshot is 1080p, shouldn't it be full screen on your monitor?


Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

#16 2015-11-08 22:17:02

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

Re: mpv-build notes (Jessie)

Cos I scaled them with my mice and some help from alt key? smile

Last edited by brontosaurusrex (2015-11-08 22:17:14)

Offline

#17 2015-11-08 22:19:15

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

Re: mpv-build notes (Jessie)

^ Gotcha.  I've just encountered some videos that claim to be available in 1080p but the highest quality download available is 720p.


Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

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

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

Re: mpv-build notes (Jessie)

youtube-dl -F link < should give you some info, like for Katy:

 youtube-dl -F https://www.youtube.com/watch?v=0KSOMA3QBU0
[youtube] 0KSOMA3QBU0: Downloading webpage
[youtube] 0KSOMA3QBU0: Downloading video info webpage
[youtube] 0KSOMA3QBU0: Extracting video information
[youtube] 0KSOMA3QBU0: Downloading DASH manifest
[youtube] 0KSOMA3QBU0: Downloading DASH manifest
[info] Available formats for 0KSOMA3QBU0:
format code  extension  resolution note
140          m4a        audio only DASH audio  129k , m4a_dash container, aac  @128k (44100Hz), 3.45MiB
171          webm       audio only DASH audio  135k , vorbis@128k (44100Hz), 3.20MiB
141          m4a        audio only DASH audio  255k , m4a_dash container, aac  @256k (44100Hz), 6.84MiB
160          mp4        256x144    DASH video  113k , avc1.4d400c, 12fps, video only, 2.88MiB
242          webm       426x240    DASH video  206k , vp9, 1fps, video only, 4.42MiB
133          mp4        426x240    DASH video  250k , avc1.4d4015, 24fps, video only, 6.47MiB
243          webm       640x360    DASH video  370k , vp9, 1fps, video only, 8.41MiB
134          mp4        640x360    DASH video  608k , avc1.4d401e, 24fps, video only, 12.72MiB
244          webm       854x480    DASH video  713k , vp9, 1fps, video only, 16.43MiB
135          mp4        854x480    DASH video 1122k , avc1.4d401e, 24fps, video only, 23.94MiB
247          webm       1280x720   DASH video 1453k , vp9, 1fps, video only, 32.54MiB
136          mp4        1280x720   DASH video 2219k , avc1.4d401f, 24fps, video only, 44.34MiB
248          webm       1920x1080  DASH video 2500k , vp9, 1fps, video only, 51.49MiB
137          mp4        1920x1080  DASH video 4184k , avc1.640028, 24fps, video only, 89.74MiB
17           3gp        176x144    small ,  mp4a.40.2, mp4v.20.3
36           3gp        320x240    small ,  mp4a.40.2, mp4v.20.3
5            flv        400x240    small 
43           webm       640x360    medium ,  vorbis, vp8.0
18           mp4        640x360    medium ,  mp4a.40.2, avc1.42001E
22           mp4        1280x720   hd720 ,  mp4a.40.2, avc1.64001F (best)

I guess what youtube-dl takes for the "best" are formats that don't need any re-muxing (DASH support is experimental).

p.s. dunno what encoder youtube is using, but Katy should look a lot better at that bitrate (1920x1080  DASH video 4184k > Unless the uploaded master was already crappy).

Last edited by brontosaurusrex (2015-11-08 22:49:54)

Offline

#19 2015-11-08 23:37:17

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

Re: mpv-build notes (Jessie)

hhh wrote:

Is there any advantage of this to backporting mpv 0.12 from stretch?

Just a heads up, mpv is NOT easily backported from stretch.

@bronto, can you confirm that you're running a jessie system for those that want to try mpv-build?


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

Offline

#20 2015-11-09 05:16:02

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

Re: mpv-build notes (Jessie)

Epic facepalm on my end for 2 reasons. First, there's a recent version of youtube-dl in jessie-backports, so there was no reason for me to use an Ubuntu source. Second, youtube redirects http to https for the entire site, so that's not what's preventing some videos from playing for me in mpv. For example, this URL works fine (David Gilmour Live in Gdansk)
https://www.youtube.com/watch?v=xMrhRqK4iig

So does this (James Blake - Overgrown)
https://www.youtube.com/watch?v=6p6PcFFUm5I

I have no idea some URLs work and others don't.


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

Offline

Board footer

Powered by FluxBB