如何解决GStreamer 和 RTSP 流
我正在尝试通过 gstreamer 查看 rtsp 流,但是当我运行此命令时:
gst-launch-1.0 rtspsrc location=rtsp://admin:@192.168.1.27:554/ch0_0.264 ! videoconvert ! video/x-raw ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need preroll ...
Progress: (open) opening Stream
Pipeline is prerollED ...
prerolled,waiting for progress to finish...
Progress: (connect) Connecting to rtsp://admin:@192.168.1.27:554/ch0_0.264
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request
Redistribute latency...
我是 gstreamer 的新手。有人可以帮我吗? 谢谢指教。
解决方法
使用 decodebin
我发现缺少 H264 解码器,所以我通过安装包 gst-libav 解决了这个问题
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。