Skip to content
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

Bump ffmpeg #84

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions Formula/ffmpeg-lite.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
class FfmpegLite < Formula
desc "Play, record, convert, and stream audio and video"
homepage "https://ffmpeg.org/"
url "https://ffmpeg.org/releases/ffmpeg-5.1.2.tar.xz"
sha256 "619e706d662c8420859832ddc259cd4d4096a48a2ce1eefd052db9e440eef3dc"
# 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"
head "https://github.com/FFmpeg/FFmpeg.git", branch: "master"

stable do
url "https://ffmpeg.org/releases/ffmpeg-6.0.tar.xz"
sha256 "57be87c22d9b49c112b6d24bc67d42508660e6b718b3db89c44e47e289137082"

# Fix bug in 6.0.0 with enable-hardcoded-tables
patch do
url "https://github.com/FFmpeg/FFmpeg/commit/814178f92647be2411516bbb82f48532373d2554.patch?full_index=1"
sha256 "5e4e17e76d9fb045035064bed76812371136cbf3c86d2ddcaa98bd7c542cfcfa"
end
end

livecheck do
url "https://ffmpeg.org/download.html"
regex(/href=.*?ffmpeg[._-]v?(\d+(?:\.\d+)+)\.t/i)
Expand Down Expand Up @@ -58,7 +67,7 @@ def install
--disable-indev=jack
]

args << "--enable-videotoolbox" if OS.mac?
args += %w[--enable-videotoolbox --enable-audiotoolbox] if OS.mac?

system "./configure", *args
system "make", "install"
Expand Down