homebrew-ffmpeg / homebrew-ffmpeg Goto Github PK
View Code? Open in Web Editor NEWA homebrew tap for an ffmpeg formula with lots of options
A homebrew tap for an ffmpeg formula with lots of options
When trying to build the latest ffmpeg from the homebrew-ffmpeg tap like this:
brew install homebrew-ffmpeg/ffmpeg/ffmpeg
I'm getting:
.....
X86ASM libavfilter/x86/vf_blend.o
CC libavfilter/x86/vf_blend_init.o
critical: libavfilter/x86/vf_blend.asm:416: out of memory!
make: *** [libavfilter/x86/vf_blend.o] Error 2
make: *** Waiting for unfinished jobs....
Actually I'm using the --with-fdk-aac
option (that's why I use this tap) but the same error occurs without any options.
It used to work fine before (I've been using this tap since 2019) but not anymore, no idea why.
I'm using macOS Catalina 10.15.5 (latest version) and already did brew update
, brew cleanup
, and brew doctor
, all OK.
The 'out of memory' is unlikely, I have 32 GB ram, even rebooted my macbook and tried again without running any other applications or background stuff, still the same.
For what it's worth I also tried an alternative tap (justinmayer/tap) which also offers the --with-fdk-aac
option, exact same problem occurs there.
It does NOT occur when building the regular ffmpeg with homebrew: just brew install ffmpeg
works fine. However that lacks the FDK AAC codec which I really need.
I was homebrewing ffmpeg use custom configs as follow:
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-libcaca --with-openjpeg --with-fdk-aac --HEAD
Under working environment of MacOS Big Sur 11.6.1 and Xcode command line tool version 13.2. Yet, it happened failure of ffmpeg installation with the log follows:
==> make install
Last 15 lines from /Users/tommy/Library/Logs/Homebrew/ffmpeg/02.make:
CC libavfilter/lavfutils.o
CC libavfilter/log2_tab.o
CC libavfilter/lswsutils.o
OBJCC libavfilter/metal/utils.o
HOSTCC ffbuild/bin2c_host.o
xcrun metal libavfilter/metal/vf_yadif_videotoolbox.metal -o libavfilter/metal/vf_yadif_videotoolbox.metal.air
Failed to execute metal libavfilter/metal/vf_yadif_videotoolbox.metal -o libavfilter/metal/vf_yadif_videotoolbox.metal.air
Xcode and/or the CLT appear to be misconfigured. Try one or both of the following:
xcodebuild -license
sudo xcode-select --switch /path/to/Xcode.app
make: *** [libavfilter/metal/vf_yadif_videotoolbox.metal.air] Error 1
make: *** Waiting for unfinished jobs....
I've reopened the terminal and test the ffmpeg but with no avail, as well as I've already reset the xcode-select to CTL path. I'm sick about installing GUI version of Xcode as its large size is a great pain. Can someone advise how to fix the problem for successful installation? Thank you.
Not sure what I might be doing wrong, when I try to brew with all options:
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --HEAD $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg --compact)`
==> Installing ffmpeg from homebrew-ffmpeg/ffmpeg
Error: homebrew-ffmpeg/ffmpeg/ffmpeg contains a recursive dependency on itself:
homebrew-ffmpeg/ffmpeg/ffmpeg depends on chromaprint
chromaprint depends on homebrew-ffmpeg/ffmpeg/ffmpeg
If I use every option but chromaprint, it all works fine:
opts=`brew options homebrew-ffmpeg/ffmpeg/ffmpeg --compact`
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --HEAD `echo $opts | sed s/--with-chromaprint//`
==> Installing ffmpeg from homebrew-ffmpeg/ffmpeg
==> Cloning https://github.com/FFmpeg/FFmpeg.git
Updating /Users/user/Library/Caches/Homebrew/ffmpeg--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at f897d8c doc/filters: improve libvmaf section
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/HEAD-f897d8c_2 --enable-shared --cc=clang --host-cflags=-I/Library/Java/JavaVirtualMachines/
==> make install
==> make alltools
Warning: The defaulttesseract
dependency includes limited language support.
To add all supported languages, install thetesseract-lang
formula.
🍺 /usr/local/Cellar/ffmpeg/HEAD-f897d8c_2: 252 files, 52.5MB, built in 4 minutes 3 seconds
When I run
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-decklink --with-fdk-aac --with-game-music-emu --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplug --with-librsvg --with-libsoxr --with-libssh --with-libvidstab --with-libvmaf --with-libxml2 --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-rtmpdump --with-rubberband --with-speex --with-srt --with-tesseract --with-two-lame --with-wavpack --with-webp --with-xvid --with-zeromq --with-zimg
I get
Error: invalid option: --with-decklink
and prints out brew’s options. If I remove --with-decklink
it does the same with —with-fdc-aac
etc. Did something change somewhere?
$ brew install ffmpeg
results in:
==> Downloading https://bitbucket.org/multicoreware/x265/downloads/x265_3.4.tar.gz
curl: (22) The requested URL returned error: 403 Forbidden
Error: Failed to download resource "x265"
Download failed: https://bitbucket.org/multicoreware/x265/downloads/x265_3.4.tar.gz
Looks like the repo is no longer available on bitbucket.
Mac 10.12.6
Please could --enable-demuxer=dash
be added to the build script?
Current ffmpeg/4.3-with-options_2 does not support dash as an input format to FFmpeg suite of tools..
$ ffmpeg -formats | grep -e "DASH Muxer"
E dash DASH Muxer
Expected result
$ ffmpeg -formats | grep -e "DASH Muxer"
DE dash DASH Muxer
$ ffmpeg -hide_banner -i "http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4" -t "120" -codec:v "libx264" -codec:a "aac" -f "dash" "./index.mpd"
$ ffmpeg -loglevel "level+debug" -i "./index.mpd"
$ ffplay -i "https://storage.googleapis.com/shaka-demo-assets/bbb-dark-truths/dash.mpd"
Relevant Stack Exchange: https://stackoverflow.com/questions/28848917/playing-mpeg-dash-streaming-with-ffmpeg
Thanks for all your hard work in maintaining these builds.
brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
and brew doctor
and included their output with your issue?I ran the command youtube-dl https://www.cbsnews.com/video/60minutes-2021-03-07/#x
and it should just download it since FFMPEG is included in Youtube-DL and I compiled ffmpeg with openssl.
I ran the command above and I got an error and it failed. Keep in mind that I used this tap to install FFMPEG and I selected brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-openssl
The exact command you were trying to run:
youtube-dl https://www.cbsnews.com/video/60minutes-2021-03-07/#x
The output that you got:
https protocol not found, recompile FFmpeg with openssl, gnutls,
or securetransport enabled.
https://prod.vodvideo.cbsnews.com/cbsnews/vr/hls/2021/02/11/1858978371560/662502_hls/0307_60_full_662502_3000/stream.m3u8: Protocol not found
brew config
and brew doctor
commandsHOMEBREW_VERSION: 3.0.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: ee52b19179d056f3dd2fdf9c52214d3d51dbb9d9
Last commit: 6 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: e5cf1a1a7da039a0e654b70725a1c1fe39626cd9
Core tap last commit: 24 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
CPU: quad-core 64-bit haswell
Clang: 10.0 build 1001
Git: 2.20.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
macOS: 10.14.6-x86_64
CLT: 10.3.0.0.1.1562985497
Xcode: N/A
XQuartz: 2.7.11 => /opt/X11
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/more/.
Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5m-config
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5-config
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3-config
/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4m-config
/Library/Frameworks/Python.framework/Versions/3.4/bin/python3-config
/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4-config
Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
ffmpeg
[email protected]
Warning: Homebrew's "sbin" was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting your PATH for example like so:
echo 'export PATH="/usr/local/sbin:$PATH"' >> /Users/sflynn/.bash_profile
Hello,
When I run:
% brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-srt
it fails to install, displaying the following compile error:
==> Installing ffmpeg from homebrew-ffmpeg/ffmpeg
==> Downloading https://ffmpeg.org/releases/ffmpeg-4.3.1.tar.xz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/4.3.1-with-options_3 --enable-
==> make install
Last 15 lines from /Users/username/Library/Logs/Homebrew/ffmpeg/02.make:
CC libavformat/libssh.o
libavformat/libsrt.c:317:66: error: use of undeclared identifier 'SRTO_STRICTENC'; did you mean 'SRTO_STATE'?
(s->enforced_encryption >= 0 && libsrt_setsockopt(h, fd, SRTO_STRICTENC, "SRTO_STRICTENC", &s->enforced_encryption, sizeof(s->enforced_encryption)) < 0) ||
^~~~~~~~~~~~~~
SRTO_STATE
/usr/local/Cellar/srt/1.4.2/include/srt/srt.h:200:4: note: 'SRTO_STATE' declared here
SRTO_STATE = 17, // current socket state, see UDTSTATUS, read only
^
libavformat/libsrt.c:336:50: error: use of undeclared identifier 'SRTO_SMOOTHER'
(s->smoother && libsrt_setsockopt(h, fd, SRTO_SMOOTHER, "SRTO_SMOOTHER", s->smoother, strlen(s->smoother)) < 0) ||
^
CC libavformat/libzmq.o
2 errors generated.
make: *** [libavformat/libsrt.o] Error 1
make: *** Waiting for unfinished jobs....
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/homebrew-ffmpeg/homebrew-ffmpeg/issues
You might want to look into it.
Have a nice weekend!
Originally posted by @retokromer in #109 (comment)
on_linux do
depends_on "libxv"
depends_on "gcc" if build.with? "rubberband"
end
depends_on "texinfo" => :build
A clear and concise description of what the problem is.
A clear and concise description of what you want to happen.
A clear and concise description of any alternative solutions or features you've considered.
homebrew-ffmpeg
tap only. Please do not file a bug report if your issue relates to any of the following:
ffmpeg
formula officially supplied by Homebrewffmpeg-user
mailing list)Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information.
brew update
and can still reproduce the problembrew doctor
, fixed all issues and can still reproduce the problembrew config
and brew doctor
and included their output with my issueffmpeg
versionSuccessful installation of ffmpeg
Installation of the keg failed; see below for output.
I tried both
brew tap homebrew-ffmpeg/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac
and:
brew tap homebrew-ffmpeg/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac --HEAD
The output that you got:
$ brew tap homebrew-ffmpeg/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac --HEAD
==> Installing ffmpeg from homebrew-ffmpeg/ffmpeg
==> Cloning https://github.com/FFmpeg/FFmpeg.git
Cloning into '/Users/booty/Library/Caches/Homebrew/ffmpeg--git'...
Updating files: 100% (7491/7491), done.
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/HEAD-718e03e --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enabl
Last 15 lines from /Users/booty/Library/Logs/Homebrew/ffmpeg/01.configure:
--disable-libjack
--disable-indev=jack
--enable-opencl
--enable-videotoolbox
--disable-htmlpages
--enable-libfdk-aac
--enable-nonfree
ERROR: libmp3lame >= 3.98.3 not found
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/homebrew-ffmpeg/homebrew-ffmpeg/issues
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels.
brew config
and brew doctor
commandsbrew config
:
HOMEBREW_VERSION: 3.1.3-54-ge651c86
ORIGIN: https://github.com/Homebrew/brew
HEAD: e651c86b45b0c3e22446057dcfb6d501e6c601bb
Last commit: 33 minutes ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: dae145a633065636eb652767dcb3e3535dff3409
Core tap last commit: 2 hours ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: subl
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
CPU: octa-core 64-bit haswell
Clang: 12.0 build 1200
Git: 2.30.1 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 10.15.7-x86_64
CLT: 12.0.0.32.29
Xcode: 12.4
brew doctor
:
Warning: Some installed kegs have no formulae!
This means they were either deleted or installed with `brew diy`.
You should find replacements for the following formulae:
python@2
Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
[email protected]
ilmbase
Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
python@2
The standard non-keg brew install ffmpeg
installs successfully.
I verified that lame
is installed; it's at /usr/local/Cellar/lame/3.100
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.15.7
BuildVersion: 19H524
i'm not sure if this is considered as a problem of this repo.
please redirect me if it isn't.
i'm using ffmpeg from this repo and it works fine. (thank you)
however, when i want to try install other package which requires ffmpeg,
it complains.
e.g.
spacetanuki% brew install opencv
:
: (snip)
:
==> Installing dependencies for opencv: ffmpeg, imath, openexr, hdf5, netcdf and utf8cpp
Error: ffmpeg is already installed from homebrew-ffmpeg/ffmpeg!
Please `brew uninstall ffmpeg` first."
spacetanuki%
i want to see either of the followings.
brew install fails as cited above.
i forgot the exact commands used to install ffmpeg.
i think it was:
brew tap homebrew-ffmpeg/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac
and then i tried to install opencv.
brew install opencv
The output that you got:
spacetanuki% brew install opencv
==> Downloading https://ghcr.io/v2/homebrew/core/ffmpeg/manifests/4.4_1
Already downloaded: /Users/yamamoto/Library/Caches/Homebrew/downloads/7f449cedced71b413d29cd33a09cec7241ac8776daef78c5ecb1369905fb0f70--ffmpeg-4.4_1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/ffmpeg/blobs/sha256:ddacdae4682
Already downloaded: /Users/yamamoto/Library/Caches/Homebrew/downloads/3f69dda76b61881ca0c285c87b03a99461a555704022a788444072599e42424e--ffmpeg--4.4_1.mojave.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/imath/manifests/3.0.1
Already downloaded: /Users/yamamoto/Library/Caches/Homebrew/downloads/9cf029c0350192639f3b432d07b538bfa8bfe314eaa69cda5ea9c7e4ffa9c18b--imath-3.0.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/imath/blobs/sha256:fd2aa308bbed
Already downloaded: /Users/yamamoto/Library/Caches/Homebrew/downloads/1763900d8afd64047c61114ee5aa6fee8ccb335748595b60cdf277a1048dc5ce--imath--3.0.1.mojave.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/openexr/manifests/3.0.1
Already downloaded: /Users/yamamoto/Library/Caches/Homebrew/downloads/6c5fb1592474fc0ae24fe49970030661f093bc18cc80688877c049f42e86f873--openexr-3.0.1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/openexr/blobs/sha256:ea015fff42
Already downloaded: /Users/yamamoto/Library/Caches/Homebrew/downloads/5192ea8f936879a4ba0bd76bc711033c2c6b0cc11963b9a547f6ac132b45a62e--openexr--3.0.1.mojave.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/hdf5/manifests/1.12.0_4
Already downloaded: /Users/yamamoto/Library/Caches/Homebrew/downloads/8035852e2011c5acfc59a0508c54c616484e640f87cf19e8ee51994a4152b1f3--hdf5-1.12.0_4.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/hdf5/blobs/sha256:ce8acca1605e0
Already downloaded: /Users/yamamoto/Library/Caches/Homebrew/downloads/ab5ee58bb2a11d14fb9d0525873bdffc6c9f3718f69bba7c602821acb4e0575c--hdf5--1.12.0_4.mojave.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/netcdf/manifests/4.8.0_1
Already downloaded: /Users/yamamoto/Library/Caches/Homebrew/downloads/2c45073677a08cf0a48e3a17acfcefe027b6188ee5e085c4137976d442bf71ce--netcdf-4.8.0_1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/netcdf/blobs/sha256:7d0569b3e8c
Already downloaded: /Users/yamamoto/Library/Caches/Homebrew/downloads/0a451813008cf3b0b3edb1d6676cf3e1bdf4c1e7ebbc8f497f1f9d181bbec2b4--netcdf--4.8.0_1.mojave.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/utf8cpp/manifests/3.2
Already downloaded: /Users/yamamoto/Library/Caches/Homebrew/downloads/1770be9574c60ca5a8399f3a6195305b474c9190707d95bf670c6be47fa849b7--utf8cpp-3.2.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/utf8cpp/blobs/sha256:62e5e630be
Already downloaded: /Users/yamamoto/Library/Caches/Homebrew/downloads/41e35c9757c09fe2523780e18eee4dfda52d1dc824d139f5d4a61b59043880ba--utf8cpp--3.2.all.bottle.tar.gz
==> Downloading https://ghcr.io/v2/homebrew/core/opencv/manifests/4.5.2_1
Already downloaded: /Users/yamamoto/Library/Caches/Homebrew/downloads/9409deed27fbec22d6944db762fbe883dd4fa26e2dca7cd87c3202d99bda93d9--opencv-4.5.2_1.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/opencv/blobs/sha256:dc80f9e6bb9
Already downloaded: /Users/yamamoto/Library/Caches/Homebrew/downloads/925bd8782d6a3827d60197632c0a9d7de216d6671728b500802ad4bdf79d4950--opencv--4.5.2_1.mojave.bottle.tar.gz
==> Installing dependencies for opencv: ffmpeg, imath, openexr, hdf5, netcdf and utf8cpp
Error: ffmpeg is already installed from homebrew-ffmpeg/ffmpeg!
Please `brew uninstall ffmpeg` first."
spacetanuki%
brew config
and brew doctor
commandsbrew config
:
HOMEBREW_VERSION: 3.1.6-18-gfca0fb1
ORIGIN: https://github.com/Homebrew/brew
HEAD: fca0fb123de689ae654e51c6f52c81e4418f851f
Last commit: 81 minutes ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: a3826f51eb58a7f022a9025733bd9db5f9ca48d7
Core tap last commit: 73 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: vi
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
CPU: dodeca-core 64-bit kabylake
Clang: 11.0.0 build 1100
Git: 2.31.1 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
macOS: 10.14.6-x86_64
CLT: 10.3.0.0.1.1562985497
Xcode: 11.3.1
brew doctor
:
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
Alternatively, manually download them from:
https://developer.apple.com/download/more/.
Warning: Some installed kegs have no formulae!
This means they were either deleted or installed with `brew diy`.
You should find replacements for the following formulae:
unrar
flock
Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
dep
[email protected]
ilmbase
[email protected]
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/ss_conn_lib2.dylib
Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
mercurial
wireshark
Warning: Some taps are not on the default git origin branch and may not receive
updates. If this is a surprise to you, check out the default branch with:
git -C $(brew --repo osx-cross/avr) checkout master
Warning: /usr/bin occurs before /usr/local/bin in your PATH.
This means that system-provided programs will be used instead of those
provided by Homebrew. Consider setting your PATH so that
/usr/local/bin occurs before /usr/bin. Here is a one-liner:
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.zshrc
The following tools exist at both paths:
git-receive-pack
bashbug
ndisasm
nasm
git-upload-archive
patch
git-cvsserver
git-shell
git-upload-pack
git
I tried to install with ffmpeg with game-music-emu
. The install works well but then I get the following error:
dyld: Library not loaded: @rpath/libclang_rt.ubsan_osx_dynamic.dylib
Referenced from: /usr/local/opt/game-music-emu/lib/libgme.0.dylib
Reason: image not found
zsh: abort ffmpeg
Reinstalling without the --with-game-music-emu
option works fine.
This error with the homebrew-ffmpeg install occurs on Mac OS 10.12.6
I have aborted the svtplay-dl install, while the gcc dependency install was under way during the install process.
When trying to use the existing (and well working, ffmpeg 4.2.2) only minutes afterwards, ffmpeg could not find some dependencies (dylib) and gave error message, indicating that it was unusable, all of the sudden.
I did brew cleanup, and tried to install the homebrew-ffmpeg, since it allows the libfdk-aac usage.
This install, and even the ordinary "brew install ffmpeg" results in identical error messages:
`==> Installing dependencies for homebrew-ffmpeg/ffmpeg/ffmpeg: icu4c and x264
==> Installing homebrew-ffmpeg/ffmpeg/ffmpeg dependency: icu4c
==> ./configure --prefix=/usr/local/Cellar/icu4c/67.1 --disable-samples --disable-tests --enable-static --w
==> make
Last 15 lines from /Users/sejo/Library/Logs/Homebrew/icu4c/02.make:
./formatted_string_builder.h:227:9: note: subexpression not valid in a constant expression
U_ASSERT(category <= 0xf),
^
../common/uassert.h:35:26: note: expanded from macro 'U_ASSERT'
"#" define U_ASSERT(exp) void()
^
./formatted_string_builder.h:240:64: note: in call to 'Field(0, 1)'
constexpr FormattedStringBuilder::Field kGeneralNumericField = {UFIELD_CATEGORY_UNDEFINED, 1};
^
3 errors generated.
*** Failed compilation command follows: ----------------------------------------------------------
clang++ -DU_ATTRIBUTE_DEPRECATED= -DU_I18N_IMPLEMENTATION -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1 -DU_HAVE_STRING_VIEW=1 -I. -I../common -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -Qunused-arguments -Wno-parentheses-equality -Wglobal-constructors -fvisibility=hidden -fno-common -c -MMD -MT numfmt.d numfmt.o numfmt.ao -o numfmt.ao numfmt.cpp
--- ( rebuild with "/Library/Developer/CommandLineTools/usr/bin/make VERBOSE=1 all" to show all parameters ) --------
make[1]: *** [numfmt.ao] Error 1
make: *** [all-recursive] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
Error: You are using macOS 10.12.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this old version.`
The previous version of gcc was 4.2.2, installed with -libfdk (which I really needed) and it worked without any problem.
Is there any solution to this (it seems) newly aroused issue with ffmpeg with homebrew on Mac OS 10.12?
See #3
FFmpeg with decklink support be installed.
Installation stopped and reported errors.
The exact command you were trying to run:
brew install decklinksdk
brew tap homebrew-ffmpeg/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-srt --with-decklink
The output that you got:
==> Downloading https://ffmpeg.org/releases/ffmpeg-4.4.1.tar.xz
Already downloaded: /Users/huangxiao/Library/Caches/Homebrew/downloads/773e1876937ced8b367a77129340b5016c93a697e66b232d7cc02f40950a9c4b--ffmpeg-4.4.1.tar.xz
==> Reinstalling homebrew-ffmpeg/ffmpeg/ffmpeg --with-decklink --with-srt
==> ./configure --prefix=/opt/homebrew/Cellar/ffmpeg/4.4.1-with-options --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libaom --enable-libdav1d --enable-libmp3lame --enabl
==> make install
Last 15 lines from /Users/huangxiao/Library/Logs/Homebrew/ffmpeg/02.make:
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/atomic:1862:21: error: unknown type name 'ptrdiff_t'
_Tp* operator-=(ptrdiff_t __op) volatile _NOEXCEPT {return fetch_sub(__op) - __op;}
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/atomic:1864:21: error: unknown type name 'ptrdiff_t'
_Tp* operator-=(ptrdiff_t __op) _NOEXCEPT {return fetch_sub(__op) - __op;}
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
3 errors generated.
make: *** [libavdevice/decklink_common.o] Error 1
make: *** Waiting for unfinished jobs....
20 errors generated.
make: *** [libavdevice/decklink_enc.o] Error 1
20 errors generated.
make: *** [libavdevice/decklink_dec.o] Error 1
Do not report this issue to Homebrew/brew or Homebrew/core!
ffmpeg
configuration:ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers
built with Apple clang version 11.0.3 (clang-1103.0.32.62)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3-with-options_2 --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --disable-libjack --disable-indev=jack --enable-opencl --enable-videotoolbox --disable-htmlpages --enable-chromaprint --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfdk-aac --enable-libgme --enable-libgsm --enable-libmodplug --enable-libopenh264 --enable-libopenjpeg --enable-librav1e --enable-librsvg --enable-librtmp --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtesseract --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libwavpack --enable-libwebp --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-openssl --enable-nonfree --enable-decklink --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/include --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Install script: A custom script for installing ffmpeg with all possible options (note, running brew upgrade
after running this script does break ffmpeg
due to mismatched library versions)
Script run: A custom script for compounding compression artifacts
Expected Behavior: Successful conversion
Actual Behavior:
==34202==ERROR: UndefinedBehaviorSanitizer: SEGV on unknown address (pc 0x00010f23b66b bp 0x7fcee0f122e0 sp 0x700010447508 T5800064)
==34202==The signal is caused by a READ memory access.
==34202==Hint: this fault was caused by a dereference of a high value address (see registers below). Dissassemble the provided pc to learn which register value was used.
#0 0x10f23b66a (libavcodec.58.91.100.dylib:x86_64+0x5f666a)ate= 224.6kbits/s speed=0.558x
==34202==Register values:
rax = 0x0000000000000000 rbx = 0x0000700010447530 rcx = 0x0000000000000001 rdx = 0x0000700010447cb0
rdi = 0x00007fcee0f15b28 rsi = 0x00000000000003c0 rbp = 0x00007fcee0f122e0 rsp = 0x0000700010447508
r8 = 0x0000000000000000 r9 = 0x0000000000000040 r10 = 0x0000000000000000 r11 = 0x0000000000000040
r12 = 0x0000000000000008 r13 = 0x00000000000003c0 r14 = 0x0000000000000006 r15 = 0x0000000000000010
UndefinedBehaviorSanitizer can not provide additional info.
==34202==ABORTING
I want to add gl transition extra lib to my ffmpeg. https://github.com/transitive-bullshit/ffmpeg-gl-transition
is there a way I can implement to add this feature?
homebrew-ffmpeg
tap only. Please do not file a bug report if your issue relates to any of the following:
ffmpeg
formula officially supplied by Homebrewffmpeg-user
mailing list)Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information.
brew update
and can still reproduce the problembrew doctor
, fixed all issues and can still reproduce the problembrew config
and brew doctor
and included their output with my issueffmpeg
versionCompilation and installation of ffmpeg according to flags.
make process aborts with error message
The exact command you were trying to run:
brew install homebrew-ffmpeg/ffmpeg/ffmpeg -s --with-srt [email protected] --with-openssl --with-openjpeg --with-decklink --with-fdk-aac --with-libssh --with-game-music-emu
The output that you got:
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 108 formulae.
==> Updated Casks
Updated 54 casks.
==> Deleted Casks
clipbuddy cliqz cuteclips tracks-live
==> Installing ffmpeg from homebrew-ffmpeg/ffmpeg
==> Downloading https://ghcr.io/v2/homebrew/core/srt/manifests/1.4.3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/srt/blobs/sha256:5f8231fcfa94e640638c5a6b38e75630d48338118a578308dea0fa7e0deaadfd
==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs/sha256:5f8231fcfa94e640638c5a6b38e75630d48338118a578308dea0fa7e0deaadfd?se=2
######################################################################## 100.0%
==> Downloading https://ffmpeg.org/releases/ffmpeg-4.4.tar.xz
Already downloaded: /Users/luke/Library/Caches/Homebrew/downloads/837c094bbbd62f9664825da5b8206acd9a27ed63510f91410034a4a1572d3750--ffmpeg-4.4.tar.xz
==> Installing dependencies for homebrew-ffmpeg/ffmpeg/ffmpeg: srt
==> Installing homebrew-ffmpeg/ffmpeg/ffmpeg dependency: srt
==> Pouring srt--1.4.3.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/srt/1.4.3: 20 files, 4.2MB
==> Installing homebrew-ffmpeg/ffmpeg/ffmpeg --with-decklink --with-fdk-aac --with-game-music-emu --with-libssh --with-openjpeg --with-openssl --wi
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/4.4-with-options --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libaom --e
==> make install
Last 15 lines from /Users/luke/Library/Logs/Homebrew/ffmpeg/02.make:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/atomic:1847:21: error: unknown type name 'ptrdiff_t'
_Tp* operator-=(ptrdiff_t __op) volatile _NOEXCEPT {return fetch_sub(__op) - __op;}
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/atomic:1849:21: error: unknown type name 'ptrdiff_t'
_Tp* operator-=(ptrdiff_t __op) _NOEXCEPT {return fetch_sub(__op) - __op;}
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/atomic:2182:46: error: unknown type name 'ptrdiff_t'
atomic_fetch_add(volatile atomic<_Tp*>* __o, ptrdiff_t __op) _NOEXCEPT
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
3 errors generated.
make: *** [libavdevice/decklink_common.o] Error 1
make: *** Waiting for unfinished jobs....
20 errors generated.
make: *** [libavdevice/decklink_dec.o] Error 1
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/homebrew-ffmpeg/homebrew-ffmpeg/issues
brew config
and brew doctor
commandsbrew config
:
HOMEBREW_VERSION: 3.1.3
ORIGIN: https://github.com/Homebrew/brew
HEAD: d89eda09abbeae907eb88bd6d01dc9cde7ff0e19
Last commit: 8 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 5571ad2bec4ef62ba3b28b51528bcd74899a31d3
Core tap last commit: 17 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: quad-core 64-bit ivybridge
Clang: 12.0 build 1205
Git: 2.30.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.2.3-x86_64
CLT: 12.4.0.0.1.1610135815
Xcode: 12.5
brew doctor
:
Your system is ready to brew.
homebrew-ffmpeg
tap only. Please do not file a bug report if your issue relates to any of the following:
ffmpeg
formula officially supplied by Homebrewffmpeg-user
mailing list)Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information.
brew update
and can still reproduce the problembrew doctor
, fixed all issues and can still reproduce the problembrew config
and brew doctor
and included their output with my issueffmpeg
versionRun brew upgrade
to install new version.
Upgrade failed:
==> Upgrading homebrew-ffmpeg/ffmpeg/ffmpeg
5.0.1-with-options_5 -> 5.1-with-options --with-fdk-aac --with-game-music-emu --with-jack --with-libmodplug --with-libopenmpt --with-librist --with-librsvg --w
Error: An exception occurred within a child process:
Utils::Inreplace::Error: inreplace failed
doc/filters.texi:
expected replacement of "/usr/local/share/model" with #<Pathname:/opt/homebrew/share/libvmaf/model>
The exact command you were trying to run:
brew update; brew upgrade
The output that you got:
<add output here>
brew config
and brew doctor
commandsbrew config
:
HOMEBREW_VERSION: 3.5.6-28-g5080312
ORIGIN: https://github.com/Homebrew/brew
HEAD: 5080312bdd6abee6066291e3b3b7b3f15d249b64
Last commit: 9 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ee113d3a163a30b221df4994e08a883556de6111
Core tap last commit: 57 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_ENV_HINTS: set
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 13.1.6 build 1316
Git: 2.37.1 => /opt/homebrew/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.5-arm64
CLT: 13.4.0.0.1.1651278267
Xcode: 13.4.1
Rosetta 2: false
brew doctor
:
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
ffmpeg
docker
numpy
pillow
libomp
Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information.
brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew config
and brew doctor
and included their output with your issue?Tried running youtube-dl
with only -v
option. Usually this downloads the video and audio and merges them.
It fails when FFMpeg tries to merge video and audio:
ERROR:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/youtube-dl/2021.3.3/libexec/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 2102, in post_process
files_to_delete, info = pp.run(info)
File "/opt/homebrew/Cellar/youtube-dl/2021.3.3/libexec/lib/python3.9/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 523, in run
self.run_ffmpeg_multiple_files(info['__files_to_merge'], temp_filename, args)
File "/opt/homebrew/Cellar/youtube-dl/2021.3.3/libexec/lib/python3.9/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 235, in run_ffmpeg_multiple_files
raise FFmpegPostProcessorError(msg)
youtube_dl.postprocessor.ffmpeg.FFmpegPostProcessorError
The exact command you were trying to run:
youtube-dl -v https://youtu.be/XHPDMvjHNu4
The output that you got:
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://youtu.be/XHPDMvjHNu4']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.03.03
[debug] Git HEAD: 8b677c0dd
[debug] Python version 3.9.2 (CPython) - macOS-11.2.3-arm64-arm-64bit
[debug] exe versions: ffmpeg present, ffprobe present, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] XHPDMvjHNu4: Downloading webpage
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://r4---sn-n4v7sn7z.googlevideo.com/videoplayback?expire=1615505328&ei=UFNKYLHcDMTikgaEyYz4DQ&ip=2601%3A645%3A8800%3Aa0%3Ac1fb%3A8c72%3A3d3d%3A5fde&id=o-AC-QOBhJdlwy5znH7b-LC4zyjab6L24MFI3KJD9ZLPZ4&itag=136&aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278&source=youtube&requiressl=yes&mh=qi&mm=31%2C29&mn=sn-n4v7sn7z%2Csn-n4v7knlk&ms=au%2Crdu&mv=m&mvi=4&pl=34&initcwndbps=1787500&vprv=1&mime=video%2Fmp4&ns=KrV1KaPXHg4GYtvIKrz_7dYF&gir=yes&clen=3908261&dur=23.490&lmt=1564615225707286&mt=1615483505&fvip=4&keepalive=yes&fexp=24001374%2C24007246&c=WEB&txp=5432432&n=Y1Pm1zlSqgtc2DKZW&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgBtfjztFffGSmDnWzTiPg8i2EByzYlVSFVNdlxKZ_rJsCIQD-tPXu1EzpsPqrF-S6BT9kchMme9nK9BDP9bn5Qi16bg%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAOPz9u-fxffkG2PynUABxkJhnFajm5r_pIUNc9097SzuAiEAi1EWqE5ep1nlTK0F_g_NFqmzQiR4Hura6Ct8Cn47t9c%3D'
[download] Destination: IMVU - The #1 Social Experience on Android-XHPDMvjHNu4.f136.mp4
[download] 100% of 3.73MiB in 00:00
[debug] Invoking downloader on 'https://r4---sn-n4v7sn7z.googlevideo.com/videoplayback?expire=1615505328&ei=UFNKYLHcDMTikgaEyYz4DQ&ip=2601%3A645%3A8800%3Aa0%3Ac1fb%3A8c72%3A3d3d%3A5fde&id=o-AC-QOBhJdlwy5znH7b-LC4zyjab6L24MFI3KJD9ZLPZ4&itag=140&source=youtube&requiressl=yes&mh=qi&mm=31%2C29&mn=sn-n4v7sn7z%2Csn-n4v7knlk&ms=au%2Crdu&mv=m&mvi=4&pl=34&initcwndbps=1787500&vprv=1&mime=audio%2Fmp4&ns=KrV1KaPXHg4GYtvIKrz_7dYF&gir=yes&clen=381788&dur=23.545&lmt=1564615046935532&mt=1615483505&fvip=4&keepalive=yes&fexp=24001374%2C24007246&c=WEB&txp=5431432&n=Y1Pm1zlSqgtc2DKZW&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAMjtBedNjxgvLEoOA0GV_3RqaQB7csKIniKke1nSPix1AiB2bNfUVVD-lUoqdC1dwqeNj0rIB8XFkYt6IciLQKH0JA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAOPz9u-fxffkG2PynUABxkJhnFajm5r_pIUNc9097SzuAiEAi1EWqE5ep1nlTK0F_g_NFqmzQiR4Hura6Ct8Cn47t9c%3D'
[download] Destination: IMVU - The #1 Social Experience on Android-XHPDMvjHNu4.f140.m4a
[download] 100% of 372.84KiB in 00:00
[ffmpeg] Merging formats into "IMVU - The #1 Social Experience on Android-XHPDMvjHNu4.mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:IMVU - The #1 Social Experience on Android-XHPDMvjHNu4.f136.mp4' -i 'file:IMVU - The #1 Social Experience on Android-XHPDMvjHNu4.f140.m4a' -c copy -map 0:v:0 -map 1:a:0 'file:IMVU - The #1 Social Experience on Android-XHPDMvjHNu4.temp.mp4'
ERROR:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/youtube-dl/2021.3.3/libexec/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 2102, in post_process
files_to_delete, info = pp.run(info)
File "/opt/homebrew/Cellar/youtube-dl/2021.3.3/libexec/lib/python3.9/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 523, in run
self.run_ffmpeg_multiple_files(info['__files_to_merge'], temp_filename, args)
File "/opt/homebrew/Cellar/youtube-dl/2021.3.3/libexec/lib/python3.9/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 235, in run_ffmpeg_multiple_files
raise FFmpegPostProcessorError(msg)
youtube_dl.postprocessor.ffmpeg.FFmpegPostProcessorError
brew config
and brew doctor
commandsHOMEBREW_VERSION: 3.0.5
ORIGIN: https://github.com/Homebrew/brew
HEAD: 8b677c0ddd5f96b5521c1b353a9ca07dfe57b80e
Last commit: 2 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 364cc53cac316509ceb97f087c60796d3ddc5ab5
Core tap last commit: 35 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 12.0 build 1200
Git: 2.24.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.2.3-arm64
CLT: N/A
Xcode: 12.4
Rosetta 2: false
Your system is ready to brew.
Hello,
I use both a utility called "unpaper" (for turning scans into PDF) and your unofficial "ffmpeg" (for audio and video)."unpaper" depends on the official "ffmpeg", so I use the trick described here:
https://github.com/homebrew-ffmpeg/homebrew-ffmpeg#troubleshooting
to circumvent this dependency. This has always worked for years until now. However, after I did the latest update of Homebrew and the formulas today, "unpaper" won't run anymore. It says:
% unpaper
dyld[35533]: Library not loaded: /usr/local/opt/ffmpeg/lib/libavformat.59.dylib
Referenced from: <A1443G1M-27DD-2980-AFBB-3846C04B7FGG> /usr/local/Cellar/unpaper/7.0.0/bin/unpaper
Reason: tried: '/usr/local/opt/ffmpeg/lib/libavformat.59.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/ffmpeg/lib/libavformat.59.dylib' (no such file), '/usr/local/opt/ffmpeg/lib/libavformat.59.dylib' (no such file), '/usr/local/lib/libavformat.59.dylib' (no such file), '/usr/lib/libavformat.59.dylib' (no such file, not in dyld cache), '/usr/local/Cellar/ffmpeg/6.0-with-options/lib/libavformat.59.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/Cellar/ffmpeg/6.0-with-options/lib/libavformat.59.dylib' (no such file), '/usr/local/Cellar/ffmpeg/6.0-with-options/lib/libavformat.59.dylib' (no such file), '/usr/local/lib/libavformat.59.dylib' (no such file), '/usr/lib/libavformat.59.dylib' (no such file, not in dyld cache)
zsh: abort unpaper
My understanding from all those messages (correct me if I'm wrong) is that "unpaper" is looking for version 5.x, but your unofficial "ffmpeg" has since moved to version 6.
Here is the DYLIB files on my computer:
% ls -1 /usr/local/opt/ffmpeg/lib/
libavcodec.60.3.100.dylib
libavcodec.60.dylib
libavcodec.a
libavcodec.dylib
libavdevice.60.1.100.dylib
libavdevice.60.dylib
libavdevice.a
libavdevice.dylib
libavfilter.9.3.100.dylib
libavfilter.9.dylib
libavfilter.a
libavfilter.dylib
libavformat.60.3.100.dylib
libavformat.60.dylib
libavformat.a
libavformat.dylib
libavutil.58.2.100.dylib
libavutil.58.dylib
libavutil.a
libavutil.dylib
libpostproc.57.1.100.dylib
libpostproc.57.dylib
libpostproc.a
libpostproc.dylib
libswresample.4.10.100.dylib
libswresample.4.dylib
libswresample.a
libswresample.dylib
libswscale.7.1.100.dylib
libswscale.7.dylib
libswscale.a
libswscale.dylib
pkgconfig
In this scenario, how can I make coexist "unpaper" and your unofficial "ffmpeg"?
hello,
when I use " brew upgrade homebrew-ffmpeg/ffmpeg/ffmpeg " , I get an error "ERROR: libmp3lame >= 3.98.3 not found"..
brew update
and can still reproduce the problembrew doctor
, fixed all issues and can still reproduce the problembrew config
and brew doctor
and included their output with my issueffmpeg
versionBrew doctor output:
Should be able to use commands to convert videos to HVEC
What happened?
The command didn't work
The exact command you were trying to run:
ffmpeg -vcodec libx265 -crf 28 -i input.mp4 output.mp4
The output that you got:
ffmpeg version 5.1 Copyright (c) 2000-2022 the FFmpeg developers
built with Apple clang version 13.1.6 (clang-1316.0.21.2.5)
configuration: --prefix=/usr/local/Cellar/ffmpeg/5.1-with-options_1 --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-demuxer=dash --enable-opencl --enable-audiotoolbox --enable-videotoolbox --disable-htmlpages
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
Unknown decoder 'libx265'
brew config
and brew doctor
commandsbrew config
:
HOMEBREW_VERSION: 3.5.7
ORIGIN: https://github.com/Homebrew/brew
HEAD: ce8ef89ec0cfe875c48c3a83a843af9074c05930
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: b80ccf81ce9f899c2555fa341a4326ea9c3a2584
Core tap last commit: 40 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: /usr/local/bin/nvim
HOMEBREW_MAKE_JOBS: 16
Homebrew Ruby: 2.6.8 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8_1/bin/ruby
CPU: 16-core 64-bit kabylake
Clang: 13.1.6 build 1316
Git: 2.28.0 => /usr/local/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.5-x86_64
CLT: 13.4.0.0.1.1651278267
Xcode: N/A
brew doctor
:
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
[email protected]
[email protected]
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libwkhtmltox.0.12.6.dylib
I have a machine in the latest Catalina version that had 2 ffmpeg binaries, one from miniconda, and the other from homebrew. I removed miniconda completely and the homebrew one too. I instaled it using your tap but it's giving me segmentation fault error. I did the same thing on another laptop except this one only had the homebrew installation and it's working properly.
Hi,
wanting to install ffmpeg with the libvamf option as described here: https://github.com/homebrew-ffmpeg/homebrew-ffmpeg, I encountered following error in the build process:
marcelgeibel@Marcels-MBP-2 ~ % brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-libvmaf
==> Installing ffmpeg from homebrew-ffmpeg/ffmpeg
==> Downloading https://ffmpeg.org/releases/ffmpeg-4.4.tar.xz
Already downloaded: /Users/marcelgeibel/Library/Caches/Homebrew/downloads/837c094bbbd62f9664825da5b8206acd9a27ed63510f91410034a4a1572d3750--ffmpeg-4.4.tar.xz
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/4.4-with-options --enable-shar
==> make install
Last 15 lines from /Users/marcelgeibel/Library/Logs/Homebrew/ffmpeg/02.make:
INSTALL libavfilter/version.h
GEN libavfilter/libavfilter.pc
./ffbuild/pkgconfig_generate.sh: line 21: libswscale/libswscale.version: Interrupted system call
make: *** [libavdevice/libavdevice.pc] Error 1
make: *** Waiting for unfinished jobs....
INSTALL libavformat/avformat.h
INSTALL libavformat/avio.h
INSTALL libavformat/version.h
STRIP libswresample/x86/audio_convert.o
STRIP libavcodec/x86/vp9lpf_16bpp.o
STRIP libavcodec/x86/simple_idct.o
STRIP libavcodec/x86/vp9itxfm_16bpp.o
STRIP libavcodec/x86/hevc_mc.o
STRIP libavcodec/x86/vp9lpf.o
STRIP libavcodec/x86/vp9itxfm.o
Is there a fix to this error? Thanks!
brew update
and can still reproduce the problembrew doctor
, fixed all issues and can still reproduce the problembrew config
and brew doctor
and included their output with my issueffmpeg
versionTap is reachable when running brew update command (with no errors).
When running update command, there is an error fetching the tap (failed to reach). Have had ffmpeg installed and updating since June and had no issues installed (have the latest X-code tools).
The exact command you were trying to run:
brew update
The output that you got:
Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew-ffmpeg/homebrew-ffmpeg failed!
brew config
and brew doctor
commandsbrew config
:
HOMEBREW_VERSION: 3.0.7
ORIGIN: https://github.com/Homebrew/brew
HEAD: 59ada80ca740e72d29e625079395ee91cae4b3cf
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 77345310f03b0dd8c6f16b79d50b9c49dc0e7e5f
Core tap last commit: 6 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 4
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: quad-core 64-bit kabylake
Clang: 12.0 build 1200
Git: 2.31.0 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.2.3-x86_64
CLT: 12.4.0.0.1.1610135815
Xcode: N/A
brew doctor
:
Your system is ready to brew.
Posted in slhck/ffmpeg-quality-metrics#17:
/bin/sh -c brew tap homebrew-ffmpeg/ffmpeg && brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-libvmaf
==> Tapping homebrew-ffmpeg/ffmpeg
Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew-ffmpeg/homebrew-ffmpeg'...
Tapped 1 formula (29 files, 198.7KB).
==> Installing ffmpeg from homebrew-ffmpeg/ffmpeg
==> Tapping linuxbrew/xorg
Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/linuxbrew/homebrew-xorg'...
Tapped 112 formulae (151 files, 1.7MB).
Error: No available formula with the name "linuxbrew/xorg/libxv" (dependency of homebrew-ffmpeg/ffmpeg/ffmpeg)
==> Searching for a previously deleted formula (in the last month)...
linuxbrew/xorg/libxv was deleted from linuxbrew/xorg in commit 8d4b5f8:
xorg: migrate to homebrew-core
See Homebrew/homebrew-core#57995
To show the formula before removal run:
git -C "$(brew --repo linuxbrew/xorg)" show 8d4b5f8^:Formula/libxv.rb
If you still use this formula consider creating your own tap:
https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap
The command '/bin/sh -c brew tap homebrew-ffmpeg/ffmpeg && brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-libvmaf' returned a non-zero code: 1
Seems we should simply remove the linuxbrew
prefix in the dependency, but I can only test this later on a Linux machine.
Would it be possible to have an option where all of the ffmpeg options are installed with one command?
brew update
and can still reproduce the problembrew doctor
, fixed all issues and can still reproduce the problembrew config
and brew doctor
and included their output with my issueffmpeg
versionopencv_annotation should run without issues, when installing this tap.
I had installed previously this tap already including all options, but when I have to install opencv, I have to wipe ffmpeg first to be able to install opencv correctly.
After opencv installation including the base FFmpeg, opencv_annotation just runs fine. However after installing "homebrew-ffmpeg" it seems to be missing the libavresample dylib.
Thank you,
Joachim
opencv_annotation
The output that you got:
dyld: Library not loaded: /usr/local/opt/ffmpeg/lib/libavresample.4.dylib
Referenced from: /usr/local/Cellar/opencv/4.5.3_3/lib/libopencv_videoio.4.5.3.dylib
Reason: image not found
Abort trap: 6
brew config
and brew doctor
commandsbrew config
:
HOMEBREW_VERSION: 3.3.3-36-g0730fa7
ORIGIN: https://github.com/Homebrew/brew
HEAD: 0730fa74f654845598b8bb48dc5bccb3a07ef2f1
Last commit: 14 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 7949d844e9426e3d21c2b35e9317944c043a8297
Core tap last commit: 58 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.eUmjQldbiK/org.xquartz:0
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.8 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.8/bin/ruby
CPU: octa-core 64-bit haswell
Clang: 12.0.0 build 1200
Git: 2.33.1 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 10.15.7-x86_64
CLT: 12.0.0.32.29
Xcode: 12.4 => /Applications/Development/Xcode.app/Contents/Developer
brew doctor
:
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
ilmbase
libelf
using this example from the ffmpeg doc:
ffmpeg -re -i input -f mpegts zmq:tcp://127.0.0.1:5555
just produces the error:
zmq:tcp://127.0.0.1:5555: Protocol not found
running brew on OSX 10.13.6
brew did install the option:
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
built with Apple LLVM version 10.0.0 (clang-1000.10.44.4)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.1-with-options_2 --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libaom --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --disable-libjack --disable-indev=jack --enable-opencl --enable-videotoolbox --disable-htmlpages --enable-libzmq
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
brew update
and can still reproduce the problembrew doctor
, fixed all issues and can still reproduce the problembrew config
and brew doctor
and included their output with my issueffmpeg
versionExpected to be able to use fdk-aac
and rav1e
codecs after installing them with Homebrew options as demonstrated in this article.
The codecs could not be found (unknown encoder error)
The exact command you were trying to run:
brew tap homebrew-ffmpeg/ffmpeg
brew options homebrew-ffmpeg/ffmpeg/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac --with-rav1e
ffmpeg -i SOURCE.mov -map_metadata -1 -c:a libfdk_aac -c:v libx264 -crf 24 -preset veryslow -profile:v main -pix_fmt yuv420p -movflags +faststart -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.h264.mp4
ffmpeg -i SOURCE.mov -map_metadata -1 -c:a libopus -c:v librav1e -qp 80 -tile-columns 2 -tile-rows 2 -pix_fmt yuv420p -movflags +faststart -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.av1.mp4
ffmpeg -i SOURCE.mov -map_metadata -1 -c:a libfdk_aac -c:v libx265 -crf 24 -preset veryslow -pix_fmt yuv420p -movflags +faststart -tag:v hvc1 -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.hevc.mp4
The output that you got:
➜ brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac --with-rav1e
==> Downloading https://formulae.brew.sh/api/formula.jws.json
==> Fetching homebrew-ffmpeg/ffmpeg/ffmpeg
==> Downloading https://ffmpeg.org/releases/ffmpeg-6.0.tar.xz
Already downloaded: /Users/niels/Library/Caches/Homebrew/downloads/cde06afa988dec3565a51f2a2b503db685b5a78ba8ecc7f3c95562c750a9d838--ffmpeg-6.0.tar.xz
==> Installing ffmpeg from homebrew-ffmpeg/ffmpeg
==> ./configure --prefix=/opt/homebrew/Cellar/ffmpeg/6.0-with-options --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis -
==> make install
==> make alltools
==> Downloading https://formulae.brew.sh/api/cask.jws.json
#=#=#
🍺 /opt/homebrew/Cellar/ffmpeg/6.0-with-options: 283 files, 48.5MB, built in 1 minute 51 seconds
==> Running `brew cleanup ffmpeg`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
➜ ffmpeg -i SOURCE.mov -map_metadata -1 -c:a libfdk_aac -c:v libx264 -crf 24 -preset veryslow -profile:v main -pix_fmt yuv420p -movflags +faststart -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.h264.mp4
ffmpeg version 5.1.2-tessus Copyright (c) 2000-2022 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.17)
configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'SOURCE.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2022-06-09T14:44:25.000000Z
Duration: 00:00:05.17, start: 0.000000, bitrate: 1631113 kb/s
Stream #0:0[0x1](eng): Video: prores (HQ) (apch / 0x68637061), yuv422p10le(tv, bt709, progressive), 3840x2160, 1627953 kb/s, SAR 1:1 DAR 16:9, 60 fps, 60 tbr, 60 tbn (default)
Metadata:
creation_time : 2022-06-09T14:44:25.000000Z
handler_name : Apple Video Media Handler
vendor_id : appl
encoder : Apple ProRes 422 HQ
timecode : 00:00:00:00
Stream #0:1[0x2](eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:
creation_time : 2022-06-09T14:44:25.000000Z
handler_name : Apple Sound Media Handler
vendor_id :
timecode : 00:00:00:00
Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
Metadata:
creation_time : 2022-06-09T14:44:25.000000Z
handler_name : Time Code Media Handler
timecode : 00:00:00:00
Unknown encoder 'libfdk_aac'
➜ ffmpeg -i SOURCE.mov -map_metadata -1 -c:a libopus -c:v librav1e -qp 80 -tile-columns 2 -tile-rows 2 -pix_fmt yuv420p -movflags +faststart -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.av1.mp4
ffmpeg version 5.1.2-tessus Copyright (c) 2000-2022 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.17)
configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'SOURCE.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2022-06-09T14:44:25.000000Z
Duration: 00:00:05.17, start: 0.000000, bitrate: 1631113 kb/s
Stream #0:0[0x1](eng): Video: prores (HQ) (apch / 0x68637061), yuv422p10le(tv, bt709, progressive), 3840x2160, 1627953 kb/s, SAR 1:1 DAR 16:9, 60 fps, 60 tbr, 60 tbn (default)
Metadata:
creation_time : 2022-06-09T14:44:25.000000Z
handler_name : Apple Video Media Handler
vendor_id : appl
encoder : Apple ProRes 422 HQ
timecode : 00:00:00:00
Stream #0:1[0x2](eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:
creation_time : 2022-06-09T14:44:25.000000Z
handler_name : Apple Sound Media Handler
vendor_id :
timecode : 00:00:00:00
Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
Metadata:
creation_time : 2022-06-09T14:44:25.000000Z
handler_name : Time Code Media Handler
timecode : 00:00:00:00
Unknown encoder 'librav1e'
➜ ffmpeg -i SOURCE.mov -map_metadata -1 -c:a libfdk_aac -c:v libx265 -crf 24 -preset veryslow -pix_fmt yuv420p -movflags +faststart -tag:v hvc1 -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.hevc.mp4
ffmpeg version 5.1.2-tessus Copyright (c) 2000-2022 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.17)
configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'SOURCE.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2022-06-09T14:44:25.000000Z
Duration: 00:00:05.17, start: 0.000000, bitrate: 1631113 kb/s
Stream #0:0[0x1](eng): Video: prores (HQ) (apch / 0x68637061), yuv422p10le(tv, bt709, progressive), 3840x2160, 1627953 kb/s, SAR 1:1 DAR 16:9, 60 fps, 60 tbr, 60 tbn (default)
Metadata:
creation_time : 2022-06-09T14:44:25.000000Z
handler_name : Apple Video Media Handler
vendor_id : appl
encoder : Apple ProRes 422 HQ
timecode : 00:00:00:00
Stream #0:1[0x2](eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:
creation_time : 2022-06-09T14:44:25.000000Z
handler_name : Apple Sound Media Handler
vendor_id :
timecode : 00:00:00:00
Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
Metadata:
creation_time : 2022-06-09T14:44:25.000000Z
handler_name : Time Code Media Handler
timecode : 00:00:00:00
Unknown encoder 'libfdk_aac'
brew config
and brew doctor
commandsbrew config
:
➜ brew config
HOMEBREW_VERSION: 4.0.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: 4d0154fa7926e8a7b06e9b074dd45957e820407c
Last commit: 7 days ago
Core tap origin: https://github.com/Homebrew/homebrew-core
Core tap HEAD: (none)
Core tap last commit: never
Core tap branch: HEAD
Core tap JSON: 06 Mar 09:42 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 13.1.6 build 1316
Git: 2.32.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.77.0 => /usr/bin/curl
macOS: 12.0.1-arm64
CLT: 13.4.0.0.1.1651278267
Xcode: N/A
Rosetta 2: false
brew doctor
:
➜ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Homebrew/homebrew-core was not tapped properly! Run:
rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core
Warning: Some installed kegs have no formulae!
This means they were either deleted or installed manually.
You should find replacements for the following formulae:
lame
pkg-config
libtiff
fdk-aac
xorgproto
libidn2
libunibreak
libxau
little-cms2
libpng
frei0r
pixman
libxdmcp
opus
freetype
rtmpdump
imath
libvorbis
libunistring
highway
brotli
libogg
icu4c
harfbuzz
glib
libxcb
aom
lz4
graphite2
cairo
webp
fribidi
xz
libnghttp2
openexr
fontconfig
curl
giflib
libvpx
libxrender
snappy
libvmaf
ca-certificates
gettext
libssh2
zstd
dav1d
rav1e
libxext
pcre2
[email protected]
x264
jpeg-xl
x265
theora
openldap
sdl2
libass
libx11
lzo
jpeg-turbo
Warning: Some taps are not on the default git origin branch and may not receive
updates. If this is a surprise to you, check out the default branch with:
git -C $(brew --repo homebrew/core) checkout master
Taking what is there from varenc/homebrew-ffmpeg#10:
FROM ubuntu:bionic
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl file g++ git locales make uuid-runtime python3-pip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -f UTF-8 en_US.UTF-8 \
&& useradd -m -s /bin/bash linuxbrew \
&& echo 'linuxbrew ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers
USER linuxbrew
WORKDIR /home/linuxbrew
ENV PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH \
SHELL=/bin/bash
RUN git clone https://github.com/Linuxbrew/brew.git /home/linuxbrew/.linuxbrew/Homebrew \
&& mkdir /home/linuxbrew/.linuxbrew/bin \
&& ln -s ../Homebrew/bin/brew /home/linuxbrew/.linuxbrew/bin/ \
&& brew config
RUN brew tap homebrew-ffmpeg/ffmpeg \
&& brew install homebrew-ffmpeg/ffmpeg/ffmpeg
Some example .travis.yml
(untested):
anguage: ruby
matrix:
include:
- os: osx
osx_image: xcode11.3
rvm: 2.6
- os: linux
dist: xenial
rvm: 2.6
fast_finish: true
allow_failures:
- os: linux
dist: xenial
rvm: 2.6
env:
global:
- HOMEBREW_DEVELOPER=1
- HOMEBREW_VERBOSE=1
before_install:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
export PATH="~/.linuxbrew/bin:~/.linuxbrew/sbin:$PATH";
export HOME=/home/linuxbrew;
export LINUXBREW=$HOME/.linuxbrew;
export HOMEBREW_DEVELOPER=1
export HOMEBREW_FORCE_VENDOR_RUBY=1
export HOMEBREW_NO_AUTO_UPDATE=1
sudo apt-get -qq update;
sudo mkdir $HOME;
sudo chown "$USER:" $HOME;
mkdir $LINUXBREW;
curl -L https://github.com/Linuxbrew/brew/tarball/master | tar xz -m --strip 1 -C $LINUXBREW;
fi
- brew update || brew update
- if [ -f ".git/shallow" ]; then travis_retry git fetch --unshallow; fi
- mkdir -p $(brew --repo)/Library/Taps/denji
- ln -s $PWD $(brew --repo)/Library/Taps/denji/homebrew-nginx
- cd $(brew --repo)/Library/Taps/denji/homebrew-nginx
- export TRAVIS_BUILD_DIR="$(brew --repo)/Library/Taps/denji/homebrew-nginx"
- ulimit -n 1024
# Fix linux error: Incorrect file permissions (664)
- chmod 0644 Formula/*.rb
- umask 022
script:
- brew test-bot --no-bottle
notifications:
email:
on_success: never
on_failure: always
FFmpeg 6.0 "Von Neumann" has been released.
I would like to update to 6.0 at some point in the near future. Is there a defined process for updating this tap to the latest upstream version?
I haven't tried any alternatives yet, because it's the only way that I install FFmpeg on macOS.
I have already installed ffmpeg
from this tap. I installed it with:
$ brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac
I then wanted to install get_iplayer
from homebrew/core
, which depends_on "ffmpeg"
:
$ brew install get_iplayer
==> Downloading https://homebrew.bintray.com/bottles/ffmpeg-4.2.2_3.catalina.bottle.tar.gz
Already downloaded: /Users/joenyland/Library/Caches/Homebrew/downloads/a04c6c86419df04664ec77824dd08ea793c07c1c616066e16ea3aa1d8183ff18--ffmpeg-4.2.2_3.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/get_iplayer-3.25.catalina.bottle.tar.gz
Already downloaded: /Users/joenyland/Library/Caches/Homebrew/downloads/765099775a0608db52939ea36d3e6dd1c11cc63333e7220340e0d100db4bb517--get_iplayer-3.25.catalina.bottle.tar.gz
==> Installing dependencies for get_iplayer: ffmpeg
Error: ffmpeg is already installed from homebrew-ffmpeg/ffmpeg!
Please `brew uninstall ffmpeg` first."
I expected the installation of get_iplayer
to pick up and use the already installed ffmpeg
from this tap. I know that I can remove ffmpeg
from this tap, install get_iplayer
, force uninstalling ffmpeg
(as it's a dependency of get_iplayer
and then reinstall (and rebuild) ffmpeg
from this tap, but that feels like a bit of a hack.
I wonder what will happen when get_iplayer
wants to be upgraded; I expect the upgrade will fail and then I need to repeat the above again. An attempted reinstall of get_iplayer
fails, so this makes me think an upgrade will fail:
$ brew reinstall get_iplayer
==> Downloading https://homebrew.bintray.com/bottles/ffmpeg-4.2.2_3.catalina.bottle.tar.gz
Already downloaded: /Users/joenyland/Library/Caches/Homebrew/downloads/a04c6c86419df04664ec77824dd08ea793c07c1c616066e16ea3aa1d8183ff18--ffmpeg-4.2.2_3.catalina.bottle.tar.gz
==> Downloading https://homebrew.bintray.com/bottles/get_iplayer-3.25.catalina.bottle.tar.gz
Already downloaded: /Users/joenyland/Library/Caches/Homebrew/downloads/765099775a0608db52939ea36d3e6dd1c11cc63333e7220340e0d100db4bb517--get_iplayer-3.25.catalina.bottle.tar.gz
==> Reinstalling get_iplayer
==> Installing dependencies for get_iplayer: ffmpeg
Error: ffmpeg is already installed from homebrew-ffmpeg/ffmpeg!
Please `brew uninstall ffmpeg` first."
input
ffmpeg -hwaccel auto -i "in.wmv" -c:v libx264 -preset slower -movflags +faststart -c:a libfdk_aac -ac 1 -vbr 1 -ar 8000 -x264opts opencl "out.mp4"
output
[libx264 @ 0x7f910d01c000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x7f910d01c000] OpenCL acceleration enabled with Intel Iris Pro
[libx264 @ 0x7f910d01c000] Compiling OpenCL kernels...
[libx264 @ 0x7f910d01c000] OpenCL: OpenCL Build Warning : Compiler build log:
<program source>:91:5: warning: no previous prototype for function 'parallel_sum'
int parallel_sum( int value, int x, volatile local int *array )
^
<program source>:106:5: warning: no previous prototype for function 'mv_cost'
int mv_cost( uint2 mvd )
^
<program source>:116:5: warning: no previous prototype for function 'bidir_satd_8x8_ii_coop4'
int bidir_satd_8x8_ii_coop4( read_only image2d_t fenc_lowres,
^
<program source>:372:31: warning: comparison of integers of different signs: 'int' and 'unsigned long'
const global pixel *src2 = (y == get_global_size( 1 )-1) ? src1 : src1 + stride;
~ ^ ~~~~~~~~~~~~~~~~~~~~~~
<program source>:389:25: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long')
x = select( x, x+1, x+1 < get_global_size( 0 ) );
~~~ ^ ~~~~~~~~~~~~~~~~~~~~
<program source>:393:25: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long')
x = select( x, x+1, x+1 < get_global_size( 0 ) );
~~~ ^ ~~~~~~~~~~~~~~~~~~~~
<program source>:397:25: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long')
x = select( x, x+1, x+1 < get_global_size( 0 ) );
~~~ ^ ~~~~~~~~~~~~~~~~~~~~
<program source>:503:15: warning: no previous prototype for function 'satd_8x4_lp'
SATD_C_8x4_Q( satd_8x4_lp, const local, private )
^
<program source>:68:5: note: expanded from macro 'SATD_C_8x4_Q'
int name( q1 pixel *pix1, int i_pix1, q2 pixel *pix2, int i_pix2 )\
^
<program source>:895:5: warning: no previous prototype for function 'x264_predict_8x8_ddl'
int x264_predict_8x8_ddl( const local pixel *src, int src_stride, const local pixel *top )
^
<program source>:919:5: warning: no previous prototype for function 'x264_predict_8x8_ddr'
int x264_predict_8x8_ddr( const local pixel *src, int src_stride, const local pixel *top, const local pixel *left, pixel left_top )
^
<program source>:950:5: warning: no previous prototype for function 'x264_predict_8x8_vr'
int x264_predict_8x8_vr( const local pixel *src, int src_stride, const local pixel *top, const local pixel *left, pixel left_top )
^
<program source>:1003:5: warning: no previous prototype for function 'x264_predict_8x8_hd'
int x264_predict_8x8_hd( const local pixel *src, int src_stride, const local pixel *top, const local pixel *left, pixel left_top )
^
<program source>:1038:5: warning: no previous prototype for function 'x264_predict_8x8_vl'
int x264_predict_8x8_vl( const local pixel *src, int src_stride, const local pixel *top )
^
<program source>:1084:5: warning: no previous prototype for function 'x264_predict_8x8_hu'
int x264_predict_8x8_hu( const local pixel *src, int src_stride, const local pixel *left )
^
<program source>:1116:5: warning: no previous prototype for function 'x264_predict_8x8c_h'
int x264_predict_8x8c_h( const local pixel *src, int src_stride )
^
<program source>:1131:5: warning: no previous prototype for function 'x264_predict_8x8c_v'
int x264_predict_8x8c_v( const local pixel *src, int src_stride )
^
<program source>:1142:5: warning: no previous prototype for function 'x264_predict_8x8c_p'
int x264_predict_8x8c_p( const local pixel *src, int src_stride )
^
<program source>:1180:5: warning: no previous prototype for function 'x264_predict_8x8c_dc'
int x264_predict_8x8c_dc( const local pixel *src, int src_stride )
^
<program source>:1387:5: warning: no previous prototype for function 'sad_8x8_ii_coop4'
int sad_8x8_ii_coop4( read_only image2d_t fenc, int2 fencpos, read_only image2d_t fref, int2 frefpos, int idx, local int16_t *costs )
^
<program source>:1429:5: warning: no previous prototype for function 'sad_8x8_ii'
int sad_8x8_ii( read_only image2d_t fenc, int2 fencpos, read_only image2d_t fref, int2 frefpos )
^
<program source>:1611:5: warning: no previous prototype for function 'sad_8x8_ii_hpel'
int sad_8x8_ii_hpel( read_only image2d_t fenc, int2 fencpos, read_only image2d_t fref_planes, int2 qpos )
^
<program source>:1636:5: warning: no previous prototype for function 'sad_8x8_ii_qpel'
int sad_8x8_ii_qpel( read_only image2d_t fenc, int2 fencpos, read_only image2d_t fref_planes, int2 qpos )
^
<program source>:1662:5: warning: no previous prototype for function 'satd_8x8_ii_qpel_coop4'
int satd_8x8_ii_qpel_coop4( read_only image2d_t fenc,
^
[libx264 @ 0x7f910d01c000] OpenCL: fatal error, aborting encode
[libx264 @ 0x7f910d01c000] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 0x7f910d01c000] 264 - core 161 r3018M db0d417 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=8 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=9 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Video encoding failed
Conversion failed!
Hi! I'm getting an error with ffmpeg. My OS is MacOS Mojave. Any ffmpeg commands I enter on the terminal would throw this error:
musangs-MacBook-Pro:~ musang$ ffmpeg --version
dyld: Library not loaded: /usr/local/opt/x265/lib/libx265.179.dylib
Referenced from: /usr/local/bin/ffmpeg
Reason: image not found
Abort trap: 6`
When I try to upgrade:
`musangs-MacBook-Pro:~ musang$ brew upgrade --fetch-HEAD ffmpeg
Updating Homebrew...
Error: Calling brew tap-pin user/tap is disabled! Use fully-scoped user/tap/formula naming instead.
Here is my tap list:
musangs-MacBook-Pro:~ musang$ brew tap
adoptopenjdk/openjdk
homebrew-ffmpeg/ffmpeg
homebrew/bundle
homebrew/cask
homebrew/cask-fonts
homebrew/core
sidneys/homebrew
And here is where ffmpeg is located on my path:
musangs-MacBook-Pro:~ musang$ which ffmpeg
/usr/local/bin/ffmpeg
On Catalina with the most up to date homebrew and this version of ffmpeg - it was working earlier today, but then I updated homebrew which updated the following:
vim 8.1.2100 -> 8.1.2150
libheif 1.5.1 -> 1.5.1_1
node@8 8.16.1 -> 8.16.2
exiftool 11.59 -> 11.70
gdk-pixbuf 2.38.2 -> 2.40.0
yarn 1.19.0 -> 1.19.1
librsvg 2.46.1 -> 2.46.2
mysql 8.0.17_1 -> 8.0.18
youtube-dl 2019.09.28 -> 2019.10.16
x264 r2917 -> r2917_1
x265 3.1.2 -> 3.2
node 12.11.1 -> 12.12.0
Now when I try and run ffmpeg I get Segmentation fault: 11
Anything I can do to give you more information, shout? I'm suspecting libheif, x264 or x265 to be the culprit but I am not a developer and I don't know :)
Homebrew encountered two errors whilst attempting to reinstall FFMPEG. After it updated a couple of dependencies of FFMPEG it tried to reinstall FFMPEG because it called it broken. The following is the output of that process. I cannot begin to decipher the make errors to know what is the problem.
brew reinstall ffmpeg
==> Cloning https://github.com/FFmpeg/FFmpeg.git
Updating /Users/User/Library/Caches/Homebrew/ffmpeg--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 6c24f2b avformat/rtpdec: export Opus extradata in ff_rtp_parse_open()
==> Reinstalling homebrew-ffmpeg/ffmpeg/ffmpeg --with-chromaprint --with-decklink --with-fdk-aac --with-game-music-emu --with-librsvg --with-libsoxr --with-libssh --with-tesseract --with-libvidstab --with-opencore-amr --with-openh264 --wi
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/HEAD-6c24f2b_6 --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-lib
==> make install
Last 15 lines from /Users/User/Library/Logs/Homebrew/ffmpeg/02.make:
make: *** Waiting for unfinished jobs....
error: use of undeclared identifier 'kCFStringEncodingUTF8'
CFStringGetCString(w, s, 255, kCFStringEncodingUTF8);
^
2 errors generated.
make: *** [libavdevice/decklink_enc.o] Error 1
In file included from libavdevice/decklink_dec.cpp:54:
libavdevice/decklink_common.h:58:35: error: unknown type name 'CFStringRef'
static char *dup_cfstring_to_utf8(CFStringRef w)
^
libavdevice/decklink_common.h:61:35: error: use of undeclared identifier 'kCFStringEncodingUTF8'
CFStringGetCString(w, s, 255, kCFStringEncodingUTF8);
^
2 errors generated.
make: *** [libavdevice/decklink_dec.o] Error 1
homebrew-ffmpeg
tap only. Please do not file a bug report if your issue relates to any of the following:
ffmpeg
formula officially supplied by Homebrewffmpeg-user
mailing list)Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information.
brew update
and can still reproduce the problembrew doctor
, fixed all issues and can still reproduce the problembrew config
and brew doctor
and included their output with my issueffmpeg
versionInstall ffmpeg with chromaprint
Installation failed because of an error.
The exact command you were trying to run:
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-chromaprint
The output that you got:
==> Installing ffmpeg from homebrew-ffmpeg/ffmpeg
==> Downloading https://github.com/FFmpeg/FFmpeg/archive/refs/tags/n4.4.tar.gz
Already downloaded: /Users/klaus/Library/Caches/Homebrew/downloads/3474f9c0619c2a34a7ceb034099580e561b51e988fb3aa7f1dcc6ed23b4197d4--FFmpeg-n4.4.tar.gz
==> ./configure --prefix=/opt/homebrew/Cellar/ffmpeg/4.4-with-options_1 --enable-shared --cc=clang --host-cflags= --host-ldflag
Last 15 lines from /Users/klaus/Library/Logs/Homebrew/ffmpeg/01.configure:
--enable-demuxer=dash
--disable-libjack
--disable-indev=jack
--enable-opencl
--enable-videotoolbox
--disable-htmlpages
--enable-chromaprint
ERROR: chromaprint not found
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
Do not report this issue to Homebrew/brew or Homebrew/core!
brew config
and brew doctor
commandsbrew config
:
HOMEBREW_VERSION: 3.2.6-28-g0fc7762
ORIGIN: https://github.com/Homebrew/brew
HEAD: 0fc7762e997432694cff49a7065f88ea0e3b6eba
Last commit: 9 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: c83224259daa54b399573296271777d9019ca512
Core tap last commit: 10 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 12.0.5 build 1205
Git: 2.32.0 => /opt/homebrew/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.5.1-arm64
CLT: 12.5.0.22.9
Xcode: N/A
Rosetta 2: false
brew doctor
:
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Some installed formulae are missing dependencies.
You should `brew install` the missing dependencies:
brew install ffmpeg
Run `brew missing` for more details.
Here's what I get when running a re-install:
❯ brew reinstall /Users/mock/Desktop/ffmpeg.rb
==> Downloading https://github.com/FFmpeg/FFmpeg/commit/7c59e1b0f285cd7c7b35fcd71f49c5fd52cf9315.patch?full_index=1
Already downloaded: /Users/mock/Library/Caches/Homebrew/downloads/c585557298843eab846c569ff84eb7623db209cd15cfd74b2d736a1e7d86a55c--7c59e1b0f285cd7c7b35fcd71f49c5fd52cf9315.patch
==> Cloning https://github.com/FFmpeg/FFmpeg.git
Updating /Users/mock/Library/Caches/Homebrew/ffmpeg--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at e5be4c5 avcodec/hevcdec: constrained intra predict, do not check top left IS_INTRA if it's not available
==> Reinstalling ffmpeg --with-fdk-aac
==> Patching
==> Applying 7c59e1b0f285cd7c7b35fcd71f49c5fd52cf9315.patch
patching file libavformat/libsrt.c
Hunk #1 FAILED at 313.
Hunk #2 FAILED at 337.
2 out of 2 hunks FAILED -- saving rejects to file libavformat/libsrt.c.rej
Thanks for your work!
I need the pkg libavresample (>=3.0.0), is it possible to compile with your script?
Greets from The Netherlands
Vaoske
This fork of FFMPEG fails to build on my system regardless whether I use —HEAD, --COMPACT, or neither. My system is running Mac OS Big Sur beta version 11.1 build 20C5061b. All of the dependencies listed on the main GitHub page for this tap are installed. The following are different outputs based on the combinations of arguments. Note each output produces an error pertinent to the dependencies installed already.
➜ brew install homebrew-ffmpeg/ffmpeg/ffmpeg $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg --compact) --HEAD
==> Installing ffmpeg from homebrew-ffmpeg/ffmpeg
==> Cloning https://github.com/FFmpeg/FFmpeg.git
Updating /Users/User/Library/Caches/Homebrew/ffmpeg--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 0dac317 avformat/framecrcenc: Make side-data checksums endian-independent
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/HEAD-0dac317_6 --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-lib
Last 15 lines from /Users/User/Library/Logs/Homebrew/ffmpeg/01.configure:
--enable-libxml2
--enable-libxvid
--enable-libzimg
--enable-libzmq
--enable-openssl
--enable-nonfree
--enable-decklink
--extra-cflags=-I/usr/local/include
--extra-ldflags=-L/usr/local/include
--enable-version3
--enable-libopencore-amrnb
--enable-libopencore-amrwb
Unknown option "--enable-libwavpack".
See ./configure --help for available options.
➜ brew install homebrew-ffmpeg/ffmpeg/ffmpeg $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg --compact)
==> Installing ffmpeg from homebrew-ffmpeg/ffmpeg
==> Downloading https://github.com/FFmpeg/FFmpeg/commit/7c59e1b0f285cd7c7b35fcd71f49c5fd52cf9315.patch?full_index=1
Already downloaded: /Users/User/Library/Caches/Homebrew/downloads/c585557298843eab846c569ff84eb7623db209cd15cfd74b2d736a1e7d86a55c--7c59e1b0f285cd7c7b35fcd71f49c5fd52cf9315.patch
==> Downloading https://ffmpeg.org/releases/ffmpeg-4.3.1.tar.xz
Already downloaded: /Users/User/Library/Caches/Homebrew/downloads/907d44c10ce0824ba8d0acb013a260cf4114a463a371b204afae8e3588f76792--ffmpeg-4.3.1.tar.xz
==> Patching
==> Applying 7c59e1b0f285cd7c7b35fcd71f49c5fd52cf9315.patch
patching file libavformat/libsrt.c
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/4.3.1-with-options_6 --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-libsnappy --enab
Last 15 lines from /Users/User/Library/Logs/Homebrew/ffmpeg/01.configure:
--enable-nonfree
--enable-decklink
--extra-cflags=-I/usr/local/include
--extra-ldflags=-L/usr/local/include
--enable-version3
--enable-libopencore-amrnb
--enable-libopencore-amrwb
ERROR: libbluray not found using pkg-config
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
➜ brew install homebrew-ffmpeg/ffmpeg/ffmpeg --HEAD
==> Installing ffmpeg from homebrew-ffmpeg/ffmpeg
==> Cloning https://github.com/FFmpeg/FFmpeg.git
Updating /Users/User/Library/Caches/Homebrew/ffmpeg--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 0dac317 avformat/framecrcenc: Make side-data checksums endian-independent
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/HEAD-0dac317_6 --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-lib
Last 15 lines from /Users/User/Library/Logs/Homebrew/ffmpeg/01.configure:
--enable-libass
--enable-demuxer=dash
--disable-libjack
--disable-indev=jack
--enable-opencl
--enable-videotoolbox
--disable-htmlpages
ERROR: fontconfig not found using pkg-config
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
Hi,
I encountered the following issue trying to install ffmpeg with libvmaf:
brew update
and can still reproduce the problembrew doctor
, fixed all issues and can still reproduce the problembrew config
and brew doctor
and included their output with my issueffmpeg
versionFFmpeg should be installed including libvmaf filter.
Installation stopped with error 1.
The exact command you were trying to run:
brew tap homebrew-ffmpeg/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-libvmaf
The output that you got:
==> Installing ffmpeg from homebrew-ffmpeg/ffmpeg
==> Downloading https://ffmpeg.org/releases/ffmpeg-4.4.tar.xz
Already downloaded: /Users/marcelgeibel/Library/Caches/Homebrew/downloads/837c094bbbd62f9664825da5b8206acd9a27ed63510f91410034a4a1572d3750--ffmpeg-4.4.tar.xz
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/4.4-with-options --enable-shar
==> make install
Last 15 lines from /Users/marcelgeibel/Library/Logs/Homebrew/ffmpeg/02.make:
GEN libavfilter/libavfilter.pc
INSTALL libavformat/avformat.h
INSTALL libavformat/avio.h
INSTALL libavformat/version.h
GEN libavformat/libavformat.pc
./ffbuild/pkgconfig_generate.sh: line 21: libavcodec/libavcodec.version: Interrupted system call
make: *** [libavdevice/libavdevice.pc] Error 1
make: *** Waiting for unfinished jobs....
STRIP libswresample/x86/audio_convert.o
STRIP libavcodec/x86/vp9lpf_16bpp.o
STRIP libavcodec/x86/simple_idct.o
STRIP libavcodec/x86/vp9itxfm_16bpp.o
STRIP libavcodec/x86/hevc_mc.o
STRIP libavcodec/x86/vp9lpf.o
STRIP libavcodec/x86/vp9itxfm.o
brew config
and brew doctor
commandsbrew config
:
HOMEBREW_VERSION: 3.1.5
ORIGIN: https://github.com/Homebrew/brew
HEAD: 227445ece9414a82aa8929b91ca2e0cca28a561b
Last commit: 23 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: c8b7fdfca0c71da4a9e535621e159371317845c9
Core tap last commit: 28 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 16
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3_2/bin/ruby
CPU: 16-core 64-bit kabylake
Clang: 12.0 build 1205
Git: 2.30.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.2.3-x86_64
CLT: 12.5.0.0.1.1617976050
Xcode: N/A
brew doctor
:
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libftd2xx.1.2.2.dylib
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected header files:
/usr/local/include/node/cppgc/allocation.h
...
-> ALL files in folder /usr/local/include/node/
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac --with-jack --with-libbluray --with-libbs2b --with-libbs2b --with-libopenmpt --with-librsvg --with-libsoxr --with-libssh --with-libvidstab --with-libvmaf --with-libxml2 --with-libzvbi --with-openssl --with-rav1e --with-rtmpdump --with-speex --with-srt --with-tesseract --with-two-lame --with-webp --with-xvid --with-zeromq --with-zimg
`==> Installing homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac --with-jack --with-libopenmpt --with-librsvg --with-libsoxr --with-libssh --with-tesseract --with-libvidstab --with-openssl --with-rav1e --with-rtmpdump --with-webp --with-zeromq --with-zimg --with-srt --with-libvmaf --with-libxml2 --with-libzvbi -
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/5.0.1-with-options_2 --enable-shared --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx26
Last 15 lines from /Users/vincentdabouineau/Library/Logs/Homebrew/ffmpeg/01.configure:
--enable-libzvbi
--enable-libzmq
--enable-openssl
--enable-nonfree
--enable-libjack
--enable-indev=jack
--enable-version3
ERROR: zvbi-0.2 not found using pkg-config
If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.libera.chat.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/homebrew-ffmpeg/homebrew-ffmpeg/issues
These open issues may also help:
Brewing custom ffmpeg but failure at metal execution https://github.com/homebrew-ffmpeg/homebrew-ffmpeg/issues/96`
~$ffplay zsh: command not found: ffplay
It is not a problem in itself, it is only an improvement.
I have compared ffmpeg builds encoding x265 with and without NEON on Apple M1. The speed increase is amazing: x3 with NEON patch.
Be able to compile ffmpeg with the NEON patch, like
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-neon
This guide compiles ffmpeg with the NEON patch. Seems to be adding a simple ./configure --enable-neon
Command:
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-decklink --with-fdk-aac --with-game-music-emu --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplug --with-librsvg --with-libsoxr --with-libssh --with-libvidstab --with-libvmaf --with-libxml2 --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-rtmpdump --with-rubberband --with-speex --with-srt --with-tesseract --with-two-lame --with-wavpack --with-webp --with-xvid --with-zeromq --with-zimg
Output:
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/4.2.1-with-options_2 --enable-
==> make install
Last 15 lines from /Users/Jin/Library/Logs/Homebrew/ffmpeg/02.make:
u_char p_priority; /* Process priority. /
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/proc.h:134:2: error: unknown type name 'u_char'; did you mean 'char'?
u_char p_usrpri; / User-priority based on p_cpu and p_nice. /
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/proc.h:139:2: error: unknown type name 'u_short'; did you mean 'short'?
u_short p_xstat; / Exit status for wait; also stop signal. /
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/proc.h:140:2: error: unknown type name 'u_short'; did you mean 'short'?
u_short p_acflag; / Accounting flags. */
^
9 errors generated.
make: *** [libavutil/cpu.o] Error 1
make: *** Waiting for unfinished jobs....
STRIP libswscale/x86/scale.o
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.