diff options
author | Hugo Gameiro <hmgameiro@gmail.com> | 2019-10-06 18:48:26 +0100 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-21 04:00:09 -0600 |
commit | f0d3722f9b4fa21a6bcaa0949616a802258e5232 (patch) | |
tree | 83556fa17dcaca0acb4a9ce726083424b29755b4 /app | |
parent | 5b6fc19e76b1b9af5c8ed1ebfa664606d2170e82 (diff) |
add loglevel fatal to video and audio styles (#12088)
Diffstat (limited to 'app')
-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 d0b513793..fbc070573 100644 --- a/app/models/media_attachment.rb +++ b/app/models/media_attachment.rb @@ -74,6 +74,7 @@ class MediaAttachment < ApplicationRecord small: { convert_options: { output: { + 'loglevel' => 'fatal', vf: 'scale=\'min(400\, iw):min(400\, ih)\':force_original_aspect_ratio=decrease', }, }, @@ -87,6 +88,7 @@ class MediaAttachment < ApplicationRecord keep_same_format: true, convert_options: { output: { + 'loglevel' => 'fatal', 'map_metadata' => '-1', 'c:v' => 'copy', 'c:a' => 'copy', @@ -101,6 +103,7 @@ class MediaAttachment < ApplicationRecord content_type: 'audio/mpeg', convert_options: { output: { + 'loglevel' => 'fatal', 'q:a' => 2, }, }, |