fix(server): selectively apply metadata bitstream filter for video thumbnails (#28162)
parent
b554664791
commit
b60e9c6771
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue