CoreAVC for linux(低配CPU看高清视频)

Totem,mplayer,sopcast,realplayer,bmp
2ig2ag
帖子: 12
注册时间: 2007-07-22 20:23

CoreAVC for linux(低配CPU看高清视频)

#1

帖子 2ig2ag » 2007-11-04 8:46

Update at 21:00, Nov 14,2007

CoreAVC据说是目前解码效率最高的H264软解码器。不过只能在Windows下使用。
听说现在有个CoreAVC for linux的破解方法。我试了半天终于成功了。
经过观察,使用这个解码器后CPU占用率的降低还是比较明显的。

注意原文章中有一处不对(至少在我这试了不对):即注册CoreAVC时的 "registercodec -r
$HOME/.mplayer/registry32"应该是"registercodec -r
$HOME/.mplayer/registry"

I have Succeeded in using CoreAVC 1.3 in ubuntu 710.
There is an error in the introduction, that is, it is "registercodec -r
$HOME/.mplayer/registry" rather than "registercodec -r
$HOME/.mplayer/registry32".
The following is a screenshot for " Transformers 2007 HDDVD 1080p DTS
x264-CtrlHD(1080p 12.4G)�"�
My CPU is Athlon 3000+ overclocked to 2.6GH.
While playing the movie with mplayer,I have disabled Deinterlacing, Agressive
Deinterlacing, Deblocking, Force VMR AR Correction and enabled frame-dropping.

说一下我的大致步骤:
1.编译安装一个SVN版的Mplayer.(方法看这里:http://ubuntuforums.org/showthread.php?t=558538
根据我安装的情况说一点注意事项,不一定对所有人都适用:编译前注意确保sudo apt-get -y install libxv-dev安装xv驱动支持,否则可能无法实现硬件scaling(即缩放),参考这http://forum.ubuntu.org.cn/post-57984.html。还有libdts-dev,用于解码DTS音频。
2.然后用下面这篇文章的步骤安装CoreAVC解码器(注意我测试了CoreAVC1.5好像不支持,我用的是1.3)



The Article Is From here:http://code.google.com/p/coreavc-for-li ... stallation
Introduction

The mplayer build does not support x86_64 and does not support interlaced playback (it will fail rather than just look bad)
Details

Before beginning, ensure that you have a recent mplayer build (only SVN is supported, but recent snapshots should work as well. 1.0RC1 apparently does not) and have run './configure' on it. This is important as the patch will not apply cleanly to an unconfigured mplayer.

1) Download the code from svn:

svn checkout http://coreavc-for-linux.googlecode.com/svn/trunk/ coreavc-for-linux
cd coreavc-for-linux

2) Build mplayer patch:

./mplayer/build_patch.pl <path to mplayer source code> > mplayerfull.patch

3) Install patch into mplayer:

cd <path to mplayer source code>
patch -p0 < <path to coreavc-for-linux>/mplayerfull.patch
make
make install
cp loader/registercodec /usr/local/bin/

4) Update codecs.conf

* If you don't have ~/.mplayer/codecs.conf

mkdir ~/.mplayer
cp <path to mplayer source>/etc/codecs.conf ~/.mplayer/

* Add the following to the end of ~/.mplayer/codecs.conf
(Comment by 2ig2ag:事实上,将以下代码加到codecs.conf最前面的话更好,这样播放H264编码的视频会自动调用CoreAVC解码器,而不用加"-vc coreavc13"参数)

videocodec coreavc13
info "CoreAVC DShow H264 decoder 1.3 for x86 - http://corecodec.org/"
status working
format 0x10000005
fourcc H264,h264 H264
fourcc X264,x264
fourcc avc1,AVC1 AVC1
fourcc davc,DAVC
fourcc VSSH
driver dshow
dll "CoreAVCDecoder.ax"
guid 0x09571a4b, 0xf1fe, 0x4c60, 0x97, 0x60, 0xde, 0x6d, 0x31, 0x0c, 0x7c, 0x31
out YV12,IYUV,I420,YUY2

