mplayer 的xv补丁到底怎么打呀

Totem,mplayer,sopcast,realplayer,bmp
头像
liumailong
帖子: 244
注册时间: 2008-02-12 6:41

mplayer 的xv补丁到底怎么打呀

#1

帖子 liumailong » 2008-05-12 16:52

用mplayer 使用XV输出总是一闪一闪的在论坛找了半天都是说要打补丁
可是就是找不到怎么打补丁。老是用X11不是个办法呀!
找了句zhuqin_83大大的名言
zhuqin_83 写了:x11是最垃圾的方式,除非你的显卡不支持xv才不得不用。
头像
liumailong
帖子: 244
注册时间: 2008-02-12 6:41

#2

帖子 liumailong » 2008-05-13 1:15

没人回复吗?
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#3

帖子 zhuqin_83 » 2008-05-13 3:27

HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
liumailong
帖子: 244
注册时间: 2008-02-12 6:41

#4

帖子 liumailong » 2008-05-13 14:07

...........看不懂英文呀! :em45
vista1984
帖子: 12
注册时间: 2008-05-10 0:51

#5

帖子 vista1984 » 2008-05-13 14:23

里面主要有个比较有用的网址
http://smspillaz.wordpress.com/2007/10/ ... ideo-card/

有基本流程(我简单翻译下:
Firstly, download the mplayer 1.0rc2 source code from:
一,,download如下地址的mplayer包
http://www3.mplayerhq.hu/MPlayer/releas ... c2.tar.bz2
再解压
extract it …

Navigate to the directory ‘libvo’
二,下载patch包
Download this patch : http://smspillaz.googlepages.com/mplayrepatch.patch

Apply it with:
三,运行patch命令
patch -p0 vo_xv.c mplayrepatch.patch

四,configrue和make mplayer
Configure and Compiz Mplayer (It takes a long time :D).

但我失败了(解码驱动里只有x11驱动,,没有xv)希望zhuqin兄帮忙解答
你可以试试,,有不明白开以尽管问我,,期待你的好消息
头像
liumailong
帖子: 244
注册时间: 2008-02-12 6:41

#6

帖子 liumailong » 2008-05-13 14:41

那个你能详细些吗?
vista1984
帖子: 12
注册时间: 2008-05-10 0:51

#7

帖子 vista1984 » 2008-05-13 15:04

sure,,
1。按照zhuqin的方法,,先正确安装ati驱动,,并且“改xorg.conf,关闭过时的video overlay,启动新的texturevideo。 “
好像说驱动一定要彻底重装,,并启动新的渲染方式(参见http://forum.ubuntu.org.cn/viewtopic.php?t=26188 方法一的后半断),,不过本人在加了下面的代码之后驱动失效,,所以把它们删去了,,有可能是失败的原因之一
Section "Extensions"
Option "Composite" "0"
EndSection

Section "ServerFlags"
Option "AIGLX" "off"
EndSection

2。驱动搞好之后就轮到mplayer,,顺序就如我前一帖说的,,先把mplayer和patch文件下载
http://www3.mplayerhq.hu/MPlayer/releas ... c2.tar.bz2
http://smspillaz.googlepages.com/mplayrepatch.patch
将patch文件放在刚下载的mplayer文件夹,,然后在terminal输入下面指令修改vo_xv.c文件
patch -p0 <mplayrepatch.patch(我刚学几天,,也许不对,,你再试试看)

3。patch成功之后用下面指令configrue
./configure --enable-gui

4.configure 后会声称一个make文件,,就可以输入下面指令安装使用了,,
make install

confiigrue和安装的过程可以参考mplayer文件夹下的readme,,
在附上zhuqin兄的pkgbuild供参考,,弱弱的问什么是pkgbuild??
我前后探索了5个小时,,ubuntu第一次让我感到有想吐的感觉,,还是希望有牛人出来指点一下吧,,
anyway我还是会继续看看的,,
睡前写下,,祝你好运
头像
liumailong
帖子: 244
注册时间: 2008-02-12 6:41

#8

帖子 liumailong » 2008-05-13 15:24

代码: 全选

liumailong@CaiLiao:~$ cd '/home/liumailong/LingShi/MPlayer-1.0rc2' 
liumailong@CaiLiao:~/LingShi/MPlayer-1.0rc2$ patch -p0 <mplayrepatch.patch
patch: **** Can't find file -p0 : No such file or directory
liumailong@CaiLiao:~/LingShi/MPlayer-1.0rc2$ patch -p0 <mplayrepatch.patchpatch: **** Can't find file -p0 : No such file or directory
liumailong@CaiLiao:~/LingShi/MPlayer-1.0rc2$ sudo patch -p0 <mplayrepatch.patch 
[sudo] password for liumailong: 
patch: **** Can't find file -p0 : No such file or directory
liumailong@CaiLiao:~/LingShi/MPlayer-1.0rc2$ patch -p0 vo_xv.c mplayrepatch.patch 
patch: **** Can't find file vo_xv.c : No such file or directory
不行呀!还是要靠各位强人呀~~~
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#9

帖子 zhuqin_83 » 2008-05-14 7:08

ubuntu估计要安装libxv-dev等dev包的。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
liumailong
帖子: 244
注册时间: 2008-02-12 6:41

#10

帖子 liumailong » 2008-05-15 9:35

编译了半天,总算成功了
用mplayer -vo xv不再闪了,但。。。。。
又没有声音了 :(
用MPlayer Movie Player还是一样闪
头像
liumailong
帖子: 244
注册时间: 2008-02-12 6:41

#11

帖子 liumailong » 2008-05-15 9:41

搞定了,原来还要加上声音参数
不过MPlayer Movie Player还是一样
头像
liumailong
帖子: 244
注册时间: 2008-02-12 6:41

#12

帖子 liumailong » 2008-05-15 9:48

没有完全按照vista1984的稍微改了
以下

贴上流程

代码: 全选

先解压
$ cd /home/liumailong/LingShi/MPlayer-1.0rc2
$ patch -p1 <~/LingShi/mplayrepatch.patch
$ sudo ./configure 
$ sudo make 
$ sudo make install 
头像
command
帖子: 306
注册时间: 2007-10-14 0:50
来自: GUCAS

#13

帖子 command » 2008-06-16 21:10

OS: Debian GNU/Linux
Version: lenny
Kernel: 2.6.36
Xorg: 1.4.2
CPU: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
HD: 320G SATA
Memory: 2G DDRIII
Graphics:Mobility Radeon HD 3450
jarry8359
帖子: 57
注册时间: 2007-12-18 10:18
来自: 武汉

#14

帖子 jarry8359 » 2008-06-19 14:21

受限驱动,用totom-xine放rmvb很好,就是拖动不是那么好而已

而且是开了compiz的3D桌面,不闪
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

Re: mplayer 的xv补丁到底怎么打呀

#15

帖子 skyx » 2008-06-19 14:26

zhuqin_83 写了:x11是最垃圾的方式,除非你的显卡不支持xv才不得不用。
学习
no security measure is worth anything if an attacker has physical access to the machine
回复