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, ), 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, )