Thank you! In fact, I have learned about your general instructions before installing FFMPEG, but they don’t cover, AFAIU, installing FFMPEG from source, as it was in my case.
As to the “bleeding edge” compilation, I cannot find the file avformat-*.dylib among the installed files, as instructed on the webpage you shared above (btw, aren’t these instructions for macOS? Cuz Linux instructions on the same page are slightly different). Nor can I find the latest file avformat-*.so on my rig to point Audacity to use it, only the ones I showed in my original post.
In short, I’ve successfully installed the latest version of FFMPEG (6.0) from source but cannot locate the latest version of avformat*.so on my computer to link it to Audaicty.
@DVDdoug thank you very much indeed! That’s a valuable option too.
After some more research, I’ve finally solved the issue as follows:
1- Used ./configure --enable-shared instead of simply ./configure during FFMPEG installation. In short, this makes sure that libavformat.so.60 is “visible” to the system and can be located through Preferences -> Libraries -> Locate;
2- Thanks to this article, fixed the loading of shared libraries properly to make Audacity recognise the latest versions of libraries.