简体   繁体   English

Gstreamer 1.0将rtsp流保存到文件

[英]Gstreamer 1.0 saving rtsp stream to file

嗨,我尝试创建管道,在其中获取rtsp流,将其编码为x264并将其保存为mp4文件格式,但似乎不起作用。

gst-launch-1.0 rtspsrc location=rtsp://ip/url ! videoconvert ! queue ! x264enc ! mp4mux ! filesink location=test.mp4 

Okey I got it: 哦,我明白了:

gst-launch-1.0 rtspsrc location=rtsp://ip/url ! rtph264depay ! h264parse ! mp4mux ! filesink location=file.mp4

Explanation: With rtph264depay we extract h264 streams from RTSP then we parse it with h264parse we use mp4 as container and then we save it with filesink 说明:使用rtph264depay,我们从RTSP提取h264流,然后使用h264parse对其进行解析,我们使用mp4作为容器,然后将其与filesink保存在一起。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 gstreamer 保存带有编码 MPEG4-GENERIC 的 rtsp 音频 stream - How to use gstreamer to save a rtsp audio stream with encoding MPEG4-GENERIC Gstreamer 1.0一源两宿显示 - Gstreamer 1.0 one source and two sink display ubuntu 上的 gstreamer RTSP - 警告:错误的管道:没有元素“rtspsrc” - gstreamer RTSP on ubuntu - WARNING: erroneous pipeline: no element "rtspsrc" 无法通过VLC连接到rtsp流 - Cannot connect to rtsp stream via vlc 如何获取依赖项“ gstreamer-sharp-1.0”? - How do I acquire the dependency 'gstreamer-sharp-1.0'? 使用gstreamer的Jetson TX2多播UDP流 - Jetson TX2 multicast UDP stream with gstreamer 没有这样的元素“v4l2src”使用 gstreamer-1.0,但存在于 gstreamer-0.10 [UBUNTU 16.04.2 LTS] - no such element “v4l2src” using gstreamer-1.0, but exists in gstreamer-0.10 [UBUNTU 16.04.2 LTS] 如何使用 GStreamer 和 VAAPi 解决 RAW 流播放问题 - How to solve a RAW stream playback problem with GStreamer and VAAPi 如何使用opencv和python获取Gstreamer实时流? - How to get Gstreamer live stream using opencv and python? 使用Gstreamer和easycap将摄像机视频从树莓流传输到Ubuntu计算机 - Stream camera video from raspberry to Ubuntu machine using Gstreamer and easycap
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM