v4l2.uapi namespace contains the kernel user-space API (uAPI).
The uAPI is generated with (slighly customized) ctypesgen, with the gen.py script. Also, the v4l2/uapi/__init__.py
contains some minor additions to the uAPI.
v4l2 namespace contains wrappers to the uAPI to simplify the use of the uAPI. The target is that the user of the v4l2 namespace does not need to use any types from the v4l2.uapi namespace.
utils directory contains miscallaneous more-or-less under-work utilities:
- mc-print.py: Print the media graph from a media device
- mc-dot.py: Generate a graphviz dot file from the media graph
- cam.py: A video capture utility. It uses media graph configs from cam-configs, and optionally shows the frames with kms or sends the frames over network
- cam-rx.py: A Qt utility that receives frames from cam.py over network, and shows the frames with Qt
This project is covered by the LGPL-3.0 license.
pip install git+https://github.com/tomba/pyv4l2.git