hostzhu点评:MPlayer对流媒体的支持,让大家能更进一步地利用linux来看网络直播,对Linux下多媒体应用的推动作用可以说不可度量。

RTSP/RTP streaming support for MPlayer
The Open Source "MPlayer" media player can now receive and play standards-comp
liant RTP audio/video streams, using the "LIVE555 Streaming Media" source code
libraries.
    * For example, MPlayer can be used to view the MPEG/RTP streams sent by th
e "testMP3Streamer", "testMPEGVideoStreamer" or "testMPEGAudioVideoStreamer" d
emo applications, using the corresponding ".sdp" file (or, if the built-in RTS
P server is enabled, using a "rtsp://" URL).
    * MPlayer can also play many other "rtsp://" streams, including ISMA-compl
iant MPEG-4 audio/video streams. 
Note: We now recommend the use of the VLC media player. VLC, like MPlayer, use
s the "LIVE555 Streaming Media" code for RTSP client support, but is generally
more reliable than MPlayer. The VLC web site also has pre-built binary versio
ns; you may not need to build it from source code.
Building MPlayer to support RTSP/RTP streaming
Please do the following steps, in order:
   1. Download and build the "LIVE555 Streaming Media" libraries. You may wish
to move the resulting "live/" directory to "/usr/local/", "/usr/local/lib/", 
or "/usr/lib/". (Note: If you do this, you must move the entire "live/" direct
ory - not just the library files.)
   2. Download the newest version of the MPlayer source code.
   3. If, in Step 1, you moved the "live/" directory to "/usr/local/", "/usr/l
ocal/lib/", or "/usr/lib/", run
          cd MPlayer* ; ./configure --enable-live
      Otherwise, run
          cd MPlayer* ; ./configure --enable-live --with-livelibdir=
   4. Now, build and install MPlayer as usual - i.e.,
          make ; make install
      (Note that you must build MPlayer with the same version of "gcc" that yo
u used to build the LIVE555 Streaming Media code.) 
Running the new MPlayer
MPlayer can be run just as before. However, it can now open "rtsp://" URLs:
    mplayer rtsp:///
    * To see details of the complete RTSP protocol exchange, add the "-V" ( ve
rbose ) option. 
Alternatively, using a "sdp://" pseudo-URL, MPlayer can read a SDP file that d
escribes a RTP session:
    mplayer sdp://
(SDP files are usually used only for playing multicast RTP sessions.)
Audio/Video synchronization
MPlayer s "A-V:" display (at the bottom of the console window) shows the curre
nt time difference (in seconds) between the audio and video streams. MPlayer w
ill automatically attempt to synchronize audio and video - i.e., to bring the 
"A-V:" number close to zero - using information provided by incoming RTCP "Sen
der Report" packets. Sometimes, however, MPlayer s default synchronization mec
hanism can be slow to respond. If you need to make it respond more aggressivel
y, try adding the option
    -mc 10
MPlayer s principal author has also written an informative article that discus
ses techniques for tuning the performance of MPlayer.
Streaming over TCP
By default, incoming data (RTP and RTCP packets) are streamed using UDP. If, h
owever, you have a broken Internet connection that (for whatever reason) does 
not pass incoming UDP packets, then you can ask that the incoming data be stre
amed over TCP instead. (It will use the same TCP connection as RTSP.)
To do this, add the option
    -rtsp-stream-over-tcp
to MPlayer. (Note that TCP streaming can be used only with "rtsp://" URLs; it 
can t be used with sessions that are specified using a SDP file.)
Streaming access-controlled RTSP sessions
Some RTSP servers require user authentication (via a name and password) before
a session can be streamed. To stream such a session, use the "-user  -passwd " options. The program authenticates using RTSP "digest au
thentication"; the password will not get sent in the clear over the net.
Alternatively, you could try including the user name and password inside the U
RL, as: "rtsp://:@:". (In this case, thoug
h, the password will be sent in the clear over the net.)
Playing SIP (IP telephony) sessions
MPlayer can also open and play SIP IP telephony sessions - i.e., those specifi
ed by a "sip:" URL. Of course, because MPlayer is a receive-only application, 
you can listen in on such sessions - but you won t be able to talk back. (For 
two-way communication on a SIP session, you should instead use a dedicated SIP
  softphone  application, such as linphone.)
