LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2967|回复: 23

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

[复制链接]
发表于 2009-1-3 03:23:53 | 显示全部楼层 |阅读模式
才从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。
效果看附件。
  1. $ xvinfo
  2. X-Video Extension version 2.2
  3. screen #0
  4.   Adaptor #0: "ATI Radeon Video Overlay"
  5.     number of ports: 1
  6.     port base: 57
  7.     operations supported: PutImage
  8.     supported visuals:
  9.       depth 24, visualID 0x21
  10.       depth 24, visualID 0x22
  11.     number of attributes: 22
  12.       "XV_DEVICE_ID" (range 0 to -1)
  13.               client gettable attribute (current value is 107)
  14.       "XV_LOCATION_ID" (range 0 to -1)
  15.               client gettable attribute (current value is 108)
  16.       "XV_INSTANCE_ID" (range 0 to -1)
  17.               client gettable attribute (current value is 109)
  18.       "XV_DUMP_STATUS" (range 0 to 1)
  19.               client settable attribute
  20.       "XV_SET_DEFAULTS" (range 0 to 1)
  21.               client settable attribute
  22.       "XV_AUTOPAINT_COLORKEY" (range 0 to 1)
  23.               client settable attribute
  24.               client gettable attribute (current value is 0)
  25.       "XV_COLORKEY" (range 0 to -1)
  26.               client settable attribute
  27.               client gettable attribute (current value is 30)
  28.       "XV_DOUBLE_BUFFER" (range 0 to 1)
  29.               client settable attribute
  30.               client gettable attribute (current value is 1)
  31.       "XV_OVERLAY_ALPHA" (range 0 to 255)
  32.               client settable attribute
  33.               client gettable attribute (current value is 255)
  34.       "XV_GRAPHICS_ALPHA" (range 0 to 255)
  35.               client settable attribute
  36.               client gettable attribute (current value is 255)
  37.       "XV_ALPHA_MODE" (range 0 to 1)
  38.               client settable attribute
  39.               client gettable attribute (current value is 0)
  40.       "XV_BRIGHTNESS" (range -1000 to 1000)
  41.               client settable attribute
  42.               client gettable attribute (current value is 0)
  43.       "XV_CONTRAST" (range -1000 to 1000)
  44.               client settable attribute
  45.               client gettable attribute (current value is 0)
  46.       "XV_SATURATION" (range -1000 to 1000)
  47.               client settable attribute
  48.               client gettable attribute (current value is 0)
  49.       "XV_COLOR" (range -1000 to 1000)
  50.               client settable attribute
  51.               client gettable attribute (current value is 0)
  52.       "XV_HUE" (range -1000 to 1000)
  53.               client settable attribute
  54.               client gettable attribute (current value is 0)
  55.       "XV_RED_INTENSITY" (range -1000 to 1000)
  56.               client settable attribute
  57.               client gettable attribute (current value is 0)
  58.       "XV_GREEN_INTENSITY" (range -1000 to 1000)
  59.               client settable attribute
  60.               client gettable attribute (current value is 0)
  61.       "XV_BLUE_INTENSITY" (range -1000 to 1000)
  62.               client settable attribute
  63.               client gettable attribute (current value is 0)
  64.       "XV_CRTC" (range -1 to 1)
  65.               client settable attribute
  66.               client gettable attribute (current value is -1)
  67.       "XV_GAMMA" (range 100 to 10000)
  68.               client settable attribute
  69.               client gettable attribute (current value is 1000)
  70.       "XV_COLORSPACE" (range 0 to 1)
  71.               client settable attribute
  72.               client gettable attribute (current value is 0)
  73.     maximum XvImage size: 2048 x 2048
  74.     Number of image formats: 8
  75.       id: 0x41424752 (RGBA)
  76.         guid: 52474241-0000-0010-8000-00aa00389b71
  77.         bits per pixel: 32
  78.         number of planes: 1
  79.         type: RGB (packed)
  80.         depth: 32
  81.         red, green, blue masks: 0xff0000, 0xff00, 0xff
  82.       id: 0x54424752 (RGBT)
  83.         guid: 52474254-0000-0010-8000-00aa00389b71
  84.         bits per pixel: 16
  85.         number of planes: 1
  86.         type: RGB (packed)
  87.         depth: 16
  88.         red, green, blue masks: 0x7c00, 0x3e0, 0x1f
  89.       id: 0x32424752 (RGB2)
  90.         guid: 52474200-0000-0010-8000-00aa00389b71
  91.         bits per pixel: 16
  92.         number of planes: 1
  93.         type: RGB (packed)
  94.         depth: 16
  95.         red, green, blue masks: 0xf800, 0x7e0, 0x1f
  96.       id: 0x0
  97.         guid: 52474200-0000-0010-8000-00aa00389b71
  98.         bits per pixel: 24
  99.         number of planes: 1
  100.         type: RGB (packed)
  101.         depth: 24
  102.         red, green, blue masks: 0xff0000, 0xff00, 0xff
  103.       id: 0x32595559 (YUY2)
  104.         guid: 59555932-0000-0010-8000-00aa00389b71
  105.         bits per pixel: 16
  106.         number of planes: 1
  107.         type: YUV (packed)
  108.       id: 0x59565955 (UYVY)
  109.         guid: 55595659-0000-0010-8000-00aa00389b71
  110.         bits per pixel: 16
  111.         number of planes: 1
  112.         type: YUV (packed)
  113.       id: 0x32315659 (YV12)
  114.         guid: 59563132-0000-0010-8000-00aa00389b71
  115.         bits per pixel: 12
  116.         number of planes: 3
  117.         type: YUV (planar)
  118.       id: 0x30323449 (I420)
  119.         guid: 49343230-0000-0010-8000-00aa00389b71
  120.         bits per pixel: 12
  121.         number of planes: 3
  122.         type: YUV (planar)
  123.   Adaptor #1: "Radeon Textured Video"
  124.     number of ports: 16
  125.     port base: 58
  126.     operations supported: PutImage
  127.     supported visuals:
  128.       depth 24, visualID 0x21
  129.     number of attributes: 2
  130.       "XV_BICUBIC" (range 0 to 2)
  131.               client settable attribute
  132.               client gettable attribute (current value is 2)
  133.       "XV_VSYNC" (range 0 to 1)
  134.               client settable attribute
  135.               client gettable attribute (current value is 1)
  136.     maximum XvImage size: 2048 x 2048
  137.     Number of image formats: 4
  138.       id: 0x32595559 (YUY2)
  139.         guid: 59555932-0000-0010-8000-00aa00389b71
  140.         bits per pixel: 16
  141.         number of planes: 1
  142.         type: YUV (packed)
  143.       id: 0x32315659 (YV12)
  144.         guid: 59563132-0000-0010-8000-00aa00389b71
  145.         bits per pixel: 12
  146.         number of planes: 3
  147.         type: YUV (planar)
  148.       id: 0x30323449 (I420)
  149.         guid: 49343230-0000-0010-8000-00aa00389b71
  150.         bits per pixel: 12
  151.         number of planes: 3
  152.         type: YUV (planar)
  153.       id: 0x59565955 (UYVY)
  154.         guid: 55595659-0000-0010-8000-00aa00389b71
  155.         bits per pixel: 16
  156.         number of planes: 1
  157.         type: YUV (packed)
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2009-1-3 10:35:09 | 显示全部楼层
这你怎么发现的。。。

  1. Could not parse arguments at the position indicated below:
  2. adpator=1[color="Red"](typo, shuold be adaptor)[/color]
  3. ^
  4. Error opening/initializing the selected video_out (-vo) device.
