[SOLVED] Slow video playpack with Radeon HD 6310

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
sammy
Posts: 32
Joined: 12. Sep 2013, 18:52

[SOLVED] Slow video playpack with Radeon HD 6310

Post by sammy »

Hi,

runnung Salix 14.1 32bit on a mini-ITX-PC with an AMD APU, with 1,6 MHz dual core CPU and a Radeon HD 6310 GPU, I installed the proprietary Radeon diver fglrx, which gives a much better 3D performance than the free radeon driver. However, the GPU hardware acceleration for hd videos is very poor. When playing a hd clip I made with my GoPro action cam, the CPU load is at 100% and the video is stuttering, so it's almost not watchable.

Here are some outputs:

Code: Select all

$ cat /proc/cpuinfo 
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 20
model		: 1
model name	: AMD E-350 Processor
stepping	: 0
microcode	: 0x5000029
cpu MHz		: 1600.000
cache size	: 512 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fdiv_bug	: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 6
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc nonstop_tsc extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt arat hw_pstate npt lbrv svm_lock nrip_save pausefilter
bogomips	: 3193.21
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

processor	: 1
vendor_id	: AuthenticAMD
cpu family	: 20
model		: 1
model name	: AMD E-350 Processor
stepping	: 0
microcode	: 0x5000029
cpu MHz		: 1600.000
cache size	: 512 KB
physical id	: 0
siblings	: 2
core id		: 1
cpu cores	: 2
apicid		: 1
initial apicid	: 1
fdiv_bug	: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 6
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc nonstop_tsc extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt arat hw_pstate npt lbrv svm_lock nrip_save pausefilter
bogomips	: 3193.21
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

Code: Select all

$ lspci | grep -i vga
00:01.0 VGA compatible controller: AMD/ATI [Advanced Micro Devices, Inc.] Wrestler [Radeon HD 6310]

Code: Select all

$ lsmod | grep fgl
fglrx               10428750  304 
agpgart                22075  1 fglrx
button                  3704  1 fglrx

Code: Select all

$ fgl_glxgears 
Using GLX_SGIX_pbuffer
697 frames in 5.0 seconds = 139.400 FPS
858 frames in 5.0 seconds = 171.600 FPS
858 frames in 5.0 seconds = 171.600 FPS
864 frames in 5.0 seconds = 172.800 FPS
839 frames in 5.0 seconds = 167.800 FPS
...

Code: Select all

