gstreamer - 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)
那么,有没有办法以某种方式减少第二台摄像机的管道?
解决方案
推荐阅读
- android - 半透明活动中的退出过渡
- sql - 连接两个表时索引如何提高性能
- css - 我的根组件的样式未应用于我的 Angular 应用程序
- google-maps - 拖动后由标记响应的坐标不正确
- msbuild - 如何修复 MsBuild 错误 - MSB6006: "CL.exe" exited with code -1073741510
- erlang - 自动连接到 erlang 集群
- go - 为什么在 Golang 中解组 DER ASN.1 大整数仅限于 SEQUENCE?
- google-signin - Android 应用程序被“邮件想要:离线访问”阻止
- aframe - 使用 Raycaster 获得颜色
- typo3 - TYPO 9.5.x 中没有页面段的口语 URL 的 Extbase routeEnhancers