Variable and repetitive line offset in the image

Hi all,

I have developed my own camera driver, the only problem I have is that there is a variable and repetitive line offset (see picture).
I suspect it has something to do with the following messages in the trace:
“VI5: completion_actions[8] size = 30, next offset = 314”

GStreamer command: gst-launch-1.0 v4l2src device=/dev/video0 ! “video/x-raw,format=(string)UYVY,width=1100,height=884,framerate=30/1” ! xvimagesink

Does anyone have an idea what the problem could be?


Trace.txt (18.7 KB)

hello daniel.kammerer,

may I know what’s the streaming output types, is it interlaced, or progressive?
besides, you should follow-by VI’s alignment, which is 64.

hello JerryChang,

thanks for your reply

may I know what’s the streaming output types, is it interlaced, or progressive?
It doesn’t matter whether interlaced or progressive the picture looks the same.

besides, you should follow-by VI’s alignment, which is 64.
Sorry, but I don’t understand it. Where I can see or change the alignment of the VI.

contiorin@contiorin-desktop:~$ gst-launch-1.0 v4l2src -v device=/dev/video0 ! "video/x-raw, width=1100, height=884, format=(string)UYVY" ! xvimagesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)1100, height=(int)884, format=(string)UYVY, framerate=(fraction)30/1, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)1100, height=(int)884, format=(string)UYVY, framerate=(fraction)30/1, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps = video/x-raw, width=(int)1100, height=(int)884, format=(string)UYVY, framerate=(fraction)30/1, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)1100, height=(int)884, format=(string)UYVY, framerate=(fraction)30/1, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive


contiorin@contiorin-desktop:~$ gst-launch-1.0 v4l2src -v device=/dev/video0 ! "video/x-raw, width=1100, height=884, format=(string)UYVY, interlace-mode=interlaced" ! xvimagesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)1100, height=(int)884, format=(string)UYVY, interlace-mode=(string)interlaced, framerate=(fraction)30/1, colorimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)1100, height=(int)884, format=(string)UYVY, interlace-mode=(string)interlaced, framerate=(fraction)30/1, colorimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps = video/x-raw, width=(int)1100, height=(int)884, format=(string)UYVY, interlace-mode=(string)interlaced, framerate=(fraction)30/1, colorimetry=(string)2:4:7:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)1100, height=(int)884, format=(string)UYVY, interlace-mode=(string)interlaced, framerate=(fraction)30/1, colorimetry=(string)2:4:7:1```

hello daniel.kammerer,

there’s v4l2-ctl command to adjust the stride by --preferred_stride=<>.
please have a try to configure the alignment, thanks

Hello JerryChang,

Thank you very much, that was the last clue I needed.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.