diff options
author | Hugo Gameiro <hmgameiro@gmail.com> | 2019-10-06 18:48:26 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-10-06 19:48:26 +0200 |
commit | a7917269d30104d0ba1e310d5f30f72891c9a37b (patch) | |
tree | f2faab8bc227563b00dbdea8fd8a99dbc5a9c9b3 /app/models | |
parent | 086fc7ed7733c7ec3b51a2513d496670f6a97219 (diff) |
add loglevel fatal to video and audio styles (#12088)
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/media_attachment.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb index 630dab55a..9c6c04556 100644 --- a/app/models/media_attachment.rb +++ b/app/models/media_attachment.rb @@ -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, }, }, |