about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-03-05 23:27:25 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-03-05 23:27:25 +0100
commit6382ef2bc6f54f01a107fc921a8f29ec2eb9878c (patch)
tree49d70dce8a9358d8475b77887f083c069e74c6d0 /app/models
parent79b08c5f0a05844d2465e1e99c5cde4d7b4f6d0e (diff)
Add vsync -cfr option when converting gif to webm
Diffstat (limited to 'app/models')
-rw-r--r--app/models/media_attachment.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb
index f300c127c..30a76f3ec 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',
               },
             },
           },