mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 07:23:43 +01:00
Fix videos not playing in some browsers due to unsupported color space (#26745)
This commit is contained in:
parent
1471be8225
commit
ecd76fa413
1 changed files with 2 additions and 0 deletions
|
@ -100,6 +100,8 @@ class MediaAttachment < ApplicationRecord
|
||||||
output: {
|
output: {
|
||||||
'loglevel' => 'fatal',
|
'loglevel' => 'fatal',
|
||||||
'preset' => 'veryfast',
|
'preset' => 'veryfast',
|
||||||
|
'movflags' => 'faststart', # Move metadata to start of file so playback can begin before download finishes
|
||||||
|
'pix_fmt' => 'yuv420p', # Ensure color space for cross-browser compatibility
|
||||||
'c:v' => 'h264',
|
'c:v' => 'h264',
|
||||||
'c:a' => 'aac',
|
'c:a' => 'aac',
|
||||||
'b:a' => '192k',
|
'b:a' => '192k',
|
||||||
|
|
Loading…
Reference in a new issue