From 9e534aad191af5209e2f08183cad6b25cba34a93 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Fri, 21 Jun 2019 22:59:44 +0200 Subject: 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 --- app/models/media_attachment.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'app/models') diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb index ce3549539..e2a44d457 100644 --- a/app/models/media_attachment.rb +++ b/app/models/media_attachment.rb @@ -86,9 +86,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 -- cgit