如何使用GStreamer从IP RTMP摄像机流式传输到v4l2loopback摄像机? [英] How to use GStreamer to stream from IP RTMP Camera to v4l2loopback Camera?

查看:559
本文介绍了如何使用GStreamer从IP RTMP摄像机流式传输到v4l2loopback摄像机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用GStreamer将RTMP/RTSP流连接到v4l2loopback虚拟设备.

I am trying to use GStreamer to connect RTMP/RTSP stream to a v4l2loopback Virtual Device.


Works 1-RTMP到AutoVideoSink
sudo gst-launch-1.0 rtspsrc location = rtsp://192.168.xxx.xxx/live/av0!解码器!自动视频接收器
sudo gst-launch-1.0 rtmpsrc location = rtmp://192.168.xxx.xxx/live/av0!解码器!自动视频接收器


Works 1 - RTMP to AutoVideoSink
sudo 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 ! decodebin ! autovideosink


Works 2-TestSrc到Dummy Video5
sudo gst-launch-1.0 videotestsrc! v4l2sink device =/dev/video5


Works 2 - TestSrc to Dummy Video5
sudo gst-launch-1.0 videotestsrc ! v4l2sink device=/dev/video5


不起作用-RTMP到Dummy Video5 –没有错误,但不显示视频
sudo gst-launch-1.0 rtspsrc location = rtsp://192.168.xxx.xxx/live/av0 do-timestamp = true
protocols ="tcp"! rtph264depay! h264parse!解码器! v4l2sink device =/dev/video5


Does not work - RTMP to Dummy Video5 – No error but does not show the video
sudo gst-launch-1.0 rtspsrc location=rtsp://192.168.xxx.xxx/live/av0 do-timestamp=true
protocols="tcp" ! rtph264depay ! h264parse ! decodebin ! v4l2sink device=/dev/video5


我非常怀疑Gstreamer的某些参数是必需的,我不知道.
因为日志文件中包含许多有关未知像素格式,默认值等的条目.


I highly suspect there are some parameters of Gstreamer that are required and I am unaware of.
Because the log file has a lot of entries on unknown pixel format, default values, etc.


请问您能给我一些设置哪些参数的指针吗?
来源是支持RTMP和RTSP的高质量PTZ摄像机.
接收器是V4L2回送设备.


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.
The sink is V4L2 loopback device.

推荐答案

decodebin

尝试使用GST_DEBUG=3运行管道,这将为您提供有关上限协商失败的更多信息!

Try running your pipeline with GST_DEBUG=3 and that will give you more info on why caps negotiation failed!

这篇关于如何使用GStreamer从IP RTMP摄像机流式传输到v4l2loopback摄像机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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