r/linuxmint • • 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

17 comments sorted by

•

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 ?

3

u/Salt-Bus7962 29d ago

Thank you for the reply. But I am a noob and what you said flew right over my head. This seems too complicated for me...can't I just install the newer version of ffmpeg?

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

sudo add-apt-repository ppa:ubuntuhandbook1/ffmpeg9
sudo apt update && sudo apt upgrade

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.

1

u/Salt-Bus7962 29d ago

Thanks for the reply.

So if I go with first option...do i uninstall the current installed version and install the ppa? Or just install the ppa and upgrade?

2

u/WeAreAlreadyCyborgs Linux Mint 22.3 Zena | Cinnamon 29d ago

It should just install the update automatically. If it does not, after running the command, run

sudo apt reinstall ffmpeg

1

u/Salt-Bus7962 29d ago

Sorry, another question for future.

Would it be better to remove ffmpeg completely, add the ppa and then install the ffmpeg so as to not have any sort of issues or duplications.

2

u/WeAreAlreadyCyborgs Linux Mint 22.3 Zena | Cinnamon 29d ago

You can if you like, but it should not be needed. The PPA will essentially replace the standard Ubuntu repository version, so ffmpeg (and I assume all the needed prereqs) from that new source instead, so if the PPA works it would just look like ffmpeg had an update and it would install it as such.

3

u/Due-Result7928 29d ago

You need to take care of the dependencies. New version will install libavformat.62.so and change the reference libavformat.so to point to the new version. Do not know where and when libavformat.so is used. You can have side effect. You can try.

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.

1

u/Salt-Bus7962 28d ago

Thanks for the reply....gonna wait for the official release on mint.

1

u/jr735 Linux Mint 22.1 Xia | IceWM 28d ago

It still won't be the latest version, and you haven't answered my previous question.

1

u/Salt-Bus7962 28d ago

There is a new linux port of sly Cooper ps2 game. It requires libavformat.so.62 to run, which is included in ffmpeg 7.8...which is not yet available for mint.

2

u/jr735 Linux Mint 22.1 Xia | IceWM 28d ago

That is the danger of running proprietary or third party software. It isn't optimized for your distribution, and the dependencies aren't there.

Read that "Don't Break Debian" article for the dangers.

1

u/Salt-Bus7962 28d ago

Thanks for the advise..i will keep that in mind.

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