Open
Description
I have a USB camera that outputs mjpeg frames that fail to be decoded by mmal.
I have tried to use hello_mmal_jpeg, hello_mmal_video, and FFmpeg with mmal_mjpeg decoder, none of them is ok.
My experiment environment: Pi 4b, 32bit raspberry pi os
I finally come out with the solution to use mjpeg2jpeg converter in FFmpeg:
./ffmpeg -i ~/raw.jpg -codec copy -bsf:v mjpeg2jpeg yy.jpg
I writer a convert by referring to the code in FFmpeg mjpeg2jpeg.
My question:
- Is there any better solution?
- what's the highest framerate supported by mmal (rpi 4b) to decode video with size 3840x2160? I have tested the decoding of hello_mmal_jpeg and found that it takes about 150ms to decode the image, which is too slow.
- Is mjpeg video decoding faster than image decoding?
Metadata
Metadata
Assignees
Labels
No labels