Ubuntu搭建RTSP服务器

  • 下载

    http://www.live555.com/liveMedia/public/

  • 安装ffmpeg

    sudo apt install -y ffmpeg

  • 转换文件(必须!)

    ffmpeg -i test.mp4 -codec copy -bsf: h264_mp4toannexb -f h264 test.264

  • 编译

    ./genMakefiles linux-64bit
    make

  • 启动服务器

    cd mediaServer
    ./live555MediaServer

输出时会提示类似rtsp://10.0.2.15:8554/<filename>

  • 测试

    ffplay rtsp://10.0.2.15:8554/test.264

相关推荐
Flash.kkl4 小时前
Linux——进程信号
运维·服务器
衫水5 小时前
ubuntu系统如何检查和安装以及运行redis
redis·ubuntu·bootstrap
苏宸啊5 小时前
Linux权限
linux·运维·服务器
Gofarlic_oms16 小时前
Windchill用户登录与模块访问失败问题排查与许可证诊断
大数据·运维·网络·数据库·人工智能
xqhoj6 小时前
Linux——make、makefile
linux·运维·服务器
文亭湖畔程序猿6 小时前
Debian 12 日常命令 & nano 快捷键速查表
运维·debian
张童瑶6 小时前
Linux 在线安装编译Python3.11
linux·运维·python3.11
ziqibit6 小时前
debian Live with Persistence 持久化U盘的debian系统
运维·debian
Shi_haoliu6 小时前
SolidTime 在 Rocky Linux 9.5 上的完整部署流程
linux·运维·nginx·postgresql·vue·php·laravel
Lkygo7 小时前
LlamaIndex使用指南
linux·开发语言·python·llama