ubuntu使用Live555流媒体搭建服务器

ubuntu使用Live555流媒体搭建服务器

1.下载源码

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

LIVE555官网:http://www.live555.com/
LIVE555源码FTP下载地址:http://www.live555.com/liveMedia/public/

tar xzf live555-latest.tar.gz
cd live
./genMakefiles linux-64bit
#注意后面这个参数是根据当前文件夹下config.<后缀>获取得到的
make

如编译出现openssl/ssl.h报错
sudo apt-get install openssl
sudo apt-get install minizip
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libssl-dev build-essential zlibc libidn11-dev libidn11

2.RTSP推流体验

1.拷贝一个test.264测试视频文件到testProgs下
可用vlc在打开网络中输入地址
rtsp://10.168.1.213:8554/testStream
rtsp://10.168.1.213:8554/test.264

2.拷贝一个test.264测试视频文件放在MediaServer目录
可用vlc在打开网络中输入地址 rtsp://10.168.1.213/test.264
或使用自带测试
live/testProgs# ./testH264VideoStreamer

编译后在live/mediaServer下生成live555MediaServer
开启LIVE555服务器
./live555MediaServer

猜你喜欢

转载自blog.csdn.net/crystal_li_9/article/details/106328221
今日推荐