hi jerry,
Now isp output yuv422 format image. i can get image by running v4l2-ctl, but error happen when i run gst-launch-1.0 nvarguscamerasrc . here is log. could you give me some advices?
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 24.000000; Exposure Range min 36000, max 33000000;
GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 0
Output Stream W = 1920 H = 1080
seconds to Run = 0
Frame Rate = 29.999999
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
nvbuf_utils: Can not get HW buffer from FD… Exiting…
CONSUMER: ERROR OCCURRED
ERROR: from element /GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0: INVALID_SETTINGS
Additional debug info:
Argus Error Status
Execution ended after 0:00:00.175873726
Setting pipeline to PAUSED …
Setting pipeline to READY …
GST_ARGUS: Cleaning up
Hi Jerry,
thanks for your response. Now i can use follow commad to preview isp outputimage
gst-launch-1.0 v4l2src device=/dev/video0 ! “video/x-raw,format=UYVY,width=1920,height=1080,framerate=30/1” ! nvvidconv ! “video/x-raw(memory:NVMM),format=NV12” ! nvoverlaysink sync=false
could you please have a quick try with nvv4l2camerasrc plugin,
for example, $ gst-launch-1.0 nvv4l2camerasrc device=/dev/video1 ! 'video/x-raw(memory:NVMM), format=(string)UYVY, width=(int)1920, height=(int)1080, framerate=(fraction)30/1, interlace-mode=progressive' ! nvvidconv ! nv3dsink -e
Hi jerry,
I try with nvv4l2camerasrc, no image show, here is log.
root@ying-desktop:~# gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 ! ‘video/x-raw(memory:NVMM), format=(string)UYVY,
width=(int)1920, height=(int)1080, framerate=(fraction)30/1, interlace-mode=progressive’ ! nvvidconv ! nv3dsink -e
Setting pipeline to PAUSED …
ERROR: Pipeline doesn’t want to pause.
ERROR: from element /GstPipeline:pipeline0/GstNv3dSink:nv3dsink0: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Additional debug info:
gstbasesink.c(5265): gst_base_sink_change_state (): /GstPipeline:pipeline0/GstNv3dSink:nv3dsink0:
Failed to start
Setting pipeline to NULL …
Freeing pipeline …
I run gst-launch-1.0 v4l2src device=/dev/video0 ! “video/x-raw,format=UYVY,width=1920,height=1080,framerate=30/1” ! nvvidconv ! “video/x-raw(memory:NVMM),format=NV12” ! nvoverlaysink sync=false , image can show., but image looks abnormal
here’s another test approach.
you may dump the YUV frames as following. $ v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test.yuv
and… use the 3rdparty tool, such as 7yuv to open this capture image,
there’s options to select different color formats to display the capture frames.
please check you’re able to select one of the YUV formats to output normal images.
Hi jerry,
i do as what you said, but image looks also abnormal nomatter which yuv format is selected. Is it possible to suspect that there is a problem with the isp output image itself?
per your capture results in comment #6, I cannot tell there’s image contour, or it’s complete green.
how about the hex values, do they looks like pixel values or something else?
It can be seen from the comparison that the Y component is correct, UV componet is not correct. Do you know what factors will cause UV component abnormality?