Welcome to the Linux Foundation Forum!

Video Capture on Linux Systems

Options

Hey everyone,
I hope this is the right forum for this question :)

I am new to Linux and I am working on a video capture software.
The goal is to connect to a video device (whether it is a USB webcam, MIPI input or any other capture card). After some research I found about the v4l2 framework and FFmpeg's C API - libav*.

So far I followed the example code of LinuxTV for capturing frame but I am having trouble to actually record frames in a descent frame rate using libav.

My end goal is to have a system that continuously records the connect camera/video source in a circular buffer.

Can anyone refer me to resources or a work flow for integrating capture with v4l2 and encoding/saving using libav*?

Categories

Upcoming Training