I would like to know first frame skip of video

If the gstreamer simultaneously captures four channels simultaneously, the start frame image may be filled with zeros.
I tried to fix it at the driver level to solve this problem, but I could not do it because it was too complicated.
I did skip-to-first configuration of videorate plugin and tested and it had no effect.
I would like to know if there is a way to omit the first frame of the video using gstreamer.
Or I want to know if there is another solution.
IMG_8420.MOV (109 KB)

Hi walterkim
You can try have a frame delay after the _S_stream() in the sensor driver.

for example under code . is it right?

static int ov5693_s_stream(struct v4l2_subdev *sd, int enable)
{
:
:
delay(10);
return 0;

}

Yes, correct place and you may need more than 1 frame time. If the frame rate is 30fps then it must big than 33 ms

s_stream() delay is no effect.

/**

  • struct v4l2_subdev_sensor_ops - v4l2-subdev sensor operations
  • @g_skip_top_lines: number of lines at the top of the image to be skipped.
  •        This is needed for some sensors, which always corrupt
    
  •        several top lines of the output image, or which send their
    
  •        metadata in them.
    
  • @g_skip_frames: number of frames to skip at stream start. This is needed for
  •     buggy sensors that generate faulty frames when they are
    
  •     turned on.
    

*/
struct v4l2_subdev_sensor_ops {
int (*g_skip_top_lines)(struct v4l2_subdev *sd, u32 *lines);
int (*g_skip_frames)(struct v4l2_subdev *sd, u32 *frames);
};

do you know that?

Hi wallterkim
If delay take no effect that could be the sensor initial table missing a good value of frame_lenght/coarse_time/gain. Please have a try to set a safe value of those reg in the initial table.

Hi walterkim,

Have you clarified where might be the cause and issue got fix?
Any result can be shared?

Thanks

pending issue…

i will made gstreamer plugin for frame skip.

um…