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