Hello,
I have a YUV gmsl2 camera and have porting the driver, W x H is 2880x1860.
I use gst to preview on HDMI screen, but the display ls not normally.
My gst pipeline:
gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 ! ‘video/x-raw(memory:NVMM), width=(int)2880, height=(int)1860, framerate=(fraction)30/1’ ! nvvidconv ! ‘video/x-raw, format=(string)I420’ ! xvimagesink -ev
It is same issue when i use v4l2src pipeline.
Also nothing change.
Addition info for u reference , I use the v4l2src plugin, the previewer display well. (Have not do the preferred_stride command)
pipeline with v4l2src :
gst-launch-1.0 v4l2src device=/dev/video0 ! ‘video/x-raw, width=(int)2880, height=(int)1860, format=(string)YUY2, framerate=(fraction)30/1’ ! xvimagesink -ev
With nvoverlaysink, v4l2src preview well, but nvv4l2camerasrc occur the same issue.
I also try to recoard mp4 with h264 encode, then play the mp4, the same result as above: v4l2src is well , but nvv4l2camerasrc fail.
So this issue shoule not about the appsink, maybe the src plugin cause?
pipeline error,
erroneous pipeline: could not link nvvconv0 to nv3dsink0, nv3dsink0 can’t handle caps video/x-raw, format=(string)I420
I fixed it with (memory:NVMM), and preview is good.
gst-launch-1.0 v4l2src device=/dev/video0 ! ‘video/x-raw, width=(int)2880, height=(int)1860, framerate=(fraction)30/1’ ! nvvidconv ! ‘video/x-raw(memory:NVMM), format=(string)I420’ ! nv3dsink
Hi,
There is constraint in data alignment, for width = 2880, it is aligned to pitch = 2944. Please check if your source can output width = 2944 or 2816. If not, you would need to capture frame data to CPU buffer first and then copy to NvBuffer. The buffer copy may impact performance.