LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: aaccdd

手把手教你编译安装MPlayer-1.0pre5

[复制链接]
发表于 2004-7-18 22:48:33 | 显示全部楼层
就是系统默认编码,解析字符使用什么编码
发表于 2004-7-18 22:49:33 | 显示全部楼层
比如,同样是二进制数字11111111
GB18030解释为“我”
UTF-8解释为“靠”

当然,这只是举例
发表于 2004-7-18 23:02:40 | 显示全部楼层
再请教,为什么不能播放wmv9的文件,我已经装了解码器
发表于 2004-7-18 23:10:22 | 显示全部楼层
我的locale显示为UTF-8:

# locale
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=

请问如何将UTF-8字符集设置成GBK字符集?
发表于 2004-7-18 23:31:05 | 显示全部楼层
请问libpng是什么东东?
 楼主| 发表于 2004-7-18 23:34:16 | 显示全部楼层
再请教,为什么不能播放wmv9的文件,我已经装了解码器

那是因为mplayer默认用了ffmpeg来播放wmv文件,
如果要使用wmp的解码器,
需要加上-vc 选项,比如
mplayer -vc wmvdmo/wmv9dmo;
同样的道理,如果是wma文件,
可以加上-ac选项,比如:
mplayer -ac wmadmo/wma9dmo。

其中
-vc是指定视频解码器,
-ac是指定音频解码器;
要查看自己的音/视聘解码器使用
mplayer -vc/-ac help,
会有一个列表,
比如:
vc:         vfm:      status:   info:  [lib/dll]
mpegpes     mpegpes   working   Mpeg PES output (.mpg or Dxr3/DVB card)
mpeg12      libmpeg2  working   MPEG 1 or 2 (libmpeg2)
ffmpeg1     ffmpeg    working   FFmpeg MPEG 1  [mpeg1video]
ffmpeg2     ffmpeg    working   FFmpeg MPEG 2  [mpeg2video]
ffmpeg12    ffmpeg    working   FFmpeg MPEG 1/2  [mpegvideo]
。。。

其中的vc/ac就是在选项中的解码器的名称,working指得是状态。
详细内容请看info mplayer
 楼主| 发表于 2004-7-18 23:38:18 | 显示全部楼层
请问libpng是什么东东?

A library of functions for manipulating PNG image format files
创建和处理PNG图像文件所需的库文件
发表于 2004-7-18 23:58:44 | 显示全部楼层
最初由 macarthor 发表
缺少libpng包
http://www.libpng.org/pub/png/libpng.html 下载tar.bz2
直接下载地址为 http://prdownloads.sourceforge.n ... .5.tar.bz2?download

tar xjf libpng-1.2.5.tar.bz2
./configure --prefix=/usr
make
make install

libpng需要zlib,可以到www.zlib.org下载,安装方 ... --prefix=/usr参数


zlib已成功安装,可安装libpng时显示如下错误,why?谢谢!
--------------------------------------
[root@ghm libpng-1.2.5]# ./configure

  There is no "configure" script for Libpng-1.2.5.  Instead, please
  copy the appropriate makefile for your system from the "scripts"
  directory.  Read the INSTALL file for more details.

-------------------------------------------
 楼主| 发表于 2004-7-19 00:02:04 | 显示全部楼层
There is no "configure" script for Libpng-1.2.5. Instead, please
copy the appropriate makefile for your system from the "scripts"
directory. Read the INSTALL file for more details.

这里已经说了:
libpng-1.2.5没有configure脚本,
需要你从scripts目录复制你的系统所需的makefile到源码的根目录,
详情内容看INSTALL。
发表于 2004-7-19 00:16:14 | 显示全部楼层
42

出错了,看看出错信息
linux给出的出错信息都比较详细

其实,也就是“少个文件”什么的,一般用户不会接触到涉及代码调试之类的信息
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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