diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/models/media_attachment.rb | 27 |
1 files changed, 22 insertions, 5 deletions
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 = { |