Why is libcamera-still faster than libcamera-raw?

Hello!

I’ve been playing around with the 16MP IMX519 camera and libcamera on my RPi4. My understanding is libcamera-raw returns Bayer frames and should be faster than libcamera-still since -raw doesn’t process Bayer frames. But what I’ve found is libcamera-still is faster than -raw when I run them with below commands:

libcamera-still -t 0 -n -v --framerate 120 --width 640 --height 480 --viewfinder-width 640 --viewfinder-height 480

libcamera-raw -t 0 -n -v --framerate 120 --width 640 --height 480 --viewfinder-width 640 --viewfinder-height 480

With these, I get 112 viewfinder frames with libcamera-still and 104 with -raw. What am I missing?

Thanks!

@voyagermech

Yes, I did find such a problem after testing.
Regarding performance issues, we have not made any changes, the specific reasons have to ask the native libcamera

1 Like