Skip to content

Instantly share code, notes, and snippets.

@kristianfreeman
Created June 16, 2025 18:49
Show Gist options
  • Save kristianfreeman/482e3a3bea4f22bece8582fa795bf031 to your computer and use it in GitHub Desktop.
Save kristianfreeman/482e3a3bea4f22bece8582fa795bf031 to your computer and use it in GitHub Desktop.
Tdarr flow for converting to AV1

This flow takes in a variety of resolutions and converts them using Handbrake to av1. You can read more about this on my website.

{
"_id": "y39WpDN4W",
"name": "AV1 Conversion",
"description": "AV1 Conversion",
"tags": "",
"flowPlugins": [
{
"name": "is 720p",
"sourceRepo": "Community",
"pluginName": "checkStreamProperty",
"version": "1.0.0",
"id": "guBhn4ReD",
"position": {
"x": 1186.8202077001383,
"y": -69.18083536390293
},
"fpEnabled": true,
"inputsDB": {
"propertyToCheck": "width",
"condition": "equals",
"valuesToMatch": "1280"
}
},
{
"name": "is 1080p",
"sourceRepo": "Community",
"pluginName": "checkStreamProperty",
"version": "1.0.0",
"id": "dCInuAvc0",
"position": {
"x": 1021.1752976710605,
"y": -70.81541825225366
},
"fpEnabled": true,
"inputsDB": {
"propertyToCheck": "width",
"condition": "equals",
"valuesToMatch": "1920"
}
},
{
"name": "Set Flow Variable",
"sourceRepo": "Community",
"pluginName": "setFlowVariable",
"version": "1.0.0",
"id": "rOX0sip-u",
"position": {
"x": 464.8041834932659,
"y": 335.3324172331676
},
"fpEnabled": true,
"inputsDB": {
"variable": "handbrake_preset",
"value": "AV1 MKV 720p30"
}
},
{
"name": "Bitrate: >2kbps",
"sourceRepo": "Community",
"pluginName": "checkVideoBitrate",
"version": "1.0.0",
"id": "G-JG-9yo-",
"position": {
"x": 482.0781189473315,
"y": 220.0765106849903
},
"fpEnabled": true,
"inputsDB": {
"greaterThan": "2000",
"lessThan": "99999"
}
},
{
"name": "Set Flow Variable",
"sourceRepo": "Community",
"pluginName": "setFlowVariable",
"version": "1.0.0",
"id": "1JaEf34wv",
"position": {
"x": 646.7715503675129,
"y": 315.5523831774721
},
"fpEnabled": true,
"inputsDB": {
"variable": "handbrake_preset",
"value": "AV1 MKV 1080p30"
}
},
{
"name": "Bitrate: >4kbps",
"sourceRepo": "Community",
"pluginName": "checkVideoBitrate",
"version": "1.0.0",
"id": "LPTZJgAiT",
"position": {
"x": 680.0712031633287,
"y": 203.03307482426405
},
"fpEnabled": true,
"inputsDB": {
"greaterThan": "4000",
"lessThan": "99999"
}
},
{
"name": "Input File",
"sourceRepo": "Community",
"pluginName": "inputFile",
"version": "1.0.0",
"id": "EQW8a1EYN",
"position": {
"x": 611.1120124702063,
"y": -152.30738527047413
},
"fpEnabled": true
},
{
"name": "Bitrate: >6kbps",
"sourceRepo": "Community",
"pluginName": "checkVideoBitrate",
"version": "1.0.0",
"id": "Bhx8A35mb",
"position": {
"x": 867.7281491037941,
"y": 212.83375837169794
},
"fpEnabled": true,
"inputsDB": {
"greaterThan": "6000",
"lessThan": "99999"
}
},
{
"name": "4k",
"sourceRepo": "Community",
"pluginName": "comment",
"version": "1.0.0",
"id": "KMjXKtP5V",
"position": {
"x": 864.2418049688667,
"y": 156.54273504624678
},
"fpEnabled": true
},
{
"name": "1080",
"sourceRepo": "Community",
"pluginName": "comment",
"version": "1.0.0",
"id": "KawqXOtky",
"position": {
"x": 676.1100525106634,
"y": 125.31645134813397
},
"fpEnabled": true
},
{
"name": "720",
"sourceRepo": "Community",
"pluginName": "comment",
"version": "1.0.0",
"id": "wfA00grHo",
"position": {
"x": 485.4006628352615,
"y": 129.43828688135878
},
"fpEnabled": true
},
{
"name": "Skip if av1",
"sourceRepo": "Community",
"pluginName": "checkVideoCodec",
"version": "1.0.0",
"id": "aLnPZ9o3N",
"position": {
"x": 507.27614291607927,
"y": -75.1789512053312
},
"fpEnabled": true,
"inputsDB": {
"codec": "av1"
}
},
{
"name": "skip if vp9",
"sourceRepo": "Community",
"pluginName": "checkVideoCodec",
"version": "1.0.0",
"id": "nc_KDVLAa",
"position": {
"x": 684.549058930749,
"y": -73.56475553959342
},
"fpEnabled": true,
"inputsDB": {
"codec": "vp9"
}
},
{
"name": "Run Classic Transcode Plugin",
"sourceRepo": "Community",
"pluginName": "runClassicTranscodePlugin",
"version": "1.0.0",
"id": "NR5D2kLra",
"position": {
"x": 651.9399154912577,
"y": 401.8360446579953
},
"fpEnabled": true,
"inputsDB": {
"pluginSourceId": "Community:Tdarr_Plugin_00td_action_handbrake_ffmpeg_custom",
"cli": "handbrake",
"arguments": "-e svt_av1 --all-audio --all-subtitles"
}
},
{
"name": "Replace Original File",
"sourceRepo": "Community",
"pluginName": "replaceOriginalFile",
"version": "1.0.0",
"id": "xo23U18IN",
"position": {
"x": 669.8819899760199,
"y": 523.9183703841785
},
"fpEnabled": true
},
{
"name": "Set Flow Variable",
"sourceRepo": "Community",
"pluginName": "setFlowVariable",
"version": "1.0.0",
"id": "p1D-lqvuV",
"position": {
"x": 853.8010663490425,
"y": 321.3761601459193
},
"fpEnabled": true,
"inputsDB": {
"variable": "handbrake_preset",
"value": "AV1 MKV 2160p60 4K"
}
},
{
"name": "is 4k",
"sourceRepo": "Community",
"pluginName": "checkStreamProperty",
"version": "1.0.0",
"id": "RWV7zIW5N",
"position": {
"x": 847.8510913391116,
"y": -74.87658552385739
},
"fpEnabled": true,
"inputsDB": {
"propertyToCheck": "width",
"condition": "equals",
"valuesToMatch": "3840"
}
}
],
"flowEdges": [
{
"source": "EQW8a1EYN",
"sourceHandle": "1",
"target": "aLnPZ9o3N",
"targetHandle": null,
"id": "ddQIuEviX"
},
{
"source": "aLnPZ9o3N",
"sourceHandle": "2",
"target": "nc_KDVLAa",
"targetHandle": null,
"id": "ohY-2m5Jv"
},
{
"source": "NR5D2kLra",
"sourceHandle": "1",
"target": "xo23U18IN",
"targetHandle": null,
"id": "tvetB46OD"
},
{
"source": "p1D-lqvuV",
"sourceHandle": "1",
"target": "NR5D2kLra",
"targetHandle": null,
"id": "v9HOtJiP1"
},
{
"source": "Bhx8A35mb",
"sourceHandle": "1",
"target": "p1D-lqvuV",
"targetHandle": null,
"id": "i-qqlvPwz"
},
{
"source": "LPTZJgAiT",
"sourceHandle": "1",
"target": "1JaEf34wv",
"targetHandle": null,
"id": "AwSOu4Su_"
},
{
"source": "1JaEf34wv",
"sourceHandle": "1",
"target": "NR5D2kLra",
"targetHandle": null,
"id": "vKgsuEjZU"
},
{
"source": "G-JG-9yo-",
"sourceHandle": "1",
"target": "rOX0sip-u",
"targetHandle": null,
"id": "_EInUmnlW"
},
{
"source": "rOX0sip-u",
"sourceHandle": "1",
"target": "NR5D2kLra",
"targetHandle": null,
"id": "enyqUd0HQ"
},
{
"source": "nc_KDVLAa",
"sourceHandle": "2",
"target": "RWV7zIW5N",
"targetHandle": null,
"id": "XQXyE2VFD"
},
{
"source": "RWV7zIW5N",
"sourceHandle": "1",
"target": "KMjXKtP5V",
"targetHandle": null,
"id": "4Vb5j27NK"
},
{
"source": "RWV7zIW5N",
"sourceHandle": "2",
"target": "dCInuAvc0",
"targetHandle": null,
"id": "qXm2C3zkT"
},
{
"source": "dCInuAvc0",
"sourceHandle": "1",
"target": "KawqXOtky",
"targetHandle": null,
"id": "EFc8CJNs2"
},
{
"source": "guBhn4ReD",
"sourceHandle": "1",
"target": "wfA00grHo",
"targetHandle": null,
"id": "UVzpismN8"
},
{
"source": "dCInuAvc0",
"sourceHandle": "2",
"target": "guBhn4ReD",
"targetHandle": null,
"id": "8GhUOHlKD"
},
{
"source": "KawqXOtky",
"sourceHandle": "1",
"target": "NR5D2kLra",
"targetHandle": null,
"id": "we-_wUCxT"
},
{
"source": "wfA00grHo",
"sourceHandle": "1",
"target": "G-JG-9yo-",
"targetHandle": null,
"id": "MXO6_PklQ"
},
{
"source": "KMjXKtP5V",
"sourceHandle": "1",
"target": "Bhx8A35mb",
"targetHandle": null,
"id": "C3htCl0H3"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment