Merge pull request #435 from jshessen/master

Extend genpts matches to include mpg|mpeg
This commit is contained in:
HaveAGitGat 2023-09-25 08:15:07 +01:00 committed by GitHub
commit 77ac9c2d74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,8 +136,13 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
return response;
}
// If Container .ts or .avi set genpts to fix unknown timestamp
if (file.container.toLowerCase() === 'ts' || file.container.toLowerCase() === 'avi') {
// If Container .ts|.avi|.mpg|.mpeg set genpts to fix unknown timestamp
if (
file.container.toLowerCase() === 'ts'
|| file.container.toLowerCase() === 'avi'
|| file.container.toLowerCase() === 'mpg'
|| file.container.toLowerCase() === 'mpeg'
) {
genpts = '-fflags +genpts';
}