fix(server): incorrect out_color_matrix value when generating thumbnails (#13409)

This commit is contained in:
lyyn 2024-10-13 19:19:40 +02:00 committed by GitHub
parent 5a3e352950
commit 9bdfb41e9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View file

@ -424,7 +424,7 @@ export class ThumbnailConfig extends BaseConfig {
getScaling(videoStream: VideoStreamInfo) {
let options = super.getScaling(videoStream) + ':flags=lanczos+accurate_rnd+full_chroma_int';
if (!this.shouldToneMap(videoStream)) {
options += ':out_color_matrix=601:out_range=pc';
options += ':out_color_matrix=bt601:out_range=pc';
}
return options;
}
@ -432,7 +432,7 @@ export class ThumbnailConfig extends BaseConfig {
getColors() {
return {
primaries: 'bt709',
transfer: '601',
transfer: 'bt601',
matrix: 'bt470bg',
};
}