LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 888|回复: 0

编译安装mplayer,只有音频没有视频

[复制链接]
发表于 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

播放视频文件只有声音没有图像:



  1. MPlayer 1.0pre7-3.3.3 (C) 2000-2005 MPlayer Team
  2. CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 4)
  3. Detected cache-line size is 32 bytes
  4. CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
  5. 针对有扩展指令集x86 CPU编译: MMX MMX2 SSE


  6. Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
  7. Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup  scripts.
  8. 播放 chap05.avi.
  9. 检测到AVI文件格式。
  10. VIDEO:  [tscc]  720x400  16bpp  15.000 fps   23.3 kbps ( 2.8 kbyte/s)
  11. ==========================================================================
  12. 打开音频解码器: [pcm] Uncompressed PCM audio decoder
  13. AUDIO: 8000 Hz, 2 ch, u8, 128.0 kbit/100.00% (ratio: 16000->16000)
  14. Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
  15. ==========================================================================
  16. Can't open /dev/fb0: No such device
  17. [fbdev2] Can't open /dev/fb0: No such device
  18. vo_cvidix: No vidix driver name provided, probing available ones (-v option for  details)!
  19. vosub_vidix: Couldn't find working VIDIX driver
  20. ==========================================================================
  21. 打开视频解码器: [ffmpeg] FFmpeg's libavcodec codec family
  22. Selected video codec: [ffcamtasia] vfm:ffmpeg (TechSmith Camtasia Screen Codec (native))
  23. ==========================================================================
  24. Checking audio filter chain for 8000Hz/2ch/u8 -> 8000Hz/2ch/u8...
  25. AF_pre: 8000Hz/2ch/u8
  26. AO: [oss] 8000Hz 2ch u8 (1 bps)
  27. Building audio filter chain for 8000Hz/2ch/u8 -> 8000Hz/2ch/u8...
  28. 开始播放...
  29. VDec: vo配置要求 - 720 x 400 (选择 csp: BGR 15-bit)
  30. VDec: using BGR 15-bit as output csp (no 2)
  31. 电影宽高比未定义 - 无法使用预放大.
  32. 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::
  1. make -C libvo
  2. make[1]: Entering directory `/home/wg/down/MPlayer-1.0pre7/libvo'
  3. 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
  4. 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
  5. 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
  6. In file included from aclib.c:84:
  7. aclib_template.c: In function `fast_memcpy_MMX2':
  8. aclib_template.c:252: warning: use of cast expressions as lvalues is deprecated
  9. aclib_template.c:253: warning: use of cast expressions as lvalues is deprecated
  10. aclib_template.c:341: warning: use of cast expressions as lvalues is deprecated
  11. aclib_template.c:342: warning: use of cast expressions as lvalues is deprecated
复制代码
  1. make[1]: Leaving directory `/home/wg/down/MPlayer-1.0pre7/libaf'
  2. make -C mp3lib
  3. make[1]: Entering directory `/home/wg/down/MPlayer-1.0pre7/mp3lib'
  4. 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
  5. 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
  6. {standard input}: Assembler messages:
  7. {standard input}:43: Warning: missing operand; zero assumed
  8. {standard input}:46: Warning: missing operand; zero assumed
复制代码

  1. 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
  2. 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
  3. {standard input}: Assembler messages:
  4. {standard input}:14: Warning: missing operand; zero assumed
复制代码

  1. make[1]: Entering directory `/home/wg/down/MPlayer-1.0pre7/tremor'
  2. 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
  3. 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
  4. block.c: In function `vorbis_synthesis_init':
  5. block.c:155: warning: assignment discards qualifiers from pointer target type
  6. block.c:156: warning: assignment discards qualifiers from pointer target type
复制代码


挺多呢!!

这是make install的提示信息:
  1. make install
  2. make[1]: Entering directory `/home/wg/down/MPlayer-1.0pre7/libdha'
  3. mkdir -p /usr/local/mplayer//lib
  4. install -m 755 -s -p libdha.so.1.0  /usr/local/mplayer//lib/libdha.so.1.0
  5. rm -f /usr/local/mplayer//lib/libdha.so
  6. ln -sf libdha.so.1.0  /usr/local/mplayer//lib/libdha.so.1
  7. ldconfig
  8. make[1]: Leaving directory `/home/wg/down/MPlayer-1.0pre7/libdha'
  9. make[1]: Entering directory `/home/wg/down/MPlayer-1.0pre7/vidix'
  10. make[2]: Entering directory `/home/wg/down/MPlayer-1.0pre7/vidix/drivers'
  11. mkdir -p /usr/local/mplayer//lib/mplayer/vidix
  12. install -m 755 -s -p *.so /usr/local/mplayer//lib/mplayer/vidix
  13. make[2]: Leaving directory `/home/wg/down/MPlayer-1.0pre7/vidix/drivers'
  14. make[1]: Leaving directory `/home/wg/down/MPlayer-1.0pre7/vidix'
  15. if test ! -d /usr/local/mplayer//bin ; then mkdir -p /usr/local/mplayer//bin ; fi
  16. install -m 755 -s mplayer /usr/local/mplayer//bin/mplayer
  17. if test ! -d /usr/local/mplayer//man/man1 ; then mkdir -p /usr/local/mplayer//man/man1; fi
  18. for i in en; do \
  19.         if test "$i" = en ; then \
  20.                 install -c -m 644 DOCS/man/en/mplayer.1 /usr/local/mplayer//man/man1/mplayer.1 ; \
  21.         else \
  22.                 mkdir -p /usr/local/mplayer//man/$i/man1 ; \
  23.                 install -c -m 644 DOCS/man/$i/mplayer.1 /usr/local/mplayer//man/$i/man1/mplayer.1 ; \
  24.         fi ; \
  25. done
  26. install -m 755 -s mencoder /usr/local/mplayer//bin/mencoder
  27. for i in en; do \
  28.         if test "$i" = en ; then \
  29.                 ln -sf mplayer.1 /usr/local/mplayer//man/man1/mencoder.1 ; \
  30.         else \
  31.                 ln -sf mplayer.1 /usr/local/mplayer//man/$i/man1/mencoder.1 ; \
  32.         fi ; \
  33. done
  34. *** Download font at http://www.mplayerhq.hu/homepage/dload.html
  35. *** 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格式,,总是莫名其妙的在播放中退出。。。提示这是不应该发生的,要重新编译之类的话。。
  1. MPlayer interrupted by signal 11 in module: decode_video
  2. - MPlayer crashed by bad usage of CPU/FPU/RAM.
  3.   Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  4.   disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
  5. - MPlayer crashed. This shouldn't happen.
  6.   It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  7.   gcc version. If you think it's MPlayer's fault, please read
  8.   DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  9.   won't help unless you provide this information when reporting a possible bug.
复制代码



我就考虑用tar包。结果,搞了一下午,,只有声音。。。


好像跟我遇到类似困难的人很多吧。。。

明白,不明白的,,大家都讨论下吧。。。像我们菜鸟可以好多多学习。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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