Swapped input.container to file.container for genpts logic

Swapped input.container to file.container for genpts logic
make-only-subtitle-default
Jeff Hessenflow 3 years ago committed by GitHub
parent bfc1116bf8
commit 42185644ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -83,11 +83,6 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
let genpts = ''; let genpts = '';
let convert = false; let convert = false;
// If Container .ts or .avi set genpts to fix unknown timestamp
if (inputs.container.toLowerCase() === 'ts' || inputs.container.toLowerCase() === 'avi') {
genpts = '-fflags +genpts';
}
// Check if force_conform option is checked. // Check if force_conform option is checked.
// If so then check streams and add any extra parameters required to make file conform with output format. // If so then check streams and add any extra parameters required to make file conform with output format.
if (inputs.force_conform === true) { if (inputs.force_conform === true) {
@ -141,6 +136,12 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
return response; return response;
} }
// If Container .ts or .avi set genpts to fix unknown timestamp
if (file.container.toLowerCase() === 'ts' || file.container.toLowerCase() === 'avi') {
genpts = '-fflags +genpts';
}
if (convert === true) { if (convert === true) {
response.preset += `${genpts}, -map 0 -c copy -max_muxing_queue_size 9999 ${extraArguments}`; response.preset += `${genpts}, -map 0 -c copy -max_muxing_queue_size 9999 ${extraArguments}`;
response.processFile = true; response.processFile = true;

Loading…
Cancel
Save