# Package conflict between NVIDIA ffmpeg and libpostproc-dev

**URL:** <https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189>\
**Category:** Jetson Orin Nano\
**Tags:** ffmpeg, nvbugs\
**Created:** [July 17, 2024, 11:56pm UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189 "2024-07-17T23:56:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cranky\_Cyborg](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/cranky_cyborg/32/250839_2.png) [@Cranky\_Cyborg](https://forums.developer.nvidia.com/u/Cranky_Cyborg)\
**Post date:** [July 17, 2024, 11:56pm UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/1 "2024-07-17T23:56:14Z")

</div>

Hi there,

I’m having issues with NVIDIA ffmpeg package as it is having a conflict with libpostproc-dev and subsequently all of libpostproc-dev’s dependencies such as libav\*.

## below is the error message

After this operation, 56.2 MB of additional disk space will be used.  
debconf: delaying package configuration, since apt-utils is not installed  
(Reading database … 206247 files and directories currently installed.)  
Preparing to unpack …/ffmpeg\_7%3a4.4.2-nvidia\_arm64.deb …  
Unpacking ffmpeg (7:4.4.2-nvidia) …  
Replacing files in old package libavcodec-dev:arm64 (7:4.4.2-0ubuntu0.22.04.1+esm4) …  
Replacing files in old package libavdevice-dev:arm64 (7:4.4.2-0ubuntu0.22.04.1+esm4) …  
Replacing files in old package libavfilter-dev:arm64 (7:4.4.2-0ubuntu0.22.04.1+esm4) …  
Replacing files in old package libavformat-dev:arm64 (7:4.4.2-0ubuntu0.22.04.1+esm4) …  
Replacing files in old package libavutil-dev:arm64 (7:4.4.2-0ubuntu0.22.04.1+esm4) …  
dpkg: error processing archive /var/cache/apt/archives/ffmpeg\_7%3a4.4.2-nvidia\_arm64.deb (–unpack):  
trying to overwrite ‘/usr/include/aarch64-linux-gnu/libpostproc/postprocess.h’, which is also in package libpostproc-dev:arm64 7:4.4.2-0ubuntu0.22.04.1+esm4  
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)  
Errors were encountered while processing:  
/var/cache/apt/archives/ffmpeg\_7%3a4.4.2-nvidia\_arm64.deb  
E: Sub-process /usr/bin/dpkg returned an error code (1)

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [July 19, 2024, 1:26am UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/3 "2024-07-19T01:26:27Z")

</div>

Hi,  
Thanks for reporting it. Please share the steps. So that we can set up developer kit to reproduce the error and check.

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [July 19, 2024, 4:23am UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/5 "2024-07-19T04:23:21Z")

</div>

Hi,  
Would like to confirm if we understand the issue. So if _libpostproc-dev_ is in the command, the error is shown. And if there is no _libpostproc-dev_, the ffmpeg package can be installed. Is this understanding correct?

---

<div class="post-metadata">

