[libcamera-devel] libcamera on pinephone

Pavel Machek pavel at ucw.cz
Mon Jun 20 14:07:11 CEST 2022


Hi!

> > > > Yes, cam does that.
> > > 
> > > `cam -l` to list cameras
> > > `cam -c 1 -C 10` to capture 10 frames from the first camera
> > 
> > Heh, that one does not work:
> > 
> > mobian at mobian:~/g/libcamera$ build/src/cam/cam -c 1 -C 10
> > Invalid non-option argument '10'
> > 
> > It attempts to work with long option:
> > 
> > $ build/src/cam/cam -c 1 --capture=10
> > 
> > Sounds like problem in argument parsing?
> 
> Sorry, I meant -C10. The count is optional so for short arguments it has
> to be specified without any space.

Would something like this make sense?

Thanks,
								Pavel

diff --git a/README.rst b/README.rst
index f81d6e2e..e89dba98 100644
--- a/README.rst
+++ b/README.rst
@@ -101,6 +101,13 @@ for android: [optional]
 for lc-compliance: [optional]
         libevent-dev
 
+Basic testing with cam utility
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+cam utility can be used for basic testing. You may want to start with
+"LIBCAMERA_LOG_LEVELS=*:DEBUG build/src/cam/cam -c 1 -I --capture=10 --file=/tmp/".
+
+
 Using GStreamer plugin
 ~~~~~~~~~~~~~~~~~~~~~~
 

-- 
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: 195 bytes
Desc: not available
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20220620/a7df77ec/attachment.sig>


More information about the libcamera-devel mailing list