微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Bananapi M3:GStreamer 无法分配缓冲区大小

如何解决Bananapi M3:GStreamer 无法分配缓冲区大小

我正在研究 BananaPi M3,我想使用 gstreamer 管道获取实时视频流,为此在 gstreamer 管道下创建:

$ gst-launch-1.0 autovideosrc ! queue ! videoconvert ! video/x-raw,width=1280,height=720,framerate=[30/1,10000000/333333] ! x264enc bframes=0 speed-preset=veryfast bitrate=512 byte-stream=TRUE tune=zerolatency ! video/x-h264,stream-format=byte-stream,alignment=au,profile=baseline ! appsink sync=TRUE emit-signals=TRUE name=appsink-video
Setting pipeline to PAUSED ...
Pipeline is live and does not need preroll ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
ERROR: from element /GstPipeline:pipeline0/GstAutoVideoSrc:autovideosrc0/GstV4l2Src:autovideosrc0-actual-src-v4l: Video device did not suggest any buffer size.
Additional debug info:
gstv4l2object.c(4070): gst_v4l2_object_decide_allocation (): /GstPipeline:pipeline0/GstAutoVideoSrc:autovideosrc0/GstV4l2Src:autovideosrc0-actual-src-v4l
Execution ended after 0:00:00.545798585
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

从上面的错误可以说 /dev/video0 设备上的缓冲区大小没有 ioctl 参数支持,因为我是 gstreamer 的新手,有人可以帮我解决问题吗?

提前致谢。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。