From b614bd751738f26e0a302f049d340c26036c5779 Mon Sep 17 00:00:00 2001 From: AbelHo <21101710+AbelHo@users.noreply.github.com> Date: Fri, 10 Feb 2023 22:52:55 -1000 Subject: [PATCH 1/2] fix test results for two files --- src/testvideos.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testvideos.jl b/src/testvideos.jl index 74cca627..6dfbb955 100644 --- a/src/testvideos.jl +++ b/src/testvideos.jl @@ -51,7 +51,7 @@ const videofiles = Dict( "https://downloadnatureclip.blogspot.com/p/download-links.html", "https://archive.org/download/LadybirdOpeningWingsCCBYNatureClip/Ladybird%20opening%20wings%20CC-BY%20NatureClip.mp4", 397, - 30000//1, + 30000//1001, 13, 3216, ), @@ -87,7 +87,7 @@ const videofiles = Dict( "https://www.eso.org/public/videos/eso1004a/", "https://upload.wikimedia.org/wikipedia/commons/1/13/Artist%E2%80%99s_impression_of_the_black_hole_inside_NGC_300_X-1_%28ESO_1004c%29.webm", 597, - 1000//1, + 25//1, 1, 4816, ), From 619a76083799ee584f72e6695cc1a2b645a563fb Mon Sep 17 00:00:00 2001 From: AbelHo <21101710+AbelHo@users.noreply.github.com> Date: Fri, 10 Feb 2023 22:58:09 -1000 Subject: [PATCH 2/2] fix get_fps to select video stream only --- test/utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils.jl b/test/utils.jl index 44b80a9f..585030f8 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -183,7 +183,7 @@ Query the container `file` for the frame per second(fps) of the video stream function get_fps(file::AbstractString, streamno::Integer = 0) streamno >= 0 || throw(ArgumentError("streamno must be non-negative")) fps_strs = FFMPEG.exe( - `-v 0 -of compact=p=0 -select_streams 0 -show_entries stream=r_frame_rate $file`, + `-v 0 -of compact=p=0 -select_streams v:$(streamno) -show_entries stream=r_frame_rate $file`, command = FFMPEG.ffprobe, collect = true, )