HaveAGitGat / Tdarr_Plugins

Tdarr Plugins
GNU General Public License v3.0
129 stars 147 forks source link

plugin to transcode library within resolution range #599

Open yodog opened 4 months ago

yodog commented 4 months ago

hello all.

just wanted to share my plugin with the community: https://github.com/yodog/tdarr/blob/main/Tdarr_Plugin_yodog_scale_and_transcode.js

you configure a resolution range (ex: min 720, max: 1440) and the plugin will make sure your library is within the range.

so, for the example above,

PS: careful. there is a very personal setting: audio is converted to AAC Stereo 192k remember to change this if you dont like stereo audio.

yodog commented 4 months ago
Description: `
    - this script will:
        * automatically search for a working GPU encoder and fallback to CPU if not found
        * accept a min and max resolution so any video not in this range will be upscaled or downscaled (optional)
        * transcode video to hevc/h265
        * transcode audio to AAC 192k stereo
        * remux container to mp4

    - user options:
        * set filter to exclude some codecs from processing (optional, default: empty)
        * set max resolution to downscale big videos (optional, default: -1)
        * set min resolution to upscale small videos (optional, default: -1)
        * set compression ratio [video quality] (required, default: 25)

    - what is checked before transcoding:
        * file is video (skip if false)
        * file codec is in exclude list (skip if true)
        * file resolution is between min resolution and max resolution (skip if true)
`,