GithubHelp home page GithubHelp logo

mintaka33 / media Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 12.41 MB

Linux Media Driver

CMake 0.39% C++ 43.43% C 52.97% Shell 0.02% Objective-C 0.08% Assembly 3.03% Python 0.01% Batchfile 0.01% Makefile 0.05% M4 0.02% HTML 0.01%
libva driver gpu video codec linux-drivers

media's Introduction

Linux Media Driver

Build instructions

1. Build libva

cd libva

./autogen.sh CFLAGS=-g CXXFLAGS=-g

make

sudo make install

2. Build driver

mkdir build

cd build

cmake ../media-driver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DMEDIA_VERSION="2.0.0" \
-DBUILD_ALONG_WITH_CMRTLIB=1 \
-DBS_DIR_GMMLIB=`pwd`/../gmmlib/Source/GmmLib/ \
-DBS_DIR_COMMON=`pwd`/../gmmlib/Source/Common/ \
-DBS_DIR_INC=`pwd`/../gmmlib/Source/inc/ \
-DBS_DIR_MEDIA=`pwd`/../media-driver

make -j8

sudo make install

note: if build debug version driver, add below line in cmake command

-DBUILD_TYPE=Debug

3. Build libva-utils

cd libva-utils

./autogen.sh CFLAGS=-g CXXFLAGS=-g

make

sudo make install

Run driver

1. Set environment variables

  • Edit .bashrc file
cd ~
nano .bashrc
  • Add below lines at the bottom of .bashrc file
export LD_LIBRARY_PATH=/usr/local/lib
export LIBVA_DRIVERS_PATH=/usr/local/lib/dri
export LIBVA_DRIVER_NAME=iHD
  • Restart terminal

2. Run libva-utils sample applications

  • Run vainfo to query driver capabilities
cd libva-utils/vainfo

./vainfo
  • Run decode test
cd libva-utils/decode

./mpeg2vldemo
  • Run encode test
cd libva-utils/encode

./avcenc

Reference

1. libva

2. media-driver

3. gmmlib

4. libva-utils

media's People

Contributors

mintaka33 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.