summaryrefslogtreecommitdiff
path: root/anim/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'anim/build.zig')
-rw-r--r--anim/build.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/anim/build.zig b/anim/build.zig
index 5601e39..54ff589 100644
--- a/anim/build.zig
+++ b/anim/build.zig
@@ -304,13 +304,15 @@ pub fn build(b: *std.Build) void {
test_step.dependOn(&scene.app.addScript(exe, b.path(b.fmt("test/{s}.script", .{name})), .{}).step);
for ([_][]const u8{ "1920x1080", "3840x2160" }) |size| {
- // The design's master: x264 from the raw frames, tagged bt709.
+ // The design's master: x264 from the raw frames, tagged bt709. No
+ // adaptive quantization: on a still page it re-quantized a glyph's
+ // edge as the rest of the frame moved, a column flickering (fib 7.45 s).
const video = b.addSystemCommand(&.{ "sh", "-c",
\\set -e
\\mkdir -p out
\\"$0" --state "$1" --export - --size "$2" --fps 60 |
\\ ffmpeg -loglevel error -y -f rawvideo -pix_fmt rgba -s "$2" -r 60 -i - \
- \\ -c:v libx264 -crf 14 -preset slow -g 600 -pix_fmt yuv420p \
+ \\ -c:v libx264 -crf 14 -preset slow -g 600 -x264-params aq-mode=0 -pix_fmt yuv420p \
\\ -colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv "$3"
});
video.addArtifactArg(exe);