Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

mplayer with vaapi?

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
42 posts
  • Previous
  • 1
  • 2
Author
Message
Arctic
Apprentice
Apprentice
User avatar
Posts: 207
Joined: Mon Jul 04, 2011 11:19 am

  • Quote

Post by Arctic » Fri Jun 29, 2012 11:43 am

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: Select all

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 :
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
Top
Gusar
Advocate
Advocate
Posts: 2665
Joined: Sat Apr 09, 2005 10:19 pm
Location: Slovenia

  • Quote

Post by Gusar » Fri Jun 29, 2012 12:09 pm

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.
Top
Arctic
Apprentice
Apprentice
User avatar
Posts: 207
Joined: Mon Jul 04, 2011 11:19 am

  • Quote

Post by Arctic » Fri Jun 29, 2012 2:37 pm

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
Top
Gusar
Advocate
Advocate
Posts: 2665
Joined: Sat Apr 09, 2005 10:19 pm
Location: Slovenia

  • Quote

Post by Gusar » Fri Jun 29, 2012 6:34 pm

At the Phoronix forums. I'm too lazy right now to give you a direct link, but search for posts by bridgman,
Top
Gregoire
Apprentice
Apprentice
User avatar
Posts: 292
Joined: Sat Apr 15, 2006 9:51 am

  • Quote

Post by Gregoire » Thu Aug 02, 2012 5:40 pm

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

Code: Select all

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

Code: Select all

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
Top
Gregoire
Apprentice
Apprentice
User avatar
Posts: 292
Joined: Sat Apr 15, 2006 9:51 am

  • Quote

Post by Gregoire » Sun Aug 05, 2012 8:37 am

All works again as non root today :-)
Top
Xywa
Veteran
Veteran
User avatar
Posts: 1631
Joined: Sat Jul 23, 2005 2:00 pm
Location: /mnt/Gentoo/Europe

  • Quote

Post by Xywa » Wed Sep 05, 2012 8:37 pm

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:
# ./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?
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
Top
LiquidAcid
Apprentice
Apprentice
Posts: 171
Joined: Mon Sep 11, 2006 8:13 pm

  • Quote

Post by LiquidAcid » Wed Sep 19, 2012 7:09 pm

Xywa wrote:Do I need this git?
Yes, and make sure that libva is also installed. Otherwise configure won't enable vaapi support.
Top
nihil39
Tux's lil' helper
Tux's lil' helper
Posts: 97
Joined: Tue Nov 15, 2005 8:40 am
Location: Italy

  • Quote

Post by nihil39 » Thu Oct 18, 2012 8:19 pm

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
Top
nihil39
Tux's lil' helper
Tux's lil' helper
Posts: 97
Joined: Tue Nov 15, 2005 8:40 am
Location: Italy

  • Quote

Post by nihil39 » Fri Oct 19, 2012 9:55 am

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: Select all

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.
Top
nihil39
Tux's lil' helper
Tux's lil' helper
Posts: 97
Joined: Tue Nov 15, 2005 8:40 am
Location: Italy

  • Quote

Post by nihil39 » Sun Oct 21, 2012 1:53 pm

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: Select all

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
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: Select all

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.
Top
LiquidAcid
Apprentice
Apprentice
Posts: 171
Joined: Mon Sep 11, 2006 8:13 pm

  • Quote

Post by LiquidAcid » Sat Dec 29, 2012 10:57 pm

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.
Top
v1c3
n00b
n00b
Posts: 5
Joined: Wed May 15, 2013 12:20 am

  • Quote

Post by v1c3 » Sat Jun 29, 2013 1:41 pm

I did exactly what nihil39 said.

I cant compile it:

Code: Select all

...-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.
Top
el_Salmon
Guru
Guru
User avatar
Posts: 339
Joined: Mon Dec 15, 2003 10:49 pm
Location: Around 2.4GHz
Contact:
Contact el_Salmon
Website

  • Quote

Post by el_Salmon » Fri Jul 12, 2013 7:24 pm

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: Select all

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: Select all

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

Code: Select all

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)
Top
v1c3
n00b
n00b
Posts: 5
Joined: Wed May 15, 2013 12:20 am

  • Quote

Post by v1c3 » Tue Sep 10, 2013 4:43 pm

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: Select all

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?
Top
chessmaster
Tux's lil' helper
Tux's lil' helper
Posts: 77
Joined: Fri Apr 05, 2013 2:35 pm

  • Quote

Post by chessmaster » Mon Sep 23, 2013 11:21 pm

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: Select all

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/
Top
chessmaster
Tux's lil' helper
Tux's lil' helper
Posts: 77
Joined: Fri Apr 05, 2013 2:35 pm

  • Quote

Post by chessmaster » Tue Sep 24, 2013 5:39 pm

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.
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/
Top
Post Reply

42 posts
  • Previous
  • 1
  • 2

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic