GithubHelp home page GithubHelp logo

Comments (18)

scribblemaniac avatar scribblemaniac commented on August 21, 2024

➜ brew install homebrew-ffmpeg/ffmpeg/ffmpeg $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg --compact) --HEAD
...
Unknown option "--enable-libwavpack".

ffmpeg is dropping support for libwavpack, so remove the --with-wavpack flag.

➜ brew install homebrew-ffmpeg/ffmpeg/ffmpeg $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg --compact)
..
ERROR: libbluray not found using pkg-config

Libbluray is not installed, or it's not in a place where ffmpeg can find it. This should be installed automatically as a dependency for the formula.

➜ brew install homebrew-ffmpeg/ffmpeg/ffmpeg --HEAD
...
ERROR: fontconfig not found using pkg-config

Again you are missing a dependency, this time fontconfig.

To fix the last two issues, try running the same command but with --dependencies-only added first, and make sure everything installs successfully, then run the command as you have it now. Other things to try: check brew doctor or brew reinstall any dependencies which are causing the install to fail.

from homebrew-ffmpeg.

Rogue-Git-Dev avatar Rogue-Git-Dev commented on August 21, 2024

I knew not WAVPack support was to be removed. It is included in all options which made me believe otherwise. How can I instal using all options precluding WAVPack? WAVPack is installed. If I remove it, will that be the solution?

Both libbluray and fontconfig are installed; that has not changed. PKG-Config has no non-standard prefixes in my path or any modifications to its configuration. These PKG-Config related error messages arose since I upgraded my machine to Big Sur although that may not be the culprit.

from homebrew-ffmpeg.

scribblemaniac avatar scribblemaniac commented on August 21, 2024

Wavpack is in all options because it is supported by the latest stable build of ffmpeg. It's not reasonable to support the unstable head since it changes so often. You can run brew options homebrew-ffmpeg/ffmpeg/ffmpeg --compact remove the flag you don't want, and copy it into you command, replacing $(brew options homebrew-ffmpeg/ffmpeg/ffmpeg --compact).

from homebrew-ffmpeg.

Rogue-Git-Dev avatar Rogue-Git-Dev commented on August 21, 2024

Apologies but I fail to understand what you mean by replacing part of that command with remove and whichever dependency. I may need an example.

Do you recommend not to use HEAD builds of any dependency for FFMPEG, every dependency for FFMPEG, or only certain dependencies? If the latter, which ones?

from homebrew-ffmpeg.

scribblemaniac avatar scribblemaniac commented on August 21, 2024

brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-chromaprint --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 [email protected] --with-rav1e --with-rtmpdump --with-rubberband --with-speex --with-srt --with-tesseract --with-two-lame --with-webp --with-xvid --with-zeromq --with-zimg --HEAD

I would not recommend you install anything with HEAD unless you have a good reason to (for example some feature you want or fix for an issue you are having that is not in the latest stable version).

from homebrew-ffmpeg.

Rogue-Git-Dev avatar Rogue-Git-Dev commented on August 21, 2024

Now I understand: replace the command with the individual flags of each of the dependencies. I tried to avoid that so thanks for making that easy to copy and paste. Is it feasible to implement a --without-[dependency] flag, or is this out of the scope of FFMPEG or any formula in general?

from homebrew-ffmpeg.

Rogue-Git-Dev avatar Rogue-Git-Dev commented on August 21, 2024

The same libbluray related error arose when using the exact line you wrote. Why do you think PKG-Config all of a sudden cannot find libbluray? I uninstalled PKG-Config, reinstalled PKG-Config, uninstalled libbluray, and reinstalled libbluray all to no avail. I will not be surprised if fontconfig is the next one to cause problems. Both of these are linked via Homebrew so that is not the problem.

from homebrew-ffmpeg.

Rogue-Git-Dev avatar Rogue-Git-Dev commented on August 21, 2024

I never will understand why, but today the build was successful. No errors occurred; however, I changed nothing since I opened this issue. PKG-Config decided to find libbluray and fontconfig.

from homebrew-ffmpeg.

retokromer avatar retokromer commented on August 21, 2024

On my end, it works fine on macOS 11.0.1, but I’ll not try to reproduce on 11.1 beta 2 now (because I rarely have the time to run after beta releases ;-)

from homebrew-ffmpeg.

retokromer avatar retokromer commented on August 21, 2024

I never will understand why, but today the build was successful. No errors occurred; however, I changed nothing since I opened this issue. PKG-Config decided to find libbluray and fontconfig.

The HEAD is evolving constantly…

In my opinion, it’s simpler to use releases for actual work, unless you need a feature that is not yet in a the last release, but only on the development branch.

Is it feasible to implement a --without-[dependency] flag, or is this out of the scope of FFMPEG or any formula in general?

That should be possible, yet what’s the benefit?

The current formula can already be parameterized according to any needs. Your approach would include the new libraries and you would have to exclude them each time a new one is added, if not needed.

from homebrew-ffmpeg.

Rogue-Git-Dev avatar Rogue-Git-Dev commented on August 21, 2024

The benefit of the --without-[dependency] argument would be avoiding to type all of the flags. One could type the same command for --COMPACT and append --without-[dependency] to avoid removing --compact and using the individual flags.

from homebrew-ffmpeg.

slhck avatar slhck commented on August 21, 2024

Please note that not everyone wants to always install all the options.

In particular, some options in this tap are only meaningful if you have other third-party SDKs installed (e.g., the DeckLink SDK) – or they are only useful for a very small number of people (e.g., snappy).

This is why we provide some defaults like libx264 but not others.

from homebrew-ffmpeg.

Rogue-Git-Dev avatar Rogue-Git-Dev commented on August 21, 2024

Of course; that is understandable. I am considering the edge case wherein a dependency [stable or HEAD] fails to be recognised although it is installed. PKG-Config has no HEAD but it failed to recognise both libbluray and fontconfig on my machine although both were stable builds installed at those junctures. This would be a quick way to instal all dependencies without certain ones provided the edge case exists and not type all of the individual dependency flags. My suggestion is for convenience really and not of particular importance.

from homebrew-ffmpeg.

slhck avatar slhck commented on August 21, 2024

Sure. Unfortunately we cannot provide both modes of operation. Either we have some default formulae that are sensible and additional ones with --with-XXX, or we have all dependencies by default and a --without mechanism. If both should exist at the same time, Homebrew itself would have to provide such a mechanism.

from homebrew-ffmpeg.

Rogue-Git-Dev avatar Rogue-Git-Dev commented on August 21, 2024

I knew that not. Thanks for the explanation.

from homebrew-ffmpeg.

slhck avatar slhck commented on August 21, 2024

By the way, at least for me, the "not found using pkg-config" errors from ffmpeg are often red herrings. I frequently get those printed at the end of a configuration/compilation process when it errors out, but the actual error is often logged much earlier and to be found in the ffmpeg compilation log itself. It should be in some temporary folder that Homebrew creates.

Anyway, good that it worked for you now.

from homebrew-ffmpeg.

Rogue-Git-Dev avatar Rogue-Git-Dev commented on August 21, 2024

Do you know where this log resides on Mac OS? Perhaps I can retrieve it before it is deleted provided this occurs in future.

from homebrew-ffmpeg.

retokromer avatar retokromer commented on August 21, 2024

Do you know where this log resides on Mac OS? Perhaps I can retrieve it before it is deleted provided this occurs in future.

At ~/Library/Logs/Homebrew/ if I remember carefully.

from homebrew-ffmpeg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.