Add files via upload

This commit is contained in:
tws101 2024-05-23 14:38:58 -05:00 committed by GitHub
parent 09b89babf9
commit 5626f73075
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 8 deletions

View file

@ -77,12 +77,15 @@ var plugin = function (args) {
}
}
if (newContainer === 'mp4') {
if ([
'hdmv_pgs_subtitle',
'eia_608',
'timed_id3',
'subrip',
].includes(codecName)) {
if (codecType === 'attachment'
|| [
'hdmv_pgs_subtitle',
'eia_608',
'timed_id3',
'subrip',
'ass',
'ssa',
].includes(codecName)) {
stream.removed = true;
}
}
@ -92,6 +95,16 @@ var plugin = function (args) {
}
}
}
// handle gents if coming from odd container
var container = args.inputFileObj.container.toLowerCase();
if ([
'ts',
'avi',
'mpg',
'mpeg',
].includes(container)) {
args.variables.ffmpegCommand.overallOuputArguments.push('-fflags', '+genpts');
}
}
return {
outputFileObj: args.inputFileObj,