Skip to content

Commit

Permalink
amend expected video duration after ffmpeg 7.1 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
rob93c committed Dec 21, 2024
1 parent 5c855bd commit 8b90bad
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void convertShortAndLowFpsVideo() throws Exception {
var webmVideo = loadResource("short_low_fps.webm");
var result = MediaHelper.convert(webmVideo);

assertVideoConsistency(result, 512, 288, 10F, 1_000L);
assertVideoConsistency(result, 512, 288, 10F, 900L);
}

@Test
Expand All @@ -204,23 +204,23 @@ void convertVerticalWebmVideo() throws Exception {
var webmVideo = loadResource("vertical_video_sticker.webm");
var result = MediaHelper.convert(webmVideo);

assertVideoConsistency(result, 288, 512, 30F, 2_000L);
assertVideoConsistency(result, 288, 512, 30F, 1_970L);
}

@Test
void convertGifVideo() throws Exception {
var gifVideo = loadResource("valid.gif");
var result = MediaHelper.convert(gifVideo);

assertVideoConsistency(result, 512, 274, 10F, 1_000L);
assertVideoConsistency(result, 512, 274, 10F, 900L);
}

@Test
void convertAviVideo() throws Exception {
var aviVideo = loadResource("valid.avi");
var result = MediaHelper.convert(aviVideo);

assertVideoConsistency(result, 512, 512, 30F, 3_000L);
assertVideoConsistency(result, 512, 512, 30F, 2_970L);
}

@Test
Expand Down

0 comments on commit 8b90bad

Please sign in to comment.