Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2116014
  • 博文数量: 229
  • 博客积分: 7217
  • 博客等级: 上校
  • 技术积分: 3224
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-19 17:23
个人简介

个人主页https://xugaoxiang.com,微信公众号: Dev_Club 或者搜索 程序员Club

文章分类

全部博文(229)

文章存档

2017年(1)

2016年(20)

2015年(23)

2013年(1)

2012年(23)

2011年(68)

2010年(62)

2009年(31)

分类: LINUX

2009-12-25 11:36:35

Ubuntu alternative 9.10
ION + Nvidia9400

0、Before start
sudo apt-get install build-essential
sudo apt-get install autoconf
sudo apt-get install libtool
sudo apt-get install git-core subversion
sudo apt-get install xorg-dev libdrm-dev


1、Nvidia driver

sudo ./NVIDIA-Linux-x86-190.53-pkg1.run



2、Libva


tar xvf libva_0.31.0-1+sds9.tar.gz

cd libva-0.31.0

 

for i in debian/patches/*.patch

do patch -p1 < $i

done

 

autoreconf

./configure

make

sudo make install

 


3、Vdpau-video


tar xvf vdpau-video-0.6.2.tar.gz

cd vdpau-video

./configure

make

sudo make install



4、Check if everything works

djstava@linux:~/vlc-1.0.0$ vainfo

libva: libva version 0.31.0-sds4

Xlib:  extension "XFree86-DRI" missing on display ":0.0".

libva: va_getDriverName() returns 0

libva: Trying to open /usr/local/lib/va/drivers/nvidia_drv_video.so

libva: va_openDriver() returns 0

vainfo: VA API version: 0.31

vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA API - 0.6.2

vainfo: Supported profile and entrypoints


VAProfileMPEG2Simple : VAEntrypointVLD

VAProfileMPEG2Main: VAEntrypointVLD

VAProfileH264Main: VAEntrypointVLD

VAProfileH264High: VAEntrypointVLD

VAProfileVC1Simple: VAEntrypointVLD

VAProfileVC1Main: VAEntrypointVLD

VAProfileVC1Advanced: VAEntrypointVLD


5、FFMPEG Latest

 

svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
cd ffmpeg

OR

git clone git://git.ffmpeg.org/ffmpeg
cd ffmpeg
git clone git://git.ffmpeg.org/libswscale

./configure --enable-gpl --enable-postproc --enable-shared --enable-vaapi
make
sudo make install

6、Check FFMPEG

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
ffmpeg -v
ldd -r `which ffmpeg`

 

7、VLC Latest GIT

 

git clone git://git.videolan.org/vlc.git

Install the necessary external libraries
sudo apt-get build-dep vlc

sudo apt-get install libxcb-shm0-dev

sudo apt-get install libxcb-xv0-dev

sudo apt-get install libx11-xcb-dev

./bootstrap
./configure --enable-faad --enable-run-as-root --enable-realrtsp --enable-live555 --with-live555-tree=/home/djstava/Workshop/live --enable-lirc --enable-lua --enable-dvbpsi --enable-mkv
make
sudo make install

Check VLC works
vlc --list | grep avcodec

8、Activate VLC VDPAU
Activate hardware acceleration in the tools->preferences->input and codec,select Use GPU acceleration (experimental),and save the configuration.


Thanks to J-B kempf and fabriciolelis.
djstava
阅读(4564) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-01-19 21:27:03

Sounds great.

chinaunix网友2010-01-12 10:29:08

That's great.