首页 > 解决方案 > gstreamer 的 RTP 和 RTSP 解码器

问题描述

我有两个不同的 IP 摄像机(orlaco 和轴)。

我可以使用下一个 gstreamer 管道查看来自轴摄像头(流式 RTSP)的图像:

gst-launch-1.0 -v rtspsrc location="rtsp://root:axis@192.168.82.51:554/axis-media/media.amp?videocodec=jpeg" latency=1000 ! decodebin ! videoconvert ! waylandsink

使用 orlaco 相机(流媒体 RTP),我可以看到图像:

gst-launch-1.0 udpsrc port=50004 ! application/x-rtp, encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! videoconvert ! waylandsink

但如果我试试这个:

gst-launch-1.0 rtpbin udpsrc port=50004 ! application/x-rtp, encoding-name=JPEG,payload=26 ! decodebin ! videoconvert ! waylandsink

我明白了:

Missing element: application/x-rtp decoder
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0: Your GStreamer installation is missing a plug-in.
Additional debug info:
../../../gst-plugins-base-1.16.1/gst/playback/gstdecodebin2.c(4678): gst_decode_bin_expose (): /GstPipeline:pipeline0/GstDecodeBin:decodebin0:
no suitable plugins found:
Missing decoder: application/x-rtp (application/x-rtp, encoding-name=(string)JPEG, payload=(int)26)

那么,有没有办法以某种方式减少第二台摄像机的管道?

标签: gstreamerrtp

解决方案


推荐阅读