Ffmpeg AV1 encoding for screencasts
It would be nice to have a documented setting at the FFmpeg page https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/Ffmpeg.md for encoding screencasts and demos to be stored in repository. I compressed the GIF below to 8.5x less AV1 .webm using the command.
ffmpeg -i demo.gif -vf pad=1440:800:2:2:#202020 -c:v libsvtav1 -preset 4 demo.webm
I had to find out the proper padding with cropdetect filter after getting Svt[error]: Error Instance 1: Source Width must be even for YUV_420 colorspace, because original video had odd dimension 1435x794 that are not multiply of 16. Had to use color snippet in Firefox to get proper hex value for the border.
Both files are attached.
I wonder if there are encoding options that can further reduce the size without sacrificing quality? Is it possible to use 4bpp (4 bits per pixel) and custom optimized palette? Is there any preset that tries to optimize for font sharpness and mostly static content between frames?
