HaveAGitGat / Tdarr

Tdarr - Distributed transcode automation using FFmpeg/HandBrake + Audio/Video library analytics + video health checking (Windows, macOS, Linux & Docker)
Other
2.89k stars 89 forks source link

Add ability to cancel/ignore current "Plugin" if estimated target size is bigger than expected #694

Closed ejalal closed 1 year ago

ejalal commented 1 year ago

Is your feature request related to a problem? Please describe. I would like to be able to cancel/ignore and move to next plugin if estimated target size produced by current plugin is bigger than expected. I know this can be managed with the "New file size check" plugin, but this is done once current plugin is 100% completed (or at the end of all plugins).

This will help save some time and processing power by interrupting the job earlier if target size will more likely to be rejected.

Describe the solution you'd like

Example If at 25% progress of movie transcode (always current plugin), the estimated target size is bigger than 110%, cancel current plugin and move to next plugin in the transcoding queue.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

HaveAGitGat commented 1 year ago

Better way to approach this is to use specific bitrates when encoding so that the new file size is guaranteed to smaller than original file size. But yeah this would be a more general solution for all the different plugins.

HaveAGitGat commented 1 year ago

Moving this under this issue https://github.com/HaveAGitGat/Tdarr/issues/571 ty.

HaveAGitGat commented 2 months ago

Added with flow plugin Compare File Size Ratio Live. Click Update community plugins on the classic plugins tab or will auto update within an hour or so.

image image

Can compare between either the estimated file size or the current file size of the output file.

  Compare either the estimated final size or current output size to the input size and 
  give an error if estimated final size or current size surpasses the threshold %.

  Works with 'FfmpegCommand', 'HandBrake Custom Arguments', 'Run Classic Transcode' and other flow plugins 
  that output a file.

  Can be placed anywhere before a plugin which outputs a new file.