forge
Explore
Log in

Don't you dare go Hollow

ec-av1 encoder tests: Sintel readers seek 20 s (h264_clip_frames, rav1e bench) instead of 0 s

Browse files at this commit

bb947d2c0f904927ad6ca5e7b3f0bb80ab25b682Ahmet Kaan GümüşParent: 0a54b85
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.rsmodified+2 -2
@@ -694,7 +694,7 @@
694 // therefore `return` on `None` WITHOUT printing a second one -- the694 // therefore `return` on `None` WITHOUT printing a second one -- the
695 // second "no fixture" line per gate was the noise that hid this defect.695 // second "no fixture" line per gate was the noise that hid this defect.
696 let out = ec_testkit::ffmpeg()696 let out = ec_testkit::ffmpeg()
697- .args(["-v", "error", "-i", clip.to_str().unwrap()])697+ .args(["-v", "error", "-ss", "20", "-i", clip.to_str().unwrap()])
698 .args(["-frames:v", &frames.to_string()])698 .args(["-frames:v", &frames.to_string()])
699 .args(["-vf", &format!("scale={width}:{height}")])699 .args(["-vf", &format!("scale={width}:{height}")])
700 .args(["-f", "rawvideo", "-pix_fmt", "yuv420p", "-"]).output()700 .args(["-f", "rawvideo", "-pix_fmt", "yuv420p", "-"]).output()
@@ -3531,7 +3531,7 @@
3531 );3531 );
3532 let start = std::time::Instant::now();3532 let start = std::time::Instant::now();
3533 let status = ec_testkit::ffmpeg()3533 let status = ec_testkit::ffmpeg()
3534- .args(["-v", "error", "-y", "-i", clip.to_str().unwrap()])3534+ .args(["-v", "error", "-y", "-ss", "20", "-i", clip.to_str().unwrap()])
3535 .args(["-frames:v", &frames.to_string()])3535 .args(["-frames:v", &frames.to_string()])
3536 .args(["-vf", &format!("scale={width}:{height}")])3536 .args(["-vf", &format!("scale={width}:{height}")])
3537 .args(["-c:v", "librav1e", "-rav1e-params", &params])3537 .args(["-c:v", "librav1e", "-rav1e-params", &params])