Skip to content

Commit

Permalink
test: cover filter_complex (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanbabcock committed Feb 23, 2024
1 parent a3bd828 commit 763f80d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,3 +305,19 @@ fn test_ffprobe_version() {
println!("{:?}", ffprobe_path());
println!("{:?}", ffprobe_version().unwrap());
}

#[test]
fn test_filter_complex() {
let num_frames = FfmpegCommand::new()
.format("lavfi")
.input("testsrc=duration=1:rate=10")
.rawvideo()
.filter_complex("fps=5")
.spawn()
.unwrap()
.iter()
.unwrap()
.filter_frames()
.count();
assert!(num_frames == 5);
}

0 comments on commit 763f80d

Please sign in to comment.