r/linuxmint • u/Salt-Bus7962 • 29d ago
Support Request Mint 22.3 | Upgrading FFmpeg from 7.6.1.1 to latest
Hello,
Currently my system(running 22.3) has ffmpeg 7.6.1.1 installed. When i try to upgrade it to the latest version, terminal tells me I already have the latest version. ffmpeg website shows that 7.8 and 7.9 versions are available.
I am trying to run Linux port of Sly cooper, but it requires libavformat.so.62(not available in ver. 7.6.1.1).
Complete linux noob here, so am hoping someone here could guide me on how to add libavformat.so.62 or even upgrade to latest ffmpeg.
Thanks for any advise.
9
Upvotes
•
u/AutoModerator 29d ago
Please Re-Flair your post if a solution is found. How to Flair a post? This allows other users to search for common issues with the SOLVED flair as a filter, leading to those issues being resolved very fast.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/Due-Result7928 29d ago
You need to download source code for libavformatso.62, version ffmpeg you want and may be some other libraries...did not check dependencies..you can hope that you can do it with the development header installed now for a start.
You need to change all references to libavformat.so (symbolic link to libavformat.so.xx everywhere) by something else to point to your libavformat.so.62 and not the the one use now.
You need to install the dev environment G++, make and so on...
Really ?
2
u/WeAreAlreadyCyborgs Linux Mint 22.3 Zena | Cinnamon 29d ago
You have the latest stable version from the repository. Is there a reason why you need the latest versions? Two options, one is to install the PPA
Second is to build from source (Get the sources via https://ffmpeg.org/download.html). Building from source is not something I would recommend to someone new to Linux.
2
u/Tritias Linux Mint 22.3 Zena | MATE 28d ago
The easiest would probably be to wait for the Christmas update... Mint updates are always a bit late, because they want to make sure everything works well.
5
u/jr735 Linux Mint 22.1 Xia | IceWM 29d ago
Do you need the newest version of ffmpeg or is it just something you want? That's the thing you should consider first. If you're not losing any features, there's no need to add PPAs, other repositories, or compile from source. These should be last resorts. Use repository software.
https://wiki.debian.org/DontBreakDebian/
That's Debian specific, but the concepts apply to all distributions. As already noted here by others, you have to watch dependencies. Trying to outsmart your package manager is risky, and can result in a broken system. So, proceed with caution.
2
u/brandonyoung 28d ago
You are probably going to have to build ffmpeg yourself. ffmpeg has release builds, but they are static builds so its libraries are built into the ffmpeg binary. To get libavformat.so.62 separately, you will likely need to build ffmpeg from source and specify you want to use shared libraries in the configure options.
Latest sources: https://ffmpeg.org/download.html
Compiling instructions: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
download the source code and run ./configure --help in the folder and it will tell you the options. you are in for a lot of reading to understand the options you need.
I build the latest version using Docker. my dockerfile is tailored for my system, but perhaps you can read it and learn from it https://github.com/brandonyoung77/Dockerfiles_misc/blob/main/Dockerfile.ffmpeg-optimized-deb