如何解决Gstreamer v4l2src:无法导出 DMABUF
非常好。
我在使用带有抓取器 MiniCard CM313B 的 gstreamer 1.14.0 捕获流时遇到问题
我正在使用 Centos8.0 x86_64 操作系统,当我尝试使用以下方法捕获视频时:
gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,width=1280,height=720,format=(string)YV12" ! autovideosink
我有以下错误:
ERROR: from element / GstPipeline: pipeline0 / GstV4l2Src: v4l2src0: Failed to allocate required memory.
Additional debugging information:
gstv4l2src.c (650): gst_v4l2src_decide_allocation (): / GstPipeline: pipeline0 / GstV4l2Src: v4l2src0:
Buffer pool activation failed
如果我应用 GST_DEBUG = "v4l2 *: 7"
0: 00: 00.042451837 9255 0x55bec166a230 ERROR v4l2allocator gstv4l2allocator.c: 906: gst_v4l2_allocator_alloc_dmabuf: <v4l2src0: pool: src: allocator> Failed to export DMABUF operation not allowed
0: 00: 00.042459900 9255 0x55bec166a230 ERROR v4l2bufferpool gstv4l2bufferpool.c: 479: gst_v4l2_buffer_pool_alloc_buffer: <v4l2src0: pool: src> failed to allocate buffer
0: 00: 00.042466675 9255 0x55bec166a230 ERROR v4l2bufferpool gstv4l2bufferpool.c: 898: gst_v4l2_buffer_pool_start: <v4l2src0: pool: src> allocate failed
我已通过 VLC 应用程序检查我可以正确捕获视频。
我还通过 Centos7.2 操作系统验证,我可以使用相同的驱动程序按照相同的步骤从 gstreamer 正确捕获视频。
是否存在驱动与操作系统不兼容的问题? 一定要配置内核吗?
任何建议都会对我有很大帮助。
非常感谢
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。