]> cat aescling's git repositories - mastodon.git/commitdiff
add loglevel fatal to video and audio styles (#12088)
authorHugo Gameiro <hmgameiro@gmail.com>
Sun, 6 Oct 2019 17:48:26 +0000 (18:48 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 6 Oct 2019 17:48:26 +0000 (19:48 +0200)
app/models/media_attachment.rb

index 630dab55ae9ab2b4ef416d73400056b13218c742..9c6c04556e282e971b6dd87e3f4b520b5bc936b9 100644 (file)
@@ -57,6 +57,7 @@ class MediaAttachment < ApplicationRecord
     small: {
       convert_options: {
         output: {
+          'loglevel' => 'fatal',
           vf: 'scale=\'min(400\, iw):min(400\, ih)\':force_original_aspect_ratio=decrease',
         },
       },
@@ -70,6 +71,7 @@ class MediaAttachment < ApplicationRecord
       keep_same_format: true,
       convert_options: {
         output: {
+          'loglevel' => 'fatal',
           'map_metadata' => '-1',
           'c:v' => 'copy',
           'c:a' => 'copy',
@@ -84,6 +86,7 @@ class MediaAttachment < ApplicationRecord
       content_type: 'audio/mpeg',
       convert_options: {
         output: {
+          'loglevel' => 'fatal',
           'q:a' => 2,
         },
       },