$ LANG=C vlc Videos/Hero/GOPR0002.MP4 
VLC media player 2.1.2 Rincewind (revision 2.1.2-0-ga4c4876)
[0x80c30d0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.
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"
[0x8680c28] main vout display error: Failed to resize display
[0x8639b88] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[0x8639b88] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[0x8639b88] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[0x8639b88] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[0x8639b88] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[0x8639b88] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[0x8639b88] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
...
Has anybody any idea how to make hardware acceleration for hd video work on this machine?
Last edited by sammy on 16. Apr 2015, 10:35, edited 1 time in total.
tessi
Posts: 10
Joined: 22. Mar 2015, 08:59

Re: Slow video playpack and full cpu load with Radeon HD 631

Post by tessi »

try another player (ex.smplayer) or version of vlc
if output of

Code: Select all

glxinfo |grep direct
is Yes
coroner
Donor
Posts: 29
Joined: 12. Nov 2011, 16:59
Contact:

Re: Slow video playpack and full cpu load with Radeon HD 631

Post by coroner »

Good morning.

Do you read this wiki https://wiki.videolan.org/VLC_GPU_Decoding/

I think you need install libva and check info from vainfo.
User avatar
sammy
Posts: 32
Joined: 12. Sep 2013, 18:52

Re: Slow video playpack and full cpu load with Radeon HD 631

Post by sammy »

@tessi:
Hi,
tessi wrote:try another player (ex.smplayer) or version of vlc
I tested smplayer and the performance was quite as poor as with VLC, the CPU load neary 100%, but the video is not stuttering so much.
One line of the output says:

Code: Select all

Debug: MplayerProcess::parseLine: '           **** Your system is too SLOW to play this!  ****'
(Complete output: http://cxg.de/_f371bf.htm)
tessi wrote:if output of

Code: Select all

glxinfo |grep direct
is Yes

Code: Select all

$ glxinfo | grep direct | head -n1
direct rendering: Yes
@coroner:
Hi,
thanks for the link!

Code: Select all

$ vainfo 
libva info: VA-API version 0.37.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/fglrx_drv_video.so
libva info: Found init function __vaDriverInit_0_33
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.37 (libva 1.5.1)
vainfo: Driver version: AMD MMD 1.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG4Simple            :	VAEntrypointVLD
      VAProfileMPEG4AdvancedSimple    :	VAEntrypointVLD
      VAProfileMPEG4Main              :	VAEntrypointVLD
      VAProfileH264Baseline           :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
I also installed libvdpau and vdpauinfo, but:

Code: Select all

$ vdpauinfo 
display: :0.0   screen: 0
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Error creating VDPAU device: 1
I found an option in the settings of VLC, that makes the video watchable:
Tools -> Preferences -> Input/Codecs -> Codecs: Skip H.264 in-loop deblocking filter
The default value was "none" and I set it to "all".
Now the CPU load is also nearly 100% but the video is not stuttering anymore and the output of VLC is:

Code: Select all

$ LANG=C vlc Videos/Hero/GOPR0002.MP4 
VLC media player 2.1.2 Rincewind (revision 2.1.2-0-ga4c4876)
[0x83800d0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.
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"
[0x894e880] main vout display error: Failed to resize display
and the lines

Code: Select all

[0x8639b88] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
don't appear anymore.

However, imho that seems not to be a proper solution, because it looks like the hardware acceleration is still not working.

In the codec settings of VLC, the option "Hardware-accelerated decoding" is empty and not changable. On another machine with a nVidia chipset, this option is also empty, but the hardware acceleration works fine and the CPU load is much lower than on this machine.

[EDIT:] By the way, the output of

Code: Select all

$ glxinfo -t
http://cxg.de/_701ba2.htm
coroner
Donor
Posts: 29
Joined: 12. Nov 2011, 16:59
Contact:

Re: Slow video playpack and full cpu load with Radeon HD 631

Post by coroner »

Did you tried install xvba-video?

Find info for fglrx driver from alienbob blog http://alien.slackbook.org/blog/decodin ... eo-in-vlc/
and here http://www.linuxquestions.org/questions ... 175446671/

first slackbuild in google https://github.com/w41l/wlsbuild/tree/master/xvba-video

source here http://cgit.freedesktop.org/vaapi/xvba-driver/

p.s. Sorry i don`t have amd video card now for tests.
p.p.s. Last hope, update vlc.
User avatar
sammy
Posts: 32
Joined: 12. Sep 2013, 18:52

Re: Slow video playpack and full cpu load with Radeon HD 631

Post by sammy »

Hi coroner,

first off, thank you very much!

First I installed the vdpau-video package and tried to build the xvba-video package from the old slackbuild, but it failed:

Code: Select all

...
checking for GL/gl.h... yes
checking for GL/glext.h... yes
checking for GL/glx.h... yes
checking for glXCreateContext in -lGL... yes
checking for LIBVA_DEPS... yes
checking for LIBVA_X11_DEPS... yes
checking for LIBVA_GLX_DEPS... yes
checking for VA-API... yes
checking for VA-API (GLX extensions)... yes
checking for VA drivers path... /usr/lib/dri
checking for XvBA... no
configure: error: you need XvBA to build this package
A package named XvBA (or similar) I could not find. To me it looks like the xvba-video package isn't beeing maintained anymore.

Yesterday I started rebuilding VLC and because I'm a "lazy slacker" ;) , I used sbopkg for that, which startet also to rebuild a lot of dependency packages and I had to build some of them on a slackware machine because I could not build them in Salix.
Now, I think, there was no need for rebuilding most of these packages, but I wanted to get surs not to miss some dependencies.

However, now the new VLC is installed and the hardware acceleration works!
It took some hours to rebuild all the packages on this slow machine but it was worth it.

So, thank you very much for your support and and the infos I needed to get it done.



PS. I wanted to mark this thread "solved" but the length of the title is limited and I had to shorten it.
coroner
Donor
Posts: 29
Joined: 12. Nov 2011, 16:59
Contact:

Re: [SOLVED] Slow video playpack with Radeon HD 6310

Post by coroner »

Yesterday I started rebuilding VLC and because I'm a "lazy slacker" ;) , I used sbopkg for that, which startet also to rebuild a lot of dependency packages and I had to build some of them on a slackware machine because I could not build them in Salix.
Now, I think, there was no need for rebuilding most of these packages, but I wanted to get surs not to miss some dependencies.
You should read salix official wiki especially about slkbuild and depfinder. It is more easiest way update some programs from salix repository.

p.s. I think you should try slpkg for SBo repository.
Post Reply