about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-03-10 11:58:40 +0100
committerGitHub <noreply@github.com>2020-03-10 11:58:40 +0100
commit2c6099125d9ed5c2add62e84d5ba7b93de658910 (patch)
treeb8709ff971d30d50262eb99328068bb33145c08f /app
parentabd839488054b6de2dec9e7ec095d79e4a106573 (diff)
Fix videos with unsupported colorspace not being transcoded (#13242)
Diffstat (limited to 'app')
-rw-r--r--app/models/media_attachment.rb5
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: {