Picamera2 with custom compiled ffmpeg on raspberry pi 5 #935
Replies: 3 comments 3 replies
-
I'm encountering the same issue. My code runs perfectly on Raspberry Pi 4, but fails on Raspberry Pi 5. Have you discovered any workarounds? |
Beta Was this translation helpful? Give feedback.
-
Same error here but without custom compiled ffmpeg (I just use I removed the |
Beta Was this translation helpful? Give feedback.
-
Checkout the official Picamera2 documentation. In section 7.1 Encoders the following is stated:
Further in section 7.1.2. JpegEncoder:
And finally in section 7.1.3. MJPEGEncoder:
AFAIK you are not supposed to use the MJPEGEncoder on a Raspberry Pi 5 but instead use the JpegEncoder for MJPEG encoding. |
Beta Was this translation helpful? Give feedback.
-
Hey all,
I am facing some issues with making the picamera work on raspberry pi 5 (with the libav encoders) with a custom version of ffmpeg. Maybe someone could guide me to the specific features that are needed in ffmpeg? Or what else might be the issue.
I was able to run the same script on a fresh raspberry pi os install with picamera2 installed from apt.
I am trying to record an mjpeg encoded video with something like the following code:
I installed libcamera from apt, but picamera2 + av with pip inside a venv (including system side packages for libcamera).
pyav (10.0.0) was compiled from sources.
I am getting the following error:
Beta Was this translation helpful? Give feedback.
All reactions