[libcamera-devel] "cam" utility is quite confusing

Pavel Machek pavel at ucw.cz
Fri Jul 29 21:56:20 CEST 2022


Hi!

I just spent quite some time debugging C++... when problem was in my
commnad line.

First, --sdl needs to come up after -c. Okay, documentation warns
about that "Options valid in the context of --camera:".

Second, AFAICT, you can not have file output and sdl viewfinder at the
same time.

Third, and most confusing... --sdl will not actually display anything
unless you also pass -C. I don't think help text is really clear about
that.

I believe command line interface could be improved (automatically
assume -C when --sdl is passed? allow --sdl before -c?), or at least
documenation should be clear about these limitations.

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


More information about the libcamera-devel mailing list