Set genpts to fix unknown timestamp for .ts or .avi

Incorporated code included in Tdarr_Plugin_MC93_Migz1FFMPEG.js

Add mpeg4 Decode Migz GPU (#289) 

@Fish2
Fish2 committed on Apr 10
  
fix unknown timestamp fix for ts and avi for migz gpu (#292)
make-only-subtitle-default
Jeff Hessenflow 3 years ago committed by GitHub
parent 197d8e0500
commit 474c660467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,7 +6,7 @@ const details = () => ({
Type: 'Video',
Operation: 'Transcode',
Description: 'Files will be remuxed into either mkv or mp4. \n\n',
Version: '1.1',
Version: '1.2',
Tags: 'pre-processing,ffmpeg,video only,configurable',
Inputs: [{
name: 'container',
@ -80,7 +80,13 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
// Set up required variables.
let extraArguments = '';
let genpts = '';
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.
// If so then check streams and add any extra parameters required to make file conform with output format.
@ -136,7 +142,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
}
if (convert === true) {
response.preset += `, -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;
return response;
}

Loading…
Cancel
Save