From 30fbaae7adef184138beb4b818d8df7fb95b5ae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Thu, 2 Feb 2023 23:11:15 +0000 Subject: [PATCH] Silence `libx264` during precompilation --- src/VideoIO.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/VideoIO.jl b/src/VideoIO.jl index 6064d64d..4d57e76f 100644 --- a/src/VideoIO.jl +++ b/src/VideoIO.jl @@ -197,6 +197,7 @@ end @precompile_setup begin imgstack = map(_->rand(UInt8, 10, 10), 1:10) @precompile_all_calls begin + loglevel!(libffmpeg.AV_LOG_FATAL) # Silence precompilation process fname = string(tempname(), ".mp4") VideoIO.save(fname, imgstack) VideoIO.save(fname, VideoIO.load(fname)) # the loaded video is RGB type