Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
07-18-2014, 03:41 AM
|
#16
|
Senior Member
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,137
Rep:
|
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
|
|
|
07-18-2014, 06:05 AM
|
#17
|
Senior Member
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,271
Original Poster
|
Quote:
Originally Posted by pchristy
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).
|
|
|
07-18-2014, 08:35 AM
|
#18
|
Senior Member
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,137
Rep:
|
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.
|
07-18-2014, 08:57 AM
|
#19
|
Senior Member
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,271
Original Poster
|
Quote:
Originally Posted by pchristy
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?
|
|
|
07-18-2014, 08:59 AM
|
#20
|
Senior Member
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,271
Original Poster
|
Also, what arguments are you passing to the configure script?
|
|
|
07-18-2014, 09:31 AM
|
#21
|
Senior Member
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,137
Rep:
|
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
|
|
|
07-18-2014, 09:41 AM
|
#22
|
Senior Member
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,271
Original Poster
|
Quote:
Originally Posted by pchristy
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.
|
|
|
07-18-2014, 10:04 AM
|
#23
|
Senior Member
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,271
Original Poster
|
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!
|
|
|
07-18-2014, 01:28 PM
|
#24
|
Senior Member
Registered: Oct 2012
Location: South Devon, UK
Distribution: Slackware
Posts: 1,137
Rep:
|
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
|
|
|
07-18-2014, 02:47 PM
|
#25
|
Senior Member
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,271
Original Poster
|
Quote:
Originally Posted by pchristy
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.
|
|
|
07-19-2014, 01:06 PM
|
#26
|
Slackware Contributor
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 632
|
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.
|
07-20-2014, 11:09 AM
|
#27
|
Senior Member
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,271
Original Poster
|
Quote:
Originally Posted by ppr:kut
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?
|
|
|
07-20-2014, 11:19 AM
|
#28
|
Slackware Contributor
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 632
|
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.
|
07-20-2014, 12:28 PM
|
#29
|
Senior Member
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,271
Original Poster
|
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?
|
|
|
07-20-2014, 12:34 PM
|
#30
|
Senior Member
Registered: Aug 2005
Distribution: Slackware, RHEL
Posts: 1,271
Original Poster
|
Actually, it could be that's the best that I would be able to do with this video card.
|
|
|
All times are GMT -5. The time now is 02:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|