Higher CPU usage with hardware decoding.

*nix specific usage questions
dE_logics
New Cone
New Cone
Posts: 5
Joined: 01 Oct 2012 19:19
VLC version: 2.0-git
Operating System: Gentoo

Higher CPU usage with hardware decoding.

Postby dE_logics » 01 Oct 2012 19:44

Hello everyone!

First I'd a very bad time registering here. IT appears the admin has blocked all of the 4b ip4 addresses... which's actually ineffective.

Anyway, I've enabled hardware acceleration in the codec section but the cpu usage, while decoding h264 videos doubles on doing so, i.e. software decoding is more efficient.

I've libva installed with intel backend on core i3. vainfo is also ok with the hardware.

Code: Select all

$ vainfo libva: VA-API version 0.32.0 libva: va_getDriverName() returns 0 libva: Trying to open /usr/lib64/va/drivers/i965_drv_video.so libva: va_openDriver() returns 0 vainfo: VA-API version: 0.32 (libva 1.0.15) vainfo: Driver version: Intel i965 driver - 1.0.15 vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileH264Baseline : VAEntrypointVLD VAProfileH264Baseline : VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD
On running vlc -vvvv --

http://pastebin.com/gveEh8q1

Mplayer vaapi on the other hand, decodes it with 0 cpu usage.

I've mailed the same message to the VLC users mailing list, but the list appears to be dead.

Thanks for any response!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Higher CPU usage with hardware decoding.

Postby Jean-Baptiste Kempf » 02 Oct 2012 11:55

First I'd a very bad time registering here. IT appears the admin has blocked all of the 4b ip4 addresses... which's actually ineffective.
We use several IP blacklists.
Anyway, I've enabled hardware acceleration in the codec section but the cpu usage, while decoding h264 videos doubles on doing so, i.e. software decoding is more efficient.
Probably because of the callback is too slow, on your machine.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

dE_logics
New Cone
New Cone
Posts: 5
Joined: 01 Oct 2012 19:19
VLC version: 2.0-git
Operating System: Gentoo

Re: Higher CPU usage with hardware decoding.

Postby dE_logics » 04 Oct 2012 05:54

Sorry for the late response, couldn't log in (using phone's net connection instead)
First I'd a very bad time registering here. IT appears the admin has blocked all of the 4b ip4 addresses... which's actually ineffective.
We use several IP blacklists.
Don't you think blocking by IP is a bad idea? It a Windows user's account gets hacked, logs in and sends Spam, it's his/her problem, you should block the account and say it's his/her fault cause they're using Windows.
Anyway, I've enabled hardware acceleration in the codec section but the cpu usage, while decoding h264 videos doubles on doing so, i.e. software decoding is more efficient.
Probably because of the callback is too slow, on your machine.
Slow on core i3?

If the callback overhead is so high (higher than CPU decoding the video), we pretty much loose the point of hardware decoding. I'm sure there's some other problem.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Higher CPU usage with hardware decoding.

Postby Jean-Baptiste Kempf » 04 Oct 2012 12:43

Sorry for the late response, couldn't log in (using phone's net connection instead)
First I'd a very bad time registering here. IT appears the admin has blocked all of the 4b ip4 addresses... which's actually ineffective.
We use several IP blacklists.
Don't you think blocking by IP is a bad idea? It a Windows user's account gets hacked, logs in and sends Spam, it's his/her problem, you should block the account and say it's his/her fault cause they're using Windows.
No, it is an excellent idea: it works.
Anyway, I've enabled hardware acceleration in the codec section but the cpu usage, while decoding h264 videos doubles on doing so, i.e. software decoding is more efficient.
Probably because of the callback is too slow, on your machine.
Slow on core i3?

If the callback overhead is so high (higher than CPU decoding the video), we pretty much loose the point of hardware decoding. I'm sure there's some other problem.[/quote]
You could try the VLC fork with direct rendering.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 4 guests