packaging-shaka_package_dash_wvapi

{
    "tags": [
        "itest",
        "packaging",
        "shaka_package_dash_wvapi"
    ],
    "region": "aws:eu-west-1",
    "tasks": [
        {
            "tool": "utils:env",
            "parameters": {
                "output_folder": "output",
                "video1_mp4": "video1.mp4",
                "video2_mp4": "video2.mp4",
                "video3_mp4": "video3.mp4",
                "video_tpf_mp4": "video_tpf.mp4",
                "video1_webm": "video1.webm",
                "video2_webm": "video2.webm",
                "video3_webm": "video3.webm",
                "video_tpf_webm": "video_tpf.webm",
                "video1_m3u8": "video1.m3u8",
                "video2_m3u8": "video2.m3u8",
                "video3_m3u8": "video3.m3u8",
                "video_tpf_m3u8": "video_tpf.m3u8",
                "audio1_mp4": "audio1.mp4",
                "audio2_mp4": "audio2.mp4",
                "audio1_webm": "audio1.webm",
                "audio2_webm": "audio2.webm",
                "audio1_m3u8": "audio1.m3u8",
                "audio2_m3u8": "audio2.m3u8",
                "sub1_webvtt": "sub1.webvtt",
                "sub2_webvtt": "sub2.webvtt",
                "sub3_webvtt": "sub3.webvtt",
                "mp4_hevc_vid2000k": "hevc_files/video_1280x720_2000k.mp4",
                "mp4_hevc_vid1500k": "hevc_files/video_960x540_1500k.mp4",
                "mp4_hevc_vid1000k": "hevc_files/video_640x360_1000k.mp4",
                "mp4_hevc_aac_muxed_v1_a1eng_a2ita": "muxed_hevc_aac_files/muxed_hevc_aac_v2000k_a1eng_a2ita.mp4",
                "mp4_h264_vid2000k": "h264_files/video_1280x720_2000k.mp4",
                "mp4_h264_vid1500k": "h264_files/video_960x540_1500k.mp4",
                "mp4_h264_vid1000k": "h264_files/video_640x360_1000k.mp4",
                "mp4_h264_aac_muxed_v1_a1eng_a2ita": "muxed_h264_aac_files/muxed_h264_aac_v2000k_a1eng_a2ita.mp4",
                "webm_vp9_vid2000k": "vp9_files/video_vp9_webm_2000k.webm",
                "webm_vp9_vid1500k": "vp9_files/video_vp9_webm_1500k.webm",
                "webm_vp9_vid1000k": "vp9_files/video_vp9_webm_1000k.webm",
                "webm_vp9_opus_muxed_v1_a1eng_a2ita": "muxed_vp9_opus_files/muxed_vp9_opus_v2000k_a1eng_a2ita.webm",
                "mp4_aac_audio_128k_eng": "aac_files/audio_eng_128k.mp4",
                "mp4_aac_audio_128k_ita": "aac_files/audio_ita_128k.mp4",
                "webm_opus_audio_128k_eng": "opus_files/audio_eng_128k.webm",
                "webm_opus_audio_128k_ita": "opus_files/audio_ita_128k.webm",
                "sub_webvtt_eng": "webvtt_files/tearsofsteel_4k_eng.webvtt",
                "sub_webvtt_deu": "webvtt_files/tearsofsteel_4k_deu.webvtt",
                "sub_webvtt_fra": "webvtt_files/tearsofsteel_4k_fra.webvtt"
            }
        },
        {
            "tool": "storage:get",
            "parameters": {
                "location": "s3://{com-castlabs-vtk-test-access-keys}@com.castlabs.vtk.test/IN/3min",
                "files": [
                    "h264_files/*",
                    "hevc_files/*",
                    "vp9_files/*",
                    "aac_files/*",
                    "opus_files/*",
                    "muxed_h264_aac_files/*",
                    "muxed_hevc_aac_files/*",
                    "muxed_vp9_opus_files/*",
                    "webvtt_files/*"
                ]
            }
        },
        {
            "tool": "shaka:package_dash_wvapi",
            "parameters": {
                "inputs": [
                    {
                        "input_file": "{mp4_h264_vid2000k}",
                        "stream_id": "video",
                        "output": "{video1_mp4}",
                        "output_format": "mp4",
                        "bandwidth": "1500000",
                        "drm_label": "HD"
                    },
                    {
                        "input_file": "{mp4_h264_vid1500k}",
                        "stream_id": "1",
                        "bandwidth": "1200000",
                        "output": "{video2_mp4}",
                        "output_format": "mp4",
                        "drm_label": "SD"
                    },
                    {
                        "input_file": "{mp4_h264_vid1000k}",
                        "stream_id": "1",
                        "output": "{video3_mp4}",
                        "output_format": "mp4",
                        "drm_label": "SD"
                    },
                    {
                        "input_file": "{mp4_h264_vid1000k}",
                        "stream_id": "1",
                        "output": "{video_tpf_mp4}",
                        "output_format": "mp4",
                        "trick_play_factor": "10",
                        "drm_label": "AUDIO"
                    },
                    {
                        "input_file": "{mp4_aac_audio_128k_eng}",
                        "stream_id": "audio",
                        "language": "eng",
                        "bandwidth": "128000",
                        "output": "{audio1_mp4}",
                        "output_format": "mp4",
                        "drm_label": "AUDIO"
                    },
                    {
                        "input_file": "{mp4_aac_audio_128k_ita}",
                        "stream_id": "1",
                        "language": "ita",
                        "bandwidth": "128000",
                        "output": "{audio2_mp4}",
                        "output_format": "mp4",
                        "drm_label": "AUDIO"
                    }
                ],
                "default_language": "ita",
                "fragment_duration": "2",
                "segment_duration": "2",
                "output_dir": "{output_folder}/shaka_test_16_dash_h264_widevineAPI_cenc_multikey",
                "mpd_output": "dash.mpd",
                "protection_scheme": "cenc",
                "protection_systems": [
                    "PlayReady",
                    "Widevine"
                ],
                "clear_lead": "0",
                "enable_widevine_encryption": "True",
                "aes_signing_iv": "{shaka_itest_aes_signing_iv}",
                "aes_signing_key": "{shaka_itest_aes_signing_key}",
                "key_server_url": "https://fe.{shaka_itest_secret_url}",
                "content_id": "3031323334353639",
                "signer": "castlabs"
            }
        },
        {
            "tool": "shaka:package_dash_wvapi",
            "parameters": {
                "inputs": [
                    {
                        "input_file": "{webm_vp9_vid2000k}",
                        "stream_id": "video",
                        "output": "{video1_webm}",
                        "output_format": "webm",
                        "bandwidth": "1500000",
                        "drm_label": "HD"
                    },
                    {
                        "input_file": "{webm_vp9_vid1500k}",
                        "stream_id": "1",
                        "bandwidth": "1200000",
                        "output": "{video2_webm}",
                        "output_format": "webm",
                        "drm_label": "SD"
                    },
                    {
                        "input_file": "{webm_vp9_vid1000k}",
                        "stream_id": "1",
                        "output": "{video3_webm}",
                        "output_format": "webm",
                        "drm_label": "SD"
                    },
                    {
                        "input_file": "{webm_vp9_vid1000k}",
                        "stream_id": "1",
                        "output": "{video_tpf_webm}",
                        "output_format": "webm",
                        "trick_play_factor": "10",
                        "drm_label": "AUDIO"
                    },
                    {
                        "input_file": "{webm_opus_audio_128k_eng}",
                        "stream_id": "audio",
                        "language": "eng",
                        "bandwidth": "128000",
                        "output": "{audio1_webm}",
                        "output_format": "webm",
                        "drm_label": "AUDIO"
                    },
                    {
                        "input_file": "{webm_opus_audio_128k_ita}",
                        "stream_id": "1",
                        "language": "ita",
                        "bandwidth": "128000",
                        "output": "{audio2_webm}",
                        "output_format": "webm",
                        "drm_label": "AUDIO"
                    }
                ],
                "default_language": "ita",
                "fragment_duration": "2",
                "segment_duration": "2",
                "output_dir": "{output_folder}/shaka_test_17_dash_vp9_widevineAPI_cenc_multikey",
                "mpd_output": "dash.mpd",
                "protection_scheme": "cenc",
                "protection_systems": [
                    "PlayReady",
                    "Widevine"
                ],
                "clear_lead": "0",
                "enable_widevine_encryption": "True",
                "aes_signing_iv": "{shaka_itest_aes_signing_iv}",
                "aes_signing_key": "{shaka_itest_aes_signing_key}",
                "key_server_url": "https://fe.{shaka_itest_secret_url}",
                "content_id": "4031323334353640",
                "signer": "castlabs"
            }
        },
        {
            "tool": "storage:put",
            "parameters": {
                "location": "s3://{com-castlabs-vtk-test-access-keys}@com.castlabs.vtk.test/OUT/packaging-shaka_package_dash_wvapi_{job_id}",
                "files": [
                    "{output_folder}/*"
                ]
            }
        }
    ]
}