FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
tests: the MPEG oracle reads ffprobe's best-effort timestamps
txiki7393d67c4b73dd1
diff --git a/crates/codecs/tests/mpeg_oracle.rs b/crates/codecs/tests/mpeg_oracle.rsindex 5fdbc0bfc..5e3024932 100644--- a/crates/codecs/tests/mpeg_oracle.rs+++ b/crates/codecs/tests/mpeg_oracle.rs@@ -177,11 +177,12 @@ fn open(p: &Path) -> MpegSource {MpegSource::open(p.file_name().unwrap().to_str().unwrap(), bytes(p)).unwrap()}-/// ffprobe's video frames in display order: pts (90 kHz).+/// ffprobe's video frames in display order: presentation timestamps (90 kHz), including+/// inferred timestamps where an MPEG program stream omits a picture's PTS.fn ffprobe_frame_pts(file: &Path) -> Option<Vec<i64>> {let fp = filmcraft_testkit::ffprobe()?;let o = std::process::Command::new(fp)- .args(["-v", "error", "-select_streams", "v:0", "-show_entries", "frame=pts", "-of", "csv=p=0"])+ .args(["-v", "error", "-select_streams", "v:0", "-show_entries", "frame=best_effort_timestamp", "-of", "csv=p=0"]).arg(file).output().ok()?;