Ubuntu 16.04 编译LIVE555 Server

平台

Ubuntu 16.04 + LIVE555 live.2018.01.29.tar.gz

历程

从官方下载最新版本mediaServer

下载了最新版本live555-latest.tar.gz
下载下来后, 编译, 可惜编译失败.
失败LOG:

  include/TLSState.hh:31:25: fatal error: openssl/ssl.h: No such file or directory
  • 有文章说要去自己下载openssl编译, 果断放弃, 文章见后面海思hi3516dv300开发–live555交叉编译

后续
  • 更新使用了Ubuntu 20.04, 同样遇到SSL编译问题, 解决:
sudo apt-get install libssl-dev

最终找了个旧版本, 编译成功, 并可以正常使用.
  1. 下载并解压:
drwxr-xr-x  10       4096 10月 29 15:09 live/
-rw-rw-r--   1     630144 10月 29 15:09 live.2018.01.29.tar.gz
  1. 编译
# 切换到源码目录下
cd live
# 生成对应平台makefile
genMakefiles linux-64bit
# 开始编译
make
# 等待完成即可.
  1. 编译后, 直接运行mediaServer/live555MediaServer
live/mediaServer$ ./live555MediaServer 
LIVE555 Media Server
	version 0.91 (LIVE555 Streaming Media library version 2018.01.29).
Play streams from this server using the URL
	rtsp://192.168.1.18:8554/<filename>
where <filename> is a file present in the current directory.
Each file's type is inferred from its name suffix:
	".264" => a H.264 Video Elementary Stream file
	".265" => a H.265 Video Elementary Stream file
	".aac" => an AAC Audio (ADTS format) file
	".ac3" => an AC-3 Audio file
	".amr" => an AMR Audio file
	".dv" => a DV Video file
	".m4e" => a MPEG-4 Video Elementary Stream file
	".mkv" => a Matroska audio+video+(optional)subtitles file
	".mp3" => a MPEG-1 or 2 Audio file
	".mpg" => a MPEG-1 or 2 Program Stream (audio+video) file
	".ogg" or ".ogv" or ".opus" => an Ogg audio and/or video file
	".ts" => a MPEG Transport Stream file
		(a ".tsx" index file - if present - provides server 'trick play' support)
	".vob" => a VOB (MPEG-2 video with AC-3 audio) file
	".wav" => a WAV Audio file
	".webm" => a WebM audio(Vorbis)+video(VP8) file
See http://www.live555.com/mediaServer/ for additional documentation.
(We use port 8000 for optional RTSP-over-HTTP tunneling, or for HTTP live streaming (for indexed Transport Stream files only).)
  1. 把模拟的媒体文件放入live/mediaServer目录下即可

  2. 对应客户端请求地址: rtsp://192.168.1.18:8554/test.mkv

参考

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值