# \[REGRESSION\] ffmpeg: error while loading shared libraries

**URL:** <https://discussion.fedoraproject.org/t/regression-ffmpeg-error-while-loading-shared-libraries/133112>\
**Category:** Ask Fedora\
**Tags:** updates, ffmpeg, f40\
**Created:** [October 7, 2024, 6:15pm UTC](https://discussion.fedoraproject.org/t/regression-ffmpeg-error-while-loading-shared-libraries/133112 "2024-10-07T18:15:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsnvs](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/dsnvs/32/34091_2.png) [@dsnvs](https://discussion.fedoraproject.org/u/dsnvs)\
**Post date:** [October 7, 2024, 6:15pm UTC](https://discussion.fedoraproject.org/t/regression-ffmpeg-error-while-loading-shared-libraries/133112/1 "2024-10-07T18:15:50Z")

</div>

Hello everyone, I’ve been experiencing some problems with ffmpeg, with both packages from the `updates` and `rpmfusion-free` repos, yielding the same error:

`ffmpeg: error while loading shared libraries: libjack.so.0: cannot open shared object file: No such file or directory`, sometimes the same error with other libraries.

[Another ffmpeg user](https://www.reddit.com/r/Fedora/comments/1ftafh0/comment/lqswv60/?context=3) has been experiencing the same problems and temporarily solved the problem by uninstalling everything while in root, but I figured it would be a good idea to address it here as well.

---

<div class="post-metadata">

**Author:** ![gnwiii](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/gnwiii/32/34440_2.png) [@gnwiii](https://discussion.fedoraproject.org/u/gnwiii)\
**Post date:** [October 7, 2024, 6:46pm UTC](https://discussion.fedoraproject.org/t/regression-ffmpeg-error-while-loading-shared-libraries/133112/2 "2024-10-07T18:46:30Z")

</div>

> [@dsnvs](#):
>
> libjack.so.0

`/usr/lib64/libjack.so.0` is provided by `jack-audio-connection-kit-1.9.22-5.fc40.x86_64` : The Jack Audio Connection Kit.

---

<div class="post-metadata">

**Author:** ![dsnvs](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/dsnvs/32/34091_2.png) [@dsnvs](https://discussion.fedoraproject.org/u/dsnvs)\
**Post date:** [October 7, 2024, 7:07pm UTC](https://discussion.fedoraproject.org/t/regression-ffmpeg-error-while-loading-shared-libraries/133112/3 "2024-10-07T19:07:50Z")

</div>

Sorry, I just mentioned the other user’s error as an example, my error was about `libavdevice.so.60`, which is provided by `libavdevice`, which I already have installed, but still outputs the same error. There were a few more libraries mentioned, like (I believe) `libglut`, but nevertheless, ffmpeg used to work as intended until recently.

---

<div class="post-metadata">

**Author:** ![vgaetera](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/vgaetera/32/2552_2.png) [@vgaetera](https://discussion.fedoraproject.org/u/vgaetera)\
**Post date:** [October 8, 2024, 1:01am UTC](https://discussion.fedoraproject.org/t/regression-ffmpeg-error-while-loading-shared-libraries/133112/4 "2024-10-08T01:01:30Z")

</div>

You should provide the steps to reproduce the issue and the installed package version.  
It seems to work for me, so it currently looks like a problem with your setup.

---

<div class="post-metadata">

**Author:** ![dsnvs](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/dsnvs/32/34091_2.png) [@dsnvs](https://discussion.fedoraproject.org/u/dsnvs)\
**Post date:** [October 8, 2024, 10:50am UTC](https://discussion.fedoraproject.org/t/regression-ffmpeg-error-while-loading-shared-libraries/133112/5 "2024-10-08T10:50:54Z")

</div>

Yes, it might be a problem with my setup, because I tried typing `ffmpeg` on another computer running a super minimal Fedora 40 install and it launched successfully.

This problem (probably) begun when I tried installing `ffmpeg` from the RPM Fusion Free repo, meaning that I first had to remove the `ffmpeg-free` package that comes with Fedora 40. After doing so, I get the error posted above upon typing `ffmpeg`in the Terminal, with the error mentioning `libavdevice.so.60` instead.

After removing RPM Fusion’s ffmpeg, all its dependencies and doing a `sudo dnf autoremove`, I disabled the repo and reinstalled `ffmpeg-free` and this time getting the following error:

`ffmpeg: error while loading shared libraries: libglut.so.3: cannot open shared object file: No such file or directory`

---

<div class="post-metadata">

**Author:** ![vgaetera](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/vgaetera/32/2552_2.png) [@vgaetera](https://discussion.fedoraproject.org/u/vgaetera)\
**Post date:** [October 8, 2024, 11:31am UTC](https://discussion.fedoraproject.org/t/regression-ffmpeg-error-while-loading-shared-libraries/133112/6 "2024-10-08T11:31:01Z")

</div>

Check the output:

```bash
rpm -q freeglut; rpm -V freeglut

```

---

<div class="post-metadata">

**Author:** ![dsnvs](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/dsnvs/32/34091_2.png) [@dsnvs](https://discussion.fedoraproject.org/u/dsnvs)\
**Post date:** [October 8, 2024, 11:46am UTC](https://discussion.fedoraproject.org/t/regression-ffmpeg-error-while-loading-shared-libraries/133112/7 "2024-10-08T11:46:18Z")

</div>

It get: `package freeglut is not installed`

---

<div class="post-metadata">

**Author:** ![vgaetera](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/vgaetera/32/2552_2.png) [@vgaetera](https://discussion.fedoraproject.org/u/vgaetera)\
**Post date:** [October 8, 2024, 12:21pm UTC](https://discussion.fedoraproject.org/t/regression-ffmpeg-error-while-loading-shared-libraries/133112/8 "2024-10-08T12:21:41Z")

</div>

```bash
sudo dnf install freeglut

```

Then check ffmpeg again.

---

<div class="post-metadata">

**Author:** ![dsnvs](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/dsnvs/32/34091_2.png) [@dsnvs](https://discussion.fedoraproject.org/u/dsnvs)\
**Post date:** [October 8, 2024, 1:21pm UTC](https://discussion.fedoraproject.org/t/regression-ffmpeg-error-while-loading-shared-libraries/133112/9 "2024-10-08T13:21:09Z")

</div>

It’s running now, thank you! A few things I don’t understand:

1. shouldn’t these dependencies be part of ffmpeg-free?
2. how would I know what library contains libglut.so.3? (I’m guessing doing `sudo dnf whatprovides libglut.so.3`?)
3. in case of the Reddit user’s problem posted above, he was missing multiple dependencies. It could have been due to malconfiguration on my part by uninstalling and reinstalling a lot of things prior to the problem, but the Reddit user seems to have just gotten this error as is.

---

<div class="post-metadata">

**Author:** ![vgaetera](https://sea1.discourse-cdn.com/fedoraproject/user_avatar/discussion.fedoraproject.org/vgaetera/32/2552_2.png) [@vgaetera](https://discussion.fedoraproject.org/u/vgaetera)\
**Post date:** [October 8, 2024, 2:16pm UTC](https://discussion.fedoraproject.org/t/regression-ffmpeg-error-while-loading-shared-libraries/133112/10 "2024-10-08T14:16:23Z")

</div>

> [@dsnvs](#):
>
> shouldn’t these dependencies be part of ffmpeg-free?

Yes, it should be:

```bash
> ldd $(type -P ffmpeg) | grep -e libglut
	libglut.so.3 => /lib64/libglut.so.3 (0x00007efcc8d2c000)

```

> [@dsnvs](#):
>
> how would I know what library contains libglut.so.3?

```bash
dnf provides \*/libglut.so.3

```

See also: [DNF Command Reference — DNF @DNF\_VERSION@-1 documentation](https://dnf.readthedocs.io/en/latest/command_ref.html#provides-command-label)
