# Ffmpeg install error

**URL:** <https://forums.rockylinux.org/t/ffmpeg-install-error/10160>\
**Category:** Rocky Linux Help & Support\
**Created:** [June 2, 2023, 11:24pm UTC](https://forums.rockylinux.org/t/ffmpeg-install-error/10160 "2023-06-02T23:24:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![emesse92](https://avatars.discourse-cdn.com/v4/letter/e/90ced4/32.png) [@emesse92](https://forums.rockylinux.org/u/emesse92)\
**Post date:** [June 2, 2023, 11:24pm UTC](https://forums.rockylinux.org/t/ffmpeg-install-error/10160/1 "2023-06-02T23:24:22Z")

</div>

Hello, I’m new here and I’m trying to install ffmpeg, but I’m getting this error.

Im using

`sudo dnf install ffmpeg ffmpeg-devel`

and it gives me

```auto
Last metadata expiration check: 0:12:29 ago on Sat 03 Jun 2023 00:06:18 BST.
Error: 
 Problem 1: problem with installed package libswresample-free-5.1.3-1.el9.x86_64
  - package ffmpeg-libs-5.1.3-1.el9.x86_64 conflicts with libswresample-free provided by libswresample-free-5.1.3-1.el9.x86_64
  - package ffmpeg-5.1.3-1.el9.x86_64 requires ffmpeg-libs(x86-64) = 5.1.3-1.el9, but none of the providers can be installed
  - conflicting requests
 Problem 2: problem with installed package libavutil-free-5.1.3-1.el9.x86_64
  - package ffmpeg-libs-5.1.3-1.el9.x86_64 conflicts with libavutil-free provided by libavutil-free-5.1.3-1.el9.x86_64
  - package ffmpeg-devel-5.1.3-1.el9.x86_64 requires ffmpeg-libs(x86-64) = 5.1.3-1.el9, but none of the providers can be installed
  - conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

```

Thanks in advance for any help.

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [June 3, 2023, 7:49am UTC](https://forums.rockylinux.org/t/ffmpeg-install-error/10160/2 "2023-06-03T07:49:41Z")

</div>

Try removing `libswresample-free` and `libavutil-free`, and then try installing ffmpeg again.

Alternatively, you can do as it suggests with the `--allowerasing` parameter, so:

```auto
dnf install ffmpeg ffmpeg-devel --allowerasing

```

obviously review the output after this to see what it is actually going to do (in case it decides to remove a whole host of other packages as well).

Personally I prefer to manually remove the conflicts than use the allowerasing parameter, but that’s just me. In some cases, it could be a lot of hard work doing it manually, and so the parameter comes in handy, but caution is required when using it.

---

<div class="post-metadata">

**Author:** ![emesse92](https://avatars.discourse-cdn.com/v4/letter/e/90ced4/32.png) [@emesse92](https://forums.rockylinux.org/u/emesse92)\
**Post date:** [June 3, 2023, 9:53am UTC](https://forums.rockylinux.org/t/ffmpeg-install-error/10160/3 "2023-06-03T09:53:33Z")

</div>

Thank you so much, works perfectly!

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:12am UTC](https://forums.rockylinux.org/t/ffmpeg-install-error/10160/4 "2023-08-25T03:12:01Z")

</div>

Closed on August 25, 2023, 3:12am UTC


