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

相关推荐
未来之窗软件服务2 小时前
服务器运维(六)跨域配置 Preflight 问题——东方仙化神期
运维·服务器·服务器运维·仙盟创梦ide·东方仙盟
埃伊蟹黄面2 小时前
计算机的“身体”与“灵魂”:冯·诺依曼架构与操作系统
linux
winner88814 小时前
Linux 软件安装 “命令密码本”:yum/apt/brew 一网打尽
linux·运维·服务器
九河云4 小时前
软件开发平台 DevCloud
运维·服务器·数据库·科技·华为云
思麟呀5 小时前
Linux的基础IO流
linux·运维·服务器·开发语言·c++
winner88816 小时前
嵌入式Linux驱动开发全流程:工具协作+核心概念拆解(从入门到理解)
linux·运维·驱动开发
ShiinaKaze6 小时前
fatal error: bits/c++config.h: No such file or directory
linux·gcc·g++
TTBIGDATA7 小时前
【Ambari开启Kerberos】KERBEROS SERVICE CHECK 报错
大数据·运维·hadoop·ambari·cdh·bigtop·ttbigdata
Archy_Wang_17 小时前
脚本自动生成专业Linux巡检报告
linux·运维·服务器
java_logo7 小时前
SGLANG Docker容器化部署指南
linux·运维·docker·容器·eureka·1024程序员节