[Libav-user] Cannot find "video4linux2" format

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Jul 1 20:12:52 EEST 2020

Am Mi., 1. Juli 2020 um 18:06 Uhr schrieb Hamilton Tobon Mosquera
<htobonm at eafit.edu.co>:

> I'm struggling to get some simple code working. I'm trying to open the
> device /dev/video0 which is a camera module in a Rasperry pi. I already
> set up everything. I activated the camera in the Rasperry
> configurations. The module bcm2835-v4l2 is loaded. I can even record
> video using the ffmpeg command. But when I use the API function
> av_find_input_format("video4linux2"), it does not work. I tried with
> "v4l2" and "Video4Linux2". I tried calling avformat_open_input(...,
> "/dev/video0", ...) with "file:/dev/viode0" also, but none of these API
> calls work. Can you please help me?, I don't know what I'm missing.

Did you already test with ffmpeg (the application) to find out where
the issue lies?

Carl Eugen

More information about the Libav-user mailing list