A note about RealAudio and RealVideo sessions
Note that the LIVE555 Streaming Media libraries do not support RealAudio and/o
r RealVideo streams - even those described by a "rtsp://" URL - because these 
streams do not use RTP for transport. (Instead, these streams use RealNetworks
  proprietary "RDT" protocol.)
Recently, however, MPlayer was updated so that it can play RealAudio/RealVideo
"rtsp://" streams. It does this by first checking whether the URL ends with "
.rm" or ".ra". If it does, it handles it as a special case, not using the LIVE
555 Streaming Media support. Otherwise, it uses the LIVE555 Streaming Media su
pport, as usual.
Support
General questions about MPlayer should be posted to one of the MPlayer mailing
lists. However, questions specifically about the RTSP/RTP streaming support (
except for playing RealAudio or RealVideo streams) should be posted instead to
the "LIVE555 Streaming Media" developers  mailing list.
Work still to be done...
    * Support additional RTP media types. At present, the following media type
s are known to work:
      audio: MPEG-1 or 2 elementary streams (including layer III - i.e., "MP3"
); MPEG-4 (AAC) audio; PCM (u-law or a-law); GSM; AC-3; QCELP
      video: MPEG-1, 2 or 4 elementary streams; H.263+; motion-JPEG
    * Use the RTSP "PAUSE" and "PLAY" commands to support the pausing and seek
ing of RTSP-initiated streams.
    * Handle video RTP multicast sessions that contain more than one video sou
rce (multiplexed by RTP SSRC) - e.g., sessions such as the MBone "Places all o
ver the world". For example, MPlayer might pop up a separate video window for 
each such source.

播放网络文件信息
2 Playing rtsp://gnu-linux.3322.org/test.3gp.avi.
3 Resolving gnu-linux.3322.org for AF_INET...
4 Connecting to server gnu-linux.3322.org[58.41.179.173]: 554...
5 rtsp_session: unsupported RTSP server. Server type is 'LAIM1.0.0'.
6 Resolving gnu-linux.3322.org for AF_INET...
7 Connecting to server gnu-linux.3322.org[58.41.179.173]: 80...
8 Server returned 404: Not Found
9 No stream found to handle url rtsp://gnu-linux.3322.org/test.3gp.avi

