【问题标题】:RTSP using live555使用 live555 的 RTSP
【发布时间】:2012-03-13 06:59:30
【问题描述】:

我最近下载了 live555 的包以使用 rtsp 流式传输剪辑。 我不知道如何使用它。 请帮助我。 对于 Ubuntu

谢谢

【问题讨论】:

标签: ubuntu rtsp live555


【解决方案1】:

虽然问题已经很老了,我相信你可能已经解决了它,但我仍然发布这个为 Linux 配置 live555 的分步指南,供那些可能面临同样问题的人使用。所以这里是:

1)cd to the live555 folder.
2)user$ ./genMakefiles linux
3)user$ make

(这是假设您在 linux 发行版中设置了 gcc/g++ 及其路径设置)。

然后您可以简单地使用 testProgs 文件夹中的一个测试程序来检查它是否工作。

我假设您需要测试您下载或制作的示例 x264 文件。要做到这一点,最简单的方法是(我总是建议初学者):

1)Copy the x264 file to live/testProgs folder.
2)Rename it to test.264 (testH264VideoStreamer by default is set to stream a file named test).
3)go to terminal and type ./testH264VideoStreamer 
4)Copy the rtsp link (rtsp://xxx.xxx.xxx.xxx:8554/abcd) to your vlc player to stream.
5) Further you can check the QoS parameters and stream profile by downloading openRTSP and use openRTSP -Q rtsp://xxx.xxx.xxx.xxx:8554/abcd to view these parameters. 

希望对你有帮助。

【讨论】:

  • 嗨,我遇到了错误。 $ vlc rtsp://192.168.0.121:8554/testStream VLC 媒体播放器 3.0.3 Vetinari (revision 3.0.3-1-0-gc2bb759264) [00005568c971a570] main libvlc: 使用默认界面运行 vlc。使用 'cvlc' 来使用没有接口的 vlc。为连接创建了新的 TCP 套接字 36 [h264 @ 0x7f53dc079540] NAL 单元 0 无效,正在跳过。 UE golomb 代码无效 [h264 @ 0x7f53dc079540] pps_id 3199971767 超出范围 [00007f53dc04cc00] avcodec 解码器错误:无法启动编解码器 (h264) [00007f53dc04cc00] 主解码器错误:编解码器“h264”(H264 - MPEG-4 AVC)(第 1 部分)不支持
  • 我可以直接从 vlc 播放器播放 test.264 文件。
【解决方案2】:
  1. 确保使用适当的编译器。

$ sudo apt-get install build-essential

  1. 确认您的系统没有 live555 库。

$ sudo apt-get remove liblivemedia-dev

  1. 下载并安装库。

$ cd $HOME

$ wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz

$ tar xvf live555-latest.tar.gz

$ cd 直播

$ ./genMakefiles linux

$ 制作

$ sudo cp -r $HOME/live /usr/lib

$ 清理

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-07-13
    • 2013-01-03
    • 1970-01-01
    • 2012-11-08
    • 1970-01-01
    • 2015-05-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多