diff options
| author | AppleDash <[email protected]> | 2021-03-09 15:25:04 -0500 |
|---|---|---|
| committer | AppleDash <[email protected]> | 2021-03-09 15:25:04 -0500 |
| commit | 2fcd23309eb0385e7448533e4bece9240ef373c4 (patch) | |
| tree | c7d83acb8e4de52d0a3462c06d225aad737f82c8 /lib/booru/image_processing/mp4_processor.rb | |
| parent | 5cb317ca141d9cc8f3377a41b354ffa5a7251859 (diff) | |
Improve ffmpeg logging levels
Diffstat (limited to 'lib/booru/image_processing/mp4_processor.rb')
| -rw-r--r-- | lib/booru/image_processing/mp4_processor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/booru/image_processing/mp4_processor.rb b/lib/booru/image_processing/mp4_processor.rb index 2e8898a..5682a22 100644 --- a/lib/booru/image_processing/mp4_processor.rb +++ b/lib/booru/image_processing/mp4_processor.rb @@ -48,7 +48,7 @@ module Booru def additional_process write_log "additional_process" # generate gifs from mp4s; no idea why this is special-cased. - duration = exec("ffprobe -loglevel quiet -of 'compact=nokey=1:print_section=0' -show_format_entry duration #{@original_path.shellescape}").chomp.to_f / 10 + duration = exec("ffprobe -loglevel error -of 'compact=nokey=1:print_section=0' -show_format_entry duration #{@original_path.shellescape}").chomp.to_f / 10 [[250, :thumb], [150, :thumb_small], [50, :thumb_tiny]].each do |w, n| exec("ffmpeg -loglevel warning -i #{@original_path.shellescape} -vf \"fps=1/#{duration},scale=w=#{w}:h=#{w}:force_original_aspect_ratio=decrease\" -vframes 10 -qscale:v 2 -f image2pipe -vcodec ppm - | convert -delay 50 -loop 0 - gif:- | gifsicle --no-warnings -O2 > #{@directory}/#{n}.gif") end |
