您好:
我用的ROC3568双目摄像头,如何修改帧率为30呢?多谢!
- 先确定驱动是否支持30fps
- android的话,根据分辨率,可以尝试修改 /vendor/etc/media_profiles_V1_0.xml 里的 frameRate
firefly_zhongw 发表于 2022-1-12 15:57
- 先确定驱动是否支持30fps
- android的话,根据分辨率,可以尝试修改 /vendor/etc/media_profiles_V1_0 …
您好:
GC2053 REG配置前的注释是这样的:
/*
- window_size=1920*1080 mipi@2lane
- mclk=24mhz,mipi_clk=594Mbps
- pixel_line_total=2200,line_frame_total=1125
- row_time=29.629us,frame_rate=30fps
*/看起来是支持30的,但实际上我测了下是15FPS,我再看看怎么变30啊。
jishutao 发表于 2022-1-12 16:25
您好:
GC2053 REG配置前的注释是这样的:
/*
您好:
我这么设置成功了:
struct v4l2_streamparm Stream_Parm;
memset(&Stream_Parm, 0, sizeof(struct v4l2_streamparm));
Stream_Parm.type = ctx->type;
Stream_Parm.parm.capture.timeperframe.denominator =1;;
Stream_Parm.parm.capture.timeperframe.numerator = 30;
if (-1 == camera_source_ioctl(ctx->fd, VIDIOC_S_PARM, &Stream_Parm)) {
}
if (-1 == camera_source_ioctl(ctx->fd, VIDIOC_G_PARM, &Stream_Parm)) {
}
printf("Stream_ParmG: %d %d %d\n", Stream_Parm.type,
Stream_Parm.parm.capture.timeperframe.denominator,
Stream_Parm.parm.capture.timeperframe.numerator);
但是没有效果,还是15FPS.不知道哪儿出问题了。