Commit a7917269 authored by Hugo Gameiro's avatar Hugo Gameiro Committed by Eugen Rochko

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

parent 086fc7ed
...@@ -57,6 +57,7 @@ class MediaAttachment < ApplicationRecord ...@@ -57,6 +57,7 @@ class MediaAttachment < ApplicationRecord
small: { small: {
convert_options: { convert_options: {
output: { output: {
'loglevel' => 'fatal',
vf: 'scale=\'min(400\, iw):min(400\, ih)\':force_original_aspect_ratio=decrease', vf: 'scale=\'min(400\, iw):min(400\, ih)\':force_original_aspect_ratio=decrease',
}, },
}, },
...@@ -70,6 +71,7 @@ class MediaAttachment < ApplicationRecord ...@@ -70,6 +71,7 @@ class MediaAttachment < ApplicationRecord
keep_same_format: true, keep_same_format: true,
convert_options: { convert_options: {
output: { output: {
'loglevel' => 'fatal',
'map_metadata' => '-1', 'map_metadata' => '-1',
'c:v' => 'copy', 'c:v' => 'copy',
'c:a' => 'copy', 'c:a' => 'copy',
...@@ -84,6 +86,7 @@ class MediaAttachment < ApplicationRecord ...@@ -84,6 +86,7 @@ class MediaAttachment < ApplicationRecord
content_type: 'audio/mpeg', content_type: 'audio/mpeg',
convert_options: { convert_options: {
output: { output: {
'loglevel' => 'fatal',
'q:a' => 2, 'q:a' => 2,
}, },
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment