[libcamera-devel] Getting 30fps from libcamerasrc
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Sat Jul 30 14:36:30 CEST 2022
Hi Pavel,
On Sat, Jul 30, 2022 at 01:31:16PM +0200, Pavel Machek via libcamera-devel wrote:
> Hi!
>
> So... with some hacks, I can get 30fps 2MPix recording on
> pinephone... from the "cam" utility. Which will have trouble with
> audio.
Indeed :-) "cam" is meant to be a test tool, not an end-user
application, so you've certainly reached the limits of its scope if you
want audio.
> When I try to use libcamerasrc (and gstreamer), I get down to 10fps or
> so, but it looks more like artifical limit then performance one. Is it
> so? How can I request 30fps?
What gstreamer pipeline do you use ? I don't have a pinephone, but
running
GST_PLUGIN_PATH=$(pwd)/src/gstreamer gst-launch-1.0 \
libcamerasrc camera-name='\\_SB_.PCI0.RP05.PXSX.TBL3.TBTU.RHUB.UB32-2:1.0-046d:0893' ! \
'video/x-raw,width=1280,height=720' ! \
fpsdisplaysink sync=0 text-overlay=false video-sink=glimagesink -v
on my laptop with a UVC webcam gives me 30fps. Can you try something
similar, possibly using the a fakesink first, on the pinephone ?
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list