forge
Explore
Log in

Don't you dare go Hollow

ec-av1 probe: use pinned ec_testkit ffmpeg/ffprobe (ec-testkit now a regular dep)

Browse files at this commit

af2f12a2cefac77c40d23c61068e1a4a7c3383deAhmet Kaan GümüşParent: b7727d7
crates/ec-av1/Cargo.tomlmodified+1 -1
@@ -7,6 +7,7 @@ license.workspace = true
77 authors.workspace = true
88
99 [dependencies]
10+ec-testkit.workspace = true
1011 ec-core.workspace = true
1112 ec-av1-syntax.workspace = true
1213 archmage = "=0.9.31-beta.1"
@@ -21,7 +22,6 @@ default = ["gate-counters"]
2122 gate-counters = []
2223
2324 [dev-dependencies]
24-ec-testkit.workspace = true
2525 # `nightly` only makes StatsAlloc::new const, so it can be a #[global_allocator] static.
2626 stats_alloc = { version = "0.1.10", features = ["nightly"] }
2727 tracking-allocator = "0.4.0"
crates/ec-av1/src/probe.rsmodified+3 -2
@@ -9,12 +9,13 @@
99 //! `encode::tests::the_probe_arms_the_gates_source` pins.
1010
1111 use crate::encode::Picture;
12+#[cfg(test)]
1213 use std::process::Command;
1314
1415 /// The video stream's coded size, from ffprobe.
1516 #[must_use]
1617 pub fn dims(clip: &str) -> Option<(usize, usize)> {
17- let out = Command::new("ffprobe")
18+ let out = ec_testkit::ffprobe()
1819 .args(["-v", "error", "-select_streams", "v:0"])
1920 .args(["-show_entries", "stream=width,height", "-of", "csv=p=0"])
2021 .arg(clip)
@@ -66,7 +67,7 @@ pub fn source(
6667 height: usize,
6768 frames: usize,
6869 ) -> Vec<Picture> {
69- let out = Command::new("ffmpeg")
70+ let out = ec_testkit::ffmpeg()
7071 .args(["-v", "error", "-ss", skip, "-i", clip])
7172 .args(["-frames:v", &frames.to_string()])
7273 .args(["-vf", vf])