The flatpak of Krita has access to two ffmpeg binaries:
This one is bundled with Krita, supports all formats that are needed and is the one meant to be used.
This one is part of the runtime, doesn't include support for all formats and therefore should be ignored.
To make Krita find the correct binary, I did the following modifications:
Replaced "/usr/bin" with "/app/bin".
Replaced "cfg.customFFMpegPath()" with "/app/bin/ffmpeg".
The second change is necessary, because else the first try to render would fail (the following would succeed). Because I don't know how to fix that, I didn't submit a patch.
I think it should be enough to look in the applicationroot/bin/ first, instead of first in the system paths.
Git commit 5b163b9f7a25f0021515e41a668b8f3b1d626288 by Boudewijn Rempt.
Committed on 05/04/2019 at 10:26.
Pushed by rempt into branch 'master'.
Look first next to the krita executable for ffmpeg
Because, when running krita as a flatpak, we want our ffmpeg,
not the distribution one.
M +3 -2 plugins/extensions/animationrenderer/DlgAnimationRenderer.cpp