diff options
| author | AppleDash <[email protected]> | 2021-03-29 23:06:38 -0400 |
|---|---|---|
| committer | AppleDash <[email protected]> | 2021-03-29 23:06:38 -0400 |
| commit | 77c312d5cc0f1eb024c458edc1fedd55bf5c3852 (patch) | |
| tree | 2ba027a92739d117ae1f892ebe6f2130ce7890d4 /lib/booru/image_processing/mp4_processor.rb | |
| parent | 88227a3799271b6ac104d8878ecaedd269cff54c (diff) | |
More dedupe
Diffstat (limited to 'lib/booru/image_processing/mp4_processor.rb')
| -rw-r--r-- | lib/booru/image_processing/mp4_processor.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/booru/image_processing/mp4_processor.rb b/lib/booru/image_processing/mp4_processor.rb index c1cddfb..cd155d2 100644 --- a/lib/booru/image_processing/mp4_processor.rb +++ b/lib/booru/image_processing/mp4_processor.rb @@ -18,19 +18,6 @@ module Booru '-preset', 'veryfast', webm_path end - - def additional_process - write_log "additional_process" - - # generate gifs from mp4s; no idea why this is special-cased. - duration = @metadata[:duration] / 10.0 - duration = 1 if duration == 0 - - [[250, :thumb], [150, :thumb_small], [50, :thumb_tiny]].each do |w, n| - # FIXME: Why is this so EXTREME? - 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 - end end end end |