复制代码


但是xvinfo里面确实有
  1.   Adaptor #1: "Radeon Textured Video"
  2.     number of ports: 16
  3.     port base: 58
  4.     operations supported: PutImage
  5.     supported visuals:
  6.       depth 24, visualID 0x21
  7.     number of attributes: 2
  8.       "XV_BICUBIC" (range 0 to 2)
  9.               client settable attribute
  10.               client gettable attribute (current value is 2)
  11.       "XV_VSYNC" (range 0 to 1)
  12.               client settable attribute
  13.               client gettable attribute (current value is 1)
  14.     maximum XvImage size: 2048 x 2048
复制代码


xf86-video-ati-git 20090102,mplayer不是svn版本,但是是自己编译的,去掉了alsa依赖
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-1-3 10:57:44 | 显示全部楼层
一激动打错了。-vo xv:adaptor=1
回复 支持 反对

使用道具 举报

发表于 2009-1-3 11:17:29 | 显示全部楼层
我这里还是不行,
  1. Could not parse arguments at the position indicated below:
  2. adaptor=1
  3. ^
  4. Error opening/initializing the selected video_out (-vo) device.
复制代码


是svn版本的mplayer么?X使用的是XAA还是EXA?不知道有关系没
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-1-3 21:23:01 | 显示全部楼层
exa, svn。
回复 支持 反对

使用道具 举报

发表于 2009-1-3 22:49:30 | 显示全部楼层
好吧,为了mplayer能实现效果,编译一下svn。

为何我连不上mplayer的svn服务器。。
回复 支持 反对

使用道具 举报

发表于 2009-1-13 18:53:52 | 显示全部楼层
不错,不错,可以了,已经实现了这个,不过占用cpu稍微多点了。而且就是不开启compiz的视频回放插件也是可以的。
回复 支持 反对

使用道具 举报

发表于 2009-1-13 19:52:25 | 显示全部楼层
顶zhuqin
回复 支持 反对

使用道具 举报

发表于 2009-1-13 19:57:23 | 显示全部楼层
昨天试了下6.10   还是不支持hd3470的xv输出阿[rtv这个也不支持]
还是继续官方的驱动吧

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

使用道具 举报

发表于 2009-1-14 12:23:08 | 显示全部楼层
xvinfo是哪个软件的东西?我这儿没有这个命令。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表