From cf557f18497e98aea0dbf8a799186aa92dc34663 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Thu, 27 Dec 2018 20:19:26 -0600 Subject: Plain AAC audio uploads live again. -DT --- app/models/media_attachment.rb | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'app/models') diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb index 6e1b37bac..7383be3b2 100644 --- a/app/models/media_attachment.rb +++ b/app/models/media_attachment.rb @@ -55,18 +55,35 @@ class MediaAttachment < ApplicationRecord AUDIO_STYLES = { original: { - format: 'mp4', + format: 'm4a', convert_options: { output: { - filter_complex: '"[0:a]compand,showwaves=s=640x360:mode=line,format=yuv420p[v]"', - map: '"[v]" -map 0:a', - threads: 2, - vcodec: 'libx264', + vn: '', acodec: 'aac', movflags: '+faststart', }, }, }, + + small: { + format: 'png', + time: 0, + convert_options: { + output: { + filter_complex: '"showwavespic=s=400x100:colors=lime|green"', + }, + }, + }, + + thumb: { + format: 'png', + time: 0, + convert_options: { + output: { + filter_complex: '"showwavespic=s=400x100:colors=lime|green"', + }, + }, + }, }.freeze VIDEO_STYLES = { -- cgit