|
楼主 |
发表于 2014-6-21 09:55:06
|
显示全部楼层
本帖最后由 xjd_1985 于 2014-6-21 11:56 编辑
sunbeyond 发表于 2014-6-20 20:09
说一下你的操作流程。 尽量多点信息。。
1.编译libvdpau-sunxi工程
提示缺少vdpau/vdpau.h,于是 apt-get install libvupau*,
make
make install
export VDPAU_DRIVER=sunxi
2.mplayer播放器
root@cubietruck:/home/linaro/nandc/libvdpau-sunxi-master# mplayer -vo help
MPlayer svn r34540 (Ubuntu), built with gcc-4.7 (C) 2000-2012 MPlayer Team
Available video output drivers:
xv X11/Xv
gl_nosw OpenGL no software rendering
x11 X11 ( XImage/Shm )
xover General X11 driver for overlay capable video output drivers
sdl SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
gl OpenGL
gl2 X11 (OpenGL) - multiple textures version
dga DGA ( Direct Graphic Access V2.0 )
fbdev Framebuffer Device
fbdev2 Framebuffer Device
matrixview MatrixView (OpenGL)
aa AAlib
caca libcaca
v4l2 V4L2 MPEG Video Decoder Output
directfb Direct Framebuffer Device
dfbmga DirectFB / Matrox G200/G400/G450/G550
null Null video output
xvmc XVideo Motion Compensation
mpegpes MPEG-PES to DVB card
yuv4mpeg yuv4mpeg output for mjpegtools
png PNG file
jpeg JPEG file
gif89a animated GIF output
tga Targa output
pnm PPM/PGM/PGMYUV file
md5sum md5sum of each frame
我的mplayer不支持vdpau?
3.播放视频
(1)在窗口用gnome-mplayer播放视频,不是用命令启动mplayer,
在Edit->Preferences->Player下选择Video Outut为vdpau,勾选上 Enable Video Hardware Support ,不勾选
Enable CrystalHD Hardware Support,
(2)CPU消耗
昨天因为勾选了Enable CrystalHD Hardware Support,视频播放切换到了Crystal,
mplayer -vo vdpau,gl,x11 -vc ffmpeg2crystalhd,ffdivxcrystalhd ... ...
使用CODEC是FFH264,所以能放视频,虽然很卡,CPU消耗100%,应该还是软解。
今天去掉这个选项,播放使用CODEC是FFH264VDPAU,视频根本不能播放,CPU消耗倒是没那么高:
3781 linaro 20 0 322M 15444 10048 R 57.0 0.8 0:19.17 gnome-mplayer file:///home/linaro/nandc/EP04_track1.mp4
3801 linaro 20 0 67528 20944 8268 S 43.0 1.0 0:12.89 mplayer -vo vdpau,gl,x11 -vc ffmpeg12vdpau,ffh264vdpau,ffwmv3vdpau ... ...
P.S. cubietruck的是A20 CPU |
|