• Stars
    star
    2,934
  • Rank 15,449 (Top 0.4 %)
  • Language Makefile
  • License
    Other
  • Created about 5 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Tdarr - Distributed transcode automation using FFmpeg/HandBrake + Audio/Video library analytics + video health checking (Windows, macOS, Linux & Docker)

Tdarr V2: Distributed Transcoding System

Audio/Video Library Analytics & Transcode/Remux Automation

  • FFmpeg/HandBrake + video health checking (Windows, macOS, Linux & Docker)

RedditDiscord

Setup/Installation

About:

More information can be found on the following websites:

https://tdarr.io/

https://docs.tdarr.io/

Builds

Tdarr V2 is a cross-platform conditional based transcoding application for automating media library transcode/remux management in order to process your media files as required. For example, you can set rules for the required codecs, containers, languages etc that your media should have which helps keeps things organized and can increase compatability with your devices. A common use for Tdarr is to simply convert video files from h264 to h265 (hevc), saving 40%-50% in size.

The application is in the form of a click-to-run web-app, comprised of the following 2 components:

  • Tdarr_Server - Central process which all Nodes connect with
  • Tdarr_Node - Processes running on same/other devices which collect tasks from the Server

Put your spare hardware to use with Tdarr Nodes for Windows, Linux (including Linux arm/arm64) and macOS.

Designed to work alongside applications like Sonarr/Radarr and built with the aim of modularisation, parallelisation and scalability, each library you add has its own transcode settings, filters and schedule. Workers can be fired up and closed down as necessary, and are split into 4 types - Transcode CPU/GPU and Health Check CPU/GPU. Worker limits can be managed by the scheduler as well as manually. For a desktop application with similar functionality please see HBBatchBeast.

  • Cross-platform Tdarr Nodes which work together with Tdarr Server to process your files
  • GPU and CPU workers
  • Use/create Tdarr Plugins for infinite control on how your files are processed: https://github.com/HaveAGitGat/Tdarr_Plugins
  • Audio and video library management
  • 7 day, 24 hour scheduler
  • Folder watcher
  • Worker stall detector
  • Load balancing between libraries/drives
  • Use HandBrake or FFmpeg
  • Tested on a 1,000,000 file dummy library
  • Search for files based on hundreds of properties
  • Library stats
  • Hardware transcoding container (install Nvidia plugin on unRAID/Nvidia runtime container on Ubuntu)


Stats

image

Nodes

image

Job reports

image

Property explorer

image

Worker verdict history

image

Plugin stack system

image

Property search

image

Library schedule

image

Tdarr is extremely modular/configurable and the main idea behind it is creating a plugin stack to clean up/standardise your files. For example, a typical plugin stack might look like this:

(1) Transcode non hevc files into hevc

(2) Remove subs

(3) Remove meta data (if title)

(4) Add aac stereo audio if none (eng preferred)

(5) Remove closed captions

In this example, plugins 1,2,3 and 5 are community plugins which are available for you to use immediately. Plugin 4 can be created in the plugin creator interface in Tdarr and will appear as a local plugin.

Each of the plugins are conditional, so are only used if needed. They are located in Tdarr/Documents and are written in JavaScript so if none of the plugins do what you want then you can modify/create new plugins if you have a bit of coding experience (or get the gist from having a look). Steps for doing so are in the README here:https://github.com/HaveAGitGat/Tdarr_Plugins . Ask for help in the Discord channel if need be.

Here is an illustration of how the plugin stack works:

https://i.imgur.com/483AakN.png

For the term 'streams', here is an example of how a file appears in Tdarr search results:

https://i.imgur.com/RaKnq2c.png

That file has 3 streams - a video, audio and subtitle stream. Subtitles and closed captions are very different. Where is the closed caption data in this example? It's embedded inside the h264 video stream.

Extra streams and closed captions which you don't need can cause problems with direct playing and syncing files, so you might as well remove them (it's recommended to use something like Bazarr for subtitles). Even when playing files in programs such as VLC or Kodi, subtitles/closed captions can cause playback delays and make things stuttery for a few seconds when jumping around the video.

Extra streams can also take up a lot of space. Don't be surprised to see some files in your library with 15+ audio/commentary/subtitle tracks in a bunch of different languages. These can take up an extra GB+ per file.

The plugin creator is split into 'Filters' and 'Actions'. Filters encapsulate the actions, so the actions will only be carried out if the filter conditions are met.

Current filters:

Filter by codec

Filter by medium

Filter by age

Filter by resolution

Filter by size

Current actions:

Transcode - HandBrake basic options

Transcode - HandBrake/FFmpeg custom arguments

Transcode - Standardise audio stream codecs

Transcode - Add audio stream

Transcode - Keep one audio stream

Remux container

Some actions/plugins have built-in filters (specified in the plugin creator). This means they'll automatically detect if a file needs to be processed or not (such as the remove subtitles community plugin). Additional filters can be added.

