2

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?

Willem Ellis
  • 263
  • 3
  • 9

1 Answers1

6

You need to install the full libcamera-apps package, Raspberry Pi OS Lite only ships with libcamera-apps-lite.

libav based functionality got removed from libcamera-apps-lite because it pulls in X11 dependencies (relevant bug report).

hirnsushi
  • 76
  • 2