Comments (24)
I can reproduce this on 13.5.2 on a M1 machine.
➜ brew reinstall homebrew-ffmpeg/ffmpeg/ffmpeg --with-chromaprint --with-fdk-aac --with-game-music-emu --with-jack --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplug --with-libsoxr --with-libssh --with-libvidstab --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-rtmpdump --with-rubberband --with-speex --with-tesseract --with-two-lame --with-webp --with-xvid --with-zeromq --with-zimg
==> Fetching homebrew-ffmpeg/ffmpeg/ffmpeg
==> Downloading https://github.com/FFmpeg/FFmpeg/commit/effadce6c756247ea8bae32dc13bb3e6f464f0eb.patch?full_index=1
Already downloaded: /Users/werner/Library/Caches/Homebrew/downloads/a69d9379ef65ead2df9b7bcdd51b88390155ebe749aad80abb09ec661c242f0b--effadce6c756247ea8bae32dc13bb3e6f464f0eb.patch
==> Downloading https://gitlab.archlinux.org/archlinux/packaging/packages/ffmpeg/-/raw/5670ccd86d3b816f49ebc18cab878125eca2f81f/add-av_stream_get_first_dts-for-chromium.patch
Already downloaded: /Users/werner/Library/Caches/Homebrew/downloads/89c5a789bbb2e059f601e58af1ca10f4db2a1939f591f896a0240cb1cfb2b8bb--add-av_stream_get_first_dts-for-chromium.patch
==> Downloading https://ffmpeg.org/releases/ffmpeg-6.0.tar.xz
Already downloaded: /Users/werner/Library/Caches/Homebrew/downloads/cde06afa988dec3565a51f2a2b503db685b5a78ba8ecc7f3c95562c750a9d838--ffmpeg-6.0.tar.xz
==> Reinstalling homebrew-ffmpeg/ffmpeg/ffmpeg --with-chromaprint --with-fdk-aac --with-game-music-emu --with-jack --with-libmodplug --with-libsoxr --with-libssh --with-tesserac
==> Patching
==> Applying effadce6c756247ea8bae32dc13bb3e6f464f0eb.patch
patching file 'libavcodec/x86/mathops.h'
==> Applying add-av_stream_get_first_dts-for-chromium.patch
patching file 'libavformat/avformat.h'
patching file 'libavformat/mux_utils.c'
==> ./configure --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-l
==> make install
Last 15 lines from /Users/werner/Library/Logs/Homebrew/ffmpeg/02.make:
INSTALL libavformat/libavformat.dylib
STRIP install-libavformat-shared
CC libavfilter/metal/vf_yadif_videotoolbox.metallib.o
GEN libavfilter/libavfilter.ver
AR libavfilter/libavfilter.a
LD libavfilter/libavfilter.9.dylib
INSTALL libavfilter/libavfilter.a
LD libavdevice/libavdevice.60.dylib
INSTALL libavfilter/libavfilter.dylib
STRIP install-libavfilter-shared
ld: building exports trie: duplicate symbol '_av_ac3_parse_header'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libavdevice/libavdevice.60.dylib] Error 1
make: *** Waiting for unfinished jobs....
rm libavfilter/metal/vf_yadif_videotoolbox.metal.air libavfilter/metal/vf_yadif_videotoolbox.metallib libavfilter/metal/vf_yadif_videotoolbox.metallib.c
from homebrew-ffmpeg.
@loshlee Thank you for the information. I assume you are installing the standard Homebrew ffmpeg formula, but I would like to fix this one.
from homebrew-ffmpeg.
This is apparently an Xcode issue introduced in Xcode 15 beta 3: https://developer.apple.com/forums/thread/733317. I had the same issue with ld: building exports trie: duplicate symbol '_av_ac3_parse_header'
and reverting to Xcode Command Line Tools 15b2 made stuff work.
from homebrew-ffmpeg.
This is a workaround, but Apple will need to fix their linker. Has the issue been reported to Apple? If so, what is the FB number?
from homebrew-ffmpeg.
Please test again, I could confirm it working now with the fix from @retokromer
from homebrew-ffmpeg.
works now
from homebrew-ffmpeg.
@loshlee Thank you for reporting! I cannot test now on macOS 13.6, but will do it in approximately one week time.
from homebrew-ffmpeg.
It also fails without any options, so these aren't causing the problem.
Someone mentions on a forum that this Formula gives the same error: https://github.com/apple/homebrew-apple/blob/main/Formula/game-porting-toolkit.rb — this does not have a lot in common with our formula.
from homebrew-ffmpeg.
@loshlee Could you possibly test is the fix by @slhck solves your issue?
from homebrew-ffmpeg.
@retokromer The PR does not fix this, it just fixed a related issue attempting to run the command from @loshlee. So I'm reopening now...
from homebrew-ffmpeg.
Oh, sorry @slhck, for the noise.
from homebrew-ffmpeg.
It also fails without any options, so these aren't causing the problem.
It seems to be related to clang 15.
from homebrew-ffmpeg.
Same here while trying install ffmpeg with "--enable-libfdk-aac" .
M1 Macbook running macOS v13.5.2
`> brew update
Already up-to-date.
brew doctor
Your system is ready to brew.
brew config
HOMEBREW_VERSION: 4.1.12
ORIGIN: https://github.com/Homebrew/brew
HEAD: aa2a77b1f1ac1539e69e186bad1d569100448987
Last commit: 8 days ago
Core tap JSON: 24 Sep 18:00 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.42.0 => /opt/homebrew/bin/git
Curl: 8.1.2 => /usr/bin/curl
macOS: 13.5.2-arm64
CLT: 15.0.0.0.1.1694021235
Xcode: 15.0
Rosetta 2: false
brew uninstall --ignore-dependencies ffmpeg
Error: No such keg: /opt/homebrew/Cellar/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac
/Users/redacted/Library/Logs/Homebrew/ffmpeg/02.make file attached since it's a lot of output.
extension changed to .txt to enable upload.
`
Let me know if you want me to run any commands or collect diagnostics to assist with troubleshooting this issue.
from homebrew-ffmpeg.
It also fails without any options, so these aren't causing the problem.
The relevant lines are always the same:
LD libavdevice/libavdevice.60.dylib
INSTALL libavfilter/libavfilter.dylib
STRIP install-libavfilter-shared
ld: building exports trie: duplicate symbol '_av_ac3_parse_header'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libavdevice/libavdevice.60.dylib] Error 1
from homebrew-ffmpeg.
Hmm. I have Xcode Version 15.0 (15A240d) and have this issue.
from homebrew-ffmpeg.
It's apparently broken from 15b3 onwards, still not fixed even in the release.
from homebrew-ffmpeg.
I don’t have Xcode on this machine and CLT (15.0.0.0.1.1694021235) also is broken.
from homebrew-ffmpeg.
related PR from spack with a potential fix spack/spack#40187
from homebrew-ffmpeg.
My workaround has been to use "brew uninstall --ignore-dependencies ffmpeg", then use "brew install ffmpeg".
from homebrew-ffmpeg.
Thanks, everyone.
from homebrew-ffmpeg.
What is the work around, as in , what commands do I need to run ? Should I run brew update && brew upgrade && brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac ?
Update: That worked for me. Background - I had a different ffmpeg installed at the beginning. I uninstalled it and trying installed homebrew-ffmpeg with with-fdk-aac support so that I could get another application - "m4b-tools" - to install. That failed with the libavdevice error. Running the brew commands I listed above was successful for me.
from homebrew-ffmpeg.
Hard to be sure without more information. If your last successful initial installation included "--with-fdk-aac", and you haven't used other offhand attempts at workarounds and/or installation, I think this might suffice:
brew reinstall homebrew-ffmpeg/ffmpeg/ffmpeg
If you don't see "--with-fdk-aac" in the output of that command, then installation with that option may require other steps. Anyway, that's what worked for me (I had previously also used "--HEAD").
from homebrew-ffmpeg.
There is no workaround: just use the regular installation. And if you get an error, please open a new issue, providing all the requested information.
from homebrew-ffmpeg.
Related Issues (20)
- add libzbvi to the default options in Homebrew formula from your repo HOT 9
- Please enable the ffplay building option, as the official brew formula does HOT 4
- Possible formula fixes/changes HOT 2
- Can't upgrade to 5.1 HOT 10
- Unknown decoder 'libx265' HOT 1
- FFmpeg 6.0 HOT 4
- Additional codecs don't seem to be included with installation HOT 1
- "unpaper" won't run without ffmpeg 5.x HOT 9
- Can you support installing older version of ffmpeg (e.g. ffmpeg@4) with the option --with-fdk-aac ? HOT 1
- Add `libplacebo` as a supported (optional) library HOT 11
- Install with a different name HOT 7
- Apple Silicon support in homebrew HOT 4
- Patch failure for libavcodec when re-installing ffmpeg HEAD HOT 7
- libvidstab error, failed on the 2nd pass, "Cannot parse localmotion" HOT 3
- Test optional installations in CI pipeline
- ERROR: chromaprint not found HOT 3
- FFmpeg with decklink support installation failure HOT 14
- opencv not working after homebrew-ffmpeg installation HOT 4
- Brewing custom ffmpeg but failure at metal execution HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-ffmpeg.