You are not logged in.

#1 2014-06-30 05:33:27

souenzzo
Member
Registered: 2012-10-31
Posts: 35

[COMPARISON] VIDEO versus CPU on Intel with VAAPI

[Inspiration]
Find a player that does not drain my battery. And why not browser too.

[how I  made it]
In my arch test partition I have installed all vaapi/vdpau infrastructure and several players/browsers. So I create a new user, login from tty, startx /usr/bin/xmonad and execute "PROGRAM [filename]" one by one. Wait about 30 seconds and wrote down the percentage shown at the top. Nothing very precise.
All VAAPI programs have reported it:

libva info: VA-API version 0.35.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_35
libva info: va_openDriver() returns 0

[results]
---VERY GOOD---
gst-player-1.0 - vaapi - 9% (reference?)
opera - vaapi with totem plugin - 10% on totem plugin. "0%" on opera.
snappy - vaapi - 12%
totem - vaapi - 12%
vlc - (manual set) vaapi - 17%
chromium  - ????? - 20% - 30%

---ACCETABLE----
vlc - ???? - 35% (default)
dragonplayer - ???? - 35%
arora - ????? - 50% - Looks CPU decoding..
rekonq - ???? - 50% - Look the same of arora
parole - vaapi - 80%
vlc - vdpau - 80% (auto)

---BATTERY DESTROYERS---
midori - vaapi - 100%
firefox - vaapi - 95%
surf - vaapi - 98%
dwb - vaapi - 98%. looks like surf.
uzbl-browser - vaapi - 100%

---FAIL---
epiphany - open vaapi and say this page have troble. I realy dont understand why it dont warp totem like opera.
qupzilla - crack because qt5 issues.
konqueror - calls mplayer 20%. "0%" on konqueror. mplayer was laggy
mplayer-vaapi - vaapi - 20% and laggy
(I dont know why mplayer was laggy)

[comentary]
--????-- Means that I dont know what is the backend of video accleration. Probably is CPU.
I realy dont understand  why things using gst-vaapi(like firefox) backend have that poor result.

[Hardware info]
Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz
VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
OpenGL renderer string: Mesa DRI Intel(R) Sandybridge Mobile
OpenGL core profile version string: 3.1 (Core Profile) Mesa 10.2.2
OpenGL core profile shading language version string: 1.40

[Software info]
Arch linux updated on 2014/06/30 about 04:00:00 UTC
xmonad with no config's
top for measure
exported VDPAU_DRIVER=va_gl
testing, kde-unstable and multilib are enabled's

[Package info]
arora 0.11.0-4
mplayer-vaapi 36265-9
epiphany 3.12.1-1
midori-gtk3 0.5.8-1
rekonq 2.4.2-2
surf 0.6-2
snappy-player 1.0-1
kdebase-konqueror 4.13.2-1
dwb 2014.03.07-2
qupzilla 1.6.6-1
vlc 2.1.4-2
kdemultimedia-dragonplayer 4.13.2-1
parole 0.5.4-1
firefox 30.0-1
chromium 35.0.1916.153-1
opera 12.16.1860-2
totem 3.12.1-2
whaawmp 0.2.14-2
uzbl-browser 2012.05.14-2
libva 1.3.1-2
libva-intel-driver 1.3.2-1
libvdpau 0.7-1
libvdpau-va-gl 0.3.4-1
xf86-video-intel 2.99.912-1
xine-lib 1.2.5-1
gst-libav 1.2.4-2
gst-plugins-bad 1.2.4-1
gst-plugins-base 1.2.4-1
gst-plugins-base-libs 1.2.4-1
gst-plugins-good 1.2.4-1
gst-plugins-ugly 1.2.4-1
gst-vaapi 0.5.8-1
gstreamer 1.2.4-1
gstreamer0.10 0.10.36-4
gstreamer0.10-bad 0.10.23-8
gstreamer0.10-bad-plugins 0.10.23-8
gstreamer0.10-base 0.10.36-3
gstreamer0.10-base-plugins 0.10.36-3
gstreamer0.10-ffmpeg 0.10.13-2
gstreamer0.10-good 0.10.31-6
gstreamer0.10-good-plugins 0.10.31-6
gstreamer0.10-python 0.10.22-1
gstreamer0.10-ugly 0.10.19-11
gstreamer0.10-ugly-plugins 0.10.19-11
gstreamer0.10-vaapi 0.5.8-1
mesa 10.2.2-1
mesa-libgl 10.2.2-1
intel-dri 10.2.2-1

[Video info]
Audio: MPEG AAC Audio (mp4a), stereo, 48000Hz
Video: H264 - MPEG-4 AVC (part 10) (avc1) | 720x404 | 23.976024fps | Planar 4:2:0 TYU

[I have tested with this video(not sure if I can put it here)]
magnet:?xt=urn:btih:ef87a3f97c653d487dece0e6ea8e60b7731a5c24&dn=Silicon.Valley.S01E01.HDTV.x264-KILLERS.mp4&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Fopen.demonii.com%3A1337

[final]
If I made any mistake in English please let me know
If you know how to make a program work better let me know
I'm ready to redo everything if you tell me a way to make things work better! (I'm search it!)

Offline

#2 2016-08-02 12:29:36

agm28011997
Member
Registered: 2015-05-26
Posts: 79

Re: [COMPARISON] VIDEO versus CPU on Intel with VAAPI

There isn't any type of video acceleration with Firefox, only flash over Firefox can do this, the only browser and it isn't official that supports vaapi and only vaapi is chromium with a patch that is in AUR and unofficial repository's, I recommend to you to use chromium-vaapi for your laptop. It is the only browser that won't drain your battery.
PD: use smplayer with mpv(not m player or mplayer 2) configure it for use vaapi for video decoding and for video output I have just had a regression with opengl-hq I recommend wayland that uses less cpu and less battery, and I see any differences on the image quality

Last edited by agm28011997 (2016-08-02 12:31:14)

Offline

#3 2016-08-02 12:30:20

agm28011997
Member
Registered: 2015-05-26
Posts: 79

Re: [COMPARISON] VIDEO versus CPU on Intel with VAAPI

And sorry for being too late to reply, I wait your answer

Offline

#4 2016-08-02 13:53:07

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [COMPARISON] VIDEO versus CPU on Intel with VAAPI

Don't necro-bump.

Closing.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

Board footer

Powered by FluxBB