Skip to content

Commit

Permalink
Silence libx264 during precompilation (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano authored Feb 2, 2023
1 parent 9cd5dfe commit 16c36b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/VideoIO.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16c36b9

Please sign in to comment.