Chinaunix首页 | 论坛 | 博客
  • 博客访问: 163147
  • 博文数量: 27
  • 博客积分: 2179
  • 博客等级: 大尉
  • 技术积分: 335
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-21 12:53
文章分类

全部博文(27)

文章存档

2012年(1)

2010年(9)

2009年(7)

2008年(10)

我的朋友

分类: LINUX

2010-04-05 21:17:11

缘由:

用系统自带的mplayer竟然播放不了the.pacific.pt.iv.720p.hdtv.x264-immerse.mkv:
[yorks@localhost font]$ mplayer the.pacific.pt.iv.720p.hdtv.x264-immerse.mkv
MPlayer SVN-r29241-4.4.0 (C) 2000-2009 MPlayer Team
137 audio & 296 video codecs
Playing /Data/Software/up/the.pacific.pt.iv.720p.hdtv.x264-immerse.mkv.[mkv]
Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0[mkv]
Track ID 2: audio (A_AC3) "English", -aid 0, -alang eng[mkv]
Will play video track 1.Matroska file format detected.
VIDEO:  [avc1]  1280x720  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
==============================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec familySelected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
===================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
MPlayer interrupted by signal 11 in module: init_audio_codec-
MPlayer crashed by bad usage of CPU/FPU/RAM.Recompile
MPlayer with --enable-debug and make a 'gdb' backtrace anddisassembly.
Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.-
MPlayer crashed. This shouldn't happen.It can be a bug in the
MPlayer code _or_ in your drivers _or_ in yourgcc version.
If you think it's MPlayer's fault, please readDOCS/HTML/en/bugreports.html and follow the instructions there.
We can't andwon't help unless you provide this information when reporting a possible bug.
baidu,google,youdao后都无果,只好checkout mplayer的源代码下来自己编译。废话少说,开始吧.

1、获得mplayer的源代码。

[yorks@localhost SOURCE]$ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
或者
[yorks@localhost SOURCE]$ wget -c

2、获得live555源代码。

[yorks@localhost SOURCE]$ wget -c

3、编译、安装live555。

[yorks@localhost SOURCES]$ tar xvf live.2010.04.01.tar.gz
[yorks@localhost SOURCES]$ cd live
[yorks@localhost live]$ ./genMakefiles linux
[yorks@localhost live]$ make
[yorks@localhost live]$ su -c cp -R '../live /usr/lib/'

4、获得、安装解码bin文件(Codecs..)

[yorks@localhost SOURCES]$ wget -c
[yorks@localhost SOURCES]$ tar xvf all-20100303.tar.bz2 -C /home/yorks/bin/mplayer/codes/

5、编译、安装mplayer。

[yorks@localhost SOURCES]$ tar xvf mplayer-checkout-snapshot.tar.bz2
[yorks@localhost SOURCES]$ cd mplayer-checkout-2010-04-04/
[yorks@localhost mplayer-checkout-2010-04-04]$  ./configure --enable-menu \
--enable-gui \
--prefix=/home/yorks/bin/mplayer \
--codecsdir=/home/yorks/bin/mplayer/codes/all-20100303 \
--language=zh_CN
注意这时候是否有下面一行显示:
Checking for LIVE555 Streaming Media libraries ... yes (using /usr/lib/live)
如果有,则说明live555安装成功,如果没有就要检查live555啦。

6、设置皮肤。

[yorks@localhost mplayer]$ pwd/home/yorks/bin/mplayer/share/mplayer
[yorks@localhost mplayer]$ cd skins/
[yorks@localhost skins]$ wget -c
[yorks@localhost skins]$ tar xvf  Blue-1.7.tar.bz2
[yorks@localhost skins]$ mv Blue default

7、设置字体。

[yorks@localhost mplayer]$ pwd/home/yorks/bin/mplayer/share/mplayer
[yorks@localhost mplayer]$ ln -s /usr/share/fonts/zh_CN/TrueType/WenQuanYiZenHei.ttf subfont.ttf
[yorks@localhost mplayer]$ echo "fontconfig=0" >> ~/.mplayer/config

8、测试.

[yorks@localhost bin]$ pwd
/home/yorks/bin/mplayer/bin
[yorks@localhost bin]$ ./mplayer /Data/Software/up/the.pacific.pt.iv.720p.hdtv.x264-immerse.mkv

MPlayer SVN-r30994-4.4.0 (C) 2000-2010 MPlayer Team
正在播放 /Data/Software/up/the.pacific.pt.iv.720p.hdtv.x264-immerse.mkv。[mkv]
轨迹 ID 1: video (V_MPEG4/ISO/AVC), -vid 0[mkv]
轨迹 ID 2: audio (A_AC3) "English", -aid 0, -alang eng[mkv]
将播放视频轨迹 1。检测到文件格式 Matroska。VIDEO:  [avc1]  1280x720  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
打开视频解码器: [ffmpeg] FFmpeg's libavcodec codec family
已选视频编解码器: [ffh264] vfm: ffmpeg (FFmpeg H.264)
=========================================================================
打开音频解码器: [ffmpeg] FFmpeg/libavcodec audio
decodersAUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
已选音频编解码器: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
[AO OSS] audio_setup:无法打开音频设备 /dev/dsp:Device or resource busy
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
开始播放...电影宽高比为 1.78:1 - 预放大到正确的电影宽高比。
VO: [xv] 1280x720 => 1280x720 Planar YV12  [zoom]
A:   3.0 V:   3.0 A-V:  0.001 ct: -0.001   0/  0 79%  3%  1.3% 1 0

一切正常,达到目的!

阅读(3808) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-07-08 16:01:59

能不能把live.2010.04.01.tar.gz 和 all-20100303.tar.bz2 发给我下啊 我的qq是785517694 谢谢啊

chinaunix网友2010-04-24 10:41:47

你好阿,我正学习live555, 很想向你请教,你的QQ多少呢?? 我的是309441473