记录RTSP流 [英] Recording RTSP stream

查看:127
本文介绍了记录RTSP流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想记录来自摄像机的视频数据(通过RTSP H.264).有人可以帮我如何使用gstreamer录制rtsp流吗(请提供gstreamer命令行详细信息).录制将以MPEG4 formate

I want to record video data coming from Camera(through RTSP H.264). Can anybody help me how to record rtsp stream using gstreamer?(Please provide gstreamer command line details). Recording will be in MPEG4 formate

问候 基兰

推荐答案

这将流传输视频并输出到您的屏幕.

This will stream the video and output to your screen.

gst-launch rtspsrc location=rtsp://some.server/url ! decodebin ! xvimagesink gst-launch uridecodebin uri=rtsp://some.server/url ! xvimagesink

要使用MPEG4将流记录到驱动器中,请执行以下操作:

To record the stream to your drive using MPEG4:

gst-launch rtspsrc location=rtsp://some.server/url ! decodebin ! mpegtsmux ! filesink location=file

rtspsrc 查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