Recording RTSP stream

我是研究僧i 提交于 2019-12-23 04:31:32

问题


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

Regards Kiran


回答1:


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

To record the stream to your drive using MPEG4:

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

rtspsrc from the reference manual and another useful resource.



来源:https://stackoverflow.com/questions/8952913/recording-rtsp-stream

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!