ec-av1 probe: use pinned ec_testkit ffmpeg/ffprobe (ec-testkit now a regular dep)
Browse files at this commitaf2f12a2cefac77c40d23c61068e1a4a7c3383deParent: b7727d72 changed files +4 -3
crates/ec-av1/Cargo.tomlmodified+1 -1
| @@ -7,6 +7,7 @@ license.workspace = true | ||
| 7 | 7 | authors.workspace = true |
| 8 | 8 | |
| 9 | 9 | [dependencies] |
| 10 | +ec-testkit.workspace = true | |
| 10 | 11 | ec-core.workspace = true |
| 11 | 12 | ec-av1-syntax.workspace = true |
| 12 | 13 | archmage = "=0.9.31-beta.1" |
| @@ -21,7 +22,6 @@ default = ["gate-counters"] | ||
| 21 | 22 | gate-counters = [] |
| 22 | 23 | |
| 23 | 24 | [dev-dependencies] |
| 24 | -ec-testkit.workspace = true | |
| 25 | 25 | # `nightly` only makes StatsAlloc::new const, so it can be a #[global_allocator] static. |
| 26 | 26 | stats_alloc = { version = "0.1.10", features = ["nightly"] } |
| 27 | 27 | tracking-allocator = "0.4.0" |
crates/ec-av1/src/probe.rsmodified+3 -2
| @@ -9,12 +9,13 @@ | ||
| 9 | 9 | //! `encode::tests::the_probe_arms_the_gates_source` pins. |
| 10 | 10 | |
| 11 | 11 | use crate::encode::Picture; |
| 12 | +#[cfg(test)] | |
| 12 | 13 | use std::process::Command; |
| 13 | 14 | |
| 14 | 15 | /// The video stream's coded size, from ffprobe. |
| 15 | 16 | #[must_use] |
| 16 | 17 | pub fn dims(clip: &str) -> Option<(usize, usize)> { |
| 17 | - let out = Command::new("ffprobe") | |
| 18 | + let out = ec_testkit::ffprobe() | |
| 18 | 19 | .args(["-v", "error", "-select_streams", "v:0"]) |
| 19 | 20 | .args(["-show_entries", "stream=width,height", "-of", "csv=p=0"]) |
| 20 | 21 | .arg(clip) |
| @@ -66,7 +67,7 @@ pub fn source( | ||
| 66 | 67 | height: usize, |
| 67 | 68 | frames: usize, |
| 68 | 69 | ) -> Vec<Picture> { |
| 69 | - let out = Command::new("ffmpeg") | |
| 70 | + let out = ec_testkit::ffmpeg() | |
| 70 | 71 | .args(["-v", "error", "-ss", skip, "-i", clip]) |
| 71 | 72 | .args(["-frames:v", &frames.to_string()]) |
| 72 | 73 | .args(["-vf", vf]) |