[libcamera-devel] GStreamer libcamerasrc started working on PinePhone was Re: PinePhone needs S_FRAME_INTERVAL

Pavel Machek pavel at ucw.cz
Fri Jul 8 14:51:00 CEST 2022


Hi!

> > AFAICT that needs to happen. PinePhone needs lower fps for top
> > resolution, but an use high fps for lower resolutions...
> > 
> > This is obviosly a hack, but we need something like that.
> 
> VIDIOC_SUBDEV_S_FRAME_INTERVAL is deprecated for camera sensors and
> should never have been used. Frame rates are controlled through the
> pixel clock and the horizontal and vertical blanking values. If a sensor
> driver requires VIDIOC_SUBDEV_S_FRAME_INTERVAL, then it should be
> fixed.

I guess I know understand why VIDIOC_SUBDEV_S_FRAME_INTERVAL is bad
idea. Still we may want stream option to select lower fps when
requested.

Anyway libcamerasrc started working for me. I set
VIDIOC_SUBDEV_S_FRAME_INTERVAL to 1/60, that may be related.

export GST_DEBUG=libcamera*:7
export GST_PLUGIN_PATH=$(pwd)/build/src/gstreamer
gst-launch-1.0 libcamerasrc camera-name=/base/i2c-csi/rear-camera at 4c !
'video/x-raw,format=YUY2,width=640,height=480' ! autovideosink

Produces image with obivous errors, but other settings with 1/30
worked ok. Let me verify...

gst-launch-1.0 libcamerasrc camera-name=/base/i2c-csi/rear-camera at 4c !
'video/x-raw,format=YUY2,width=1280,height=720' ! autovideosink

This one works. There's slight color change between left and right
half of the image, not sure what I should think about it.

Best regards,
								Pavel
-- 
People of Russia, stop Putin before his war on Ukraine escalates.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20220708/514416dd/attachment.sig>


More information about the libcamera-devel mailing list