Some of the actions have become quite complicated so take a bit more time. For example, the 'Keep one audio stream' has 16 different outcomes as it tries to determine the best audio stream to keep based on the codec, language and channel count you specify.

If you have a request for a new filter/action, then try and think of it generically so I can implement it in way that other people can configure and apply it to their (slightly) different circumstances. Request on GitHub,Reddit or Discord.

For example, to maximize direct play, a plugin stack like this can be used:

(1) If not in h264, transcode into h264 [h264 is a more universal video codec than others]

(2) If not in mp4, remux into mp4 [mp4 is the most universal container]

(3) Remove subs

(4) Remove closed captions

(5) Add aac stereo audio if none (eng preferred) [very universal audio codec/channel count]

(6) Remove meta-data if title meta detected [Stops annoying titles appearing in Plex]

More Repositories

1

HBBatchBeast

A free GUI application for HandBrake and FFmpeg/FFprobe with an emphasis on batch conversion (including recursive folder scans and folder watching) -Windows, macOS, Linux & Docker
HTML
614
star
2

Tdarr_Plugins

Tdarr Plugins
JavaScript
137
star
3

Tdarr_Plugin_x7ac_Remove_Closed_Captions

If detected, closed captions (XDS,608,708) will be removed.
JavaScript
2
star
4

Tdarr_Plugin_e3jc_Tharic_H.264_MKV_480p30_No_Subs_No_Title_Meta

This plugin removes subs, metadata (if a title exists) and makes sure the video is h264 480p mkv.
JavaScript
2
star
5

Tdarr_Plugin_s710_nick_h265_nvenc_4K

This plugin transcodes all 4K videos to h265 using nvenc (if not in h265 already). For 4K and files in other resolutions: If not in mkv the file is remuxed into mkv. If the English language track is not in AC3,EAC3 or DTS then an AC3 track is added.
JavaScript
2
star
6

Tdarr_Plugin_s7x9_winsome_h265_10bit

This plugin transcodes all videos to h265 10 bit (if not in h265 already) and remuxes if not in mkv. If the English language track is not in AC3,EAC3 or DTS then an AC3 track is added.
JavaScript
2
star
7

Tdarr_Plugin_s7x8_winsome_h265

This plugin transcodes all videos to h265. If the English language track is not in AC3,EAC3 or DTS then an AC3 track is added.
JavaScript
1
star
8

Tdarr_Plugin_a9hc_HaveAGitGat_HandBrake_H264_Fast1080p30

This plugin transcodes into H264 using HandBrake's 'Fast 1080p30' preset. It removes subs, metadata (if a title exists) and adds a stereo 192kbit AAC track if an AAC track (any) doesn't exist. The output container is MP4.
JavaScript
1
star
9

Tdarr_Plugin_hk76_GilbN_MP4_AAC_No_metaTitle

This plugin removes metadata (if a title exists) and adds a stereo 192kbit AAC track if an AAC track (any) doesn't exist. The output container is mp4.
JavaScript
1
star
10

Tdarr_Plugin_nc7x_Drawmonster_No_Title_Meta

JavaScript
1
star
11

Tdarr_Plugin_a37x_Drawmonster_MP4_No_Title_Meta

JavaScript
1
star
12

Tdarr_Plugin_b39x_the1poet_surround_sound_to_ac3

If the file has surround sound tracks not in ac3, they will be converted to ac3.
JavaScript
1
star
13

Tdarr_Plugin_x7ab_Remove_Subs

JavaScript
1
star
14

Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs

JavaScript
1
star
15

Tdarr_Plugin_e3je_Tharic_H.264_MKV_1080p30_No_Subs_No_Title_Meta

This plugin removes subs, metadata (if a title exists) and makes sure the video is h264 1080p mkv.
JavaScript
1
star
16

Tdarr_Plugin_b38x_Nosirus_h265_aac_no_meta

If the file is not in h265 it will be trancoded into h265 using the following command '-e x265 -q 22 --encoder-preset slow --all-audio --all-subtitles copy:aac -E fdk_aac -Q 4 -x aq-mode=3'. If no aac, aac track will be added. Subtitles are kept. Metadata is removed.
JavaScript
1
star
17

Tdarr_Plugin_s7x9_winsome_h265_nvenc

This plugin transcodes all videos to h265 using nvenc (if not in h265 already) and remuxes if not in mkv. If the English language track is not in AC3,EAC3 or DTS then an AC3 track is added.
JavaScript
1
star
18

Tdarr_Plugin_a8hc_HaveAGitGat_HandBrake_H264_VeryFast1080p30

JavaScript
1
star
19

Tdarr_Plugin_hk75_Drawmonster_MP4_AAC_No_Subs_No_metaTitle

Drawmonster MP4 AAC, No Subs, No title meta data
JavaScript
1
star
20

Tdarr_Plugin_e3jd_Tharic_H.264_MKV_720p30_No_Subs_No_Title_Meta

This plugin removes subs, metadata (if a title exists) and makes sure the video is h264 720p mkv.
JavaScript
1
star