+ -
当前位置:首页 → 问答吧 → 好消息,用xf86-video-ati的同学有福了!

好消息,用xf86-video-ati的同学有福了!

时间:2009-01-03

来源:互联网

才从wiki上看来的,以前一直不知道,mplayer可以用Radeon Textured Video而不是那个Video Overlay来渲染视频,默认是Adaptor 0,大家可以用xvinfo查看。textured video是最快的方式,同时在compiz下也能有composite,即透明啦,变形啦,缩放啦等等,mplayer是不需要打那个什么补丁的。
要用textured video很简单,在mplayer播放参数中加上-vo xv:adaptor=1即可。或者在~./mplayer/config中加上,vo=xv:adaptor=1。
效果看附件。
代码:
$ xvinfo 
X-Video Extension version 2.2
screen #0
 Adaptor #0: "ATI Radeon Video Overlay"
 number of ports: 1
 port base: 57
 operations supported: PutImage 
 supported visuals:
 depth 24, visualID 0x21
 depth 24, visualID 0x22
 number of attributes: 22
 "XV_DEVICE_ID" (range 0 to -1)
 client gettable attribute (current value is 107)
 "XV_LOCATION_ID" (range 0 to -1)
 client gettable attribute (current value is 108)
 "XV_INSTANCE_ID" (range 0 to -1)
 client gettable attribute (current value is 109)
 "XV_DUMP_STATUS" (range 0 to 1)
 client settable attribute
 "XV_SET_DEFAULTS" (range 0 to 1)
 client settable attribute
 "XV_AUTOPAINT_COLORKEY" (range 0 to 1)
 client settable attribute
 client gettable attribute (current value is 0)
 "XV_COLORKEY" (range 0 to -1)
 client settable attribute
 client gettable attribute (current value is 30)
 "XV_DOUBLE_BUFFER" (range 0 to 1)
 client settable attribute
 client gettable attribute (current value is 1)
 "XV_OVERLAY_ALPHA" (range 0 to 255)
 client settable attribute
 client gettable attribute (current value is 255)
 "XV_GRAPHICS_ALPHA" (range 0 to 255)
 client settable attribute
 client gettable attribute (current value is 255)
 "XV_ALPHA_MODE" (range 0 to 1)
 client settable attribute
 client gettable attribute (current value is 0)
 "XV_BRIGHTNESS" (range -1000 to 1000)
 client settable attribute
 client gettable attribute (current value is 0)
 "XV_CONTRAST" (range -1000 to 1000)
 client settable attribute
 client gettable attribute (current value is 0)
 "XV_SATURATION" (range -1000 to 1000)
 client settable attribute
 client gettable attribute (current value is 0)
 "XV_COLOR" (range -1000 to 1000)
 client settable attribute
 client gettable attribute (current value is 0)
 "XV_HUE" (range -1000 to 1000)
 client settable attribute
 client gettable attribute (current value is 0)
 "XV_RED_INTENSITY" (range -1000 to 1000)
 client settable attribute
 client gettable attribute (current value is 0)
 "XV_GREEN_INTENSITY" (range -1000 to 1000)
 client settable attribute
 client gettable attribute (current value is 0)
 "XV_BLUE_INTENSITY" (range -1000 to 1000)
 client settable attribute
 client gettable attribute (current value is 0)
 "XV_CRTC" (range -1 to 1)
 client settable attribute
 client gettable attribute (current value is -1)
 "XV_GAMMA" (range 100 to 10000)
 client settable attribute
 client gettable attribute (current value is 1000)
 "XV_COLORSPACE" (range 0 to 1)
 client settable attribute
 client gettable attribute (current value is 0)
 maximum XvImage size: 2048 x 2048
 Number of image formats: 8
 id: 0x41424752 (RGBA)
 guid: 52474241-0000-0010-8000-00aa00389b71
 bits per pixel: 32
 number of planes: 1
 type: RGB (packed)
 depth: 32
 red, green, blue masks: 0xff0000, 0xff00, 0xff
 id: 0x54424752 (RGBT)
 guid: 52474254-0000-0010-8000-00aa00389b71
 bits per pixel: 16
 number of planes: 1
 type: RGB (packed)
 depth: 16
 red, green, blue masks: 0x7c00, 0x3e0, 0x1f
 id: 0x32424752 (RGB2)
 guid: 52474200-0000-0010-8000-00aa00389b71
 bits per pixel: 16
 number of planes: 1
 type: RGB (packed)
 depth: 16
 red, green, blue masks: 0xf800, 0x7e0, 0x1f
 id: 0x0
 guid: 52474200-0000-0010-8000-00aa00389b71
 bits per pixel: 24
 number of planes: 1
 type: RGB (packed)
 depth: 24
 red, green, blue masks: 0xff0000, 0xff00, 0xff
 id: 0x32595559 (YUY2)
 guid: 59555932-0000-0010-8000-00aa00389b71
 bits per pixel: 16
 number of planes: 1
 type: YUV (packed)
 id: 0x59565955 (UYVY)
 guid: 55595659-0000-0010-8000-00aa00389b71
 bits per pixel: 16
 number of planes: 1
 type: YUV (packed)
 id: 0x32315659 (YV12)
 guid: 59563132-0000-0010-8000-00aa00389b71
 bits per pixel: 12
 number of planes: 3
 type: YUV (planar)
 id: 0x30323449 (I420)
 guid: 49343230-0000-0010-8000-00aa00389b71
 bits per pixel: 12
 number of planes: 3
 type: YUV (planar)
 Adaptor #1: "Radeon Textured Video"
 number of ports: 16
 port base: 58
 operations supported: PutImage 
 supported visuals:
 depth 24, visualID 0x21
 number of attributes: 2
 "XV_BICUBIC" (range 0 to 2)
 client settable attribute
 client gettable attribute (current value is 2)
 "XV_VSYNC" (range 0 to 1)
 client settable attribute
 client gettable attribute (current value is 1)
 maximum XvImage size: 2048 x 2048
 Number of image formats: 4
 id: 0x32595559 (YUY2)
 guid: 59555932-0000-0010-8000-00aa00389b71
 bits per pixel: 16
 number of planes: 1
 type: YUV (packed)
 id: 0x32315659 (YV12)
 guid: 59563132-0000-0010-8000-00aa00389b71
 bits per pixel: 12
 number of planes: 3
 type: YUV (planar)
 id: 0x30323449 (I420)
 guid: 49343230-0000-0010-8000-00aa00389b71
 bits per pixel: 12
 number of planes: 3
 type: YUV (planar)
 id: 0x59565955 (UYVY)
 guid: 55595659-0000-0010-8000-00aa00389b71
 bits per pixel: 16
 number of planes: 1
 type: YUV (packed)
