testing - 无法获取 SDP 描述 : 404 Stream not found testRTSPClient in LIVE555

标签 testing rtsp live555

我是 Live555 的新手,最近开始学习一些关于它的东西。文档指出,一个好的测试是尝试源代码中 testProgs 文件夹中给出的示例。因此,我已经开始测试一些在 live555 源中很容易获得的程序。

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

我做错了什么?这是否意味着我在客户端提供了一个 SDP 文件?在他们的文档中找不到这样的声明,目前还很模糊。

Screen Shot

最佳答案

live555MediaServer不支持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

关于testing - 无法获取 SDP 描述 : 404 Stream not found testRTSPClient in LIVE555,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28089390/

相关文章:

java - RabbitMQ N 交换测试

c# - 测试更多输入

android - 为 Android 开发流媒体服务器

c++ - 有多少并发的 rtsp 流可以通过 WAN 可靠地直播 555 流

c++ - LIVE555 如何使用 h264 成帧器类获取 ffmpeg 的最终单位

ios - 如何使用 iOS8 的 VideoToolbox 解码 live555 rtsp 流 (h.264) MediaSink 数据?

testing - 如何测试 Stencil.js 状态变化?

video - 共享 IP 摄像机源 (RTSP?)

iphone - rtsp://liveStream 与 A​​VPlayer

c++ - 如何测试只返回系统值的API?