gstreamer - 如何使用 GStreamer 0.10 将 mp4 filesrc 流式传输到 rtspsink
问题描述
我必须使用 gstreamer 0.10 并尝试流式传输 mp4 文件。
为此我尝试了
gst-launch-0.10 文件rc location=./test.mp4 !qtdemux !队列 !h264解析!视频/x-h264,映射=/流!udpsink rtsp://192.168.192.100:12345/test
并收到警告:警告:错误管道:没有元素“h264parse”
如何将文件流式传输为 rtsp 流?
解决方案
要获取 h264parse 插件,请运行“sudo apt install gstreamer1.0-plugins-bad”
管道
发件人
gst-launch-1.0 filesrc 位置= ~/file.mp4 !qtdemux !队列 !h264解析!rtph264pay 配置间隔=10 !udpsink 主机=ip_address_to_stream_to 端口=9999 -v
接收者
gst-launch-1.0 udpsrc port=9999 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, payload=(int)96, encoding-name=(string)H264" !rtph264depay!身份沉默=0!avdec_h264 !视频转换!ximagesink
推荐阅读
- botframework - 如何隐藏消息扩展机器人“我能做什么?” 文本
- kotlin - @subcomponent.factory 方法缺少所需模块或子组件的参数
- ksqldb - 从 ksql 流到 ksql 表的聚合结果错误
- python - 如何在 Django 数据库中自动保存和删除数据?
- javascript - 如何在反应离子中使用不同页面中的不同菜单项
- javascript - 通过 C# 添加 attirubtes 时 HTML5 ondragstart 不会触发
- gspread - 如何将大量表中的数据添加到一张表中
- python - 慢速迭代的替代方案
- sql - TypeError:无法读取反应原生 sqlite 中未定义的属性“打开”
- php - 如何在PHP的while循环中分离输出的复选框变量结果?