LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
 
Search this Thread
Old 07-18-2014, 03:41 AM   #16
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 115

Rep: Reputation: Disabled

Not sure how much more help I can be. Looking at the gitorious website, mplayer-vaapi hasn't been updated in over a year! The last build brought it into line with mplayer svn rev 36265. Mine is back at 35107, and I have a feeling that's because that was the last version I got to build correctly!!!

Having said that, the errors you are getting seem to relate to libmpcodecs, and according to gitorious, those don't seem to have been updated since 2009 - at least in the hwaccel-vaapi branch.

I'll try and make some time later today and have a go at compiling more recent versions on my laptop, and see how far I get. However, I'm not a programmer, so don't hold your breath! All I can do is tell you what worked for me.

BTW, I'm in England, so there's a bit of a time difference between us.

--
Pete
 
Old 07-18-2014, 06:05 AM   #17
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 834

Original Poster
Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by pchristy View Post
Not sure how much more help I can be. Looking at the gitorious website, mplayer-vaapi hasn't been updated in over a year! The last build brought it into line with mplayer svn rev 36265. Mine is back at 35107, and I have a feeling that's because that was the last version I got to build correctly!!!

Having said that, the errors you are getting seem to relate to libmpcodecs, and according to gitorious, those don't seem to have been updated since 2009 - at least in the hwaccel-vaapi branch.

I'll try and make some time later today and have a go at compiling more recent versions on my laptop, and see how far I get. However, I'm not a programmer, so don't hold your breath! All I can do is tell you what worked for me.

BTW, I'm in England, so there's a bit of a time difference between us.

--
Pete
Not a problem at all! Thank you already for all your great help. It's no big deal if you can't figure it out. I'll keep searching other distros to see if they have any patches available. I'll report back once I'm successful (hopefully).
 
Old 07-18-2014, 08:35 AM   #18
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 115

Rep: Reputation: Disabled
OK, I'm now puzzled! I built the "master" version of mplayer-vaapi, and you are quite right, although it built fine, it doesn't include vaapi!!!

I then tried the hwaccel-vaapi version, and it built and ran just fine! No errors!

Code:
 ./mplayer -vo help
MPlayer SVN-r36265-4.7.1 (C) 2000-2013 MPlayer Team
Available video output drivers:
        xv      X11/Xv
        gl_nosw OpenGL no software rendering
        x11     X11 ( XImage/Shm )
        xover   General X11 driver for overlay capable video output drivers
        sdl     SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
        gl      OpenGL
        gl_tiled        X11 (OpenGL) - multiple textures version
        dga     DGA ( Direct Graphic Access V2.0 )
        fbdev   Framebuffer Device
        fbdev2  Framebuffer Device
        svga    SVGAlib
        matrixview      MatrixView (OpenGL)
        aa      AAlib
        caca    libcaca
        v4l2    V4L2 MPEG Video Decoder Output
        xvidix  X11 (VIDIX)
        cvidix  console VIDIX
        null    Null video output
        mpegpes MPEG-PES to DVB card
        yuv4mpeg        yuv4mpeg output for mjpegtools
        png     PNG file
        jpeg    JPEG file
        gif89a  animated GIF output
        tga     Targa output
        pnm     PPM/PGM/PGMYUV file
        md5sum  md5sum of each frame
        mng     MNG file
        vaapi   VA API with X11
I then tried playing a hi-def test file straight off my camera, and again, it played fine:

Code:
./mplayer 00008.MTS
MPlayer SVN-r36265-4.7.1 (C) 2000-2013 MPlayer Team

Playing 00008.MTS.
libavformat version 55.7.100 (internal)
TS file format detected.
VIDEO H264(pid=4113) AUDIO A52(pid=4352) SUB Teletext(pid=4608)  PROGRAM N. 1
FPS seems to be: 25.000000
Load subtitles in /home/pchristy/
[vo_vaapi] Using OpenGL rendering
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/fglrx_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 55.9.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 256.0 kbit/8.33% (ratio: 32000->384000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
[Mixer] No hardware mixing, inserting volume filter.
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Movie-Aspect is undefined - no prescaling applied.
VO: [vaapi] 1920x1088 => 1920x1088 H.264 VA-API Acceleration  [fs]
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Movie-Aspect is undefined - no prescaling applied.
VO: [vaapi] 1920x1080 => 1920x1080 H.264 VA-API Acceleration  [fs]
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vaapi] 1920x1080 => 1920x1080 H.264 VA-API Acceleration  [fs]
A:  18.1 V:  18.1 A-V:  0.021 ct: -0.099 878/878 43% 12%  2.1% 28 0 

Exiting... (Quit)
The only thing I can think is that the libmpcodecs doesn't like the latest gcc. Clutching at straws here, but it might be worth trying replacing the libmpcodecs folder in the hwaccel-vaapi version with the one from the "master", which appears to be much newer.

Its a bit of a long shot, but I guess there's nothing to lose!

--
Pete
 
