Since you are on gentoo, can't you just build chromium with libffmpeg and then move it on a location that opera expects to find it, instead of replacing the one opera provides?
Opera looks in these locations for that "better" libffmpeg
Do more on the web, with a fast and secure browser!
Download Opera browser with:
- built-in ad blocker
- battery saver
- free VPN