[英]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.