日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程语言 > c/c++ >内容正文

c/c++

Debian sequeeze编译coreavc 2.0+mplayer

發(fā)布時間:2023/12/10 c/c++ 44 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Debian sequeeze编译coreavc 2.0+mplayer 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
UP?|?HOME

Debian sequeeze編譯coreavc 2.0+mplayer

  • 好不容易終于編譯出了sequeeze下的coreavc2.0+mplayer(2011-03-06),應(yīng)該要比1.0 rc4更新吧。
    • 為什么要用coreavc
    • 下載源代碼
      • mplayer源代碼
      • coreavc源代碼
      • 其他
    • 編譯準(zhǔn)備工作
      • 編譯coreavc-for-linux
      • 安裝coreavc 2.0
      • 注冊測試CoreAVCDecoder.ax
    • 編譯
      • configure
      • patch
      • compile
      • configuration
    • 測試

好不容易終于編譯出了sequeeze下的coreavc2.0+mplayer(2011-03-06),應(yīng)該要比1.0 rc4更新吧。

這里記錄以下整個編譯過程,以防遺忘。

為什么要用coreavc

手上一臺dell的筆記本,但是CPU不是很好,即使用mplayer+mepg-mt,播放720P,cpu基本100%,畫面一卡一卡,所以決定用coreavc,雖然畫質(zhì)有損失,但是只要放著不卡就好。:)

下載源代碼

mplayer源代碼

http://www.mplayerhq.hu/MPlayer/releases/mplayer-checkout-snapshot.tar.bz2

coreavc源代碼

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

其他

當(dāng)然準(zhǔn)備好你的coreavc 2.0也是必須的。當(dāng)前的coreavc-for-linux需要wine運(yùn)行,所以需要安裝wine。 在/etc/apt/sources.list里增加如下:

deb http://www.lamaresh.net/apt squeeze main

安裝wine

sudo aptitude install wine wine-dev

安裝一些必要的編譯包

編譯準(zhǔn)備工作

編譯coreavc-for-linux

cd /dshowserver make sudo make install

安裝coreavc 2.0

cd wine setup.exe

我在運(yùn)行過程中得到一個錯,這時按Ctrl+c,就跳出安裝界面了。輸入序列號完成安裝。

注冊測試CoreAVCDecoder.ax

拷貝CoreAVCDecoder.ax到 /usr/lib/codecs

sudo cp ~/.wine/drive_c/Program Files/CoreCodec/CoreAVC Professional Edition/CoreAVCDecoder.ax /usr/lib/codecs/

測試是否成功

dshowserver -c CoreAVCDecoder.ax -s 1280x720 -g 09571a4b-f1fe-4c60-9760de6d310c7c31 -b 12 -f 0x34363248 -o 0x30323449

成功的話輸出如下

Starting wine dshowserver.exe.so No id specified, assuming test mode Opening device (port is 0) len: 992 ProductVersion: 2.0.0 fixme:thread:SetThreadIdealProcessor (0x4c): stub fixme:thread:SetThreadIdealProcessor (0x50): stub Decoder supports the following YUV formats: YUY2 UYVY YV12 I420 Decoder is capable of YUV output (flags 0x2b) Setting fmt Starting Initialization is complete

編譯

configure

cd CC=gcc-4.3 ./configure --enable-menu --enable-freetype --enable-debug --codecsdir=/usr/lib/codecs

這里使用gcc-4.3,第一次使用gcc4.4編譯出來了好像不能用,改成4.3就好了,不知原因

patch

patch -p0 < ../coreavc-for-linux/mplayer/dshowserver.patch #安裝dshowserver補(bǔ)丁

這個補(bǔ)丁打的時候會失敗,主要是Makefile打補(bǔ)丁時,沒打上,所以我修改了以下Makefile相關(guān)的地方

--- Makefile.orig 2011-03-06 13:15:09.000000000 +0800 +++ Makefile 2011-03-07 23:38:51.000000000 +0800 @@ -20,6 +20,7 @@# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.include config.mak +EXTRALIBS += -lrt###### variable declarations #######@@ -476,6 +477,7 @@ SRCS_COMMON = asxparser.c \stream/stream_mf.c \stream/stream_null.c \stream/url.c \ + libmpcodecs/vd_dshowserver.c \sub/eosd.c \sub/find_sub.c \sub/osd.c \ @@ -859,6 +861,7 @@ gui/%: CFLAGS += -Wno-strict-prototypeslibdvdcss/%: CFLAGS := -Ilibdvdcss -D_GNU_SOURCE -DVERSION=\"1.2.10\" $(CFLAGS_LIBDVDCSS) $(CFLAGS)libdvdnav/%: CFLAGS := -Ilibdvdnav -D_GNU_SOURCE -DHAVE_CONFIG_H -DVERSION=\"MPlayer-custom\" $(CFLAGS)libdvdread4/%: CFLAGS := -Ilibdvdread4 -D_GNU_SOURCE $(CFLAGS_LIBDVDCSS_DVDREAD) $(CFLAGS) +libmpcodecs/%: CFLAGS := $(CFLAGS) -g -O0loader/%: CFLAGS += -fno-omit-frame-pointer $(CFLAGS_NO_OMIT_LEAF_FRAME_POINTER)#loader/%: CFLAGS += -Ddbg_printf=__vprintf -DTRACE=__vprintf -DDETAILED_OUT

