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

uvg266 0.8.1 #176073

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2523,6 +2523,7 @@ uutils-diffutils
uutils-findutils
uuu
uv
uvg266
uvicorn
uwsgi
v2ray
Expand Down
47 changes: 17 additions & 30 deletions Formula/u/uvg266.rb
Original file line number Diff line number Diff line change
@@ -1,50 +1,37 @@
class Uvg266 < Formula
desc "Open-source VVC/H.266 encoder"
homepage "https://github.com/ultravideo/uvg266"
url "https://github.com/ultravideo/uvg266/archive/refs/tags/v0.8.1.tar.gz"
sha256 "9a2c68f94a1105058d1e654191036423d0a0fcf33b7e790dd63801997540b6ec"
license "BSD-3-Clause"
head "https://github.com/ultravideo/uvg266.git", branch: "master"

stable do
url "https://github.com/ultravideo/uvg266/archive/refs/tags/v0.8.0.tar.gz"
sha256 "27e4306577fe646951bd3c12685c1527b41385bfcb95262233669fc7f44f21bd"

# Fix attempts to build AVX2 code on arm64 - remove on next release
patch do
url "https://github.com/ultravideo/uvg266/commit/e5e32d67f43ba73db4a1a17aa975a070f15496be.patch?full_index=1"
sha256 "2b2e0938eeab7ea9900ec2f40e09debdcd908e13fffb44f66556baa904edaeff"
end
end

bottle do
sha256 cellar: :any, arm64_sonoma: "b3f0dcbb7047b2982860c57b4b9d94da3b69ee513c6587be4dd95fbc223ab94f"
sha256 cellar: :any, arm64_ventura: "fe2dc71d9b62684ff83a8de3fbd7ba21e491670d24a825a4eb19f05ac4df3d21"
sha256 cellar: :any, arm64_monterey: "96832bedf204b7315199fe2c73d915d8899b118c0fdeb7e7366444238dcad9c5"
sha256 cellar: :any, sonoma: "84b745699bddeeda3528c792573cbad0bee61197b6d54520bf64eaecc53fc1da"
sha256 cellar: :any, ventura: "a4903dd76bb6286cc20becf914f043649e8b7c3b3fd2029c966b1a7f4553a3e0"
sha256 cellar: :any, monterey: "84e5397eca32b986e135eebf2bd67bf6b80cda9388d6396437d8d12b575aad21"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e64fb73e4bdaece14458cdfd4c8c123c298a8ce3fcfb483f2c3dc2ba22902bb8"
sha256 cellar: :any, arm64_sonoma: "2e1d62a8487ecb14e1b585c0a7e4b6d3a59ee1a9c2a1ead291697968c1b6eb55"
sha256 cellar: :any, arm64_ventura: "aeee7925bcfdc18d227a1d911489a03abd2f5ca434336c9da4b308516641d1dc"
sha256 cellar: :any, arm64_monterey: "b958ad1e7e6fa2607fc592db623418c2a7125d6bd7d75b247fe8c6d1fbb5b4ab"
sha256 cellar: :any, sonoma: "1ff7b317c2ef872de0f794eb448e26cf4b1569352b2dac1e041357756d94b3da"
sha256 cellar: :any, ventura: "9219b51849b23154d86aec45505cc450e83833a14b8c5ecf32cec6fc889a4096"
sha256 cellar: :any, monterey: "5b0ac26a3a6a6162769cd3d08d7eeb2fc43ad4bfdab0905e6e0044ef8fa73c95"
sha256 cellar: :any_skip_relocation, x86_64_linux: "b2b2fc85f72c8d371bd32609a2723478c4c5f7575e3337827b5991c5b91f498d"
end

depends_on "cmake" => :build

resource "homebrew-videosample" do
url "https://samples.mplayerhq.hu/V-codecs/lm20.avi"
sha256 "a0ab512c66d276fd3932aacdd6073f9734c7e246c8747c48bf5d9dd34ac8b392"
end

def install
args = std_cmake_args + %W[-DCMAKE_INSTALL_RPATH=#{rpath}]

system "cmake", "-S", ".", "-B", "build", *args
system "cmake", "-S", ".", "-B", "build", "-DCMAKE_INSTALL_RPATH=#{rpath}", *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end

test do
# download small sample and try to encode it
resource("homebrew-videosample").stage do
system bin/"uvg266", "-i", "lm20.avi", "--input-res", "16x16", "-o", "lm20.vvc"
assert_predicate Pathname.pwd/"lm20.vvc", :exist?
resource "homebrew-videosample" do
url "https://samples.mplayerhq.hu/V-codecs/lm20.avi"
sha256 "a0ab512c66d276fd3932aacdd6073f9734c7e246c8747c48bf5d9dd34ac8b392"
end
testpath.install resource("homebrew-videosample")

system bin/"uvg266", "-i", "lm20.avi", "--input-res", "16x16", "-o", "lm20.vvc"
assert_predicate testpath/"lm20.vvc", :exist?
end
end
Loading