QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3549|回复: 9

大家都用mplayer播放rtsp了吗?

[复制链接]
发表于 2006-9-29 21:30:21 | 显示全部楼层 |阅读模式
我的mplayer1.0pre7  安装完只能rtsp mp3 ,其他的avi,wmv,rm, wma,都放不了,我的codec是
all-20060611  windows-all-20060501   live

为什么啊??????????
发表于 2006-9-29 22:00:10 | 显示全部楼层
不应该呀,先说一下你怎么安装的?
回复

使用道具 举报

 楼主| 发表于 2006-9-30 16:36:15 | 显示全部楼层
我的 mplayer 是MPlayer-1.0pre8.tar.tar
codec:
all-20060611.tar.bz2   
live.2006.09.20.tar.gz
windows-all-20060501.zip


./configure --prefix=/usr/local/mplayer/ --enable-gui --enable-freetype --with-codecsdir=/usr/lib/codecs --enable-live --with-livelibdir=/usr/lib/codecs/live --with-win32libdir=/usr/lib/codecs/windows-all-20060501/ 2>&1 | tee logfile  

Detected operating system: Linux
Detected host architecture: i386
Checking for gcc41 version ... 4.1.0, ok
Checking for host cc ... gcc41
Checking for cross compilation ... no
Checking for CPU vendor ... GenuineIntel (15:2:9)
Checking for CPU type ...  Intel(R) Pentium(R) 4 CPU 2.80GHz
Checking for GCC & CPU optimization abilities ... pentium4
Checking for kernel support of mmx ... yes
Checking for kernel support of mmxext ... yes
Checking for kernel support of sse ... yes
Checking for kernel support of sse2 ... yes
Checking for mtrr support ... yes
Checking for xmmintrin.h ... yes
Checking for assembler support of -pipe option ... yes
Checking for assembler (as 2.16.91.0.6) ... ok
Checking for Linux kernel version ... 2.6.15-1.2054_FC5, ok
Checking for MPlayer binary name ... mplayer
Checking for awk ... gawk
Checking for extra headers ... none
Checking for extra libs ... none
Checking for -lposix ... no
Checking for -lm ... yes
Checking for langinfo ... yes
Checking for language ... using en (man pages:  en)
Checking for enable sighandler ... yes
Checking for runtime cpudetection ... no
Checking for restrict keyword ... __restrict
Checking for __builtin_expect ... yes
Checking for kstat ... no
Checking for posix4 ... no
Checking for lrintf ... yes
Checking for round ... yes
Checking for nanosleep ... yes
Checking for socklib ... yes (using -lnsl)
Checking for inet_pton() ... yes (using -lnsl)
Checking for inttypes.h (required) ... yes
Checking for int_fastXY_t in inttypes.h ... yes
Checking for word size ... 32
Checking for stddef.h ... yes
Checking for malloc.h ... yes
Checking for memalign() ... yes
Checking for alloca.h ... yes
Checking for mman.h ... yes
Checking for dynamic loader ... yes
Checking for dynamic a/v plugins support ... no
Checking for pthread ... yes (using -lpthread)
Checking for rpath ... no
Checking for iconv ... yes
Checking for sys/soundcard.h ... yes
Checking for sys/dvdio.h ... no
Checking for sys/cdio.h ... no
Checking for linux/cdrom.h ... yes
Checking for dvd.h ... no
Checking for BSDI dvd.h ... no
Checking for HP-UX SCSI header ... no
Checking for userspace SCSI headers (Solaris) ... no
Checking for termcap ... yes (using -lncurses)
Checking for termios ... yes (using sys/termios.h)
Checking for shm ... yes
Checking for linux devfs ... no
Checking for scandir() ... yes
Checking for strsep() ... yes
Checking for strlcpy() ... no
Checking for strlcat() ... no
Checking for fseeko() ... yes
Checking for localtime_r() ... yes
Checking for vsscanf() ... yes
Checking for swab() ... yes
Checking for POSIX select() ... yes
Checking for gettimeofday() ... yes
Checking for glob() ... yes
Checking for setenv() ... yes
Checking for sys/sysinfo.h ... yes
Checking for Mac OS X APIs ... auto
Checking for Mac OS X Finder Support ... no
Checking for Mac OS X Bundle file locations ... no
Checking for Samba support (libsmbclient) ... yes
Checking for 3dfx ... no
Checking for tdfxfb ... no
Checking for s3fb ... no
Checking for tdfxvid ... no
Checking for tga ... yes
Checking for DirectFB headers presence ... not found
Checking for DirectFB ... no
Checking for X11 headers presence ... yes (using /usr/X11R6/include)
Checking for X11 ... yes (using /usr/X11R6/lib)
Checking for DPMS ... yes (using Xdpms 4)
Checking for Xv ... yes
Checking for XvMC ... no
Checking for Xinerama ... yes
Checking for Xxf86vm ... yes
Checking for XF86keysym ... yes
Checking for DGA ... 2 (using DGA 2.0)
Checking for OpenGL ... yes
Checking for /dev/mga_vid ... no
Checking for xmga ... no
Checking for GGI ... no
Checking for GGI extension: libggiwmh ... no
Checking for AA ... no
Checking for CACA ... no
Checking for SVGAlib ... no
Checking for FBDev ... no
Checking for DVB ... no (specify path to DVB/ost/include with --with-dvbincdir=DIR)
Checking for DVB HEAD ... yes
Checking for PNG support ... yes
Checking for JPEG support ... yes
Checking for PNM support ... yes
Checking for md5sum support ... yes
Checking for GIF support ... yes
Checking for broken giflib workaround ... disabled
Checking for VESA support ... no
Checking for SDL ... yes (using sdl-config)
Checking for Windows waveout ... no
Checking for Directx ... no
Checking for NAS ... no
Checking for DXR2 ... no
Checking for DXR3/H+ ... no
Checking for libmp1e ... no
Checking for libfame ... no
Checking for OSS Audio ... yes
Checking for aRts ... yes
Checking for EsounD ... yes
Checking for esd_get_latency() ... yes
Checking for Polyp ... no
Checking for JACK ... no
Checking for OpenAL ... no
Checking for ALSA audio ... yes (using alsa 1.0.x and alsa/asoundlib.h)
Checking for Sun audio ... no
Checking for Sun mediaLib ... no
Checking for SGI audio ... no
Checking for VCD support ... yes
Checking for DVD support (libmpdvdkit2) ... yes
Checking for DVD support (libdvdread) ... no (disabled by libmpdvdkit2)
Checking for cdparanoia ... yes
Checking for libcdio ... auto (using cdparanoia)
Checking for freetype >= 2.0.9 ... yes
Checking for fontconfig ... yes
Checking for fribidi with charsets ... no
Checking for ENCA ... no
Checking for zlib ... yes
Checking for RTC ... yes
Checking for external liblzo support ... no
Checking for mad support ... no
Checking for Toolame ... no
Checking for Twolame ... no
Checking for OggVorbis support ... yes (internal Tremor)
Checking for libspeex (version >= 1.1 required) ... no
Checking for OggTheora support ... no
Checking for mp3lib support ... yes
Checking for liba52 support ... yes
Checking for libdts support ... no
Checking for libmpeg2 support ... yes
Checking for libmpcdec (musepack, version >= 1.2.1 required) ... no
Checking for FAAC (AAC encoder) support ... no
Checking for internal FAAD2 (AAC) support ... yes
Checking for external FAAD2 (AAC) support ... no
Checking for LADSPA plugin support ... no
Checking for Win32 codec DLL support ... yes (using /usr/lib/codecs/windows-all-20060501/)
Checking for Win32 loader support ... yes
Checking for DirectShow ... yes
Checking for XAnim DLL ... yes (using /usr/lib/codecs)
Checking for RealPlayer DLL ... yes (using /usr/lib/codecs/all-20060611/)
Checking for LIVE555 Streaming Media libraries ... yes (using /root/liu/mplayer/live)
Checking for FFmpeg libavutil (static) ... yes
Checking for FFmpeg libavcodec (static) ... yes
Checking for FFmpeg libavformat (static) ... yes
Checking for FFmpeg libpostproc (static) ... yes
Checking for AMR narrowband ... no
Checking for AMR narrowband, fixed point ... no
Checking for AMR wideband ... no
Checking for libdv-0.9.5+ ... no
Checking for zr ... no
Checking for bl ... no
Checking for XviD ... no
Checking for x264 ... no
Checking for DivX4linux/DivX5linux/OpenDivX decore ... no
Checking for libmp3lame (for mencoder) ... no
Checking for DivX4linux encore (for mencoder) ... no
Checking for mencoder ... yes
Checking for fastmemcpy ... yes
Checking for UniquE RAR File Library ... yes
Checking for TV interface ... yes
Checking for *BSD BrookTree 848 TV interface ... no
Checking for Video 4 Linux TV interface ... yes
Checking for Video 4 Linux 2 TV interface ... yes
Checking for audio select() ... yes
Checking for network ... yes
Checking for ftp ... yes
Checking for vstream client ... no
Checking for byte order ... little-endian
Checking for OSD menu ... no
Checking for QTX codecs ... yes
Checking for Subtitles sorting ... yes
Checking for XMMS inputplugin support ... no
Checking for inet6 ... yes
Checking for gethostbyname2 ... yes
Checking for GUI ... yes
Checking for XShape extension ... yes
Checking for GTK+ version ... 2.8.15
Checking for glib version ... 2.10.1
Creating Gui/config.mak
Checking for iconv program ... yes
Checking for automatic gdb attach ... no
Checking for compiler support for -fno-PIC ... yes
Checking for compiler support for noexecstack ... yes
Checking for ftello() ... yes
Checking for VIDIX (internal) ... yes
Checking for VIDIX (external) ... no
Checking for joystick ... no
Checking for lirc ... no
Checking for lircc ... no
Creating config.mak
Creating config.h
Creating libvo/config.mak
Creating libao2/config.mak
Creating libaf/config.mak

