0

我正在研究 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 的新手,有人可以帮我解决问题吗?

提前致谢。

4

0 回答 0