diff options
author | ThibG <thib@sitedethib.com> | 2020-03-10 11:58:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-10 11:58:40 +0100 |
commit | 2c6099125d9ed5c2add62e84d5ba7b93de658910 (patch) | |
tree | b8709ff971d30d50262eb99328068bb33145c08f /app | |
parent | abd839488054b6de2dec9e7ec095d79e4a106573 (diff) |
Fix videos with unsupported colorspace not being transcoded (#13242)
Diffstat (limited to 'app')
-rw-r--r-- | app/models/media_attachment.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb index 9ca0a6cda..31aa918b7 100644 --- a/app/models/media_attachment.rb +++ b/app/models/media_attachment.rb @@ -78,8 +78,9 @@ class MediaAttachment < ApplicationRecord }.freeze VIDEO_PASSTHROUGH_OPTIONS = { - video_codec_whitelist: ['h264'], - audio_codec_whitelist: ['aac', nil], + video_codecs: ['h264'], + audio_codecs: ['aac', nil], + colorspaces: ['yuv420p'], options: { format: 'mp4', convert_options: { |