无法获取SDP描述:在LIVE555中找不到404流testRTSPClient

时间:2015-01-22 12:58:26

标签: testing rtsp live555

我是Live555的新手,最近开始学习一些有关它的内容。文档说明一个好的测试是尝试在源代码中的testProgs文件夹中给出的样本。所以,我已经开始测试一些在live555源中可用的程序。

从mediaServer文件夹我按照文档运行服务器我应该将电影文件(mp4)放在与exe相同的位置。我做了什么。当我尝试打开客户端(testRTSPClient.exe)时, 我一直收到SDP描述的错误,如屏幕截图所示。

我做错了什么?这是否意味着我在客户端提供SDP文件?在他们的文档中找不到这样的陈述,这些陈述目前非常模糊。

提前致谢!

Screen Shot

1 个答案:

答案 0 :(得分:2)

现在live555 Media Server不支持mp4文件。

当你启动它时,会输出如下内容:

LIVE555 Media Server
    version 0.84 (LIVE555 Streaming Media library version 2014.09.11).
Play streams from this server using the URL
    rtsp://192.168.0.16:8554/<filename>
where <filename> is a file present in the current directory.
Each file's type is inferred from its name suffix:
    ".264" => a H.264 Video Elementary Stream file
    ".265" => a H.265 Video Elementary Stream file
    ".aac" => an AAC Audio (ADTS format) file
    ".ac3" => an AC-3 Audio file
    ".amr" => an AMR Audio file
    ".dv" => a DV Video file
    ".m4e" => a MPEG-4 Video Elementary Stream file
    ".mkv" => a Matroska audio+video+(optional)subtitles file
    ".mp3" => a MPEG-1 or 2 Audio file
    ".mpg" => a MPEG-1 or 2 Program Stream (audio+video) file
    ".ogg" or ".ogv" or ".opus" => an Ogg audio and/or video file
    ".ts" => a MPEG Transport Stream file
        (a ".tsx" index file - if present - provides server 'trick play' support)
    ".vob" => a VOB (MPEG-2 video with AC-3 audio) file
    ".wav" => a WAV Audio file
    ".webm" => a WebM audio(Vorbis)+video(VP8) file
See http://www.live555.com/mediaServer/ for additional documentation.
(We use port 8000 for optional RTSP-over-HTTP tunneling, or for HTTP live streaming (for indexed Transport Stream files only).)

您应该使用支持的格式之一,例如mkv。