LinuxQuestions.org
Visit Jeremy's Blog.
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 01-28-2014, 07:47 AM   #1
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Rep: Reputation: 17
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?
 
Old 01-28-2014, 09:48 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
Old 01-28-2014, 10:44 AM   #3
lems
Member
 
Registered: May 2004
Distribution: BSD
Posts: 269

Rep: Reputation: 119Reputation: 119
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.
 
Old 01-28-2014, 11:00 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
Old 01-28-2014, 02:44 PM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
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
 
Old 01-29-2014, 12:10 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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
 
Old 01-29-2014, 05:08 AM   #7
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by TobiSGD View Post
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?)
 
Old 01-29-2014, 05:12 AM   #8
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Original Poster
Rep: Reputation: 17
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?
 
Old 01-29-2014, 05:15 AM   #9
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,306

Rep: Reputation: 4301Reputation: 4301Reputation: 4301Reputation: 4301Reputation: 4301Reputation: 4301Reputation: 4301Reputation: 4301Reputation: 4301Reputation: 4301Reputation: 4301
Quote:
Originally Posted by Olaus View Post
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.
Old 01-29-2014, 05:23 AM   #10
Olaus
Member
 
Registered: Apr 2006
Location: Sweden
Distribution: Slackware64 14.2
Posts: 126

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by ponce View Post
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"?
 
Old 01-29-2014, 05:27 AM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Olaus View Post
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).
 
  


Reply

Tags
nvidia, vlc


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
Installing VLC using vlc-0.9.9a-4.el5.rf.i386.rpm--Error relating to Dependencies redhat5 Linux - Newbie 1 12-17-2009 05:23 PM
VLC error: VLC could not open the file "/usr/share/vlc/skins2/text.bmp". brjoon1021 Ubuntu 1 01-14-2009 11:48 PM
No accelerated 3D in FC10? rylan76 Fedora 1 12-12-2008 07:48 PM
X crashes when I start something 3D accelerated atheist Linux - Hardware 4 10-26-2007 08:19 PM
Accelerated X-Server and RedHat 7.3 ashtar Linux - General 1 07-01-2002 04:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:48 PM.

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
Open Source Consulting | Domain Registration