I'm attempting to run the sample command found here for streaming video data to an mp4 container using libcamera-vid
and the libav
integration. I have the latest Raspberry Pi OS Lite installed using the Raspberry Pi Imager and all packages upgraded to latest. When I run:
libcamera-vid --codec libav -o test.mp4
I receive the following:
ERROR: *** unrecognised codec libav ***
I can't find anywhere in the documentation or online how to resolve this issue. I've tried installing libavcodec-dev
, libavcodec58
, and libavcodec-extra58
to no avail. What do I need to install so that I can run the above command, which is found in the docs for libcamera-vid
?