V4L2 tools using V4L2 C++ wrapper
UNLICENSE License
This is simple V4L2 tools based on libv4l2cpp
read from a V4L2 capture device and write to a V4L2 output device
read YUV from a V4L2 capture device, compress in VP8/VP9/H264/HEVC/JPEG format and write to a V4L2 output device read JPEG format from a V4L2 capture device, uncompress in JPEG format and write to a V4L2 output device
read from a V4L2 capture device and print to output frame information (work with H264 & HEVC)
generate YUYV frames and write to a V4L2 output device
grab raspberry pi screen, compress in H264 format using OMX and write to a V4L2 output device
read H264 from V4L2 capture device, uncompress and display using OMX
read YUV from a V4L2 capture device, compress in H264 format using OMX and write to a V4L2 output device make sure the v4l2 source supports the correct pixel format. This can be configured for device 0 using
v4l2-ctl -d 0 -v width=640,height=480,pixelformat=YUYV -V
. Then check it was applied correctly usingv4l2-ctl --all
make
make install
You can expose V4L2 devices from your host using :
docker run --device=/dev/video0 --device=/dev/video1 -it mpromonet/v4l2tools
The container entry point is the v4l2tools application, then you can :
get the help using :
docker run -it mpromonet/v4l2tools -h
run the container specifying some paramaters :
docker run --device=/dev/video0 --device=/dev/video1 -it mpromonet/v4l2tools -fH264