Skip to content

Commit

Permalink
run ffmpeg bitexact so it stops uploading new slightly different copi…
Browse files Browse the repository at this point in the history
…es (#19)
  • Loading branch information
Zemnmez authored Oct 27, 2023
1 parent 7a687a4 commit f801966
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bzl/transcode_web/rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def transcode_web(name, src = None, out_base_name = "out", max_bitrate = "4.5M",
srcs = [src, "//bin/host/ffmpeg"],
cmd = """
$(location //bin/host/ffmpeg) -i $(location """ + src + """) \\
-bitexact \\
-c:v libx264 \\
-an \\
-bufsize 2M \\
Expand All @@ -26,6 +27,7 @@ def transcode_web(name, src = None, out_base_name = "out", max_bitrate = "4.5M",
srcs = [src, "//bin/host/ffmpeg"],
cmd = """
$(location //bin/host/ffmpeg) -i $(location """ + src + """) \\
-bitexact \\
-c:v libvpx \\
-crf 30 \\
-bufsize 2M \\
Expand All @@ -44,6 +46,7 @@ def transcode_web(name, src = None, out_base_name = "out", max_bitrate = "4.5M",
srcs = [src, "//bin/host/ffmpeg"],
cmd = """
$(location //bin/host/ffmpeg) -i $(location """ + src + """) \\
-bitexact \\
-c:v libtheora \\
-an \\
-bufsize 2M \\
Expand Down

0 comments on commit f801966

Please sign in to comment.