live555---1--编译与运行

来源:互联网 发布:英文演讲视频软件 编辑:程序博客网 时间:2024/06/07 09:35
1、source code下载

可从官网下载,http://www.live555.com/

CSDN上有个各版本总结的帖子,地址为http://blog.sina.com.cn/s/blog_686fa4280100l4c2.html。

2、解压

tar-xvf live555-latest.tar.gz
3、编译

./genMakefileslinux

如果需要使用gdb调试,修改上面的命令为 ./genMakefiles linux-gdb.

经过以上步骤生成的live555MediaServer可以用于gdb调试,如果要使源代码中的DEBUG宏有效,还需要修改live/config.linux-gdb文件,在COMPILE_OPTS一行中添加-DDEBUG即可

makeclean;make

4、运行

         cdmediaServer/

         ./live555MediaServer

         如果看到如下信息,说明你成功了。

 

[root@localhostmediaServer]# ./live555MediaServer

LIVE555Media Server

        version 0.76 (LIVE555 Streaming Medialibrary version 2013.01.15).

Playstreams from this server using the URL

        rtsp://192.168.6.87/<filename>

where<filename> is a file present in the current directory.

Eachfile's type is inferred from its name suffix:

        ".264" => a H.264 VideoElementary Stream file

        ".aac" => an AAC Audio(ADTS format) file

        ".ac3" => an AC-3 Audiofile

        ".amr" => an AMR Audiofile

        ".dv" => a DV Video file

        ".m4e" => a MPEG-4 VideoElementary Stream file

        ".mkv" => a Matroskaaudio+video+(optional)subtitles file

        ".mp3" => a MPEG-1 or 2Audio file

        ".mpg" => a MPEG-1 or 2Program Stream (audio+video) file

        ".ts" => a MPEG TransportStream file

                (a ".tsx" index file- if present - provides server 'trick play' support)

        ".wav" => a WAV Audio file

        ".webm" => a WebMaudio(Vorbis)+video(VP8) file

Seehttp://www.live555.com/mediaServer/ for additional documentation.

(Weuse port 80 for optional RTSP-over-HTTP tunneling, or for HTTP live streaming(for indexed Transport Stream files only).)


原创粉丝点击