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.
|
|
01-28-2014, 07:47 AM
|
#1
|
Member
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126
Rep:
|
HW accelerated vlc
I downloaded vlc 2.1 from Alien's website.
I can also find
.../slackbuilds/libva-vdpau-driver
.../slackbuilds/libva,
.../slackbuilds/libvdpau and
.../slackbuilds/vdpau-video
at his repository.
Which package(s) do I need to get HW accelerated video decoding in vlc if I have a NVIDIA GPU?
|
|
|
01-28-2014, 09:48 AM
|
#2
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
After skimming over the VLC Slackbuild script from AlienBob it seems to me that he compiles VLC already with VDPAU support enabled, so actually it should just work, at least if you use the proprietary driver. I don't know about the state of VDPAU support with the nouveau driver and can't test that, no Nvidia card here.
|
|
|
01-28-2014, 10:44 AM
|
#3
|
Member
Registered: May 2004
Distribution: BSD
Posts: 269
Rep:
|
From his RSS feed:
12 Dec 2013:
Quote:
vlc: rebuilt the 2.1.2 packages.
Enabled the VDPAU driver which solves jerky playback and crashes on machines
with a binary Nvidia driver when GPU-assisted hardware decoding is enabled.
You need to have libvdpau installed to use this feature.
|
13 Dec 2013:
Quote:
vlc: I re-uploaded the '1alien' builds of vlc-2.1.2 for people who do not have
libvdpau installed. Accidentally I introduced an external dependency on
libvdpau when I added VDPAU support. I will try to get this fixed in the
next package release, there should be zero external dependencies.
|
14 Dec 2013:
Quote:
vlc: recompiled (Slackware 14.1). I fixed the RTMP playbak which apparently
had been broken a long time. Also I repaired the accidentally introduced
regression that vlc would no longer play videos if libvdpau was not
installed
|
So it should just work, as TobiSGD said.
Last edited by lems; 01-28-2014 at 10:54 AM.
|
|
|
01-28-2014, 11:00 AM
|
#4
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Just tested it on my Radeon HD6870 (the free drivers also use VDPAU), the CPU load is incredibly low even on HD videos, but there seem to be problems with some videos (stuttering and artifacts), while the same video works fine with software decoding and with hardware decoding on MPlayer (but with significant higher CPU load).
Last edited by TobiSGD; 01-28-2014 at 11:07 AM.
|
|
|
01-28-2014, 02:44 PM
|
#5
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Yeah I see the stuttering and artifacts too, but not when just playing a video from the start. I notice it only when hardware acceleration is enabled, and I skip to another part of the video.
It also looks like it depends on where you let VLC pick up the video again - my guess is that you don't see the stuttering if you skip to another keyframe in the video.
Eric
|
|
|
01-29-2014, 12:10 AM
|
#6
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
It seems to me that my testing with MPlayer is not relevant, it has possibly the same problems as VLC. Although I compiled it with --enable-vdpau and specified -vo vdpau when playing a video it nonetheless chooses a FFMPG codec to decode the video. Will have to look into that further.
EDIT: Fixed that with help of the ArchWiki, I had to create ~/.mplayer/config with this content:
Code:
vo=vdpau,
vc=ffh264vdpau,ffmpeg12vdpau,ffodivxvdpau,ffwmv3vdpau,ffvc1vdpau,
Now MPlayer uses the hardware, CPU usage is down to about the same numbers as VLC, but it works flawlessly even with skipping wildly around in the video.
So for now I would recommend to rather use MPlayer (or one of its front-ends) when it comes to hardware acceleration with VDPAU.
Last edited by TobiSGD; 01-29-2014 at 04:37 AM.
Reason: Added info
|
|
|
01-29-2014, 05:08 AM
|
#7
|
Member
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126
Original Poster
Rep:
|
Quote:
Originally Posted by TobiSGD
It seems to me that my testing with MPlayer is not relevant, it has possibly the same problems as VLC. Although I compiled it with --enable-vdpau and specified -vo vdpau when playing a video it nonetheless chooses a FFMPG codec to decode the video. Will have to look into that further.
EDIT: Fixed that with help of the ArchWiki, I had to create ~/.mplayer/config with this content:
Code:
vo=vdpau,
vc=ffh264vdpau,ffmpeg12vdpau,ffodivxvdpau,ffwmv3vdpau,ffvc1vdpau,
Now MPlayer uses the hardware, CPU usage is down to about the same numbers as VLC, but it works flawlessly even with skipping wildly around in the video.
So for now I would recommend to rather use MPlayer (or one of its front-ends) when it comes to hardware acceleration with VDPAU.
|
What dependencies does MPlayer have to be built with --enable-vdpau? (That is, any packages from Alien's repository needed?)
|
|
|
01-29-2014, 05:12 AM
|
#8
|
Member
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126
Original Poster
Rep:
|
Code:
vlc: recompiled (Slackware 14.1). I fixed the RTMP playbak which apparently
had been broken a long time. Also I repaired the accidentally introduced
regression that vlc would no longer play videos if libvdpau was not
installed
That is interesting, if libvdpau is compiled into vlc in this version, what sense does it do to check "if libvdpau was not
installed"? Or am I misunderstanding something?
|
|
|
01-29-2014, 05:15 AM
|
#9
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,306
|
Quote:
Originally Posted by Olaus
What dependencies does MPlayer have to be built with --enable-vdpau?
|
You have to install libvdpau.
then you don't need to specify --enable-vdpau as a MPlayer's configure argument as it's autodetected by it.
Last edited by ponce; 01-29-2014 at 05:17 AM.
|
|
1 members found this post helpful.
|
01-29-2014, 05:23 AM
|
#10
|
Member
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126
Original Poster
Rep:
|
Quote:
Originally Posted by ponce
You have to install libvdpau.
then you don't need to specify --enable-vdpau as a MPlayer's configure argument as it's autodetected by it.
|
Thanks! I guess you mean "slackbuilds/libvdpau/" at Aliens repository?
I don't need "slackbuilds/libva-vdpau-driver/" or "slackbuilds/libva"?
|
|
|
01-29-2014, 05:27 AM
|
#11
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by Olaus
Thanks! I guess you mean "slackbuilds/libvdpau/" at Aliens repository?
|
I used the one from SBo, but I guess the one from AlienBob will work also.
Quote:
I don't need "slackbuilds/libva-vdpau-driver/" or "slackbuilds/libva"?
|
No, those are only needed if you want to use libva in connection with libvdpau (usually if you have Intel video hardware).
|
|
|
All times are GMT -5. The time now is 09:48 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
|
|