mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
unnecessary argument
This commit is contained in:
@@ -223,7 +223,6 @@ describe(TranscodingService.name, () => {
|
|||||||
'50',
|
'50',
|
||||||
'-crf',
|
'-crf',
|
||||||
'23',
|
'23',
|
||||||
'-start_at_zero',
|
|
||||||
'-copyts',
|
'-copyts',
|
||||||
'-r',
|
'-r',
|
||||||
'50130000/2012441',
|
'50130000/2012441',
|
||||||
@@ -368,13 +367,12 @@ describe(TranscodingService.name, () => {
|
|||||||
|
|
||||||
const args = mocks.process.spawn.mock.calls[0][1] as string[];
|
const args = mocks.process.spawn.mock.calls[0][1] as string[];
|
||||||
if (expected === 0) {
|
if (expected === 0) {
|
||||||
expect(args).toEqual(expect.arrayContaining(['-copyts', '-start_at_zero', '-avoid_negative_ts', 'disabled']));
|
expect(args).toEqual(expect.arrayContaining(['-copyts', '-avoid_negative_ts', 'disabled']));
|
||||||
expect(args).not.toContain('-ss');
|
expect(args).not.toContain('-ss');
|
||||||
} else {
|
} else {
|
||||||
expect(args).toEqual(
|
expect(args).toEqual(
|
||||||
expect.arrayContaining(['-ss', String(expected), '-copyts', '-avoid_negative_ts', 'disabled']),
|
expect.arrayContaining(['-ss', String(expected), '-copyts', '-avoid_negative_ts', 'disabled']),
|
||||||
);
|
);
|
||||||
expect(args).not.toContain('-start_at_zero');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -153,10 +153,6 @@ export class BaseConfig implements VideoCodecSWConfig {
|
|||||||
...this.getPresetOptions(),
|
...this.getPresetOptions(),
|
||||||
...this.getBitrateOptions(),
|
...this.getBitrateOptions(),
|
||||||
...this.getEncoderOptions(),
|
...this.getEncoderOptions(),
|
||||||
// -start_at_zero only applies meaningfully when seekSeconds is 0.
|
|
||||||
// Combined with -ss N -copyts, it would shift the first frame to t=0
|
|
||||||
// and break tfdt alignment with the playlist.
|
|
||||||
...(options.seekSeconds ? [] : ['-start_at_zero']),
|
|
||||||
'-copyts',
|
'-copyts',
|
||||||
'-r',
|
'-r',
|
||||||
`${options.packetCount * options.timeBase}/${options.totalDuration}`,
|
`${options.packetCount * options.timeBase}/${options.totalDuration}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user