rav1e 0.1.0 (new formula)
Signed-off-by: Vibhoothi <vibhoothiiaanand@gmail.com> Closes #46873. Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
parent
0c5930b3e5
commit
ca2d60b2db
1 changed files with 28 additions and 0 deletions
28
Formula/rav1e.rb
Normal file
28
Formula/rav1e.rb
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
class Rav1e < Formula
|
||||||
|
desc "The fastest and safest AV1 encoder"
|
||||||
|
homepage "https://github.com/xiph/rav1e"
|
||||||
|
url "https://github.com/xiph/rav1e/archive/0.1.0.tar.gz"
|
||||||
|
sha256 "00395087eaba4778d17878924e007716e2f399116b8011bf057fd54cc528a6cb"
|
||||||
|
|
||||||
|
depends_on "nasm" => :build
|
||||||
|
depends_on "rust" => :build
|
||||||
|
|
||||||
|
resource "bus_qcif_15fps.y4m" do
|
||||||
|
url "https://media.xiph.org/video/derf/y4m/bus_qcif_15fps.y4m"
|
||||||
|
sha256 "868fc3446d37d0c6959a48b68906486bd64788b2e795f0e29613cbb1fa73480e"
|
||||||
|
end
|
||||||
|
|
||||||
|
def install
|
||||||
|
system "cargo", "install", "--locked",
|
||||||
|
"--root", prefix,
|
||||||
|
"--path", "."
|
||||||
|
end
|
||||||
|
|
||||||
|
test do
|
||||||
|
resource("bus_qcif_15fps.y4m").stage do
|
||||||
|
system "#{bin}/rav1e", "--tile-rows=2",
|
||||||
|
"bus_qcif_15fps.y4m",
|
||||||
|
"--output=bus_qcif_15fps.ivf"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue