首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么ffmpeg需要DNS解析器作为它的依赖项?

为什么ffmpeg需要DNS解析器作为它的依赖项?
EN

Stack Overflow用户
提问于 2019-12-19 05:32:01
回答 2查看 1K关注 0票数 5

当我注意到依赖项列表中的FFmpeg时,今天正在使用brew install ffmpeg libav安装unbound和libav。

这很奇怪,因为unbound是DNS解析器,也是ffmpeg需要它的原因。

代码语言:javascript
复制
❯ brew install ffmpeg libav
==> Installing dependencies for ffmpeg: aom, frei0r, gmp, libtasn1, nettle, p11-kit, unbound, gnutls, lame, libass, libbluray, libsoxr, libvidstab, libvpx, opencore-amr, opus, libsndfile, libsamplerate, rubberband, sdl2, speex, giflib, leptonica, tesseract, theora, x264, x265 and xvid

我甚至检查了ffmpeg的信息列表,但是unbound不在那里。

代码语言:javascript
复制
❯ brew info ffmpeg
ffmpeg: stable 4.2.1 (bottled), HEAD
Play, record, convert, and stream audio and video
https://ffmpeg.org/
/usr/local/Cellar/ffmpeg/4.2.1_2 (287 files, 56.6MB)*
- Poured from bottle on 2019-12-19 at 10:45:56
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/ffmpeg.rb
==> Dependencies
Build: nasm ✘, pkg-config ✔, texi2html ✘
Required: aom ✔, fontconfig ✔, freetype ✔, frei0r ✔, gnutls ✔, lame ✔, libass ✔, libbluray ✔, libsoxr ✔, libvidstab ✔, libvorbis ✔, libvpx ✔, opencore-amr ✔, openjpeg ✔, opus ✔, rtmpdump ✔, rubberband ✔, sdl2 ✔, snappy ✔, speex ✔, tesseract ✔, theora ✔, x264 ✔, x265 ✔, xvid ✔, xz ✔
==> Options
--HEAD
    Install HEAD version
==> Analytics
install: 66,434 (30 days), 280,128 (90 days), 1,079,492 (365 days)
install-on-request: 48,053 (30 days), 203,583 (90 days), 759,254 (365 days)
build-error: 0 (30 days)

参考链接

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2019-12-20 10:28:48

brew deps --tree可以帮助您解决这个问题。在ffmpeg的情况下,unbound是由gnutls为HTTPS提供支持的。

代码语言:javascript
复制
% brew deps --tree ffmpeg        
ffmpeg
├── aom
├── fontconfig
│   └── freetype
│       └── libpng
├── freetype
│   └── libpng
├── frei0r
├── gnutls
│   ├── gmp
│   ├── libidn2
│   │   ├── gettext
│   │   └── libunistring
│   ├── libtasn1
│   ├── libunistring
│   ├── nettle
│   │   └── gmp
│   ├── p11-kit
│   │   └── libffi
│   └── unbound
│       ├── libevent
│       │   └── openssl@1.1
│       └── openssl@1.1
├── lame
├── libass
│   ├── freetype
│   │   └── libpng
│   ├── fribidi
│   └── harfbuzz
│       ├── cairo
│       │   ├── fontconfig
│       │   │   └── freetype
│       │   │       └── libpng
│       │   ├── freetype
│       │   │   └── libpng
│       │   ├── glib
│       │   │   ├── gettext
│       │   │   ├── libffi
│       │   │   ├── pcre
│       │   │   └── python
│       │   │       ├── gdbm
│       │   │       ├── openssl@1.1
│       │   │       ├── readline
│       │   │       ├── sqlite
│       │   │       │   └── readline
│       │   │       └── xz
│       │   ├── libpng
│       │   ├── lzo
│       │   └── pixman
│       ├── freetype
│       │   └── libpng
│       ├── glib
│       │   ├── gettext
│       │   ├── libffi
│       │   ├── pcre
│       │   └── python
│       │       ├── gdbm
│       │       ├── openssl@1.1
│       │       ├── readline
│       │       ├── sqlite
│       │       │   └── readline
│       │       └── xz
│       ├── graphite2
│       └── icu4c
├── libbluray
│   ├── fontconfig
│   │   └── freetype
│   │       └── libpng
│   └── freetype
│       └── libpng
├── libsoxr
├── libvidstab
├── libvorbis
│   └── libogg
├── libvpx
├── opencore-amr
├── openjpeg
│   ├── libpng
│   ├── libtiff
│   │   └── jpeg
│   └── little-cms2
│       ├── jpeg
│       └── libtiff
│           └── jpeg
├── opus
├── rtmpdump
│   └── openssl@1.1
├── rubberband
│   ├── libsamplerate
│   │   └── libsndfile
│   │       ├── flac
│   │       │   └── libogg
│   │       ├── libogg
│   │       └── libvorbis
│   │           └── libogg
│   └── libsndfile
│       ├── flac
│       │   └── libogg
│       ├── libogg
│       └── libvorbis
│           └── libogg
├── sdl2
├── snappy
├── speex
│   └── libogg
├── tesseract
│   ├── leptonica
│   │   ├── giflib
│   │   ├── jpeg
│   │   ├── libpng
│   │   ├── libtiff
│   │   │   └── jpeg
│   │   ├── openjpeg
│   │   │   ├── libpng
│   │   │   ├── libtiff
│   │   │   │   └── jpeg
│   │   │   └── little-cms2
│   │   │       ├── jpeg
│   │   │       └── libtiff
│   │   │           └── jpeg
│   │   └── webp
│   │       ├── jpeg
│   │       ├── libpng
│   │       └── libtiff
│   │           └── jpeg
│   └── libtiff
│       └── jpeg
├── theora
│   ├── libogg
│   └── libvorbis
│       └── libogg
├── x264
├── x265
├── xvid
└── xz
票数 6
EN

Stack Overflow用户

发布于 2019-12-19 18:33:43

在Homebrew上,解绑定是gnutls的依赖项,在使用--enable-gnutls时它是ffmpeg的依赖项(默认情况下在ffmpeg Homebrew公式中使用)。

为了支持HTTPS,在ffmpeg中使用了gnutls (或openssl、mbedtls、libtls、securetransport)。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59411721

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档