RTSP使用live555

时间:2012-03-13 06:59:30

标签: ubuntu rtsp live555

我最近使用rtsp下载了live555的软件包。 我不知道如何使用它。 请帮助我 对于Ubuntu

由于

2 个答案:

答案 0 :(得分:2)

虽然问题已经很久了,我确信你可能已经解决了这个问题,我仍然会发布这个为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. 

希望它有所帮助。

答案 1 :(得分:2)

  1. 确保使用适当的编译器。
  2. $ sudo apt-get install build-essential

    1. 确认您的系统没有live555库。
    2. $ sudo apt-get remove liblivemedia-dev

      1. 下载并安装库。
      2. $ cd $ HOME

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

        $ tar xvf live555-latest.tar.gz

        $ cd live

        $ ./genMakefiles linux

        $ make

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

        $ make clean