Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am running Ubuntu 12.10 on a Dell Latitude E5530, and I am unable to get hardware accelerated video decoding running in VLC player.

I've ticked the hardware acceleration option in the settings of VLC, installed all libva, libdrm and vaapi related packages, yet the CPU usage indicates me it's still not active. The CPU usage during the playback of a 720p video is 40-80%, where I would expect to see a lot lower usage on my machine.

Can anyone give me some advice on how to get it working?

The output of vainfo is:

libva: VA-API version 0.32.0
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/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.17
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

I've tried to play 720p mpg, mp4 and wmv movies, yet none of them ran hardware accelerated.

The codecs of the tested movies are:

  • mpeg: H264-MPEG 4-AVC (part 10) (avc) (resulting 80% CPU usage, full HD resolution)
  • mp4: MPEG 4 Video (mp4v) (16% CPU usage, 720p)
  • wmv: Windows Media Video 7 (WMV1) (16 % CPU usage, 720p resolution)

Taking a look at System Monitor, I can see, that all four CPU threads (talking about a i5-3210M dual-core processor) are nearly equally stressed, so the above mentioned 16 and 80% CPU usage is distributed among the threads).

share|improve this question

1 Answer 1

up vote 3 down vote accepted

VA-API (Hardware Acceleration For Intel )

Jupiter or similar power saving app for 13.04? check my answer for full detail

for Intel GPUs (for Intel HD Graphics as well as G45 and later):

 sudo apt-get install i965-va-driver libva-intel-vaapi-driver vainfo

Configuration

VLC

Its in Tools > Preferences > Input & Codecs > Enable Use GPU Accelerated decoding

enter image description here

How to correctly enable/test VA-API on Intel Sandy Bridge ?

 vlc --ffmpeg-hw -v

Check the line

 [0x7fd018c02d38] avcodec decoder: Using VA API version 0.32 for hardware decoding.
share|improve this answer
1  
I have installed the 3 packages and activated GPU decoding. On Intel HD 3000, for a 720hd movie my processor usage was 12-13% before activating this and 6% after. Great job! –  conualfy Feb 20 at 11:35
    
Thank you ..... @conualft –  Qasim Feb 20 at 11:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.