packaging-mp4split_hls

{
    "tags": [
        "itest",
        "packaging",
        "mp4split_hls"
    ],
    "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_video_1920x1080_2mbps.mp4",
                    "tos_5s_audio_44100Hz_64k_HE_2chan_ita.mp4",
                    "tos_10s_deu.ismt"
                ]
            }
        },
        {
            "tool": "mp4split:hls",
            "parameters": {
                "inputfiles": [
                    "tos_5s_video_1920x1080_2mbps.mp4"
                ],
                "license_key": "{MP4SPLIT_LICENSE_KEY-DEV}",
                "output": "packaging-mp4split_hls/v2/prog_index.m3u8",
                "start_segments_with_iframe": 1,
                "base_media_file": "v2_"
            }
        },
        {
            "tool": "mp4split:hls|p",
            "parameters": {
                "inputfiles": [
                    "tos_5s_audio_44100Hz_64k_HE_2chan_ita.mp4"
                ],
                "license_key": "{MP4SPLIT_LICENSE_KEY-DEV}",
                "output": "packaging-mp4split_hls/a1/prog_index.m3u8",
                "base_media_file": "a1_"
            }
        },
        {
            "tool": "mp4split:hls|p",
            "parameters": {
                "license_key": "{MP4SPLIT_LICENSE_KEY-DEV}",
                "inputfiles": [
                    "tos_10s_deu.ismt"
                ],
                "output": "packaging-mp4split_hls/s2/prog_index.m3u8"
            }
        },
        {
            "parameters": {
                "inputfiles": [
                    "packaging-mp4split_hls/v2/prog_index.m3u8",
                    "packaging-mp4split_hls/a1/prog_index.m3u8",
                    "packaging-mp4split_hls/s2/prog_index.m3u8"
                ],
                "license_key": "{MP4SPLIT_LICENSE_KEY-DEV}",
                "output": "packaging-mp4split_hls/variantplaylist.m3u8"
            },
            "tool": "mp4split:hls"
        },
        {
            "parameters": {
                "hexvalue": "159440aed52e04963b0714d08b7db2ec65bb3c8434eb8bf4d53797969884f31a",
                "outputfile": "key.iv"
            },
            "tool": "utils:write_bytes"
        },
        {
            "tool": "mp4split:hls",
            "parameters": {
                "inputfiles": [
                    "tos_5s_video_1920x1080_2mbps.mp4"
                ],
                "license_key": "{MP4SPLIT_LICENSE_KEY-DEV}",
                "output": "packaging-mp4split_hls-fps/v2/prog_index.m3u8",
                "start_segments_with_iframe": 1,
                "encrypt_key_file": "key.iv",
                "encrypt_key_url": "skd://drmtoday?assetId=drmtodayfairplaysubtitles&variantId=",
                "stream_encrypt": 1,
                "streaming_key_delivery": 1,
                "base_media_file": "v2_"
            }
        },
        {
            "tool": "mp4split:hls|p",
            "parameters": {
                "inputfiles": [
                    "tos_5s_audio_44100Hz_64k_HE_2chan_ita.mp4"
                ],
                "license_key": "{MP4SPLIT_LICENSE_KEY-DEV}",
                "output": "packaging-mp4split_hls-fps/a1/prog_index.m3u8",
                "encrypt_key_file": "key.iv",
                "encrypt_key_url": "skd://drmtoday?assetId=drmtodayfairplaysubtitles&variantId=",
                "stream_encrypt": 1,
                "streaming_key_delivery": 1,
                "base_media_file": "a1_"
            }
        },
        {
            "tool": "mp4split:hls|p",
            "parameters": {
                "license_key": "{MP4SPLIT_LICENSE_KEY-DEV}",
                "inputfiles": [
                    "tos_10s_deu.ismt"
                ],
                "output": "packaging-mp4split_hls-fps/s2/prog_index.m3u8"
            }
        },
        {
            "parameters": {
                "inputfiles": [
                    "packaging-mp4split_hls-fps/v2/prog_index.m3u8",
                    "packaging-mp4split_hls-fps/a1/prog_index.m3u8",
                    "packaging-mp4split_hls-fps/s2/prog_index.m3u8"
                ],
                "license_key": "{MP4SPLIT_LICENSE_KEY-DEV}",
                "output": "packaging-mp4split_hls-fps/variantplaylist.m3u8"
            },
            "tool": "mp4split:hls"
        },
        {
            "tool": "storage:put",
            "parameters": {
                "location": "s3://{com-castlabs-vtk-test-access-keys}@com.castlabs.vtk.test/OUT/packaging-mp4split_hls_{job_id}",
                "files": [
                    "packaging-mp4split_hls/*",
                    "packaging-mp4split_hls-fps/*"
                ]
            }
        }
    ]
}