1 members found this post helpful.
Old 07-18-2014, 08:57 AM   #19
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 834

Original Poster
Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by pchristy View Post
OK, I'm now puzzled! I built the "master" version of mplayer-vaapi, and you are quite right, although it built fine, it doesn't include vaapi!!!

I then tried the hwaccel-vaapi version, and it built and ran just fine! No errors!

Code:
 ./mplayer -vo help
MPlayer SVN-r36265-4.7.1 (C) 2000-2013 MPlayer Team
Available video output drivers:
        xv      X11/Xv
        gl_nosw OpenGL no software rendering
        x11     X11 ( XImage/Shm )
        xover   General X11 driver for overlay capable video output drivers
        sdl     SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
        gl      OpenGL
        gl_tiled        X11 (OpenGL) - multiple textures version
        dga     DGA ( Direct Graphic Access V2.0 )
        fbdev   Framebuffer Device
        fbdev2  Framebuffer Device
        svga    SVGAlib
        matrixview      MatrixView (OpenGL)
        aa      AAlib
        caca    libcaca
        v4l2    V4L2 MPEG Video Decoder Output
        xvidix  X11 (VIDIX)
        cvidix  console VIDIX
        null    Null video output
        mpegpes MPEG-PES to DVB card
        yuv4mpeg        yuv4mpeg output for mjpegtools
        png     PNG file
        jpeg    JPEG file
        gif89a  animated GIF output
        tga     Targa output
        pnm     PPM/PGM/PGMYUV file
        md5sum  md5sum of each frame
        mng     MNG file
        vaapi   VA API with X11
I then tried playing a hi-def test file straight off my camera, and again, it played fine:

Code:
./mplayer 00008.MTS
MPlayer SVN-r36265-4.7.1 (C) 2000-2013 MPlayer Team

