{
    "definitions": {
        "destination_path": "s3://destination",
        "source_file": "s3://path/to/source.mp4",
        "kantar_username": "user",
        "kantar_password": "pass",
        "kantar_license_id": 123456
    },
    "name": "kantar_example",
    "payload": {
        "elements": [
            {
                "uid": "source_file",
                "kind": "source",
                "payload": {
                    "kind": "asset_url",
                    "payload": {
                        "storage_provider": "s3",
                        "url": "{{source_file}}"
                    }
                }
            },
            {
                "uid": "transcode_audio",
                "kind": "transcode",
                "payload": {
                    "location": {
                        "storage_provider": "s3",
                        "path": "{{destination_path}}"
                    },
                    "targets": [
                        {
                            "file_pattern": "{source_basename}.mp4",
                            "existing_files": "replace",
                            "container": {
                                "kind": "mp4"
                            },
                            "audio": [
                                {
                                    "layer_id": "audio",
                                    "codec": "aac",
                                    "channels": 2,
                                    "sample_rate": 44100,
                                    "bitrate_kb": 96,
                                    "filters": [
                                        {
                                            "kind": "kantar_watermarking",
                                            "payload": {
                                                "username": "{{kantar_username}}",
                                                "password": "{{kantar_password}}",
                                                "content_id": "test",
                                                "channel_name": "tv1",
                                                "license_id": "{{kantar_license_id}}",
                                                "offset": 10,
                                                "port": 443,
                                                "url": "licenseofe.kantarmedia.com",
                                                "metadata": {
                                                    "metadata_3": "test_3",
                                                    "metadata_4": "test_4",
                                                    "metadata_5": "test_5",
                                                    "metadata_6": "test_6",
                                                    "metadata_7": "test_7",
                                                    "metadata_8": "test_8"
                                                },
                                                "results_file": {
                                                    "location": {
                                                        "storage_provider": "s3",
                                                        "path": "{{destination_path}}"
                                                    },
                                                    "file_pattern": "log_kantar.xml"
                                                }
                                            }
                                        }
                                    ]
                                }
                            ]
                        }
                    ]
                }
            }
        ],
        "connections": [
            {
                "from": [
                    {
                        "element": "source_file"
                    }
                ],
                "to": {
                    "success": [
                        {
                            "element": "transcode_audio"
                        }
                    ]
                }
            }
        ]
    }
}