diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-06-21 22:59:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-21 22:59:44 +0200 |
commit | 49ebda4d49af50b375126e4a8285686fb6448a60 (patch) | |
tree | cf332d4cff9bbdd31fae36dc389a33ee978151a9 /app/models | |
parent | 8f23726918fd8ded18ce9e55e6199df87abcc7cf (diff) |
Change audio format from ogg to mp3 for wider compatibility (#11141)
* Change audio format from ogg to mp3 for wider compatibility * Add media description as title to links of unknown media attachments
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/media_attachment.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb index ae94ce68a..4c55d4b98 100644 --- a/app/models/media_attachment.rb +++ b/app/models/media_attachment.rb @@ -69,9 +69,13 @@ class MediaAttachment < ApplicationRecord AUDIO_STYLES = { original: { - format: 'ogg', - content_type: 'audio/ogg', - convert_options: {}, + format: 'mp3', + content_type: 'audio/mpeg', + convert_options: { + output: { + 'q:a' => 2, + }, + }, }, }.freeze |