From 354eb3b757437fcc647cd46d4077a63e71f39099 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 5 Mar 2017 23:27:25 +0100 Subject: [PATCH] Add vsync -cfr option when converting gif to webm --- app/models/media_attachment.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb index f300c127cb..30a76f3ec8 100644 --- a/app/models/media_attachment.rb +++ b/app/models/media_attachment.rb @@ -62,9 +62,10 @@ class MediaAttachment < ApplicationRecord format: 'webm', convert_options: { output: { - 'c:v' => 'libvpx', - 'crf' => 4, - 'b:v' => '500K', + 'c:v' => 'libvpx', + 'crf' => 4, + 'b:v' => '500K', + 'vsync' => 'cfr', }, }, },