1
I typically deal with many high-resolution PNG sequences, many of which are RGB (24-bit) or entirely grayscale (8-bit). Because adjacent frames in the sequences are very similar, it is important that I compress them losslessly using a codec that supports inter-frame compression. I've used libx264 to compress the RGB 24 bit sequences with decent success (specifically ffmpeg -framerate 60 -i out%04d.png -c:v libx264rgb -qp 0 out.mp4
), and while I can do the same for the grayscale images, I'm wondering if there's a better codec to use in that case given that there's only one channel instead of three.
Is there a better alternative codec than libx264 for grayscale png sequences specifically? If so, why is it better? If not, why is libx264 the best in both cases?
1What's your primary requirement - file size, encoding speed, compatibility? – Gyan – 2020-01-06T13:08:42.650
@Gyan, I'd like to reduce file size as much as possible. – jippyjoe4 – 2020-01-06T19:08:00.783