上传的图像
Screenshot.jpg (194.1 KB, 277 次查看)

作者: zhuqin_83   发布时间: 2009-01-03

这你怎么发现的。。。

代码:
Could not parse arguments at the position indicated below:
adpator=1(typo, shuold be adaptor)
^
Error opening/initializing the selected video_out (-vo) device.
但是xvinfo里面确实有
代码:
 Adaptor #1: "Radeon Textured Video"
 number of ports: 16
 port base: 58
 operations supported: PutImage 
 supported visuals:
 depth 24, visualID 0x21
 number of attributes: 2
 "XV_BICUBIC" (range 0 to 2)
 client settable attribute
 client gettable attribute (current value is 2)
 "XV_VSYNC" (range 0 to 1)
 client settable attribute
 client gettable attribute (current value is 1)
 maximum XvImage size: 2048 x 2048
xf86-video-ati-git 20090102,mplayer不是svn版本,但是是自己编译的,去掉了alsa依赖

作者: jarryson   发布时间: 2009-01-03

一激动打错了。-vo xv:adaptor=1

作者: zhuqin_83   发布时间: 2009-01-03

我这里还是不行,
代码:
Could not parse arguments at the position indicated below:
adaptor=1
^
Error opening/initializing the selected video_out (-vo) device.
是svn版本的mplayer么?X使用的是XAA还是EXA?不知道有关系没

