[英]How to use GStreamer to stream from IP RTMP Camera to v4l2loopback Camera?
I am trying to use GStreamer to connect RTMP/RTSP stream to a v4l2loopback Virtual Device.我正在尝试使用 GStreamer 将 RTMP/RTSP stream 连接到 v4l2loopback 虚拟设备。
Works 1 - RTMP to AutoVideoSink作品 1 - RTMP 到 AutoVideoSink
sudo gst-launch-1.0 rtspsrc location=rtsp://192.168.xxx.xxx/live/av0 !须藤 gst-launch-1.0 rtspsrc location=rtsp://192.168.xxx.xxx/live/av0 ! decodebin !
解码器! autovideosink
自动视频接收器
sudo gst-launch-1.0 rtmpsrc location=rtmp://192.168.xxx.xxx/live/av0 !须藤 gst-launch-1.0 rtmpsrc location=rtmp://192.168.xxx.xxx/live/av0 ! decodebin !
解码器! autovideosink
自动视频接收器
Works 2 - TestSrc to Dummy Video5作品 2 - TestSrc 到 Dummy Video5
sudo gst-launch-1.0 videotestsrc ! sudo gst-launch-1.0 videotestsrc ! v4l2sink device=/dev/video5
v4l2sink 设备=/dev/video5
Does not work - RTMP to Dummy Video5 – No error but does not show the video不起作用 - RTMP 到 Dummy Video5 - 没有错误但不显示视频
sudo gst-launch-1.0 rtspsrc location=rtsp://192.168.xxx.xxx/live/av0 do-timestamp=true sudo gst-launch-1.0 rtspsrc location=rtsp://192.168.xxx.xxx/live/av0 do-timestamp=true
protocols="tcp" !协议=“tcp”! rtph264depay !
rtph264depay! h264parse !
h264解析! decodebin !
解码器! v4l2sink device=/dev/video5
v4l2sink 设备=/dev/video5
I highly suspect there are some parameters of Gstreamer that are required and I am unaware of.我高度怀疑 Gstreamer 的某些参数是必需的,但我不知道。
Because the log file has a lot of entries on unknown pixel format, default values, etc.因为日志文件有很多关于未知像素格式、默认值等的条目。
Please could you give me some pointers of which parameters to set?请你能给我一些关于设置哪些参数的指示吗?
The source is a high-quality PTZ camera which supports either RTMP and RTSP.源是支持 RTMP 和 RTSP 的高质量 PTZ 摄像机。
The sink is V4L2 loopback device.接收器是 V4L2 环回设备。
You might need a videoconvert
after the decodebin
您可能需要在
decodebin
之后进行videoconvert
Try running your pipeline with GST_DEBUG=3
and that will give you more info on why caps negotiation failed!尝试使用
GST_DEBUG=3
运行您的管道,这将为您提供有关上限协商失败原因的更多信息!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.