Browse Source

add loglevel fatal to video and audio styles (#12088)

Hugo Gameiro 4 months ago
parent
commit
a7917269d3
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      app/models/media_attachment.rb

+ 3
- 0
app/models/media_attachment.rb View File

@@ -57,6 +57,7 @@ class MediaAttachment < ApplicationRecord
57 57
     small: {
58 58
       convert_options: {
59 59
         output: {
60
+          'loglevel' => 'fatal',
60 61
           vf: 'scale=\'min(400\, iw):min(400\, ih)\':force_original_aspect_ratio=decrease',
61 62
         },
62 63
       },
@@ -70,6 +71,7 @@ class MediaAttachment < ApplicationRecord
70 71
       keep_same_format: true,
71 72
       convert_options: {
72 73
         output: {
74
+          'loglevel' => 'fatal',
73 75
           'map_metadata' => '-1',
74 76
           'c:v' => 'copy',
75 77
           'c:a' => 'copy',
@@ -84,6 +86,7 @@ class MediaAttachment < ApplicationRecord
84 86
       content_type: 'audio/mpeg',
85 87
       convert_options: {
86 88
         output: {
89
+          'loglevel' => 'fatal',
87 90
           'q:a' => 2,
88 91
         },
89 92
       },

Loading…
Cancel
Save