mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 23:48:15 -07:00
Add files via upload
This commit is contained in:
parent
04bc1281bc
commit
09b89babf9
2 changed files with 24 additions and 4 deletions
|
|
@ -93,11 +93,14 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => {
|
|||
|
||||
if (newContainer === 'mp4') {
|
||||
if (
|
||||
[
|
||||
codecType === 'attachment'
|
||||
|| [
|
||||
'hdmv_pgs_subtitle',
|
||||
'eia_608',
|
||||
'timed_id3',
|
||||
'subrip',
|
||||
'ass',
|
||||
'ssa',
|
||||
].includes(codecName)
|
||||
) {
|
||||
stream.removed = true;
|
||||
|
|
@ -108,6 +111,18 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => {
|
|||
}
|
||||
}
|
||||
}
|
||||
// handle gents if coming from odd container
|
||||
const container = args.inputFileObj.container.toLowerCase();
|
||||
if (
|
||||
[
|
||||
'ts',
|
||||
'avi',
|
||||
'mpg',
|
||||
'mpeg',
|
||||
].includes(container)
|
||||
) {
|
||||
args.variables.ffmpegCommand.overallOuputArguments.push('-fflags', '+genpts');
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue