Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mplayer with vaapi?
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Arctic
Apprentice
Apprentice


Joined: 04 Jul 2011
Posts: 207

PostPosted: Fri Jun 29, 2012 11:43 am    Post subject: Reply with quote

Gusar wrote:
Note that you don't actually get hardware decoding with that. Gallium3D VDPAU supports only mpeg2 decoding. And if you want that (you have a mpeg2 video), you need to explicitly specify it:
Code:
mplayer -vo vdpau -vc ffmpeg12vdpau

Without specifying the codec, you only get presentation (the "p" of vdpau), which in open source drivers I don't think is any better than using the default -vo xv


We hope it works with mpeg4 this year but radeon feature page shows WIP status :

Quote:
WIP" means that someone has started on the initial implementation.


otherwise using (Vaapi - Hardware acelerate) or (XV or VDPAU) uses the same CPU in my computer which is the same % that UVD2 in windows , not there are a diference with opensource driver i hanvent tearing with vaapi i need to switch on vsync and the CPU use increase .
_________________
ln -s /user/artic /user/arctic
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Fri Jun 29, 2012 12:09 pm    Post subject: Reply with quote

Work on supporting other codecs with shaders has halted actually. Christian König is now working on UVD support (proper hardware decoding using the dedicated ASIC instead of shaders), but it's unknown whether that stuff will actually be released, it might not pass legal review.
Back to top
View user's profile Send private message
Arctic
Apprentice
Apprentice


Joined: 04 Jul 2011
Posts: 207

PostPosted: Fri Jun 29, 2012 2:37 pm    Post subject: Reply with quote

Gusar wrote:
Work on supporting other codecs with shaders has halted actually. Christian König is now working on UVD support (proper hardware decoding using the dedicated ASIC instead of shaders), but it's unknown whether that stuff will actually be released, it might not pass legal review.


UDV ???? In developer page is masrked as "TODO" what means nobody is woking on ............ where do you read it????
_________________
ln -s /user/artic /user/arctic
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2665
Location: Slovenia

PostPosted: Fri Jun 29, 2012 6:34 pm    Post subject: Reply with quote

At the Phoronix forums. I'm too lazy right now to give you a direct link, but search for posts by bridgman,
Back to top
View user's profile Send private message
Gregoire
Apprentice
Apprentice


Joined: 15 Apr 2006
Posts: 292

PostPosted: Thu Aug 02, 2012 5:40 pm    Post subject: Reply with quote

Does anyone know what changed in xorg/liva/intel/??? recently as I can't use vaapi anymore in a non root account ?
Code:

vainfo
libva: VA-API version 0.33.0
vainfo: dri2_util.c:176: isDRI2Connected: Assertion `dri_state->fd >= 0' failed.
Aborted

But
Code:

sudo vainfo
libva: VA-API version 0.33.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/va/drivers/i965_drv_video.so
libva: Found init function __vaDriverInit_0_33
libva: va_openDriver() returns 0
vainfo: VA-API version: 0.33 (libva 1.1.0)
vainfo: Driver version: Intel i965 driver - 1.0.18
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264Baseline           : VAEntrypointVLD
      VAProfileH264Baseline           : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
Back to top
View user's profile Send private message
Gregoire
Apprentice
Apprentice


Joined: 15 Apr 2006
Posts: 292

PostPosted: Sun Aug 05, 2012 8:37 am    Post subject: Reply with quote

All works again as non root today :-)
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1631
Location: /mnt/Gentoo/Europe

PostPosted: Wed Sep 05, 2012 8:37 pm    Post subject: Reply with quote

Could any one step by step explain how to install mplayer VAAPI on Gentoo?

I have problem during ./configure as it says it could not find ffmpeg, and then is problem with git:
Quote:
# ./configure
No FFmpeg checkout, press enter to download one with git or CTRL+C to abort

./configure: line 53: git: command not found
Failed to get a FFmpeg checkout


Do I need this git?
Quote:
dev-vcs/git
Latest version available: 1.7.12-r2
Latest version installed: [ Not Installed ]
Size of files: 4,501 kB
Homepage: http://www.git-scm.com/
Description: GIT - the stupid content tracker, the revision control system heavily used by the Linux kernel team
License: GPL-2
Back to top
View user's profile Send private message
LiquidAcid
Apprentice
Apprentice


Joined: 11 Sep 2006
Posts: 171

PostPosted: Wed Sep 19, 2012 7:09 pm    Post subject: Reply with quote

Xywa wrote:
Do I need this git?

Yes, and make sure that libva is also installed. Otherwise configure won't enable vaapi support.
Back to top
View user's profile Send private message
nihil39
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2005
Posts: 97
Location: Italy

PostPosted: Thu Oct 18, 2012 8:19 pm    Post subject: Reply with quote

1. Is it necessary to unmerge mplayer2 if one wants to merge mplayer-vaapi? Will there be any conflicts?

2. Same as Xywa, instructions please... :-)

3. Is it possible to make an ebuild for this? Merging to the portage tree (and keywording or masking it, of course) would be great but the ebuild would be useful for private overlays.

Thanks
Back to top
View user's profile Send private message
nihil39
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2005
Posts: 97
Location: Italy

PostPosted: Fri Oct 19, 2012 9:55 am    Post subject: Reply with quote

I mean, will the following code be enough to install mplayer-vaapi without breaking the existing mplayer2 installation and/or harming the whole system?

Code:
git clone git://gitorious.org/vaapi/mplayer.git mplayer
cd mplayer
git pull origin hwaccel-vaapi
cd ..
./configure --prefix=/usr/local
make
make install


Thanks.
Back to top
View user's profile Send private message
nihil39
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2005
Posts: 97
Location: Italy

PostPosted: Sun Oct 21, 2012 1:53 pm    Post subject: Reply with quote

I installed mplayer-vaapi sources pulled in by git in a separate directory in /usr/local then i created a symlink to the mplayer-vaapi executable in /usr/bin .

I followed the following instructions:

Code:
git clone git://gitorious.org/vaapi/mplayer.git mplayer-vaapi
cd mplayer-vaapi
git pull origin hwaccel-vaapi
./configure --prefix=/usr/local
make


I had to compile ffmpeg too, i was asked to do so. All the executables went in that directory, /usr/local remained empty.
No make install and also this is false in my experience
Quote:
You must run autoconf after the git branch is pulled or the vaapi codecs won't get built at all


All seems to work fine, i'm getting hw video acceleration! I've also run emerge --sync and emerge -avDu world to see if something was messed up but it wasn't.

I run it with
Code:
mplayer-vaapi -vo vaapi -va vaapi
but what does the -va option do? I can't find it in the manual while instead mplayer-vaapi -vo help shows all the available video output options.

The vaapi implementation is not meged in the mplayer2 project because "the vaapi implementation code sucks" and i guess the mplayer2 aims at good quality of code. The original mplayer project is not that active and vlc implementations is ridicolous, look at the cpu usage in mplayer-vaapi compared to that of vlc with vaapi support.

That said: can we write an ebuild for mplayer-vaapi that pulls the sources from that gitorius site. Anyone willing to do that? I could help but i'm not an expert at all.
Back to top
View user's profile Send private message
LiquidAcid
Apprentice
Apprentice


Joined: 11 Sep 2006
Posts: 171

PostPosted: Sat Dec 29, 2012 10:57 pm    Post subject: Reply with quote

VAAPI can be used for both presentation and decoding purpose. The VO setting just deals with presentation (how is the picture rendered to the screen). The more interesting part however is to actually use the decoding functionality, and that's what the VA setting deals with.
Back to top
View user's profile Send private message
v1c3
n00b
n00b


Joined: 15 May 2013
Posts: 5

PostPosted: Sat Jun 29, 2013 1:41 pm    Post subject: Reply with quote

I did exactly what nihil39 said.

I cant compile it:
Code:

...-ffast-math -fomit-frame-pointer -fno-tree-vectorize -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4  -fpie -DPIC -D_REENTRANT  -I/usr/include/libgtop-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include    -I/usr/include/freetype2 -I/usr/include/opus  -c -o libvo/vo_vaapi.o libvo/vo_vaapi.c
libvo/vo_vaapi.c: In function 'gen_osd_palette':
libvo/vo_vaapi.c:695:12: warning: variable 'is_rgb' set but not used [-Wunused-but-set-variable]
libvo/vo_vaapi.c: In function 'get_fbconfig_for_depth':
libvo/vo_vaapi.c:1476:38: warning: variable 'mipmap' set but not used [-Wunused-but-set-variable]
libvo/vo_vaapi.c: In function 'get_display_attribute':
libvo/vo_vaapi.c:2621:5: error: implicit declaration of function 'strcasecmp' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make: *** [libvo/vo_vaapi.o] Error 1


Last edited by v1c3 on Mon Sep 02, 2013 12:13 am; edited 1 time in total
Back to top
View user's profile Send private message
el_Salmon
Guru
Guru


Joined: 15 Dec 2003
Posts: 339
Location: Around 2.4GHz

PostPosted: Fri Jul 12, 2013 7:24 pm    Post subject: Reply with quote

Hi,

this new library may get HW acceleration for H.264 videos via VAAPI-VDPAU translation: https://github.com/i-rinat/libvdpau-va-gl. I'm going to give a try :)

Update
After compile mplayer with VDPAU and run:
Code:
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1

But it's linked:
Code:

ldd /usr/bin/mplayer | grep vdpau
        libvdpau.so.1 => /usr/lib64/libvdpau.so.1 (0x00007f8242fda000)

Code:
ls -l /usr/lib64/libvdpau.so*
lrwxrwxrwx 1 root root    17 jul  8 22:24 /usr/lib64/libvdpau.so -> libvdpau.so.1.0.0
lrwxrwxrwx 1 root root    17 jul  8 22:24 /usr/lib64/libvdpau.so.1 -> libvdpau.so.1.0.0
-rwxr-xr-x 1 root root 14560 jul  8 22:24 /usr/lib64/libvdpau.so.1.0.0

_________________
Linux Proud User: HP Pavilion 15-an002ns laptop (KDE Neon), Xiaomi Mi Air 12 (KDE Neon), Raspberry Pi 3 (Nextcloudpi), Docooler MS9 Pro (LibreElec)
Back to top
View user's profile Send private message
v1c3
n00b
n00b


Joined: 15 May 2013
Posts: 5

PostPosted: Tue Sep 10, 2013 4:43 pm    Post subject: Reply with quote

FYI: Just found this: vaapi support in mpv-9999:

* media-video/mpv
Available versions: (~)0.1.3 (~)0.1.4 (~)0.1.5 **9999 {+X +alsa aqua bluray bs2b +cdio dvb +dvd +enca encode +iconv jack joystick jpeg ladspa lcms +libass libcaca libguess lirc mng +mp3 -openal +opengl oss portaudio +postproc pulseaudio pvr +quvi radio samba +shm +threads v4l vaapi vcd vdpau vf-dlopen wayland xinerama +xscreensaver +xv}
Homepage: http://mpv.io/
Description: Video player based on MPlayer/mplayer2

Since 3-4 months I have another Problem: I get the following error while using vaapi video acceleration in mpv/git-mplayer-vaapi:

Code:
xvba_video: error: Assertion failed in file xvba_image.c at line 453 .


mplayer-vaapi is crashing when I try to forward a video. mpv doesnt start with vo vaapi and thros the mentioned ERROR.
I am using ati-driver-13.1_pre897. Already tried different versions of xvba-video.
what does mplayerx with a *.c file?
Back to top
View user's profile Send private message
chessmaster
Tux's lil' helper
Tux's lil' helper


Joined: 05 Apr 2013
Posts: 77

PostPosted: Mon Sep 23, 2013 11:21 pm    Post subject: Reply with quote

v1c3 wrote:
FYI: Just found this: vaapi support in mpv-9999:

* media-video/mpv
Available versions: (~)0.1.3 (~)0.1.4 (~)0.1.5 **9999 {+X +alsa aqua bluray bs2b +cdio dvb +dvd +enca encode +iconv jack joystick jpeg ladspa lcms +libass libcaca libguess lirc mng +mp3 -openal +opengl oss portaudio +postproc pulseaudio pvr +quvi radio samba +shm +threads v4l vaapi vcd vdpau vf-dlopen wayland xinerama +xscreensaver +xv}
Homepage: http://mpv.io/
Description: Video player based on MPlayer/mplayer2

Since 3-4 months I have another Problem: I get the following error while using vaapi video acceleration in mpv/git-mplayer-vaapi:

Code:
xvba_video: error: Assertion failed in file xvba_image.c at line 453 .


mplayer-vaapi is crashing when I try to forward a video. mpv doesnt start with vo vaapi and thros the mentioned ERROR.
I am using ati-driver-13.1_pre897. Already tried different versions of xvba-video.
what does mplayerx with a *.c file?

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=682419
I saw this has something to do with it. There is a patch but currently not for the version in portage.
_________________
http://www.morphos.de/
Back to top
View user's profile Send private message
chessmaster
Tux's lil' helper
Tux's lil' helper


Joined: 05 Apr 2013
Posts: 77

PostPosted: Tue Sep 24, 2013 5:39 pm    Post subject: Reply with quote

Quote:
bzcat README.bz2

xvba-video
An XvBA-based backend for VA-API

Copyright (C) 2009-2011 Splitted-Desktop Systems


License
-------

xvba-video is available under the terms of the GNU General Public
License.


Overview
--------

xvba-video consists in an XvBA-based backend for VA-API.


Requirements
------------

libVA API version (not package) GLX support
0.29-branch >= 0.29.0-sds8 No
0.30-branch >= 0.30.0-sds1 No
0.30-branch >= 0.30.4-sds5 Yes
upstream 0.31-branch No
0.31-branch >= 0.31.0-sds1 Yes

mplayer-vaapi >= 20090320 patchset is also needed if you intend to use
MPlayer.



Quote:

bzcat NEWS.bz2
xvba-video NEWS -- summary of changes. 2011-06-14
Copyright (C) 2009-2011 Splitted-Desktop Systems

Version 0.8.0 - 14.Jun.2011
* Relicense code to GPLv2
* Require fglrx >= 8.80.5 (Catalyst 10.12)

_________________
http://www.morphos.de/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum