utils-rename

{
    "tags": [
        "itest",
        "utils",
        "rename"
    ],
    "region": "aws:eu-west-1",
    "tasks": [
        {
            "tool": "storage:get",
            "parameters": {
                "location": "s3://{com-castlabs-vtk-test-access-keys}@com.castlabs.vtk.test/IN/",
                "files": [
                    "tos_5s_audio_44100Hz_64k_HE_2chan_eng.mp4",
                    "tos_5s_audio_44100Hz_64k_HE_2chan_ita.mp4"
                ]
            }
        },
        {
            "tool": "utils:rename",
            "parameters": {
                "pattern": "2chan_(?P<lang>\\w+).mp4$",
                "to": "out/audio-{lang}.mp4"
            }
        },
        {
            "tool": "storage:put",
            "parameters": {
                "location": "s3://{com-castlabs-vtk-test-access-keys}@com.castlabs.vtk.test/OUT/utils-rename_{job_id}",
                "files": [
                    "out/*.mp4"
                ]
            }
        }
    ]
}