简体   繁体   English

如何使用 GStreamer 到 stream 从 IP RTMP 相机到 v4l2loopback 相机?

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

相关问题 Stream static 图像到 v4l2loopback 使用带有 v4l2 插件、ffmpeg 或 gstreamer 的 obs - Stream static image to v4l2loopback using obs with v4l2 plugin, ffmpeg or gstreamer 如何将 mjpeg 从网络摄像头更改为 yuyv422 到 v4l2loopback? - How to change mjpeg to yuyv422 from a webcam to a v4l2loopback? 如何使用 v4l2loopback 将图像渲染到 /dev/video0? - How to render images to /dev/video0 using v4l2loopback? 如何写/管道到V4L2loopback模块创建的虚拟网络摄像头? - How to write/pipe to a virtual webcam created by V4L2loopback module? 在使用真正的网络摄像头的同时在 linux 上使用带有谷歌铬或铬的 v4l2loopback 虚拟摄像头 - Using v4l2loopback virtual cam with google-chrome or chromium on linux while having real webcam in use 保存V4L2摄像机输出 - Saving V4L2 video camera output 使用带有 webRTC 的 IP 摄像头 - Use an IP-camera with webRTC 从 C 应用程序 (Linux) 获取连接的 USB 摄像头(网络摄像头)的 v4l2 设备号 - Getting the v4l2 device number for a connected USB camera (webcam) from a C application (Linux) GStreamer-v4l2不适用于gstreamer 0.1 - GStreamer - v4l2 unavailable for gstreamer 0.1 如何有效地从IP摄像机读取和保存视频? - How to efficiently read and save video from an IP camera?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM