Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572386 - =media-video/mpv-0.15.0-r1[vaapi]: build error: ‘FF_PROFILE_VP9_0’ undeclared
Summary: =media-video/mpv-0.15.0-r1[vaapi]: build error: ‘FF_PROFILE_VP9_0’ undeclared
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Coacher
URL: https://github.com/mpv-player/mpv/iss...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-19 20:23 UTC by whgentoo
Modified: 2016-01-21 09:15 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
output of emerge --info mpv (emerge_info_mpv,7.28 KB, text/plain)
2016-01-19 20:52 UTC, whgentoo
Details
build log (build.log,76.20 KB, text/plain)
2016-01-19 20:53 UTC, whgentoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description whgentoo 2016-01-19 20:23:18 UTC
My build error is:
"../video/decode/vaapi.c:115:35: error: ‘FF_PROFILE_VP9_0’ undeclared here (not in a function)"

I found the following in mpv's release note:
"vaapi: add VP9 profile (requires VA-API 0.38.1 or newer)"



ANd VA-API 0.38.1 was added in this commit http://cgit.freedesktop.org/libva/commit/?id=46ffebbf3c1ff123c47ef915ce49a59a5f6faf6e
Comment 1 Coacher 2016-01-19 20:42:48 UTC
What x11-libs/libva version do you have installed?
Comment 2 Coacher 2016-01-19 20:44:11 UTC
Please attach the output of `emerge --info mpv` and full build.log where this problem occurs (compress if needed).
Comment 3 Maxim Koltsov (RETIRED) gentoo-dev 2016-01-19 20:45:14 UTC
Hi!
I can confirm this bug with libva 1.6.2.
Can you check if this VP9 profile is present in some release of libva (if I get
it right)? Maybe we should bump it.
Comment 4 whgentoo 2016-01-19 20:52:56 UTC
Created attachment 423388 [details]
output of emerge --info mpv
Comment 5 whgentoo 2016-01-19 20:53:25 UTC
Created attachment 423390 [details]
build log
Comment 6 Coacher 2016-01-19 20:54:34 UTC
VP9 profile is hidden behind a guard in mpv sources. It seems for some reason it doesn't work as supposed to: https://github.com/mpv-player/mpv/blob/v0.15.0/video/decode/vaapi.c#L112
Comment 7 Coacher 2016-01-19 20:55:30 UTC
(In reply to Maxim Koltsov from comment #3)
> Hi!
> I can confirm this bug with libva 1.6.2.
> Can you check if this VP9 profile is present in some release of libva (if I
> get
> it right)? Maybe we should bump it.

Same version of libva here and this problem is not reproducible. I wonder if this profile gets included in libva via some option or smth.
Comment 8 Maxim Koltsov (RETIRED) gentoo-dev 2016-01-19 20:56:38 UTC
(In reply to Coacher from comment #7)
> (In reply to Maxim Koltsov from comment #3)
> > Hi!
> > I can confirm this bug with libva 1.6.2.
> > Can you check if this VP9 profile is present in some release of libva (if I
> > get
> > it right)? Maybe we should bump it.
> 
> Same version of libva here and this problem is not reproducible. I wonder if
> this profile gets included in libva via some option or smth.

Can this be related to ffmpeg/libav? I use libav.
Comment 9 Coacher 2016-01-19 20:58:48 UTC
(In reply to Maxim Koltsov from comment #8)
> (In reply to Coacher from comment #7)
> > (In reply to Maxim Koltsov from comment #3)
> > > Hi!
> > > I can confirm this bug with libva 1.6.2.
> > > Can you check if this VP9 profile is present in some release of libva (if I
> > > get
> > > it right)? Maybe we should bump it.
> > 
> > Same version of libva here and this problem is not reproducible. I wonder if
> > this profile gets included in libva via some option or smth.
> 
> Can this be related to ffmpeg/libav? I use libav.

Don't know yet. I use ffmpeg-2.8.5. Will post back after looking closer at libva src.
Comment 10 Coacher 2016-01-19 21:39:29 UTC
(In reply to Maxim Koltsov from comment #3)
> Can you check if this VP9 profile is present in some release of libva (if I
> get
> it right)?

This profile is available in API in libva >= 1.6.0,
vainfo learnt it in libva >= 1.6.1, VA API 0.38.1 is in libva-1.6.2.

The error is about FF_PROFILE_VP9_0 symbol, which is available in ffmpeg >= 2.7 and libav master, but not yet even in libav-11.4.
Comment 11 Coacher 2016-01-19 21:40:41 UTC
Maxim Koltsov, whgentoo@gmail.com what libva and ffmpeg/libav versions do you have installed?
Comment 12 Maxim Koltsov (RETIRED) gentoo-dev 2016-01-19 21:43:25 UTC
(In reply to Coacher from comment #11)
> Maxim Koltsov, whgentoo@gmail.com what libva and ffmpeg/libav versions do
> you have installed?

libva 1.6.2
libav 11.3-r1

Do you know anything about libav release schedule? Maybe we should adjust dependecies to make this problem visible...

By the way, I used to proxy maintain mpv with Nikoli, who now seems to be missing. If you need any help, I'll be happy to proxy maintain it with you.
Comment 13 whgentoo 2016-01-19 21:45:17 UTC
(In reply to Coacher from comment #11)
> Maxim Koltsov, whgentoo@gmail.com what libva and ffmpeg/libav versions do
> you have installed?

I'm with ffmpeg-2.6.3.
Comment 14 Coacher 2016-01-19 22:03:12 UTC
(In reply to Maxim Koltsov from comment #12)
> (In reply to Coacher from comment #11)
> > Maxim Koltsov, whgentoo@gmail.com what libva and ffmpeg/libav versions do
> > you have installed?
> 
> libva 1.6.2
> libav 11.3-r1
> 
> Do you know anything about libav release schedule? Maybe we should adjust
> dependecies to make this problem visible...

No, I don't know about libav schedule. I think this problem should be fixed in mpv upstream. Because their VP9 guard assumes everyone runs the very latest ffmpeg/libav, but their configure script states that ffmpeg-2.4/libav-11 should be enough.

> By the way, I used to proxy maintain mpv with Nikoli, who now seems to be
> missing. If you need any help, I'll be happy to proxy maintain it with you.

Thank you for the suggestion. I've tried to reach you via email before without any luck. Glad to finally hear from you.
Comment 15 Maxim Koltsov (RETIRED) gentoo-dev 2016-01-19 22:05:36 UTC
(In reply to Coacher from comment #14)
> (In reply to Maxim Koltsov from comment #12)
> > (In reply to Coacher from comment #11)
> > > Maxim Koltsov, whgentoo@gmail.com what libva and ffmpeg/libav versions do
> > > you have installed?
> > 
> > libva 1.6.2
> > libav 11.3-r1
> > 
> > Do you know anything about libav release schedule? Maybe we should adjust
> > dependecies to make this problem visible...
> 
> No, I don't know about libav schedule. I think this problem should be fixed
> in mpv upstream. Because their VP9 guard assumes everyone runs the very
> latest ffmpeg/libav, but their configure script states that
> ffmpeg-2.4/libav-11 should be enough.
> 
> > By the way, I used to proxy maintain mpv with Nikoli, who now seems to be
> > missing. If you need any help, I'll be happy to proxy maintain it with you.
> 
> Thank you for the suggestion. I've tried to reach you via email before
> without any luck. Glad to finally hear from you.

I'm truly sorry for that! Had a little lack of time for Gentoo, so I missed your email.
I'll read it and answer tomorrow.
Comment 16 Coacher 2016-01-19 22:07:23 UTC
(In reply to whgentoo from comment #13)
> (In reply to Coacher from comment #11)
> > Maxim Koltsov, whgentoo@gmail.com what libva and ffmpeg/libav versions do
> > you have installed?
> 
> I'm with ffmpeg-2.6.3.

And what is your _libva_ (not libav) version?
Comment 17 whgentoo 2016-01-19 22:44:38 UTC
(In reply to Coacher from comment #16)
> (In reply to whgentoo from comment #13)
> > (In reply to Coacher from comment #11)
> > > Maxim Koltsov, whgentoo@gmail.com what libva and ffmpeg/libav versions do
> > > you have installed?
> > 
> > I'm with ffmpeg-2.6.3.
> 
> And what is your _libva_ (not libav) version?

libva=1.6.2, the stable version in tree.
Comment 18 Patrice Clement (RETIRED) gentoo-dev 2016-01-21 09:15:44 UTC
commit 80298dc (HEAD, master)
Merge: 89964fa 7b03d80
Author: Patrice Clement <monsieurp@gentoo.org>
Date:   Thu Jan 21 09:13:16 2016 +0000

    Merge remote-tracking branch 'github/pr/696'.
    
    Gentoo-Bug: 572386
    Pull-Request: https://github.com/gentoo/gentoo/pull/696