设为首页
收藏本站
用户名
Email
自动登录
找回密码
密码
登录
注册
快捷导航
平台
Portal
论坛
BBS
文库
项目
群组
Group
我的博客
Space
搜索
搜索
热搜:
shell
linux
mysql
本版
用户
LinuxSir.cn,穿越时空的Linuxsir!
»
论坛
›
Linux 综合讨论区 —— LinuxSir.cn
›
开源软件专题讨论
›
编译安装mplayer,只有音频没有视频
返回列表
查看:
886
|
回复:
0
编译安装mplayer,只有音频没有视频
[复制链接]
eastpeace
eastpeace
当前离线
积分
81
IP卡
狗仔卡
发表于 2006-4-2 23:12:01
|
显示全部楼层
|
阅读模式
主要参考了:
http://www.linuxsir.cn/bbs/showthread.php?t=3136
http://www.linuxsir.cn/bbs/showthread.php?t=250114
http://www.linuxsir.cn/bbs/showthread.php?t=199254
播放视频文件只有声音没有图像:
MPlayer 1.0pre7-3.3.3 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 4)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
针对有扩展指令集x86 CPU编译: MMX MMX2 SSE
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
播放 chap05.avi.
检测到AVI文件格式。
VIDEO: [tscc] 720x400 16bpp 15.000 fps 23.3 kbps ( 2.8 kbyte/s)
==========================================================================
打开音频解码器: [pcm] Uncompressed PCM audio decoder
AUDIO: 8000 Hz, 2 ch, u8, 128.0 kbit/100.00% (ratio: 16000->16000)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
Can't open /dev/fb0: No such device
[fbdev2] Can't open /dev/fb0: No such device
vo_cvidix: No vidix driver name provided, probing available ones (-v option for details)!
vosub_vidix: Couldn't find working VIDIX driver
==========================================================================
打开视频解码器: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffcamtasia] vfm:ffmpeg (TechSmith Camtasia Screen Codec (native))
==========================================================================
Checking audio filter chain for 8000Hz/2ch/u8 -> 8000Hz/2ch/u8...
AF_pre: 8000Hz/2ch/u8
AO: [oss] 8000Hz 2ch u8 (1 bps)
Building audio filter chain for 8000Hz/2ch/u8 -> 8000Hz/2ch/u8...
开始播放...
VDec: vo配置要求 - 720 x 400 (选择 csp: BGR 15-bit)
VDec: using BGR 15-bit as output csp (no 2)
电影宽高比未定义 - 无法使用预放大.
VO: [null] 720x400 => 720x400 BGR 15-bit
复制代码
安装的时候主要根据:
http://www.linuxsir.cn/bbs/showthread.php?t=199254
就是编译过是这样的:
./configure --prefix=/usr/local/mplayer/ --with-codecsdir=/usr/lib/codes/ --with-win32libdir=/usr/lib/wincodes/ --language=zh_CN
因为装图像,编译总不成功,要一些文件。。。
这样confiure成功了,,但在make的时候。。。
提示了几个warning::
make -C libvo
make[1]: Entering directory `/home/wg/down/MPlayer-1.0pre7/libvo'
cc -c -I../libvo -I../../libvo -fno-PIC -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I.. -I../osdep -DMPG12PLAY -o geometry.o geometry.c
cc -c -I../libvo -I../../libvo -fno-PIC -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I.. -I../osdep -DMPG12PLAY -o aspect.o aspect.c
cc -c -I../libvo -I../../libvo -fno-PIC -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I.. -I../osdep -DMPG12PLAY -o aclib.o aclib.c
In file included from aclib.c:84:
aclib_template.c: In function `fast_memcpy_MMX2':
aclib_template.c:252: warning: use of cast expressions as lvalues is deprecated
aclib_template.c:253: warning: use of cast expressions as lvalues is deprecated
aclib_template.c:341: warning: use of cast expressions as lvalues is deprecated
aclib_template.c:342: warning: use of cast expressions as lvalues is deprecated
复制代码
make[1]: Leaving directory `/home/wg/down/MPlayer-1.0pre7/libaf'
make -C mp3lib
make[1]: Entering directory `/home/wg/down/MPlayer-1.0pre7/mp3lib'
cc -c -I.. -I../libvo -I../../libvo -fno-PIC -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -o sr1.o sr1.c
cc -c -I.. -I../libvo -I../../libvo -fno-PIC -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fomit-frame-pointer -o decode_i586.o decode_i586.c
{standard input}: Assembler messages:
{standard input}:43: Warning: missing operand; zero assumed
{standard input}:46: Warning: missing operand; zero assumed
复制代码
cc -c -I.. -I../libvo -I../../libvo -fno-PIC -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -o decode_MMX.o decode_MMX.c
cc -c -I.. -I../libvo -I../../libvo -fno-PIC -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -o dct64_MMX.o dct64_MMX.c
{standard input}: Assembler messages:
{standard input}:14: Warning: missing operand; zero assumed
复制代码
make[1]: Entering directory `/home/wg/down/MPlayer-1.0pre7/tremor'
cc -c -I../libvo -I../../libvo -fno-PIC -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I.. -o bitwise.o bitwise.c
cc -c -I../libvo -I../../libvo -fno-PIC -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I.. -o block.o block.c
block.c: In function `vorbis_synthesis_init':
block.c:155: warning: assignment discards qualifiers from pointer target type
block.c:156: warning: assignment discards qualifiers from pointer target type
复制代码
挺多呢!!
这是make install的提示信息:
make install
make[1]: Entering directory `/home/wg/down/MPlayer-1.0pre7/libdha'
mkdir -p /usr/local/mplayer//lib
install -m 755 -s -p libdha.so.1.0 /usr/local/mplayer//lib/libdha.so.1.0
rm -f /usr/local/mplayer//lib/libdha.so
ln -sf libdha.so.1.0 /usr/local/mplayer//lib/libdha.so.1
ldconfig
make[1]: Leaving directory `/home/wg/down/MPlayer-1.0pre7/libdha'
make[1]: Entering directory `/home/wg/down/MPlayer-1.0pre7/vidix'
make[2]: Entering directory `/home/wg/down/MPlayer-1.0pre7/vidix/drivers'
mkdir -p /usr/local/mplayer//lib/mplayer/vidix
install -m 755 -s -p *.so /usr/local/mplayer//lib/mplayer/vidix
make[2]: Leaving directory `/home/wg/down/MPlayer-1.0pre7/vidix/drivers'
make[1]: Leaving directory `/home/wg/down/MPlayer-1.0pre7/vidix'
if test ! -d /usr/local/mplayer//bin ; then mkdir -p /usr/local/mplayer//bin ; fi
install -m 755 -s mplayer /usr/local/mplayer//bin/mplayer
if test ! -d /usr/local/mplayer//man/man1 ; then mkdir -p /usr/local/mplayer//man/man1; fi
for i in en; do \
if test "$i" = en ; then \
install -c -m 644 DOCS/man/en/mplayer.1 /usr/local/mplayer//man/man1/mplayer.1 ; \
else \
mkdir -p /usr/local/mplayer//man/$i/man1 ; \
install -c -m 644 DOCS/man/$i/mplayer.1 /usr/local/mplayer//man/$i/man1/mplayer.1 ; \
fi ; \
done
install -m 755 -s mencoder /usr/local/mplayer//bin/mencoder
for i in en; do \
if test "$i" = en ; then \
ln -sf mplayer.1 /usr/local/mplayer//man/man1/mencoder.1 ; \
else \
ln -sf mplayer.1 /usr/local/mplayer//man/$i/man1/mencoder.1 ; \
fi ; \
done
*** Download font at http://www.mplayerhq.hu/homepage/dload.html
*** for OSD/Subtitles support and extract to /usr/local/mplayer//share/mplayer/font/
复制代码
由于不能正常显示视频:看到有个贴子做个链接就好了,困此:
#sudo ln -s /usr/lib/wincodes /usr/lib/codecs
结果还是只有声音。
其实之前,一直用rpm的mplayer,1.0.5的吧,一直挺好。最近从verycd上下了套教程,avi格式,,总是莫名其妙的在播放中退出。。。提示这是不应该发生的,要重新编译之类的话。。
MPlayer interrupted by signal 11 in module: decode_video
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. 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 your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
复制代码
我就考虑用tar包。结果,搞了一下午,,只有声音。。。
好像跟我遇到类似困难的人很多吧。。。
明白,不明白的,,大家都讨论下吧。。。像我们菜鸟可以好多多学习。
回复
使用道具
举报
提升卡
置顶卡
沉默卡
喧嚣卡
变色卡
显身卡
返回列表
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册
本版积分规则
发表回复
回帖后跳转到最后一页
浏览过的版块
Redhat/Fedora/CentOS Linux
服务器架设、应用、维护
LFS(LinuxfromScratch)
Gentoo Linux
Linux 基础讨论区(新手速成)
Copyright © 2002-2023
LinuxSir.cn
(http://www.linuxsir.cn/) 版权所有 All Rights Reserved.
Powered by
RedflagLinux!
技术支持:
中科红旗
|
京ICP备19024520号
快速回复
返回顶部
返回列表