-
-
Notifications
You must be signed in to change notification settings - Fork 13k
ffmpeg 8.0 #234498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
ffmpeg 8.0 #234498
Changes from all commits
36cf178
20ee0c3
21f86ec
fc8ca1e
a987ca1
41099a1
0e7020f
2dec7b8
d65394f
754a1fe
4d55f04
a8b92db
c532e0c
ee0bed5
900783d
8e10d04
4acfe88
760a24c
1ab4389
3c38862
b69f27a
96a3fc6
46f0fb6
f11fc17
e8b3993
0184b3c
88d0035
c1d3669
6db1f53
d5d8ccb
7a5367f
bf5b7ea
d729f53
3babb13
4c7e435
7d1bba9
e5ad876
4dd4b06
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
url "https://github.com/acoustid/chromaprint/releases/download/v1.5.1/chromaprint-1.5.1.tar.gz" | ||
sha256 "a1aad8fa3b8b18b78d3755b3767faff9abb67242e01b478ec9a64e190f335e1c" | ||
license "LGPL-2.1-or-later" | ||
revision 2 | ||
revision 3 | ||
|
||
bottle do | ||
sha256 cellar: :any, arm64_sequoia: "ecb32f5039c199a8f9f81329c5a09390f3c5307c3c012e10849aedadc835cf4a" | ||
|
@@ -19,7 +19,7 @@ | |
end | ||
|
||
depends_on "cmake" => :build | ||
depends_on "ffmpeg" | ||
depends_on "ffmpeg@7" | ||
|
||
# Backport support for FFmpeg 5+. Remove in the next release | ||
patch do | ||
|
@@ -35,7 +35,7 @@ | |
sha256 "f90f5f13a95f1d086dbf98cd3da072d1754299987ee1734a6d62fcda2139b55d" | ||
end | ||
|
||
def install | ||
Check failure on line 38 in Formula/c/chromaprint.rb
|
||
system "cmake", "-S", ".", "-B", "build", | ||
"-DBUILD_TOOLS=ON", | ||
"-DCMAKE_INSTALL_RPATH=#{rpath}", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
class DvrScan < Formula | ||
include Language::Python::Virtualenv | ||
|
||
|
@@ -7,6 +7,7 @@ | |
version "1.7.0.1" | ||
sha256 "f7036f8e679cd14bb61417266b1f8cff4f365a00227bff3d6ed75200f33e5c53" | ||
license "BSD-2-Clause" | ||
revision 1 | ||
head "https://github.com/Breakthrough/DVR-Scan.git", branch: "main" | ||
|
||
bottle do | ||
|
@@ -20,7 +21,7 @@ | |
|
||
depends_on "cmake" => :build | ||
depends_on "pkgconf" => :build | ||
depends_on "ffmpeg" | ||
depends_on "ffmpeg@7" | ||
depends_on "numpy" | ||
depends_on "opencv" | ||
depends_on "[email protected]" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
class FfmpegAT7 < Formula | ||
desc "Play, record, convert, and stream audio and video" | ||
homepage "https://ffmpeg.org/" | ||
url "https://ffmpeg.org/releases/ffmpeg-7.1.1.tar.xz" | ||
sha256 "733984395e0dbbe5c046abda2dc49a5544e7e0e1e2366bba849222ae9e3a03b1" | ||
# None of these parts are used by default, you have to explicitly pass `--enable-gpl` | ||
# to configure to activate them. In this case, FFmpeg's license changes to GPL v2+. | ||
license "GPL-2.0-or-later" | ||
|
||
livecheck do | ||
url "https://ffmpeg.org/download.html" | ||
regex(/href=.*?ffmpeg[._-]v?(7\.(?:\.\d+)+)\.t/i) | ||
end | ||
|
||
keg_only :versioned_formula | ||
|
||
depends_on "pkgconf" => :build | ||
depends_on "aom" | ||
depends_on "aribb24" | ||
depends_on "dav1d" | ||
depends_on "fontconfig" | ||
depends_on "freetype" | ||
depends_on "frei0r" | ||
depends_on "gnutls" | ||
depends_on "harfbuzz" | ||
depends_on "jpeg-xl" | ||
depends_on "lame" | ||
depends_on "libass" | ||
depends_on "libbluray" | ||
depends_on "librist" | ||
depends_on "libsoxr" | ||
depends_on "libssh" | ||
depends_on "libvidstab" | ||
depends_on "libvmaf" | ||
depends_on "libvorbis" | ||
depends_on "libvpx" | ||
depends_on "libx11" | ||
depends_on "libxcb" | ||
depends_on "opencore-amr" | ||
depends_on "openjpeg" | ||
depends_on "opus" | ||
depends_on "rav1e" | ||
depends_on "rubberband" | ||
depends_on "sdl2" | ||
depends_on "snappy" | ||
depends_on "speex" | ||
depends_on "srt" | ||
depends_on "svt-av1" | ||
depends_on "tesseract" | ||
depends_on "theora" | ||
depends_on "webp" | ||
depends_on "x264" | ||
depends_on "x265" | ||
depends_on "xvid" | ||
depends_on "xz" | ||
depends_on "zeromq" | ||
depends_on "zimg" | ||
|
||
uses_from_macos "bzip2" | ||
uses_from_macos "libxml2" | ||
uses_from_macos "zlib" | ||
|
||
on_macos do | ||
depends_on "libarchive" | ||
depends_on "libogg" | ||
depends_on "libsamplerate" | ||
end | ||
|
||
on_linux do | ||
depends_on "alsa-lib" | ||
depends_on "libxext" | ||
depends_on "libxv" | ||
end | ||
|
||
on_intel do | ||
depends_on "nasm" => :build | ||
end | ||
|
||
# Backport support for recent svt-av1 (3.0.0) | ||
patch do | ||
url "https://github.com/FFmpeg/FFmpeg/commit/d1ed5c06e3edc5f2b5f3664c80121fa55b0baa95.patch?full_index=1" | ||
sha256 "0eb23ab90c0e5904590731dd3b81c86a4127785bc2b367267d77723990fb94a2" | ||
end | ||
|
||
# Fix for QtWebEngine, do not remove | ||
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270209 | ||
patch do | ||
url "https://gitlab.archlinux.org/archlinux/packaging/packages/ffmpeg/-/raw/5670ccd86d3b816f49ebc18cab878125eca2f81f/add-av_stream_get_first_dts-for-chromium.patch" | ||
sha256 "57e26caced5a1382cb639235f9555fc50e45e7bf8333f7c9ae3d49b3241d3f77" | ||
end | ||
|
||
def install | ||
# The new linker leads to duplicate symbol issue https://github.com/homebrew-ffmpeg/homebrew-ffmpeg/issues/140 | ||
ENV.append "LDFLAGS", "-Wl,-ld_classic" if DevelopmentTools.clang_build_version >= 1500 | ||
|
||
args = %W[ | ||
--prefix=#{prefix} | ||
--enable-shared | ||
--enable-pthreads | ||
--enable-version3 | ||
--cc=#{ENV.cc} | ||
--host-cflags=#{ENV.cflags} | ||
--host-ldflags=#{ENV.ldflags} | ||
--enable-ffplay | ||
--enable-gnutls | ||
--enable-gpl | ||
--enable-libaom | ||
--enable-libaribb24 | ||
--enable-libbluray | ||
--enable-libdav1d | ||
--enable-libharfbuzz | ||
--enable-libjxl | ||
--enable-libmp3lame | ||
--enable-libopus | ||
--enable-librav1e | ||
--enable-librist | ||
--enable-librubberband | ||
--enable-libsnappy | ||
--enable-libsrt | ||
--enable-libssh | ||
--enable-libsvtav1 | ||
--enable-libtesseract | ||
--enable-libtheora | ||
--enable-libvidstab | ||
--enable-libvmaf | ||
--enable-libvorbis | ||
--enable-libvpx | ||
--enable-libwebp | ||
--enable-libx264 | ||
--enable-libx265 | ||
--enable-libxml2 | ||
--enable-libxvid | ||
--enable-lzma | ||
--enable-libfontconfig | ||
--enable-libfreetype | ||
--enable-frei0r | ||
--enable-libass | ||
--enable-libopencore-amrnb | ||
--enable-libopencore-amrwb | ||
--enable-libopenjpeg | ||
--enable-libspeex | ||
--enable-libsoxr | ||
--enable-libzmq | ||
--enable-libzimg | ||
--disable-libjack | ||
--disable-indev=jack | ||
] | ||
|
||
# Needs corefoundation, coremedia, corevideo | ||
args += %w[--enable-videotoolbox --enable-audiotoolbox] if OS.mac? | ||
args << "--enable-neon" if Hardware::CPU.arm? | ||
|
||
system "./configure", *args | ||
system "make", "install" | ||
|
||
# Build and install additional FFmpeg tools | ||
system "make", "alltools" | ||
bin.install (buildpath/"tools").children.select { |f| f.file? && f.executable? } | ||
pkgshare.install buildpath/"tools/python" | ||
end | ||
|
||
test do | ||
# Create an example mp4 file | ||
mp4out = testpath/"video.mp4" | ||
system bin/"ffmpeg", "-filter_complex", "testsrc=rate=1:duration=1", mp4out | ||
assert_path_exists mp4out | ||
end | ||
end |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The error here is due to the removal of a deprecated feature in zig build: https://ziglang.org/download/0.15.1/release-notes.html#Removed-Deprecated-Implicit-Root-Module Amusingly, the zig docs have this exact same failure, apparently inserted by a CI run that shows the output of their example commands: https://ziglang.org/learn/build-system/
EDIT: filed seatedro/glyph#32 upstream for tracking |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
url "https://github.com/seatedro/glyph/archive/refs/tags/v1.0.11.tar.gz" | ||
sha256 "7de7936a13b92b18240134bef64c006ab73988850a8776a1b276e22b73377f15" | ||
license "MIT" | ||
revision 1 | ||
|
||
bottle do | ||
sha256 cellar: :any, arm64_sequoia: "dace7314cab8589f003791387c994758716a5137382f202e20335bf5bcb11625" | ||
|
@@ -17,9 +18,9 @@ | |
|
||
depends_on "pkgconf" => :build | ||
depends_on "zig" => :build | ||
depends_on "ffmpeg" | ||
depends_on "ffmpeg@7" | ||
|
||
def install | ||
Check failure on line 23 in Formula/g/glyph.rb
|
||
# Fix illegal instruction errors when using bottles on older CPUs. | ||
# https://github.com/Homebrew/homebrew-core/issues/92282 | ||
cpu = case ENV.effective_arch | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can probably stay with latest
ffmpeg
with-DCMAKE_POLICY_VERSION_MINIMUM=3.5
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmake minimum has already been bumped to
3.10
in the project's git head: acoustid/chromaprint@6ce6c4dPrior to that it was bumped to
3.5...3.10
: acoustid/chromaprint@1120d82