A big thanks to Megapixels contributors :)
https://blog.brixit.nl/megapixels-contributions/
@martijnbraam Do I understand correctly that you are using Gstreamer for encoding? In that case it might be worth checking out https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5676 which implements HW encoding. Getting that over the line could be a big deal here - and for other apps like Snapshot or Dino as well.
@rmader that is the idea yes, gstreamer will make integrating the HW encoders a lot easier.
For the pinephone I need cedrus though, not hantro. Looks like there's a bit more work happening on the hantro side so thats good for the PPP at least.
@martijnbraam Also the librem5 if I'm not mistaken. I also hope it will just be compatible with cedrus though - the h264 decoder seem to work somewhat well here, even though we'll need to support more tiling modes / drm modifiers in Gst to make it really fast.
Don't know about the kernel side of the encoder though - do you know if it generally works?
@rmader as far as I know for cedrus there's only some support for decoding H264. And not all H264 profiles even. It has been a while since I looked it up though.
@pavel I wonder if it's possible to skip disk I/O between the megapixels and the movie postprocessor altogether by just feeding the frames over stdin. A lot of small things still to optimize :)
@pavel If I wanted to have nice code it would be way slower already. In theory it would even be possible to hook up the CSI block of the A64 to the cedrus block directly to have the video encoder work without using cpu at all. but that would be very platform dependent and that's also very undocumented.