fix(server): selectively apply metadata bitstream filter for video thumbnails (#28162)

pull/22227/merge
Pedro Pinhão 2026-05-01 04:05:08 +01:00 committed by GitHub
parent b554664791
commit b60e9c6771
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -647,7 +647,7 @@ describe(MediaService.name, () => {
expect.any(String),
expect.objectContaining({
inputOptions: expect.arrayContaining([
'-bsf:v',
'-bsf:0',
'hevc_metadata=colour_primaries=1:matrix_coefficients=1:transfer_characteristics=1',
]),
outputOptions: expect.any(Array),

View File

@ -423,7 +423,7 @@ export class ThumbnailConfig extends BaseConfig {
if (metadataOverrides.length > 0) {
// workaround for https://fftrac-bg.ffmpeg.org/ticket/11020
options.push('-bsf:v', `${videoStream.codecName}_metadata=${metadataOverrides.join(':')}`);
options.push(`-bsf:${videoStream.index}`, `${videoStream.codecName}_metadata=${metadataOverrides.join(':')}`);
}
return options;