MPlayer 开始支持RTSP/RTP流媒体文件的更多相关文章

  1. RTSP服务器之————rtsp-server(轻量级RTSP / RTP流媒体服务器)

    github:https://github.com/revmischa/rtsp-server 轻量级RTSP / RTP流媒体服务器

  2. 如何在MPlayer上支持RTSP

    http://www.live555.com/mplayer/ 请按照如下步骤 下载 "LIVE555 Streaming Media" l的库的源码, 解压后 将"li ...

  3. javaCV开发详解之4:转流器实现(也可作为本地收流器、推流器,新增添加图片及文字水印,视频图像帧保存),实现rtsp/rtmp/本地文件转发到rtmp流媒体服务器(基于javaCV-FFMPEG)

    javaCV系列文章: javacv开发详解之1:调用本机摄像头视频 javaCV开发详解之2:推流器实现,推本地摄像头视频到流媒体服务器以及摄像头录制视频功能实现(基于javaCV-FFMPEG.j ...

  4. javaCV开发详解之3:收流器实现,录制流媒体服务器的rtsp/rtmp视频文件(基于javaCV-FFMPEG)

    javaCV系列文章: javacv开发详解之1:调用本机摄像头视频 javaCV开发详解之2:推流器实现,推本地摄像头视频到流媒体服务器以及摄像头录制视频功能实现(基于javaCV-FFMPEG.j ...

  5. EasyPusher/EasyDarwin支持H.265 RTSP/RTP直播推流与分发播放

    前言描述 随着大屏时代和高清时代的到来,人们已经不再满足于VGA.CIF这种小分辨率了,取而代之的是720P.1080P.4K级的视频传输,虽然我们国家的基础带宽一直在上升,但普遍情况下,传输高清视频 ...

  6. SIP SDP RTSP RTP RTCP webrtc

    rfc1889  rfc2326  rfc3261  rfc3550  rfc3856  rfc6120. SIP SDP RTSP  RTP RTCP,就像他们出现的顺序一样,他们在实际应用中的启用 ...

  7. ONVIF、RTSP/RTP、FFMPEG的开发实录

    前言 本文从零基础一步步实现ONVIF协议.RTSP/RTP协议获取IPC实时视频流.FFMPEG解码.开发环境为WIN7 32位 + VS2010. 最终成功获取浩云.海康.大华的IPC实时视频流. ...

  8. 【视频开发】ONVIF、RTSP/RTP、FFMPEG的开发实录

    ONVIF.RTSP/RTP.FFMPEG的开发实录 前言 本文从零基础一步步实现ONVIF协议.RTSP/RTP协议获取IPC实时视频流.FFMPEG解码.开发环境为WIN7 32位 + VS201 ...

  9. 课堂/会议同屏教学解决方案之RTSP/RTP over UDP组播解决方案

    问题 在之前的博客<EasyIPCamera实现Windows PC桌面.安卓Android桌面同屏直播,助力无纸化会议系统>我们描述了一套基于EasyIPCamera的同屏功能,但是这个 ...

随机推荐

  1. 这是一个文字游戏?“这个工作你们部门牵头xx”

    近期集团一个部门在联系做一个网上应用平台系统.经过几次的会议沟通,这个原本就是解决取消个人银行卡收款的需求慢慢变成了一个在线销售加收款平台,因为其对销售的业务不熟悉,现有又有应用的软件,他们也感觉到主 ...

  2. [寒江孤叶丶的Cocos2d-x之旅_32]微信输入框风格的IOS平台的EditBox

    原创文章,欢迎转载.转载请注明:文章来自[寒江孤叶丶的Cocos2d-x之旅系列] 博客地址:http://blog.csdn.net/qq446569365 偶然看到一个游戏注冊账号时候,输入框是弹 ...

  3. 【入门篇】ANDROID开发之BUG专讲

    话说诸葛亮是一个优秀的程序员,每个锦囊都是应对不同的case而编写的.可是优秀的程序员也敌只是更优秀的bug.六出祈山.七进中原,鞠躬尽瘁,死而后已的诸葛亮仅仅由于有一个错误的case-马谡,整个结构 ...

  4. python中获取当前路径【os模块】

    本机windows,文件目录F:\python\ClStudyDemo\osTest.py os.path.realpath(_file_)——返回真实路径 os.path.split()——返回路径 ...

  5. ios设计一部WindowsPhone手机

    ios设计一部WindowsPhone手机 main.m #import <Foundation/Foundation.h> #import "WindowsPhone.h&qu ...

  6. HDU1269 有向图强连通分量

    题目大意:问一个有向图是否任意两点在两个方向上互相连通. 有向图强连通分量定义:如果一个图中的任意两点在两个方向上都互相连通,则该图为强连通图.极大强连通图为有向图的强连通分量(注意是极大,不是最大. ...

  7. [CQOI 2007] 涂色

    [题目链接] https://www.lydsy.com/JudgeOnline/problem.php?id=1260 [算法] 区间DP [代码] #include<bits/stdc++. ...

  8. thinkphp实现多数据库操作

    这篇文章主要介绍了ThinkPHP实现多数据库连接的解决方法,需要的朋友可以参考下   ThinkPHP实现连接多个数据的时候,如果数据库在同一个服务器里的话只需要这样定义模型: ? 1 2 3 cl ...

  9. Spark Scala语言学习系列之完成HelloWorld程序(三种方式)

    三种方式完成HelloWorld程序 分别采用在REPL,命令行(scala脚本)和Eclipse下运行hello world. 一.Scala REPL. windows下安装好scala后,直接C ...

  10. DataTable转Json就是这么简单(Json.Net DLL (Newtonsoft))

    之前JSON转DataTable可以见我之前的随笔 链接Json转换成DataTable 之前没有用过DataTable,之后随着需求的叠加发现需要将DataTable转换成Json.因为之前都是用的 ...