5) Install CoreAVC to /usr/lib/win32/CoreAVCDecoder.ax

6) Install CoreAVC license info as documented in RegisterCoreAVC
Playing tips

to use coreavc, you may need to add '-vc coreavc13' (assuming you use the above codecs.conf options)

you may also need to use '-demuxer lavf' for some formats (TS streams for example)
RegisterCoreAVC
Registreing CoreAVC
Introduction

Before you can use CoreAVC you must add your license information to the registry. Unfortunately CoreAVC can not be installed from wine as far as I know. You will need a real Windows box to install it.
Details

Once CoreAVC has been installed you can likely find the CoreAVCDecoder.ax file in 'C:\Program Files\Core Codec\CoreAVC Professional\CoreAVCDecoder.ax' You will need to copy this to your linux box in /usr/lib/win32

Next you'll need to open Regedit and find the following keys: For CoreAVC1.2 and 1.3:

* Windows ProductID which is formatted like 55555-333-7777777-55555
1. From the Control Panel go to 'System' and find the Id under 'Registered To'
2. In the registry here: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductID
3. In the registry here: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProductID
* CoreAVC serial number here: HKEY_CURRENT_USER\Software\CoreCodec\CoreAVC Pro\Serial
* Install in linux with (Note that we always use 'Windows' regardless how you got the ProductID):

registercodec -r $HOME/.mplayer/registry32 -k "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ProductID" -v "55555-333-7777777-55555"
registercodec -r $HOME/.mplayer/registry32 -k "HKCU\\Software\\CoreCodec\\CoreAVC Pro\\Serial" -v "111111-222222-333333-444444-55555"

for CoreAVC 1.0 and 1.1:

* Get these registry keys:

HKEY_CURRENT_USER\Software\Licenturion GmbH\0000032D\Product Key
HKEY_CURRENT_USER\Software\Licenturion GmbH\0000032D\User ID

* Install in linux with:

registercodec -r $HOME/.mplayer/registry32 -k "HKCU\\Software\\Licenturion GmbH\\0000032D\\Product Key" -v "AAAA-BBBB-CCCC-DDDD-EEEE-FFFF-GGGG-HHH"
registercodec -r $HOME/.mplayer/registry32 -k "HKCU\\Software\\Licenturion GmbH\\0000032D\\User ID" -v "John Doe"

There are other options you can play with too. The following are all untested as to how they behave in Linux: Deinterlacing:

0 : Software deinterlacing
1 : Software double frame rate
2 : DirectShow deinterlacing
3 : No deinterlacing
registercodec -r ~/.mplayer/registry32 -k "HKEY_CURRENT_USER\\Software\\CoreCodec\\CoreAVC Pro\\Deinterlace" -v <value> -t dword

Aggressive Deinterlacing:

0 : Off
1 : On
registercodec -r ~/.mplayer/registry32 -k "HKEY_CURRENT_USER\\Software\\CoreCodec\\CoreAVC Pro\\AggressiveDeinterlace" -v <value> -t dword

Crop 1088 to 1080:

0 : Off
1 : On
registercodec -r ~/.mplayer/registry32 -k "HKEY_CURRENT_USER\\Software\\CoreCodec\\CoreAVC Pro\\Crop1080" -v <value> -t dword

Deblocking:

0 : Standard deblocking
1 : Skip b-frame deblocking
2 : Skip all deblocking
registercodec -r ~/.mplayer/registry32 -k "HKEY_CURRENT_USER\\Software\\CoreCodec\\CoreAVC Pro\\Deblocking" -v <value> -t dword

Force VMR AR Correction:

0 : Off
1 : On
registercodec -r ~/.mplayer/registry32 -k "HKEY_CURRENT_USER\\Software\\CoreCodec\\CoreAVC Pro\\ForceVMRAR" -v <value> -t dword


Comment by busjahn, Sep 15, 2007

