]> cat aescling's git repositories - mastodon.git/commitdiff
Add vsync -cfr option when converting gif to webm
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 5 Mar 2017 22:27:25 +0000 (23:27 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 5 Mar 2017 22:27:25 +0000 (23:27 +0100)
app/models/media_attachment.rb

index f300c127cbb67b86953be5588a60dc282e999266..30a76f3ec884fac1888e73a6201cbe005e7ebb76 100644 (file)
@@ -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',
               },
             },
           },