Render videos in BT.709 colorspace by default (#384)

This color space has a wider color range, and is recommended by YouTube:
https://support.google.com/youtube/answer/1722171?hl=en
pull/385/head
nyanpasu64 2021-07-12 16:33:52 -07:00 zatwierdzone przez GitHub
rodzic 6757d933cc
commit d93cca1c33
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -3,6 +3,7 @@
### Major Changes
- Change `-r/--render` command line flag to take an output path (#382)
- Render videos in BT.709 colorspace by default (#384)
### Changelog

Wyświetl plik

@ -242,7 +242,10 @@ class FFmpegOutputConfig(IOutputConfig):
args: str = ""
video_template: str = (
"-c:v libx264 -crf 18 -preset superfast -pix_fmt yuv420p -movflags faststart"
"-c:v libx264 -crf 18 -preset superfast "
"-pix_fmt yuv420p -vf scale=out_color_matrix=bt709 "
"-color_range 1 -colorspace bt709 -color_trc bt709 -color_primaries bt709 "
"-movflags faststart"
)
audio_template: str = "-c:a aac -b:a 384k"