From bb947d2c0f904927ad6ca5e7b3f0bb80ab25b682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Dec 2026 07:43:01 +0300 Subject: [PATCH] ec-av1 encoder tests: Sintel readers seek 20 s (h264_clip_frames, rav1e bench) instead of 0 s Sintel trailer frames 0..1 s are pure black (ffmpeg 9.0.2 signalstats YAVG=0 at 0 s, YAVG 44 at 20 s), so the rate-control gates were fed degenerate content (22 bytes/frame). Same seek as the pin test in encode/more_tests.rs. Pins untouched; re-pin after run. --- crates/ec-av1/src/encoder/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ec-av1/src/encoder/tests.rs b/crates/ec-av1/src/encoder/tests.rs index 51a6257b..c8ce5eab 100644 --- a/crates/ec-av1/src/encoder/tests.rs +++ b/crates/ec-av1/src/encoder/tests.rs @@ -694,7 +694,7 @@ // therefore `return` on `None` WITHOUT printing a second one -- the // second "no fixture" line per gate was the noise that hid this defect. let out = ec_testkit::ffmpeg() - .args(["-v", "error", "-i", clip.to_str().unwrap()]) + .args(["-v", "error", "-ss", "20", "-i", clip.to_str().unwrap()]) .args(["-frames:v", &frames.to_string()]) .args(["-vf", &format!("scale={width}:{height}")]) .args(["-f", "rawvideo", "-pix_fmt", "yuv420p", "-"]).output() @@ -3531,7 +3531,7 @@ ); let start = std::time::Instant::now(); let status = ec_testkit::ffmpeg() - .args(["-v", "error", "-y", "-i", clip.to_str().unwrap()]) + .args(["-v", "error", "-y", "-ss", "20", "-i", clip.to_str().unwrap()]) .args(["-frames:v", &frames.to_string()]) .args(["-vf", &format!("scale={width}:{height}")]) .args(["-c:v", "librav1e", "-rav1e-params", ¶ms])