用上班這一段,替換原來補(bǔ)丁的中的Makefile那段內(nèi)容

compile

這下應(yīng)該沒有問題了,開始編譯,安裝

make sudo make install

configuration

在一切都完成后還要修改mplayer的配置文件

mkdir ~/.mplayer cp /etc/codecs.conf ~/.mplayer/

并且在~/.mplayer/codecs.conf中增加如下內(nèi)容

videocodec coreserveinfo "CoreAVC DShow H264 decoder x.x for x86 - http://corecodec.org/"status workingformat 0x10000005fourcc H264,h264 H264fourcc X264,x264fourcc avc1,AVC1 AVC1fourcc davc,DAVCfourcc VSSHdriver dshowserverdll "CoreAVCDecoder.ax"guid 0x09571a4b, 0xf1fe, 0x4c60, 0x97, 0x60, 0xde, 0x6d, 0x31, 0x0c, 0x7c, 0x31out YV12,IYUV,I420,YUY2

這段內(nèi)容可以寫在文件的最后。

測試

現(xiàn)在運(yùn)行一個720p的mkv看看,運(yùn)行是需要加“-demuxer mkv”參數(shù)

$ mplayer Hereafter.2010.BluRay.720p.DTS.x264-CHD.mkv -demuxer mkv MPlayer SVN-r33030-4.4.5 (C) 2000-2011 MPlayer Team 162 audio & 353 video codecsPlaying Hereafter.2010.BluRay.720p.DTS.x264-CHD.mkv. [mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Hereafter.2010.BluRay.720p.DTS.x264-CHD", -vid 0 [mkv] Track ID 2: audio (A_DTS) "DTS 5.1 1510kbps", -aid 0, -alang eng [mkv] Will play video track 1. Matroska file format detected. VIDEO: [avc1] 1280x534 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s) Load subtitles in ./ ========================================================================== Opening video decoder: [dshowserver] DirectShowServer video codecs [PP] Using codec's postprocessing, max q = 4. Movie-Aspect is 2.40:1 - prescaling to correct movie aspect. VO: [xv] 1280x534 => 1280x534 Planar YV12 dshowserver --codec CoreAVCDecoder.ax --size 1280x534 --guid 09571a4b-f1fe-4c60-9760de6d310c7c31 --fourc 0x31637661 --bits 12 --outfmt 0x32315659 --pid 5769 --id b6e62700 --numpages 10 --port 45788 & Starting wine dshowserver.exe.so Opening device (port is 45788) len: 992 ProductVersion: 2.0.0 fixme:thread:SetThreadIdealProcessor (0x50): stub fixme:thread:SetThreadIdealProcessor (0x54): stub Decoder supports the following YUV formats: YUY2 UYVY YV12 I420 Decoder is capable of YUV output (flags 0x2b) Setting fmt Starting Initialization is complete Using socket based mutex Found DirectShow filterSelected video codec: [coreserve] vfm: dshowserver (CoreAVC DShow H264 decoder x.x for x86 - http://corecodec.org/) ========================================================================== ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders EINPROGRESS in connect() - selecting Dshowserver Connected to host AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000) Selected audio codec: [ffdca] afm: ffmpeg (FFmpeg DTS) ========================================================================== AO: [oss] 48000Hz 2ch s16le (2 bytes per sample) Starting playback...

一切順利,成功,開心~~

Author: Shine Zhong

Date: 2011-03-08 10:34:18 CST

HTML generated by org-mode 7.4 in emacs 23

來自 “ ITPUB博客 ” ,鏈接:http://blog.itpub.net/737564/viewspace-688611/,如需轉(zhuǎn)載,請注明出處,否則將追究法律責(zé)任。

轉(zhuǎn)載于:http://blog.itpub.net/737564/viewspace-688611/

總結(jié)

以上是生活随笔為你收集整理的Debian sequeeze编译coreavc 2.0+mplayer的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。