• Stars
    star
    155
  • Rank 240,864 (Top 5 %)
  • Language
    C++
  • License
    MIT License
  • Created almost 12 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

VDPAU driver with OpenGL/VAAPI backend

About

Briefly, this is the VDPAU driver with VA-API/OpenGL backend.

There are applications exists that can use VDPAU. Amongst them are Adobe Flash Player and Mplayer. They both can use VDPAU, but since there is no VDPAU available on Intel chips, they fall back to different drawing techniques. And while Mplayer can use XVideo extension to offload scaling to GPU, Flash Player can not and does all scaling in software. If there was VDPAU available, CPU usage could be significantly lower.

VDPAU is not vendor-locked technology. Even official documentation mentions possibility of other drivers. They should be named as libvdpau_drivername.so.1 and placed where linker could find them. /usr/lib usually works fine. Which driver to use is determined by asking X server about current driver name or by using VDPAU_DRIVER environment variable.

Here is one. Named libvdpau_va_gl.so.1, it uses OpenGL under the hood to accelerate drawing and scaling and VA-API (if available) to accelerate video decoding. For now VA-API is available on some Intel chips, and on some AMD video adapters with help of xvba-va-driver. OpenGL is available, you know, on systems with OpenGL available.

Install

  1. sudo apt-get install cmake libva-dev libgl1-mesa-dev
  2. mkdir build; cd build
  3. cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
  4. sudo make install
  5. Add VDPAU_DRIVER=va_gl to your environment

Commands above should work for any Debian-based distro. Fedora names packages in a different way, so package installation step will look like: sudo yum install cmake libva-devel mesa-libGL-devel.

Run time configuration

Besides VDPAU_DRIVER variable which selects which driver to use there are other variables that control runtime behavior of va_gl driver.

VDPAU_QUIRKS contains comma-separated list of enabled quirks. Here is the list:

  • XCloseDisplay Disables calling of XCloseDisplay which may segfault on some video drivers
  • ShowWatermark Enables displaying string "va_gl" in bottom-right corner of window
  • AvoidVA Makes libvdpau-va-gl NOT use VA-API

Parameters of VDPAU_QUIRKS are case-insensetive.

Copying

libvdpau-va-gl is distributed under the terms of the MIT license. See LICENSE file for details.

Contact

Author can be reached at email ibragimovrinat-at-mail.ru or at github: https://github.com/i-rinat/

More Repositories

1

freshplayerplugin

ppapi2npapi compatibility layer
C
732
star
2

apulse

PulseAudio emulation for ALSA
C
605
star
3

fragview

disk fragmentation visualizer based on FIEMAP and FIBMAP ioctls (linux specific)
C++
69
star
4

gmp-widevine

Adapt Widevine CDM to use in Firefox
C++
42
star
5

autofsync

Adaptive fsync with target latency in seconds.
C
23
star
6

nginx-cmake

CMake port of nginx build scripts
CMake
22
star
7

reiserfs-defrag

Offline defragmentation utility for reiserfs (v3.6)
C++
15
star
8

geoip-mmdb

Python MaxMind DB writer
Python
12
star
9

libpdf

libpdf.so from Chromium
C++
9
star
10

jokes

Various code written for jokes
Python
7
star
11

insecure

To overcome 255 bytes name limit (linux), fuse wrapper
C
7
star
12

pdfrog

tag-based document manager with single file storage
Python
4
star
13

readdir-precache

C
3
star
14

pepperflash-crx

Downloads current version of PepperFlash plugin for Chrome OS from Chrome update servers.
Python
3
star
15

ppapi-trace

trace every call plugin or browser make
C
3
star
16

longnamefs

FUSE file system with file names up to 1024 bytes.
C
3
star
17

mips-apk

Homebuilt various Android packages. Mostly for mips target.
3
star
18

utility-kernel-modules

C
3
star
19

flash-test-cases

flash test cases
ActionScript
2
star
20

c10k-benchmark-fixture

http reverse proxy to test c10k
C
2
star
21

pages

HTML
2
star
22

comtrade-toy

Python
2
star
23

configs

1
star
24

nginx-denyfile

Deny subdirectory access by presence of a file
C
1
star
25

utility-scripts

Python
1
star
26

packtpub-rss

Generate RSS feed from Packtpub Book of the Day page
PHP
1
star
27

omini-disasm

static recompilation tool for native-code enhanced Android applications
C
1
star
28

vdpau-doc-unofficial

rendered Doxygen documentation from libvdpau library
HTML
1
star
29

notes

1
star
30

findglyph

find debian font package having specified symbol
C++
1
star
31

apulse-debpkg

Debian packaging scripts for apulse
Makefile
1
star