﻿{
  "workflow": {
    "wf_id": "20251204-1500-1549-651f-c35952fb5cd1",
    "wf_name": "H264_1080p_10Mbits_test_nvenc",
    "wf_folder": "nvenc",
    "description": "",
    "updated": "2025-12-04T15:26:31.839+01:00",
    "updated_by": "pfx@WIN11-MASTERING",
    "created": "2025-12-04T15:00:15.496+01:00",
    "general": {
      "sleep": 10,
      "priority": "2 (normal)",
      "timeout_level": 3,
      "cron": ""
    },
    "maintainance": {
      "keep_all_workdir": false,
      "keep_failed_workdir": true,
      "work_age": 5,
      "run_on_days": 1234567
    },
    "special": {
      "log_level": "1 (Basic)",
      "force_32bit": false,
      "protected": false,
      "password": ""
    },
    "nodes": [
      {
        "id": "20251202-1615-3499-0bc9-cfa806ba83d2",
        "type": "dest_folder",
        "custom_proc_guid": "",
        "name": "move_transcoded_file",
        "slots": 1,
        "hosts_group": 0,
        "bypass": false,
        "start_proc": false,
        "pos_x": 765,
        "pos_y": 362.5,
        "execute_on": "success",
        "preset": {
          "name": "(custom)",
          "id": null
        },
        "properties": {
          "folder": "%s_original_path%\\transcoded_files\\%i_year%-%i_mon%-%i_mday%",
          "suffix": "",
          "prefix": "_1920x1080",
          "overwrite": false,
          "unique": true,
          "case": "None",
          "drop_name": false,
          "drop_ext": false,
          "move": true,
          "padding": 2
        },
        "outbounds": [
          {
            "type": "op_populate",
            "id": "20251202-1615-3403-7d3e-53f9d437cdf9"
          }
        ]
      },
      {
        "id": "20251202-1615-3400-66aa-4b256ebc2af0",
        "type": "cmd_run",
        "custom_proc_guid": "",
        "name": "failed_original_files",
        "slots": 1,
        "hosts_group": 0,
        "bypass": false,
        "start_proc": false,
        "pos_x": 765,
        "pos_y": 458.333333333333,
        "execute_on": "error",
        "preset": {
          "name": "(custom)",
          "id": null
        },
        "properties": {
          "command": "%comspec% \/C \"if not exist \"%s_original_path%\\failed_original_files\" mkdir \"%s_original_path%\\failed_original_files\" && if not exist \"%s_original_path%\\failed_original_files\\%i_year%-%i_mon%-%i_mday%_%i_hour%-%i_min%-%i_sec%_%s_job_id%\" mkdir \"%s_original_path%\\failed_original_files\\%i_year%-%i_mon%-%i_mday%_%i_hour%-%i_min%-%i_sec%_%s_job_id%\" && move \/y \"%s_original_full%\" \"%s_original_path%\\failed_original_files\\%i_year%-%i_mon%-%i_mday%_%i_hour%-%i_min%-%i_sec%_%s_job_id%\\%s_original_name%.%s_original_ext%\"\"",
          "out_source": "",
          "omit_exit_code": false,
          "console": false,
          "show_command": true,
          "unicode": false,
          "stdout_var_name": "None",
          "set_timeout": 120,
          "error_timeout": 1,
          "std_types": "stdout + stderr"
        },
        "outbounds": [
          {
            "type": "op_populate",
            "id": "20251202-1615-3400-6267-fa47b8a73366"
          }
        ]
      },
      {
        "id": "20251202-1615-3400-6267-fa47b8a73366",
        "type": "op_populate",
        "custom_proc_guid": "",
        "name": "Failed",
        "slots": 1,
        "hosts_group": 0,
        "bypass": false,
        "start_proc": false,
        "pos_x": 937.5,
        "pos_y": 458.333333333333,
        "execute_on": "success",
        "preset": {
          "name": "(custom)",
          "id": null
        },
        "properties": {
          "variables": [
            {
              "name": "s_error",
              "data": "Error - Transcoding failed",
              "type": "string"
            }
          ]
        },
        "outbounds": []
      },
      {
        "id": "20251202-1615-3402-2b40-9e9643c53087",
        "type": "mon_folder",
        "custom_proc_guid": "",
        "name": "General",
        "slots": 1,
        "hosts_group": 0,
        "bypass": false,
        "start_proc": true,
        "pos_x": 75,
        "pos_y": 75,
        "execute_on": "success",
        "preset": {
          "name": "(custom)",
          "id": null
        },
        "properties": {
          "folder": "\\\\10.0.10.15\\cx_work\\_TEMP\\_ffastrans\\H264_1080p_10Mbits_NetwMovie_nvenc",
          "accept_files": "",
          "deny": {
            "files": ".*",
            "folders": "",
            "attributes": {
              "read": false,
              "arch": false,
              "sys": false,
              "hidden": false
            }
          },
          "recurse": false,
          "localize": false,
          "create_folder": false,
          "growing_files": true,
          "forget_missing": true,
          "skip_verify": false,
          "file_size_mod": "continuously",
          "file_limit": "None"
        },
        "outbounds": [
          {
            "type": "op_cond",
            "id": "20251204-0914-1316-811a-1d255e36f737"
          }
        ]
      },
      {
        "id": "20251202-1615-3402-268c-337d4279d62e",
        "type": "enc_av_customff",
        "custom_proc_guid": "",
        "name": "NVENC Multi Track Input",
        "slots": 1,
        "hosts_group": 0,
        "bypass": false,
        "start_proc": false,
        "pos_x": 592.5,
        "pos_y": 362.5,
        "execute_on": "error",
        "preset": {
          "name": "(custom)",
          "id": null
        },
        "properties": {
          "audio": {
            "codec": "",
            "bitrate": ""
          },
          "video": {
            "codec": "",
            "bitrate": ""
          },
          "ff_options": "-field_order progressive -max_muxing_queue_size 1024 -filter_complex \"[0:a:0][0:a:1]amerge=inputs=2[a];[a]pan=stereo|c0=c0|c1=c1[a2];[0:v]scale=w=1920:h=-2:flags=lanczos,format=yuv420p[v]\" -map \"[v]\" -map \"[a2]\" -c:v h264_nvenc -preset p7 -tune hq -profile:v high -b:v 10M -maxrate 25M -bufsize 15M -g 250 -bf 3 -b_ref_mode middle -temporal-aq 1 -rc-lookahead 32 -i_qfactor 0.75 -b_qfactor 1.1 -color_range tv -colorspace bt709 -color_trc bt709 -color_primaries bt709 -c:a libfdk_aac -b:a 320k -map_metadata 0 -movflags +write_colr",
          "extension": "mp4"
        },
        "outbounds": [
          {
            "type": "dest_folder",
            "id": "20251202-1615-3499-0bc9-cfa806ba83d2"
          },
          {
            "type": "cmd_run",
            "id": "20251202-1615-3400-66aa-4b256ebc2af0"
          }
        ]
      },
      {
        "id": "20251202-1615-3403-7fcf-99c9c10c8197",
        "type": "enc_av_customff",
        "custom_proc_guid": "",
        "name": "NVENC Single Track Input",
        "slots": 1,
        "hosts_group": 0,
        "bypass": false,
        "start_proc": false,
        "pos_x": 592.5,
        "pos_y": 266.666666666667,
        "execute_on": "success",
        "preset": {
          "name": "(custom)",
          "id": null
        },
        "properties": {
          "audio": {
            "codec": "",
            "bitrate": ""
          },
          "video": {
            "codec": "",
            "bitrate": ""
          },
          "ff_options": "-field_order progressive -max_muxing_queue_size 1024 -filter_complex \"[0:a:0]aformat=channel_layouts=stereo[a];[0:v]scale=w=1920:h=-2:flags=lanczos,format=yuv420p[v]\" -map \"[v]\" -map \"[a]\" -c:v h264_nvenc -preset p7 -tune hq -profile:v high -b:v 10M -maxrate 25M -bufsize 15M -g 250 -bf 3 -b_ref_mode middle -temporal-aq 1 -rc-lookahead 32% -i_qfactor 0.75 -b_qfactor 1.1 -color_range tv -colorspace bt709 -color_trc bt709 -color_primaries bt709 -c:a libfdk_aac -b:a 320k -map_metadata 0 -movflags +write_colr",
          "extension": "mp4"
        },
        "outbounds": [
          {
            "type": "dest_folder",
            "id": "20251202-1615-3499-0bc9-cfa806ba83d2"
          },
          {
            "type": "cmd_run",
            "id": "20251202-1615-3400-66aa-4b256ebc2af0"
          }
        ]
      },
      {
        "id": "20251202-1615-3403-7d3e-53f9d437cdf9",
        "type": "op_populate",
        "custom_proc_guid": "",
        "name": "identify_source",
        "slots": 1,
        "hosts_group": 0,
        "bypass": false,
        "start_proc": false,
        "pos_x": 937.5,
        "pos_y": 362.5,
        "execute_on": "success",
        "preset": {
          "name": "(custom)",
          "id": null
        },
        "properties": {
          "variables": [
            {
              "name": "s_source",
              "data": "%s_original_full%",
              "type": "string"
            }
          ]
        },
        "outbounds": [
          {
            "type": "dest_folder",
            "id": "20251202-1615-3404-87bb-fc3df5741151"
          }
        ]
      },
      {
        "id": "20251202-1615-3404-87bb-fc3df5741151",
        "type": "dest_folder",
        "custom_proc_guid": "",
        "name": "move_source_file",
        "slots": 1,
        "hosts_group": 0,
        "bypass": false,
        "start_proc": false,
        "pos_x": 1110,
        "pos_y": 362.5,
        "execute_on": "success",
        "preset": {
          "name": "(custom)",
          "id": null
        },
        "properties": {
          "folder": "%s_original_path%\\processed_original_files\\%s_job_id%",
          "suffix": "",
          "prefix": "",
          "overwrite": false,
          "unique": false,
          "case": "None",
          "drop_name": false,
          "drop_ext": false,
          "move": true,
          "padding": "None"
        },
        "outbounds": []
      },
      {
        "id": "20251204-0914-1316-811a-1d255e36f737",
        "type": "op_cond",
        "custom_proc_guid": "",
        "name": "is full",
        "slots": 1,
        "hosts_group": 0,
        "bypass": false,
        "start_proc": false,
        "pos_x": 247.5,
        "pos_y": 75,
        "execute_on": "success",
        "preset": {
          "name": "(custom)",
          "id": null
        },
        "properties": {
          "dispel": false,
          "conditionals": [
            {
              "expression_1": "$jsonget(\"%s_info_mediainfo%\", \"media.track[1].colour_range_Original\")",
              "operator": "equal to (=), string",
              "expression_2": "full",
              "decide": "Then"
            },
            {
              "expression_1": "%i_a_streams%",
              "operator": "equal to (=), string",
              "expression_2": 1,
              "decide": "Then"
            }
          ]
        },
        "outbounds": [
          {
            "type": "op_cond",
            "id": "20251204-1109-4827-50b6-b949c8ec6d4a"
          },
          {
            "type": "op_cond",
            "id": "20251204-1512-2946-3754-9d9214a7133c"
          }
        ]
      },
      {
        "id": "20251204-1109-4827-50b6-b949c8ec6d4a",
        "type": "op_cond",
        "custom_proc_guid": "",
        "name": "is single_ track",
        "slots": 1,
        "hosts_group": 0,
        "bypass": false,
        "start_proc": false,
        "pos_x": 420,
        "pos_y": 75,
        "execute_on": "success",
        "preset": {
          "name": "(custom)",
          "id": null
        },
        "properties": {
          "dispel": false,
          "conditionals": [
            {
              "expression_1": "%i_a_streams%",
              "operator": "equal to (=), string",
              "expression_2": 1,
              "decide": "Then"
            },
            {
              "expression_1": "%i_a_streams%",
              "operator": "equal to (=), string",
              "expression_2": 1,
              "decide": "Then"
            }
          ]
        },
        "outbounds": [
          {
            "type": "enc_av_customff",
            "id": "20251204-1511-3890-9732-6fba150c2ed8"
          },
          {
            "type": "enc_av_customff",
            "id": "20251204-1511-3890-952c-425e8249b16e"
          }
        ]
      },
      {
        "id": "20251204-1511-3890-9732-6fba150c2ed8",
        "type": "enc_av_customff",
        "custom_proc_guid": "",
        "name": " force_legal NVENC Multi Track Input",
        "slots": 1,
        "hosts_group": 0,
        "bypass": false,
        "start_proc": false,
        "pos_x": 592.5,
        "pos_y": 75,
        "execute_on": "error",
        "preset": {
          "name": "(custom)",
          "id": null
        },
        "properties": {
          "audio": {
            "codec": "",
            "bitrate": ""
          },
          "video": {
            "codec": "",
            "bitrate": ""
          },
          "ff_options": "-field_order progressive -max_muxing_queue_size 1024 -filter_complex \"[0:a:0][0:a:1]amerge=inputs=2[a];[a]pan=stereo|c0=c0|c1=c1[a2];[0:v] zscale=w=1920:h=-2:filter=lanczos:matrix=bt709:primaries=bt709:transfer=bt709:rangein=limited:range=limited,format=yuv420p[v]\" -map \"[v]\" -map \"[a2]\" -c:v h264_nvenc -preset p7 -tune hq -profile:v high -pix_fmt yuv420p -b:v 10M -maxrate 25M -bufsize 15M -g 250 -bf 3 -b_ref_mode middle -temporal-aq 1 -rc-lookahead 32 -i_qfactor 0.75 -b_qfactor 1.1 -color_range tv -colorspace bt709 -color_trc bt709 -color_primaries bt709 -c:a libfdk_aac -b:a 320k -map_metadata 0 -movflags +write_colr",
          "extension": "mp4"
        },
        "outbounds": [
          {
            "type": "cmd_run",
            "id": "20251202-1615-3400-66aa-4b256ebc2af0"
          },
          {
            "type": "dest_folder",
            "id": "20251202-1615-3499-0bc9-cfa806ba83d2"
          }
        ]
      },
      {
        "id": "20251204-1511-3890-952c-425e8249b16e",
        "type": "enc_av_customff",
        "custom_proc_guid": "",
        "name": " force_legal NVENC Single Track Input",
        "slots": 1,
        "hosts_group": 0,
        "bypass": false,
        "start_proc": false,
        "pos_x": 592.5,
        "pos_y": 170.833333333333,
        "execute_on": "success",
        "preset": {
          "name": "(custom)",
          "id": null
        },
        "properties": {
          "audio": {
            "codec": "",
            "bitrate": ""
          },
          "video": {
            "codec": "",
            "bitrate": ""
          },
          "ff_options": "-field_order progressive -max_muxing_queue_size 1024 -filter_complex \"[0:a:0]aformat=channel_layouts=stereo[a];[0:v]zscale=w=1920:h=-2:filter=lanczos:matrix=bt709:primaries=bt709:transfer=bt709:rangein=limited:range=limited,format=yuv420p[v]\" -map \"[v]\" -map \"[a]\" -c:v h264_nvenc -preset p7 -tune hq -profile:v high -pix_fmt yuv420p -b:v 10M -maxrate 25M -bufsize 15M -g 250 -bf 3 -b_ref_mode middle -temporal-aq 1 -rc-lookahead 32 -i_qfactor 0.75 -b_qfactor 1.1 -color_range tv -colorspace bt709 -color_trc bt709 -color_primaries bt709 -c:a libfdk_aac -b:a 320k -map_metadata 0 -movflags +write_colr",
          "extension": "mp4"
        },
        "outbounds": [
          {
            "type": "cmd_run",
            "id": "20251202-1615-3400-66aa-4b256ebc2af0"
          },
          {
            "type": "dest_folder",
            "id": "20251202-1615-3499-0bc9-cfa806ba83d2"
          }
        ]
      },
      {
        "id": "20251204-1512-2946-3754-9d9214a7133c",
        "type": "op_cond",
        "custom_proc_guid": "",
        "name": "is single_ track",
        "slots": 1,
        "hosts_group": 0,
        "bypass": false,
        "start_proc": false,
        "pos_x": 420,
        "pos_y": 170.833333333333,
        "execute_on": "error",
        "preset": {
          "name": "(custom)",
          "id": null
        },
        "properties": {
          "dispel": false,
          "conditionals": [
            {
              "expression_1": "%i_a_streams%",
              "operator": "equal to (=), string",
              "expression_2": 1,
              "decide": "Then"
            },
            {
              "expression_1": "%i_a_streams%",
              "operator": "equal to (=), string",
              "expression_2": 1,
              "decide": "Then"
            }
          ]
        },
        "outbounds": [
          {
            "type": "enc_av_customff",
            "id": "20251202-1615-3403-7fcf-99c9c10c8197"
          },
          {
            "type": "enc_av_customff",
            "id": "20251202-1615-3402-268c-337d4279d62e"
          }
        ]
      }
    ],
    "version": "1.4.1.21",
    "variable": {
      "wf_size": 115
    },
    "farming": {
      "hosts": [],
      "include": false
    },
    "origin": "20251128-1408-4090-33ac-fb1aa83ab2bc"
  }
}