You are not logged in.

#1 2010-09-23 13:35:02

klixu
Member
Registered: 2009-10-29
Posts: 19

compiling gstreamer-vaapi [solved]

Hi all,

Since AUR doesn't have gstreamer-vaapi in it, I figured I'd compile it by hand so that I could have video acceleration in miro.  Compilation went just fine, but it stated that

gstreamer-vaapi configuration summary:

VA-API version ................... : 0.31.1
GLX support ...................... : yes
VA/GLX support ................... : yes
VaapiSink/GL ..................... : no

vaapisink missing I can't add vaapi to gstreamer-properties.  The README also states that I need the libraries
Software requirements

  * libgstreamer0.10-dev >= 0.10.10
  * libgstreamer-plugins-base0.10-dev >= 0.10.16
  * libva-dev >= 0.31.0-1+sds9 (VA/GLX)
  * libavcodec-dev >= 0.6 or with <libavcodec/vaapi.h>

I can't figure out which packages libva-dev and libavcodec-dev belong to.

So what am I doing wrong?

Last edited by klixu (2010-09-23 16:34:29)

Offline

#2 2010-09-23 13:39:21

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: compiling gstreamer-vaapi [solved]

libva and ffmpeg is what you need. you can look at the test for VaapiSink/GL in config.log


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-09-23 14:00:20

klixu
Member
Registered: 2009-10-29
Posts: 19

Re: compiling gstreamer-vaapi [solved]

| #include <ffmpeg/avcodec.h>
configure:22003: result: no
configure:22007: checking ffmpeg/avcodec.h presence
configure:22022: gcc -E  conftest.c
conftest.c:27:28: fatal error: ffmpeg/avcodec.h: No such file or directory
compilation terminated.
configure:22028: $? = 1
configure: failed program was:

This seems to be the relevant line.  From what I understand from grepping and looking inside ffmpeg package, libavcodec is a part of ffmpeg, so it shares the avcodec.h.  I'll keep looking.

Offline

#4 2010-09-23 14:02:37

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: compiling gstreamer-vaapi [solved]

[stijn@hermes ~]$ pacman -Ql ffmpeg|grep avcodec.h
ffmpeg /usr/include/libavcodec/avcodec.h

I think you need to fix the path for configure.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2010-09-23 14:10:04

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: compiling gstreamer-vaapi [solved]

yes, is using a check for a very old ffmpeg version


Give what you have. To someone, it may be better than you dare to think.

Offline

#6 2010-09-23 14:10:19

klixu
Member
Registered: 2009-10-29
Posts: 19

Re: compiling gstreamer-vaapi [solved]

eh, I couldn't find the path to ffmpeg in configure.  Seems a bit strange, but I'll give up for now.  Thanks all.

Offline

#7 2010-09-23 15:05:39

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: compiling gstreamer-vaapi [solved]

Btw, I downloaded the source myself and configure reports this:

checking for LIBVA... yes
checking for old VA-API 0.29... no
checking for LIBVA_X11... yes
checking for LIBVA_GLX... yes
checking for LIBAVCODEC... yes
checking libavcodec/avcodec.h usability... yes
checking libavcodec/avcodec.h presence... yes
checking for libavcodec/avcodec.h... yes
checking ffmpeg/avcodec.h usability... no
checking ffmpeg/avcodec.h presence... no
checking for ffmpeg/avcodec.h... no
checking libavcodec/vaapi.h usability... yes
checking libavcodec/vaapi.h presence... yes
checking for libavcodec/vaapi.h... yes
configure: creating ./config.status
config.status: creating Makefile

Notice it checks for both /usr/include/ffmpeg and /usr/include/libavcodec/, so configure is fine. The funny thing is, if you use

./configure --enable-vaapisink-glx

it shows this:

gstreamer-vaapi configuration summary:

VA-API version ................... : 0.31.1
GLX support ...................... : yes
VA/GLX support ................... : yes
VaapiSink/GL ..................... : yes

I think the default configure switches are borked, maybe you should report this to the devs.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#8 2010-09-23 16:31:44

klixu
Member
Registered: 2009-10-29
Posts: 19

Re: compiling gstreamer-vaapi [solved]

oh sweet, thanks.  It compiles fine now, but I'm stuck to where I started: gstreamer-properties does not show the sink as an option.  setting to custom and vaapisink fails to find it. or rather it says this:

Custom: could not link ffmpegcsp0 to vaapisink0

gst-inspect-0.10 gives this:
$ gst-inspect-0.10 |grep vaapi
vaapisink:  vaapisink: VA-API sink
vaapiconvert:  vaapiconvert: VA-API colorspace converter
vaapidecode:  vaapidecode: VA-API decoder


I have zero knowledge of gstreamer. sad

EDIT: auto finds it! I'll mark this as solved, thanks again smile

Last edited by klixu (2010-09-23 16:33:57)

Offline

#9 2010-09-23 17:36:22

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: compiling gstreamer-vaapi [solved]

Good. I hope you take the time to report this upstream smile.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#10 2010-09-23 18:11:03

klixu
Member
Registered: 2009-10-29
Posts: 19

Re: compiling gstreamer-vaapi [solved]

I sent them a mail already. smile

Offline

#11 2010-09-24 03:43:41

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: compiling gstreamer-vaapi [solved]

is this plugin supposed to work within a browser (read: with html5 videos) or only to play local files as a "regular player" ? thanks.

Offline

#12 2010-09-24 03:53:41

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: compiling gstreamer-vaapi [solved]

Could we have an AUR PKGBUILD please big_smile

Offline

Board footer

Powered by FluxBB