按照手册使用如下命令,可以查看实时视频(ffplay,cheese 等都不可用,这是唯一能用的方式),但是视频图像特别暗,就像 ISP 没工作一样
gst-launch-1.0 v4l2src device=/dev/video11 ! video/x-raw,format=NV12,width=640,height=480,framerate=30/1 ! autovideosink
Setting pipeline to PAUSED ...
libEGL warning: DRI2: failed to authenticate
Using mplane plugin for capture
libv4l2: error getting pixformat: Invalid argument
Pipeline is live and does not need PREROLL ...
Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
Setting pipeline to PLAYING ...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:02.996036585
Setting pipeline to NULL ...
Freeing pipeline ...
使用这个命令保存一个图片
$ gst-launch-1.0 v4l2src device=/dev/video11 num-buffers=1 ! video/x-raw,format=NV12,width=1920,height=1080 ! jpegenc ! filesink location=pic.jpg
Setting pipeline to PAUSED ...
Using mplane plugin for capture
libv4l2: error getting pixformat: Invalid argument
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:00.241745178
Setting pipeline to NULL ...
Freeing pipeline ...
见附件
请问怎么解决?
|
-
|