Right now we have multiple pieces of code (animation exporter, video importer, and the recorder docker) that all use FFMPeg, but use separate interfaces/code paths to do so. This obviously isn't sustainable and it can lead to a lot of inconsistencies down the road, so we need to start thinking about building an ffmpeg wrapper that is flexible and reusable enough to use across Krita's tools, present and future.
Note: We may also want to take a look at the UX/UI for each of these pieces and see if they can also be unified/homogenized/standardized in some way. The most dated of relevant GUI is probably the animation exporter, which could probably use a bit of an upgrade anyway, to keep up with some of the nice features of the newer dialogs.