You are not logged in.

#1 2014-02-23 22:34:55

bernd_b
Member
Registered: 2013-07-30
Posts: 183

Hardwaredecoding and vlc with vdpau

Did I miss anything recently with vlc and vdpau hardware decoding?

Since I understood that deinterlacing is always done by software and not by GPU due to the design of vlc I was used to higher CPU load when playing 1080i-Files with vlc. Nevetheless the result was satisfying. Now I have some but steady skipped frames with a CPU load of about 50 percent even with deinterlacing turned off.
At the moment, I am better of with disabling hardware decoding leading to smoother playback with the same CPU load.

Playing the same file with xine gives me nearly no CPU load even with hardware bob-deinterlacing turned on.

Some data:
AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
NVIDIA GPU GeForce 8200 (C77) at PCI:2:0:0 (GPU-0)
nvidia-driver-304xx on 3.13.4-1-ARCH

Offline

#2 2014-02-24 00:18:22

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,504

Re: Hardwaredecoding and vlc with vdpau

Try it with mplayer, and of course note that if you have intel hardware use mplayer-vaapi instead.  But since you are using nvidia, it should work better for you that way.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#3 2014-02-24 07:53:37

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Hardwaredecoding and vlc with vdpau

Use mpv instead it has a simple gui which mplayer does not plus it is said to have even better vdpau support.


Use the Source, Luke!

Offline

#4 2014-02-24 09:14:06

bernd_b
Member
Registered: 2013-07-30
Posts: 183

Re: Hardwaredecoding and vlc with vdpau

As I wrote, I already tried xine which indicates that vdpau acceleration is available. But thanks anyway for pointing out that there are other choices.
So I try it the other way round: Does vlc's vdpau acceleration work for anyone else at the moment?

In between, I posted my question on videolan: https://forum.videolan.org/viewtopic.php?f=13&t=117688

Last edited by bernd_b (2014-02-24 09:39:55)

Offline

#5 2014-02-25 09:08:24

bernd_b
Member
Registered: 2013-07-30
Posts: 183

Re: Hardwaredecoding and vlc with vdpau

So indeed, vdpau seems to be broken for Linux the moment beeing:

forum.videolan.org wrote:

As for Linux, VDPAU hardware video decoding acceleration is disabled by default on VLC 2.1.x for a reason! Indeed, it can be slower than unaccelerated decoding depending on the system. VLC 2.2.0 or later is required for proper VDPAU support on Linux.

I tried yesterdays git but so far no difference for me.

Offline

#6 2014-02-25 11:06:00

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Hardwaredecoding and vlc with vdpau

Just to check, do you have libvdpau installed?

Vdpau works fine for me on both vlc and mpv.


Use the Source, Luke!

Offline

#7 2014-02-25 11:36:54

bernd_b
Member
Registered: 2013-07-30
Posts: 183

Re: Hardwaredecoding and vlc with vdpau

It works for me with xine as well. But I check again for libvdpau when I am back at home.

Offline

#8 2014-02-25 11:44:33

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Hardwaredecoding and vlc with vdpau

My guess would be that xine for some weird reason has that builtin, just my guess...


Use the Source, Luke!

Offline

#9 2014-02-25 18:35:50

bernd_b
Member
Registered: 2013-07-30
Posts: 183

Re: Hardwaredecoding and vlc with vdpau

pacman -Ss libvdpau
extra/libvdpau 0.7-1 [installed]
    Nvidia VDPAU library

Guess I have it installed.

Offline

#10 2014-02-25 19:14:05

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Hardwaredecoding and vlc with vdpau

I'm sure if this is helpful, but the 8200 series should be supported with the nvidia driver. You have the nvidia-304xx installed.

Offline

#11 2014-02-25 20:46:00

bernd_b
Member
Registered: 2013-07-30
Posts: 183

Re: Hardwaredecoding and vlc with vdpau

I am not sure what you are heading at. Since xine obviously takes advantage of vdpau and other things like e.g. qvdpautest indicates that vdpau is working on my box, I don't see a general problem with my driver's version. In fact I tried beside 304xx 319-82 on 3.12.9-2-ARCH with the same results concerning vlc.

Last edited by bernd_b (2014-02-25 20:47:29)

Offline

#12 2014-02-25 23:53:21

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Hardwaredecoding and vlc with vdpau

How did you exactly enable vdpau in vlc?


Use the Source, Luke!

Offline

#13 2014-02-26 05:18:54

freddie
Member
Registered: 2010-10-02
Posts: 35
Website

Re: Hardwaredecoding and vlc with vdpau

In vlc, go to
Tools>Preferences>Video
and make sure there is a tick in Accelerated video output(Overlay)

check if vdpau is enable with this.

vlc --list | grep vdpau

My output looks like this.

VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
vdpau      Video Decode and Presentation API for Unix (VDPAU)

Offline

#14 2014-02-26 10:57:19

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Hardwaredecoding and vlc with vdpau

You haven't enabled vdpau in vlc, that isn't hardware acceleration.

Go to input / codecs, and there on the top it says "hardware-accelerated decoding", and choose vdpau there.


Use the Source, Luke!

Offline

#15 2014-02-26 20:51:05

bernd_b
Member
Registered: 2013-07-30
Posts: 183

Re: Hardwaredecoding and vlc with vdpau

I have:

Settings / Video / Accelerated Video output = yes
Settings / Video / Output = Automatic
Settings / Input Codecs / Hardware accelerated encoding = Video Decode and Presentation API (VDPAU)

Playing 1080i file

vlc Shetland.ts 
VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
[0x1f44798] pulse audio output error: PulseAudio server connection failure: Connection refused
[0x1e43118] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x7fc140c01768] ts demux error: Unrecognized DVB subtitle type (0x0)
[0x7fc140c82418] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library  319.82  Sun Dec 29 23:20:58 PST 2013 for hardware decoding.
[0x7fc140c82418] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library  319.82  Sun Dec 29 23:20:58 PST 2013 for hardware decoding.
[h264 @ 0x7fc140d051a0] illegal short term buffer state detected
[h264 @ 0x7fc140d04ac0] mmco: unref short failure
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7fc120001248] main vout display error: Failed to resize display
[0x7fc120001248] main vout display error: Failed to resize display

where CPU Load on both cores is about 30 to 50 percent.

Changing
Settings / Input Codecs / Hardware accelerated encoding = disable

vlc Shetland.ts 
VLC media player 2.1.4 Rincewind (revision 2.1.4-0-g2a072be)
[0x11c1798] pulse audio output error: PulseAudio server connection failure: Connection refused
[0x10c0118] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x7ff964c01768] ts demux error: Unrecognized DVB subtitle type (0x0)
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7ff948001248] main vout display error: Failed to resize display
[h264 @ 0x7ff964d051a0] illegal short term buffer state detected
[h264 @ 0x7ff964d04ac0] mmco: unref short failure
[0x7ff948001248] main vout display error: Failed to resize display

where CPU Load is higer (about 50-70 percent on both cores) but playback is significantly smoother (no still picture or skipped frames)

Playing the same file with xine leads to nearly no CPU load (about 10 to 20 percent on both cores) with high quality playback.

Kernel: 3.12.9-2-ARCH

Last edited by bernd_b (2014-02-26 20:55:28)

Offline

Board footer

Powered by FluxBB