[libcamera-devel] Video recording on PinePhone Re: libcamera on pinephone

Nicolas Dufresne nicolas at ndufresne.ca
Wed Jul 13 15:47:13 CEST 2022


Le mardi 12 juillet 2022 à 23:44 +0200, Pavel Machek via libcamera-devel a
écrit :
> Hi!
> 
> > build/src/cam/cam  -c /base/i2c-csi/rear-camera at 4c -spixelformat=JPEG,width=1920,height=1080 -C2000 -F/tmp/delme2.jpg
> > 
> > somehow work, and result can be decoded using
> > 
> > time gst-launch-1.0 filesrc location=delme.unk ! jpegparse ! filesink
> > location=delme2.unk sync=false
> > 
> > or recoverjpeg, but I'm not getting 30fps. Any idea how to debug that?
> > Cam gives this output:
> 
> > 74020.783102 (30.01 fps) cam0-stream0 seq: 000001 bytesused: 2073600
> > 74020.883095 (10.00 fps) cam0-stream0 seq: 000004 bytesused: 2073600
> > 74020.949774 (15.00 fps) cam0-stream0 seq: 000006 bytesused: 2073600
> > 74021.016443 (15.00 fps) cam0-stream0 seq: 000008 bytesused: 2073600
> > 74021.049787 (29.99 fps) cam0-stream0 seq: 000009 bytesused: 2073600
> > 74021.116423 (15.01 fps) cam0-stream0 seq: 000011 bytesused: 2073600
> > 74021.183135 (14.99 fps) cam0-stream0 seq: 000013 bytesused: 2073600
> 
> I just noticed that if I don't enable file output, I'm geting nice
> 30fps. Hmm. I am outputting 60MB/sec, but with 3GB RAM, it should be
> possible to sustain that for a while...

Consider a queue before filesink, this will buffer a little, and filesink have
buffer-mode (should be full) and buffer-size that cam be tweaked too. 60MB/sec
can be a lot for an SD card, depends on the device and the type of SD card.

> 
> Best regards,
> 								Pavel



More information about the libcamera-devel mailing list