Playing 00008.MTS.
libavformat version 55.7.100 (internal)
TS file format detected.
VIDEO H264(pid=4113) AUDIO A52(pid=4352) SUB Teletext(pid=4608)  PROGRAM N. 1
FPS seems to be: 25.000000
Load subtitles in /home/pchristy/
[vo_vaapi] Using OpenGL rendering
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/dri/fglrx_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 55.9.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 256.0 kbit/8.33% (ratio: 32000->384000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
[Mixer] No hardware mixing, inserting volume filter.
Starting playback...
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Movie-Aspect is undefined - no prescaling applied.
VO: [vaapi] 1920x1088 => 1920x1088 H.264 VA-API Acceleration  [fs]
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Movie-Aspect is undefined - no prescaling applied.
VO: [vaapi] 1920x1080 => 1920x1080 H.264 VA-API Acceleration  [fs]
[VD_FFMPEG] XVMC-accelerated MPEG-2.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [vaapi] 1920x1080 => 1920x1080 H.264 VA-API Acceleration  [fs]
A:  18.1 V:  18.1 A-V:  0.021 ct: -0.099 878/878 43% 12%  2.1% 28 0 

Exiting... (Quit)
The only thing I can think is that the libmpcodecs doesn't like the latest gcc. Clutching at straws here, but it might be worth trying replacing the libmpcodecs folder in the hwaccel-vaapi version with the one from the "master", which appears to be much newer.

Its a bit of a long shot, but I guess there's nothing to lose!

--
Pete
Are you using 14.0 or 14.1 to build it?
 
Old 07-18-2014, 08:59 AM   #20
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 834

Original Poster
Rep: Reputation: 108Reputation: 108
Also, what arguments are you passing to the configure script?
 
Old 07-18-2014, 09:31 AM   #21
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 115

Rep: Reputation: Disabled
14.0 - like I said, 14.1 is incompatible the the AMD legacy driver. Oh, and NO arguments to the configure script. Its not like a normal autogen configure script, and passing arguments to it can have unintended consequences! It should work it all out for itself.



--
Pete
 
Old 07-18-2014, 09:41 AM   #22
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 834

Original Poster
Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by pchristy View Post
14.0 - like I said, 14.1 is incompatible the the AMD legacy driver. Oh, and NO arguments to the configure script. Its not like a normal autogen configure script, and passing arguments to it can have unintended consequences! It should work it all out for itself.



--
Pete
Ah, that's right. Forgot about that.
 
Old 07-18-2014, 10:04 AM   #23
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 834

Original Poster
Rep: Reputation: 108Reputation: 108
BAH! I give up. lol The compilers in 14.1 are just too new for this old version of vaapi-mplayer. I'm going to focus on rebuilding VLC and see if I am successful there. Thank you so much pchristy for taking time to help. I appreciate it!
 
Old 07-18-2014, 01:28 PM   #24
pchristy
Member
 
Registered: Oct 2012
Location: UK
Distribution: Slackware
Posts: 115

Rep: Reputation: Disabled
No problem. Did you try using the libmpcodecs folder from the master version in the hwaccel one?

And one final thought - since it appears that even AMD have given up on vaapi and are moving to vdpau instead, it may be possible to build vdpau to use the AMD drivers. I know this can be done with the open-source drivers for newer amd hardware - it just doesn't seem to work for my gfx card.

I gave up on VLC years ago! The laptop I'm using came with windoze 7 64 bit, and I cant even get the windoze version of VLC to work with hardware acceleration! The only media player that works with it under windows is Micro$ofts own media player!

Under Linux, I've tried building it from scratch (hard work, and no hardware acceleration!), using Alien Bob's build scripts (HUGE!), and even Alien Bob's binaries, but I couldn't get hardware acceleration on any of them! If you manage to get it to work. tell me how!

Mplayer, with or without the smplayer gui just works for me, but I accept that my hardware setup is unusual. However, as its a laptop, I'm stuck with it!

Best of luck, and sorry I couldn't find a working solution for you.

Cheers,

--
Pete
 
Old 07-18-2014, 02:47 PM   #25
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 834

Original Poster
Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by pchristy View Post
No problem. Did you try using the libmpcodecs folder from the master version in the hwaccel one?

And one final thought - since it appears that even AMD have given up on vaapi and are moving to vdpau instead, it may be possible to build vdpau to use the AMD drivers. I know this can be done with the open-source drivers for newer amd hardware - it just doesn't seem to work for my gfx card.

I gave up on VLC years ago! The laptop I'm using came with windoze 7 64 bit, and I cant even get the windoze version of VLC to work with hardware acceleration! The only media player that works with it under windows is Micro$ofts own media player!

Under Linux, I've tried building it from scratch (hard work, and no hardware acceleration!), using Alien Bob's build scripts (HUGE!), and even Alien Bob's binaries, but I couldn't get hardware acceleration on any of them! If you manage to get it to work. tell me how!

Mplayer, with or without the smplayer gui just works for me, but I accept that my hardware setup is unusual. However, as its a laptop, I'm stuck with it!

Best of luck, and sorry I couldn't find a working solution for you.

Cheers,

--
Pete
I did try a different libmpcodecs, but it gave me a different failure error. Given that no new work has happened for several years now, it is pretty safe to say that it just won't build anymore. It is what it is. I tried rebuilding VLC, but I don't notice any difference in the CPU usage when hardware acceleration is turned on. At least none of the videos skip though. Thank you again for all your help. If I can figure something else out, or come up with a different solution, I'll make sure to post it here.
 
Old 07-19-2014, 01:06 PM   #26
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 376

Rep: Reputation: 104Reputation: 104
Honestly, I think the easiest way to get vaapi acceleration with mplayer is with vdpau and libvdpau-va-gl. Works like a charm here, and as an added benefit you'll get video acceleration in flash player as well.
 
1 members found this post helpful.
Old 07-20-2014, 11:09 AM   #27
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 834

Original Poster
Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by ppr:kut View Post
Honestly, I think the easiest way to get vaapi acceleration with mplayer is with vdpau and libvdpau-va-gl. Works like a charm here, and as an added benefit you'll get video acceleration in flash player as well.

I'll give that a try. Would rebuilding the standard MPlayer provided by Slackware work?
 
Old 07-20-2014, 11:19 AM   #28
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 376

Rep: Reputation: 104Reputation: 104
Yeah, worked fine for me. Just needs "--enable-vdpau" as additional configure parameter.
The only thing to keep in mind is that you need to tell vdpau what implementation library to use, since it defaults to nvidia's. You can simply do that using

Code:
export VDPAU_DRIVER="va_gl"
before running mplayer. Or permanently by putting it in you bashrc/bash_profile or /etc/profile.d
 
1 members found this post helpful.
Old 07-20-2014, 12:28 PM   #29
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 834

Original Poster
Rep: Reputation: 108Reputation: 108
MPlayer is now working with vdpau. However, I am not noticing a significant drop in CPU usage though. It's averages between 27 and 35% which is the same if using the xv driver. Do you notice a significant difference between the two drivers?
 
Old 07-20-2014, 12:34 PM   #30
stormtracknole
Member
 
Registered: Aug 2005
Location: The Big Easy
Distribution: Slackware, RHEL
Posts: 834

Original Poster
Rep: Reputation: 108Reputation: 108
Actually, it could be that's the best that I would be able to do with this video card.
 
  


Reply

Tags
mplayer-vaapi, vaapi, xvba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Recompiling MPlayer with xvid support on Slackware BrutalMusic Linux - Newbie 4 02-07-2014 07:17 AM
MPlayer vaapi on Slackware-current slackd Slackware 4 07-02-2013 01:11 PM
Play Video using mplayer-vaapi with out X VerrNum Linux - Newbie 2 09-13-2012 03:42 PM
How to enable libvdpau, libva (vaapi) and MPlayer with Nvidia driver? linuxs64 Slackware 3 01-11-2011 11:47 AM
LXer: XBMC with VAAPI on Poulsbo (Intel GMA500) or other VAAPI Systems LXer Syndicated Linux News 0 01-01-2011 09:42 PM


All times are GMT -5. The time now is 06:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration