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

This commit is contained in:
Pedro Pinhão
2026-05-01 04:05:08 +01:00
committed by GitHub
parent b554664791
commit b60e9c6771
2 changed files with 2 additions and 2 deletions
+1 -1
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),
+1 -1
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;