Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.21 KB

README.md

File metadata and controls

30 lines (17 loc) · 1.21 KB

Lint Status

Pure-Python Linux kernel Video4Linux2 (V4L2) bindings

v4l2.uapi

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

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

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

License

This project is covered by the LGPL-3.0 license.

Install

pip install git+https://github.com/tomba/pyv4l2.git