unnecessary argument

This commit is contained in:
mertalev
2026-05-05 15:26:50 -04:00
parent 5243807395
commit e058ef868d
2 changed files with 1 additions and 7 deletions
@@ -223,7 +223,6 @@ describe(TranscodingService.name, () => {
'50',
'-crf',
'23',
'-start_at_zero',
'-copyts',
'-r',
'50130000/2012441',
@@ -368,13 +367,12 @@ describe(TranscodingService.name, () => {
const args = mocks.process.spawn.mock.calls[0][1] as string[];
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');
} else {
expect(args).toEqual(
expect.arrayContaining(['-ss', String(expected), '-copyts', '-avoid_negative_ts', 'disabled']),
);
expect(args).not.toContain('-start_at_zero');
}
});
});
-4
View File
@@ -153,10 +153,6 @@ export class BaseConfig implements VideoCodecSWConfig {
...this.getPresetOptions(),
...this.getBitrateOptions(),
...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',
'-r',
`${options.packetCount * options.timeBase}/${options.totalDuration}`,