Config files successfully generated by ./configure !

  Install prefix: /usr/local/mplayer/
  Data directory: /usr/local/mplayer//share/mplayer
  Config direct.: /usr/local/mplayer//etc/mplayer

  Byte order: little-endian
  Optimizing for: pentium4 mmx mmxext sse sse2 mtrr

  Languages:
    Messages/GUI: en
    Manual pages:  en

  Enabled optional drivers:
    Input: ftp network tv-v4l2 tv-v4l tv live555 cdda mpdvdkit2 vcd dvb smb
    Codecs: qtx libavcodec real xanim dshow/dmo win32 faad2(internal) libmpeg2 liba52 mp3lib tremor(internal) gif
    Audio output: alsa esd arts oss sdl mpegpes(dvb)
    Video output: xvidix cvidix sdl gif89a md5sum pnm jpeg png mpegpes(dvb) opengl dga xv x11 xover tga
    Audio filters:
  Disabled optional drivers:
    Input: vstream tv-bsdbt848 dvdread
    Codecs: opendivx x264 xvid libdv amr_wb amr_nb faac musepack libdts libtheora speex twolame toolame libmad liblzo
    Audio output: sgi sun openal jack polyp dxr2 nas dsound win32
    Video output: winvidix bl zr zr2 dxr3 dxr2 directx vesa fbdev svga caca aa ggi xmga mga xvmc directfb tdfx_vid s3fb tdfxfb 3dfx
    Audio filters: ladspa

