ALVR icon indicating copy to clipboard operation
ALVR copied to clipboard

Removing ffmpeg breaks dependency

Open Cytomax55 opened this issue 3 years ago • 8 comments
trafficstars

Manjaro 21.2.2 Qonos KDE x86_64 Linux 5.16.2-1-MANJARO

On the AUR When i try to run ALVR or ALVR-git i get

could not satisfy dependencies:

  • removing ffmpeg breaks dependency 'libavcodec.so=58-64' required by chromaprint
  • removing ffmpeg breaks dependency 'libavformat.so=58-64' required by chromaprint
  • removing ffmpeg breaks dependency 'libavutil.so=56-64' required by chromaprint
  • removing ffmpeg breaks dependency 'libswresample.so=3-64' required by chromaprint
  • removing ffmpeg breaks dependency 'libswscale.so=5-64' required by freerdp

Cytomax55 avatar Jan 30 '22 15:01 Cytomax55

Heya,

I had that problem. Put "ffmpeg-compat" into Pamac or Yay and install the right one for compatibility with your legacy ffmpeg dependency needs.... along side ffmpeg-vulkan for ALVR of course.

Niroc avatar Jan 30 '22 15:01 Niroc

AUR ffmpeg-vulkan actually builds version 5.0 of ffmpeg which breaks dependencies (instead of ffmpeg 4.4.1). Use this patch on pkgbuild:

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -113,11 +113,6 @@
 prepare() {
   cd ffmpeg

-  git fetch --all --tags
-
-  # Get latest stable tag
-  # git checkout tags/$(git tag --list 'n*[!d][!e][!v]' | tail -n1)&>/dev/null
-
   git cherry-pick -n 988f2e9eb063db7c1a678729f58aab6eba59a55b # fix nvenc on older gpus
   patch -Np1 -i "${srcdir}"/vmaf-model-path.patch
 }

kacpi2442 avatar Feb 01 '22 16:02 kacpi2442

Hi Niroc, I get this when I try to install ffmpeg-compat, not sure how to get around this :-(

conflicting files:

  • ffmpeg-compat-58: /usr/lib/libavcodec.so.58 already exists in filesystem (owned by ffmpeg-vulkan)
  • ffmpeg-compat-58: /usr/lib/libavcodec.so.58.134.100 already exists in filesystem (owned by ffmpeg-vulkan)
  • ffmpeg-compat-58: /usr/lib/libavdevice.so.58 already exists in filesystem (owned by ffmpeg-vulkan)
  • ffmpeg-compat-58: /usr/lib/libavdevice.so.58.13.100 already exists in filesystem (owned by ffmpeg-vulkan)
  • ffmpeg-compat-58: /usr/lib/libavfilter.so.7 already exists in filesystem (owned by ffmpeg-vulkan)
  • ffmpeg-compat-58: /usr/lib/libavfilter.so.7.110.100 already exists in filesystem (owned by ffmpeg-vulkan)
  • ffmpeg-compat-58: /usr/lib/libavformat.so.58 already exists in filesystem (owned by ffmpeg-vulkan)
  • ffmpeg-compat-58: /usr/lib/libavformat.so.58.76.100 already exists in filesystem (owned by ffmpeg-vulkan)
  • ffmpeg-compat-58: /usr/lib/libavutil.so.56 already exists in filesystem (owned by ffmpeg-vulkan)
  • ffmpeg-compat-58: /usr/lib/libavutil.so.56.70.100 already exists in filesystem (owned by ffmpeg-vulkan)
  • ffmpeg-compat-58: /usr/lib/libpostproc.so.55 already exists in filesystem (owned by ffmpeg-vulkan)
  • ffmpeg-compat-58: /usr/lib/libpostproc.so.55.9.100 already exists in filesystem (owned by ffmpeg-vulkan)
  • ffmpeg-compat-58: /usr/lib/libswresample.so.3 already exists in filesystem (owned by ffmpeg-vulkan)
  • ffmpeg-compat-58: /usr/lib/libswresample.so.3.9.100 already exists in filesystem (owned by ffmpeg-vulkan)
  • ffmpeg-compat-58: /usr/lib/libswscale.so.5 already exists in filesystem (owned by ffmpeg-vulkan)
  • ffmpeg-compat-58: /usr/lib/libswscale.so.5.9.100 already exists in filesystem (owned by ffmpeg-vulkan)

Promootheus avatar Feb 12 '22 14:02 Promootheus

That error means you've already got it.

I believe ffmpeg-vulkan was patched to be backwards compatible so, you're software should just work.

let me know if your other software doesn't work tho

Niroc avatar Feb 13 '22 23:02 Niroc

Hi, same issue here, i don't understand what to do exactly and i don't want to break anything because i'm not so advanced in using packages for now... If anyone can guide me i would appreciate a lot. Thank you.

`sudo pamac install alvr  ✔ Warning: alvr is only available from AUR Preparing... Checking alvr dependencies... Checking ffmpeg-vulkan dependencies... Choose a provider for cargo: 1: rust 1:1.61.0-1 extra 2: rustup 1.24.3-2 community

Enter a number (default=1):

Resolving dependencies... Choose a provider for cargo: 1: rust 1:1.61.0-1 extra 2: rustup 1.24.3-2 community

Enter a number (default=1):

Checking inter-conflicts... Error: Failed to prepare transaction: could not satisfy dependencies:

  • removing ffmpeg breaks dependency 'libavcodec.so=59-64' required by chromaprint
  • removing ffmpeg breaks dependency 'libavformat.so=59-64' required by chromaprint
  • removing ffmpeg breaks dependency 'libavutil.so=57-64' required by chromaprint
  • removing ffmpeg breaks dependency 'libswresample.so=4-64' required by chromaprint
  • removing ffmpeg breaks dependency 'libavdevice.so=59-64' required by mpv
  • removing ffmpeg breaks dependency 'libavfilter.so=8-64' required by mpv
  • removing ffmpeg breaks dependency 'libswscale.so=6-64' required by mpv`

Xn4m3d avatar Jun 02 '22 13:06 Xn4m3d

If you don't want to risk breaking your linux install or you just have problems having the system ffmpeg working with ALVR you can just use the portable build.

zmerp avatar Jun 02 '22 14:06 zmerp

The actual solution is to use paru/yay -S ffmpeg-vulkan --assume-installed ffmpeg, IIRC

m00nwtchr avatar Jun 03 '22 20:06 m00nwtchr

yup, it seems that ffmpeg-vulkan has backwards compatibility as @Niroc and @m00nwtchr mentioned, that fixed the problem and now I was able to install it

AlanMauricioC avatar Jun 08 '22 19:06 AlanMauricioC

FFmpeg is now statically linked.

zmerp avatar Feb 05 '23 22:02 zmerp