**Author:** ![bernard.j.oliver](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@bernard.j.oliver](https://forums.developer.nvidia.com/u/bernard.j.oliver)\
**Post date:** [July 20, 2024, 2:18am UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/6 "2024-07-20T02:18:33Z")

</div>

It fails with _libpostproc-dev_ removed. Error:  
dpkg: error processing archive /var/cache/apt/archives/ffmpeg\_7%3a4.4.2-nvidia\_arm64.deb (–unpack):  
trying to overwrite ‘/usr/include/aarch64-linux-gnu/libpostproc/postprocess.h’, which is also in package libpostproc-dev:arm64 7:4.4.2-0ubuntu0.22.04.1+esm4

---

<div class="post-metadata">

**Author:** ![ncary](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ncary](https://forums.developer.nvidia.com/u/ncary)\
**Post date:** [July 22, 2024, 5:36pm UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/7 "2024-07-22T17:36:05Z")

</div>

I am running into the exact same issue while trying to build torchaudio. Ive been following the steps provided by Pytorch → [Building on Jetson — Torchaudio 2.3.0 documentation](https://pytorch.org/audio/stable/build.jetson.html)

After the install fails I am unable to uninstall ffmpeg or repair the install. I have Jetpack 6.0, Linux R36.3, and Ubuntu 22.04. Is there a diffrence in the ffmpeg from the Ubuntu repo vs. NVIDIA repo?

---

<div class="post-metadata">

**Author:** ![Cranky\_Cyborg](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/cranky_cyborg/32/250839_2.png) [@Cranky\_Cyborg](https://forums.developer.nvidia.com/u/Cranky_Cyborg)\
**Post date:** [July 31, 2024, 9:24pm UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/9 "2024-07-31T21:24:40Z")

</div>

Hi @DaneLLL,

libpostproc-dev is a base package and is a dependency for most of the libav\*-dev, and maybe a few more.  
if i only install ffmpeg i believe the installation goes fine, and the opposite is also true. Saying that ffmpeg is blocking a lot of other packages from installing.

> **[Debian -- Details of package libpostproc-dev in sid](https://packages.debian.org/sid/libpostproc-dev)**
>
> FFmpeg library for post processing - development files

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [August 1, 2024, 12:44am UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/10 "2024-08-01T00:44:47Z")

</div>

Hi,  
We are checking this issue. Will update the status.

---

<div class="post-metadata">

**Author:** ![whitesscott](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@whitesscott](https://forums.developer.nvidia.com/u/whitesscott)\
**Post date:** [August 5, 2024, 9:57pm UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/11 "2024-08-05T21:57:30Z")

</div>

Here’s a method to force fix so that apt becomes functional again. Not the global fix as that’ll between ffmpeg and libpostproc-dev deb packages. The following worked on orin agx developer kit 32gb. sudo dpkg -i --force-overwrite /var/cache/apt/archives/libpostproc-dev\_7%3a4.4.2-0ubuntu0.22.04.1\_arm64.deb  
sudo apt --fix-broken install

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [August 29, 2024, 2:44am UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/13 "2024-08-29T02:44:21Z")

</div>

Hi,  
The ffmpeg deb is refreshed. Please try again.

---

<div class="post-metadata">

**Author:** ![Cranky\_Cyborg](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/cranky_cyborg/32/250839_2.png) [@Cranky\_Cyborg](https://forums.developer.nvidia.com/u/Cranky_Cyborg)\
**Post date:** [August 29, 2024, 8:40am UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/14 "2024-08-29T08:40:49Z")

</div>

Hi @DaneLLL,

Sorry mate, no luck. I’m getting a different error now this time from libavcodec.

FYI, im trying to build torcgvision, and my script is available here. [jetsonOrinNano/setup.sh at main · cranky-cyborg/jetsonOrinNano · GitHub](https://github.com/cranky-cyborg/jetsonOrinNano/blob/main/setup.sh)

 ![Screenshot from 2024-08-29 20-27-11](https://global.discourse-cdn.com/nvidia/original/4X/3/d/f/3dfc238e08958027cdad7eb796d960ebf61831db.png)

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [August 29, 2024, 8:51am UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/15 "2024-08-29T08:51:01Z")

</div>

Hi,  
If you don’t re-flash the whole system, please remove the installed ffmpeg deb first:

```auto
$ sudo apt remove ffmpeg
$ sudo apt update
$ sudo apt-get -y install ffmpeg libavutil-dev libavcodec-dev libavformat-dev libavdevice-dev libavfilter-dev libswscale-dev libswresample-dev libswresample-dev libpostproc-dev libjpeg-dev libpng-dev libopenblas-base libopenmpi-dev

```

---

<div class="post-metadata">

**Author:** ![Cranky\_Cyborg](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/cranky_cyborg/32/250839_2.png) [@Cranky\_Cyborg](https://forums.developer.nvidia.com/u/Cranky_Cyborg)\
**Post date:** [August 29, 2024, 8:55am UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/16 "2024-08-29T08:55:24Z")

</div>

> [@DaneLLL](#):
>
> `sudo apt-get -y install ffmpeg libavutil-dev libavcodec-dev libavformat-dev libavdevice-dev libavfilter-dev libswscale-dev libswresample-dev libswresample-dev libpostproc-dev libjpeg-dev libpng-dev libopenblas-base libopenmpi-dev`

Same error, i’ll re-flash and try again

---

<div class="post-metadata">

**Author:** ![whitesscott](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@whitesscott](https://forums.developer.nvidia.com/u/whitesscott)\
**Post date:** [August 30, 2024, 5:36pm UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/17 "2024-08-30T17:36:03Z")

</div>

Did apt remove, update, install ffmpeg. Looks like they linked to a file that is not available to aarch64/arm64 r36.3. (ffmpeg: error while loading shared libraries: libdav1d.so.7: cannot open shared object file: No such file or directory).

Did they compile ffmpeg on an x86\_64 machine? because on my hp workstation the file the updated for Jetson ffmpeg wants is:

/usr/lib/x86\_64-linux-gnu/ **libdav1d.so.7.0.0** : ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=c1cbf344111237f101e726679363918a0a83fdd3, stripped

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [September 2, 2024, 1:44am UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/18 "2024-09-02T01:44:40Z")

</div>

Hi,  
The ffmpeg deb is for Jetson platforms. It does not work on x86 machines.

---

<div class="post-metadata">

**Author:** ![ra\_tech](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@ra\_tech](https://forums.developer.nvidia.com/u/ra_tech)\
**Post date:** [September 3, 2024, 12:00pm UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/19 "2024-09-03T12:00:57Z")

</div>

I get the same error when i try to run ffmpeg on Orin NX 16Gb

ffmpeg -version

ffmpeg: error while loading shared libraries: libdav1d.so.7: cannot open shared object file: No such file or director

I checked for the available version, it is libdav1d.so.5 , how to install libdav1d.so.7?

---

<div class="post-metadata">

**Author:** ![chris76](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/chris76/32/57856_2.png) [@chris76](https://forums.developer.nvidia.com/u/chris76)\
**Post date:** [September 3, 2024, 9:05pm UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/20 "2024-09-03T21:05:51Z")

</div>

I’m having the same issue. Straight after a Jetpack 6.0 install on Orin AGX, I installed ffmpeg and it cannot find libdav1d.so.7:

```auto
 ffmpeg -i
ffmpeg: error while loading shared libraries: libdav1d.so.7: cannot open shared object file: No such file or directory

```

---

<div class="post-metadata">

**Author:** ![electriczity](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@electriczity](https://forums.developer.nvidia.com/u/electriczity)\
**Post date:** [September 4, 2024, 11:35am UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/21 "2024-09-04T11:35:04Z")

</div>

I have the same problem. It looks like the repository for l4t r36.3 does not provide libdav1d library with version 7 but only 5 (libdav1d5).

---

<div class="post-metadata">

**Author:** ![chris76](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/chris76/32/57856_2.png) [@chris76](https://forums.developer.nvidia.com/u/chris76)\
**Post date:** [September 4, 2024, 5:11pm UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/22 "2024-09-04T17:11:22Z")

</div>

This is also impacting gstreamer, which is what I really need. We cannot downgrade to JP 5.1.3 because we need the TRT version in JP 6.0.

---

<div class="post-metadata">

**Author:** ![vinurap4](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/vinurap4/32/338195_2.png) [@vinurap4](https://forums.developer.nvidia.com/u/vinurap4)\
**Post date:** [September 5, 2024, 9:58am UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/23 "2024-09-05T09:58:56Z")

</div>

I got around this for now by directly installing the ffmpeg from another ppa.

1. `vim /etc/apt/sources.list.d/nvidia-l4t-apt-source.list`
2. Comment the line - `deb https://repo.download.nvidia.com/jetson/ffmpeg r36.3 main`
3. `sudo add-apt-repository ppa:savoury1/ffmpeg4`
4. `sudo apt-get update`
5. `sudo apt remove ffmpeg`
6. `sudo apt install ffmpeg.`

This is a temp fix and looses all the nvidia optimizations

---

<div class="post-metadata">

**Author:** ![Cranky\_Cyborg](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/cranky_cyborg/32/250839_2.png) [@Cranky\_Cyborg](https://forums.developer.nvidia.com/u/Cranky_Cyborg)\
**Post date:** [September 5, 2024, 10:03pm UTC](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189/24 "2024-09-05T22:03:44Z")

</div>

I’m sorry for sounding rude, but is’nt a Raspberry Pi a cheaper version (and well supported) of Jetson Orin Nano without any CUDA optimisation?

My frustration is that i’ve now reflashed my board, resetup the whole and still unable to get the ffmpeg working.

[Next page](https://forums.developer.nvidia.com/t/package-conflict-between-nvidia-ffmpeg-and-libpostproc-dev/300189.md?page=2)