作者: jarryson   发布时间: 2009-01-03

exa, svn。

作者: zhuqin_83   发布时间: 2009-01-04

好吧,为了mplayer能实现效果,编译一下svn。

为何我连不上mplayer的svn服务器。。

作者: jarryson   发布时间: 2009-01-04

不错,不错,可以了,已经实现了这个,不过占用cpu稍微多点了。而且就是不开启compiz的视频回放插件也是可以的。

作者: jarryson   发布时间: 2009-01-13

顶zhuqin

作者: qiang_liu8183   发布时间: 2009-01-14

昨天试了下6.10 还是不支持hd3470的xv输出阿[rtv这个也不支持]
还是继续官方的驱动吧

不过有个问题一直没解决:
我的本本是双显卡,登录管理器用的slim,如果用集成显卡[x4500mdh],注销后用exit命令推到命令行时直接黑屏;
如果用ATI显卡+开源驱动,注销后直接黑屏;
如果用ATI显卡+闭源驱动,注销后或者restartx的话kernel直接crash了,满屏幕的16进制数字,内存溢出了?

作者: crazyatom   发布时间: 2009-01-14

xvinfo是哪个软件的东西?我这儿没有这个命令。

作者: kwindva   发布时间: 2009-01-14

引用:
作者: kwindva
xvinfo是哪个软件的东西?我这儿没有这个命令。
牛,xserver都不装。

作者: zhuqin_83   发布时间: 2009-01-15

我装的有xorg-server啊,没有这么个命令。

作者: kwindva   发布时间: 2009-01-15

xorg-utils呢?误删了?还是N久不更新了?

作者: zhuqin_83   发布时间: 2009-01-16

没有xorg-utils这种东西,我用的是gentoo。

作者: kwindva   发布时间: 2009-01-17

话说gentoo还在7.2。

作者: zhuqin_83   发布时间: 2009-01-17

额。不知道什么时候升级之后就不能用了

作者: jarryson   发布时间: 2009-04-02

现在能用吗?

作者: 难免有错   发布时间: 2009-12-13

用catalyst的漂过。。。

作者: dickeny   发布时间: 2009-12-13

怎么我的是:
xvinfo
X-Video Extension version 2.2
screen #0
no adaptors present

mplayer 用vo=xv会没有画面,只有声音。
xf86-video-ati 6.12.4-1

作者: xblx   发布时间: 2009-12-13

如果你用smplayer这个前端,而且也用xf86-video-ati-git的话,那么早就发现了,呵呵

作者: xsam   发布时间: 2009-12-13

引用:
作者: xblx
怎么我的是:
xvinfo
X-Video Extension version 2.2
screen #0
no adaptors present

mplayer 用vo=xv会没有画面,只有声音。
xf86-video-ati 6.12.4-1
就是xv用不了啊。

作者: 难免有错   发布时间: 2009-12-16

引用:
作者: 难免有错
就是xv用不了啊。
还不太明白,
为什么用不了?又要怎么样才可象楼主那样用xv参数?

作者: xblx   发布时间: 2009-12-16

arch从2.6.31后默认把ATI卡KMS启用,当时就有人说3D加速、XVideo无法用,得把KMS关闭才行,不然就将mesa升级到7.6。

现在来看,升级mesa到7.6后,虽然3D加速不能用很少再提,可是xv依然用不了,可能还得把mesa升到git版,或者是把KMS关了。

http://wiki.archlinux.org/index.php/Ati#Disable_KMS

作者: zwgun   发布时间: 2009-12-17

引用:
作者: zwgun
arch从2.6.31后默认把ATI卡KMS启用,当时就有人说3D加速、XVideo无法用,得把KMS关闭才行,不然就将mesa升级到7.6。

现在来看,升级mesa到7.6后,虽然3D加速不能用很少再提,可是xv依然用不了,可能还得把mesa升到git版,或者是把KMS关了。

http://wiki.archlinux.org/index.php/Ati#Disable_KMS
没用KMS测到的FPS有1600左右,用了之后只有不到200了,而且xv也不能用了。

作者: 难免有错   发布时间: 2009-12-17