'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
      compile *** DO NOT REPORT BUGS if you tweak these files ***

'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.

Please check mtrr settings at /proc/mtrr (see DOCS/HTML/en/video.html#mtrr)


Check configure.log if you wonder why an autodetection failed (check whether
the development headers/packages are installed).
Do not report compilation errors if you used any of the --enable-* options
(except --enable-gui and maybe --enable-debug).

If you suspect a bug, please read DOCS/HTML/en/bugreports.html.

没有安装font skin 在终端下mplayer rtsp:****/***  只能放mp3,别的都放不了,
放h.264时:
this server is not configured to play the data type you requested .please contact the real server administrator for assistance.

用ftp放没有问题,除了rm,rmvb,都能放
回复

使用道具 举报

 楼主| 发表于 2006-9-30 16:39:22 | 显示全部楼层
哈哈,大家帮忙看下 :-)
回复

使用道具 举报

发表于 2006-9-30 16:54:01 | 显示全部楼层
live 怎么装的?codec 怎么装的?
话别说一半。
回复

使用道具 举报

 楼主| 发表于 2006-9-30 18:02:08 | 显示全部楼层
装live:
tar jxvf  live.2006.09.20.tar.gz
cd live

./genMakefile
make

装codec就是tar完以后cp /usr/lib/codec

chmod 644 /usr/lib/codes/*
chown root.root /usr/lib/codes/*
回复

使用道具 举报

发表于 2006-10-1 22:15:34 | 显示全部楼层
怎么 cp 的 codec ?
是 cp 解压缩出来的目录还是目录里的文件?

我要没记错,应该是 cp 里面的文件到 codec 目录(最好用图形界面的文件管理功能,因为可能含有子目录需要同时复制)。

live 需要手动拷贝到 /usr 里的对应目录(你的就是/usr/lib/codecs/live,同样需要 cp 里面的文件到对应目录)。

如果你可以播放 rtps:// 的东西,但同时也只能放 rtps:// 的 mp3 ,那就应该是 codec 的问题。

--with-codecsdir=/usr/lib/codecs 和 --with-win32libdir=/usr/lib/codecs/windows-all-20060501/ 最好为一个目录,因为没办法确定你用的 codec 是不是 win32 codec (似乎 win32codec 就是 win 的 dll 文件,普通 codec 是别的扩展名?)
回复

使用道具 举报

 楼主| 发表于 2006-10-10 08:56:25 | 显示全部楼层
谢谢jingtao9999 的热心帮助

all-20060611

windows-all-20060501

这两个codec都分别放什么东东啊,mplayer本地除了rm的都能放,可是rtsp就不可以,只能放mp3,真是奇怪,高手给解答一下阿,谢谢了。

btw:我的rtsp server是用helix建的,不知道helix支不支持h264码流。
回复

使用道具 举报

发表于 2006-10-25 09:24:18 | 显示全部楼层

是编译live 时成功了
出来给大家讲讲吧
我也正郁闷中
回复

使用道具 举报

发表于 2006-10-25 20:05:25 | 显示全部楼层
rtsp 已经支持了,但只能 mp3 ?!别的都正常…………
你的服务器的问题?你用你的 mplayer 看别人的 rtsp 正常么?比如 cctv 上有一些 rtsp ,real.com 应该也有。

Helix 服务器好像部分功能有限制?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-12-3 05:46 , Processed in 0.087291 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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