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

本文档介绍了如何在Linux环境下编译和运行live555 Media Server。首先,从官方站点获取源码并解压,接着通过genMakefileslinux命令进行编译,如需调试则使用genMakefiles linux-gdb。完成编译后,使用makeclean和make进行构建。运行mediaServer目录下的live555MediaServer,若出现成功信息,则表明已安装成功。
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).)


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值