Some users have reported better luck using -r ~/.mplayer/registry. If you are getting a Directshow error on forcing coreavc, it may be worth trying.
(Comment by 2ig2ag: It is so for me)
附件
CoreAVC 1[1].3.0.0 Professional.rar
CoreAVC 1[1].3.0.0 Professional解码器。反正不大,上传一个
(206.7 KiB) 已下载 13851 次
Transformers 2007 HDDVD 1080p DTS<br />x264-CtrlHD(1080p 12.4G)
Transformers 2007 HDDVD 1080p DTS
x264-CtrlHD(1080p 12.4G)
上次由 2ig2ag 在 2007-11-04 22:42,总共编辑 9 次。
头像
hcym
帖子: 15634
注册时间: 2007-05-06 2:46

#2

帖子 hcym » 2007-11-04 11:26

Can you help me ?

CoreAVC for linux

:em11
2ig2ag
帖子: 12
注册时间: 2007-07-22 20:23

#3

帖子 2ig2ag » 2007-11-04 15:26

hcym 写了:Can you help me ?

CoreAVC for linux

:em11
Just refer to the article and hopefully you would succeed.
foxswat
帖子: 88
注册时间: 2006-12-30 22:10

#4

帖子 foxswat » 2007-11-04 18:44

谢谢楼主 mplayer带的那个h.264解码器效率太低了
chunxiao51
帖子: 45
注册时间: 2006-10-14 5:14

#5

帖子 chunxiao51 » 2007-11-04 19:15

天哪,这玩意儿太好了,以前在win下播720p的hd都卡,有了这玩意儿,CPU马上降了,之前我还在抱怨linux下解码器不如win,这个东东好,顶完了再看
andrew_t
帖子: 614
注册时间: 2006-12-14 3:00

#6

帖子 andrew_t » 2007-11-04 19:40

mark下,以后再研究
头像
arthuraquarius
帖子: 18
注册时间: 2007-09-04 14:40

#7

帖子 arthuraquarius » 2007-11-05 1:26

同上,好帖需留名……

顺便感慨一下,为啥看个高码的RMVB就那么那么卡呢?苦恼啊,能用的方法都用过了,疯了
Toshiba Satellite 2410 P4 1.8 512MB 30G GeForce4 420 Go!32MB DVD 15'LCD
看高码的RMVB很卡啊……
大槛哥
帖子: 54
注册时间: 2006-04-07 13:00

#8

帖子 大槛哥 » 2007-11-05 11:01

哈哈。。。对WINDOWS的依赖又少了。。。
头像
matri
帖子: 1140
注册时间: 2006-10-27 11:14
来自: 悉尼

#9

帖子 matri » 2007-11-05 11:08

好消息!mark了。
头像
ofewiofewo
帖子: 547
注册时间: 2007-06-02 14:56

#10

帖子 ofewiofewo » 2007-11-05 11:15

看起来不错,有空试试 :D
头像
hcym
帖子: 15634
注册时间: 2007-05-06 2:46

#11

帖子 hcym » 2007-11-05 13:33

:lol:

有点意思了

coreavc-for-linux

:em05
gtr999
帖子: 107
注册时间: 2007-01-19 4:09

#12

帖子 gtr999 » 2007-11-05 16:10

记号
littlerice
帖子: 52
注册时间: 2007-10-19 5:44

#13

帖子 littlerice » 2007-11-10 14:52

一定要svn版的mplayer吗?源里最新版不行?
头像
reulis
帖子: 156
注册时间: 2007-05-26 11:50

#14

帖子 reulis » 2007-11-12 17:04

:D 这个消息好,去验证下先。
---------------------------------------------------------------------
我终身奋斗的最低革命纲领:农妇__山泉__有点儿田
laimama
帖子: 104
注册时间: 2006-12-10 12:35
来自: ChongQing China

#15

帖子 laimama » 2007-11-12 18:20

littlerice 写了:一定要svn版的mplayer吗?源里最新版不行?
同问。
另外,我发现没有registercodec命令,是不是和不是svn版本的有关?
回复