video-dev / hls.js

HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.
https://hlsjs.video-dev.org/demo
Other
14.84k stars 2.57k forks source link

How can I create a working HLS AES-128 using openssl #5817

Open Chokoabigail opened 1 year ago

Chokoabigail commented 1 year ago

What do you want to do with Hls.js?

I have regular HLS fragments, but I don't have control over their creation process, I need to convert them from regular HLS to a hls.js playable HLS AES-128.

The fragments can be from .ts type or fmp4 types.

Since HLS AES-128 should be just encrypting the whole fragments, I looking for how to use openssl to encrypt those fragments and patch the m3u8 file so it will be playable in hls.js.but

What have you tried so far?

I tried the simple openssl command for each of the mp4 file (in the fmp4 case) or .ts files (in a regular non fmp4 case):

openssl aes-128-cbc -e -in {} -out {}.enc -p -nosalt -iv 00000000000000000000000000000000 -K 65656565656565656565656565656565

And edited my m3u8 file with:

#EXT-X-KEY:METHOD=AES-128,URI="https://www.myKeyServer/test.key",IV=0x00000000000000000000000000000000

test.key response is:

AAAAAAAAAAAAAAAA

When I tried to play it on hls.js demo player it downloaded the test.key but failed to play the file. This is one of the errors:

Error: Failed to find demuxer by probing fragment data at Transmuxer.configureTransmuxer, type: mediaError

Then I found online that the default implementation of AES-128 added 1 to the IV on each file, so I tried the above openssl command with a different IV for every file, and still got the same results.

What do I do rung? how can I encrypt HLS to be AES-128 that works on hls.js?

Chokoabigail commented 1 year ago

When checking the error massages in the consule, it's seems hls.js decript the data into a non-valid file even do he use the correct key and IV:


{
    "type": "mediaError",
    "details": "fragParsingError",
    "fatal": false,
    "error": {},
    "reason": "Failed to find demuxer by probing fragment data",
    "frag": {
        "_byteRange": null,
        "_url": "https://www.httpstest.com:771/video_360p_400k_h264_1.mp4.enc",
        "baseurl": "https://www.httpstest.com:771/0_enc.m3u8",
        "relurl": "video_360p_400k_h264_1.mp4.enc",
        "elementaryStreams": {
            "audio": null,
            "video": null,
            "audiovideo": null
        },
        "_decryptdata": {
            "uri": "https://www.myKeyServer/test.key",
            "method": "AES-128",
            "keyFormat": "identity",
            "keyFormatVersions": [
                1
            ],
            "encrypted": true,
            "isCommonEncryption": false,
            "iv": {
                "0": 0,
                "1": 0,
                "2": 0,
                "3": 0,
                "4": 0,
                "5": 0,
                "6": 0,
                "7": 0,
                "8": 0,
                "9": 0,
                "10": 0,
                "11": 0,
                "12": 0,
                "13": 0,
                "14": 0,
                "15": 0
            },
            "key": {
                "0": 65,
                "1": 65,
                "2": 65,
                "3": 65,
                "4": 65,
                "5": 65,
                "6": 65,
                "7": 65,
                "8": 65,
                "9": 65,
                "10": 65,
                "11": 65,
                "12": 65,
                "13": 65,
                "14": 65,
                "15": 65
            },
            "keyId": {
                "0": 0,
                "1": 0,
                "2": 0,
                "3": 0,
                "4": 0,
                "5": 0,
                "6": 0,
                "7": 0,
                "8": 0,
                "9": 0,
                "10": 0,
                "11": 0,
                "12": 0,
                "13": 0,
                "14": 0,
                "15": 0
            },
            "pssh": null
        },
        "rawProgramDateTime": null,
        "programDateTime": null,
        "tagList": [
            [
                "INF",
                "0.934"
            ]
        ],
        "duration": 0.934,
        "sn": 0,
        "levelkeys": {
            "identity": {
                "uri": "https://www.myKeyServer/test.key",
                "method": "AES-128",
                "keyFormat": "identity",
                "keyFormatVersions": [
                    1
                ],
                "encrypted": true,
                "isCommonEncryption": false,
                "iv": {
                    "0": 0,
                    "1": 0,
                    "2": 0,
                    "3": 0,
                    "4": 0,
                    "5": 0,
                    "6": 0,
                    "7": 0,
                    "8": 0,
                    "9": 0,
                    "10": 0,
                    "11": 0,
                    "12": 0,
                    "13": 0,
                    "14": 0,
                    "15": 0
                },
                "key": {
                    "0": 65,
                    "1": 65,
                    "2": 65,
                    "3": 65,
                    "4": 65,
                    "5": 65,
                    "6": 65,
                    "7": 65,
                    "8": 65,
                    "9": 65,
                    "10": 65,
                    "11": 65,
                    "12": 65,
                    "13": 65,
                    "14": 65,
                    "15": 65
                },
                "keyId": {
                    "0": 0,
                    "1": 0,
                    "2": 0,
                    "3": 0,
                    "4": 0,
                    "5": 0,
                    "6": 0,
                    "7": 0,
                    "8": 0,
                    "9": 0,
                    "10": 0,
                    "11": 0,
                    "12": 0,
                    "13": 0,
                    "14": 0,
                    "15": 0
                },
                "pssh": null
            }
        },
        "type": "main",
        "loader": null,
        "keyLoader": null,
        "level": 0,
        "cc": 0,
        "start": 0,
        "stats": {
            "aborted": false,
            "loaded": 0,
            "retry": 0,
            "total": 24128,
            "chunkCount": 1,
            "bwEstimate": 1700651.9823788546,
            "loading": {
                "start": 157724150.7,
                "first": 157724163.60000002,
                "end": 157724163.89999998
            },
            "parsing": {
                "start": 157724170.89999998,
                "end": 157724277.10000002
            },
            "buffering": {
                "start": 0,
                "first": 0,
                "end": 157724278.89999998
            },
            "fragMaxLatency": 12.900000035762787,
            "fragMinLatency": 12.900000035762787,
            "fragMaxProcess": 128.19999998807907,
            "fragMinProcess": 128.19999998807907,
            "fragMaxKbps": 1674,
            "fragMinKbps": 1674,
            "fragBuffered": 1,
            "fragBufferedBytes": 24128,
            "autoLevelCappingMax": -1,
            "autoLevelCappingMin": -1,
            "fraglastLatency": 12.900000035762787,
            "fragAvgLatency": 13,
            "fragLastProcess": 128.19999998807907,
            "fragAvgProcess": 128,
            "fragLastKbps": 1674,
            "fragAvgKbps": 1674,
            "fragparsingKbps": 1705,
            "fragparsingMs": 113,
            "autoLevelCappingLast": -1
        },
        "urlId": 0,
        "bitrateTest": false,
        "title": null,
        "initSegment": {
            "_byteRange": null,
            "_url": "https://www.httpstest.com:771/video_360p_400k_h264_init.mp4.enc",
            "baseurl": "https://www.httpstest.com:771/0_enc.m3u8",
            "relurl": "video_360p_400k_h264_init.mp4.enc",
            "elementaryStreams": {
                "audio": null,
                "video": null,
                "audiovideo": null
            },
            "_decryptdata": {
                "uri": "https://www.myKeyServer/test.key",
                "method": "AES-128",
                "keyFormat": "identity",
                "keyFormatVersions": [
                    1
                ],
                "encrypted": true,
                "isCommonEncryption": false,
                "iv": {
                    "0": 0,
                    "1": 0,
                    "2": 0,
                    "3": 0,
                    "4": 0,
                    "5": 0,
                    "6": 0,
                    "7": 0,
                    "8": 0,
                    "9": 0,
                    "10": 0,
                    "11": 0,
                    "12": 0,
                    "13": 0,
                    "14": 0,
                    "15": 0
                },
                "key": {
                    "0": 65,
                    "1": 65,
                    "2": 65,
                    "3": 65,
                    "4": 65,
                    "5": 65,
                    "6": 65,
                    "7": 65,
                    "8": 65,
                    "9": 65,
                    "10": 65,
                    "11": 65,
                    "12": 65,
                    "13": 65,
                    "14": 65,
                    "15": 65
                },
                "keyId": {
                    "0": 0,
                    "1": 0,
                    "2": 0,
                    "3": 0,
                    "4": 0,
                    "5": 0,
                    "6": 0,
                    "7": 0,
                    "8": 0,
                    "9": 0,
                    "10": 0,
                    "11": 0,
                    "12": 0,
                    "13": 0,
                    "14": 0,
                    "15": 0
                },
                "pssh": null
            },
            "rawProgramDateTime": null,
            "programDateTime": null,
            "tagList": [
                [
                    "# Generated with https",
                    "//github.com/google/shaka-packager version v2.6.1-634af65-release"
                ]
            ],
            "duration": 0,
            "sn": "initSegment",
            "levelkeys": {
                "identity": {
                    "uri": "https://www.myKeyServer/test.key",
                    "method": "AES-128",
                    "keyFormat": "identity",
                    "keyFormatVersions": [
                        1
                    ],
                    "encrypted": true,
                    "isCommonEncryption": false,
                    "iv": {
                        "0": 0,
                        "1": 0,
                        "2": 0,
                        "3": 0,
                        "4": 0,
                        "5": 0,
                        "6": 0,
                        "7": 0,
                        "8": 0,
                        "9": 0,
                        "10": 0,
                        "11": 0,
                        "12": 0,
                        "13": 0,
                        "14": 0,
                        "15": 0
                    },
                    "key": {
                        "0": 65,
                        "1": 65,
                        "2": 65,
                        "3": 65,
                        "4": 65,
                        "5": 65,
                        "6": 65,
                        "7": 65,
                        "8": 65,
                        "9": 65,
                        "10": 65,
                        "11": 65,
                        "12": 65,
                        "13": 65,
                        "14": 65,
                        "15": 65
                    },
                    "keyId": {
                        "0": 0,
                        "1": 0,
                        "2": 0,
                        "3": 0,
                        "4": 0,
                        "5": 0,
                        "6": 0,
                        "7": 0,
                        "8": 0,
                        "9": 0,
                        "10": 0,
                        "11": 0,
                        "12": 0,
                        "13": 0,
                        "14": 0,
                        "15": 0
                    },
                    "pssh": null
                }
            },
            "type": "main",
            "loader": null,
            "keyLoader": null,
            "level": 0,
            "cc": 0,
            "start": 0,
            "stats": {
                "aborted": false,
                "loaded": 880,
                "retry": 0,
                "total": 880,
                "chunkCount": 0,
                "bwEstimate": 23466670.396593474,
                "loading": {
                    "start": 157724124.5,
                    "first": 157724149.10000002,
                    "end": 157724149.39999998
                },
                "parsing": {
                    "start": 157724150.3,
                    "end": 157724150.3
                },
                "buffering": {
                    "start": 157724150.3,
                    "first": 0,
                    "end": 157724150.3
                },
                "fragMaxLatency": 24.600000023841858,
                "fragMinLatency": 24.600000023841858,
                "fragMaxProcess": 25.80000001192093,
                "fragMinProcess": 25.80000001192093,
                "fragMaxKbps": 5867,
                "fragMinKbps": 5867,
                "fragBuffered": 1,
                "fragBufferedBytes": 880,
                "autoLevelCappingMax": -1,
                "autoLevelCappingMin": -1,
                "fraglastLatency": 24.600000023841858,
                "fragAvgLatency": 25,
                "fragLastProcess": 25.80000001192093,
                "fragAvgProcess": 26,
                "fragLastKbps": 5867,
                "fragAvgKbps": 5867,
                "fragparsingKbps": 7822,
                "fragparsingMs": 1,
                "autoLevelCappingLast": -1
            },
            "urlId": 0,
            "data": {
                "0": 12,
                "1": 207,
                "2": 78,
                "3": 174,
                "4": 111,
                "5": 97,
                "6": 230,
                "7": 149,
                "8": 134,
                "9": 102,
                "10": 225,
                "11": 194,
                "12": 180,
                "13": 242,
                "14": 149,
                "15": 85,
                "16": 121,
                "17": 211,
                "18": 81,
                "19": 26,
                "20": 148,
                "21": 9,
                "22": 241,
                "23": 199,
                "24": 35,
                "25": 190,
                "26": 205,
                "27": 113,
                "28": 230,
                "29": 174,
                "30": 30,
                "31": 242,
                "32": 166,
                "33": 206,
                "34": 104,
                "35": 147,
                "36": 97,
                "37": 91,
                "38": 19,
                "39": 118,
                "40": 200,
                "41": 61,
                "42": 79,
                "43": 83,
                "44": 107,
                "45": 95,
                "46": 60,
                "47": 37,
                "48": 79,
                "49": 232,
                "50": 32,
                "51": 157,
                "52": 131,
                "53": 197,
                "54": 227,
                "55": 217,
                "56": 11,
                "57": 22,
                "58": 112,
                "59": 176,
                "60": 109,
                "61": 229,
                "62": 142,
                "63": 153,
                "64": 14,
                "65": 127,
                "66": 162,
                "67": 247,
                "68": 101,
                "69": 1,
                "70": 66,
                "71": 104,
                "72": 34,
                "73": 140,
                "74": 193,
                "75": 64,
                "76": 236,
                "77": 42,
                "78": 169,
                "79": 220,
                "80": 212,
                "81": 49,
                "82": 4,
                "83": 226,
                "84": 90,
                "85": 150,
                "86": 110,
                "87": 4,
                "88": 208,
                "89": 110,
                "90": 139,
                "91": 33,
                "92": 128,
                "93": 160,
                "94": 19,
                "95": 149,
                "96": 162,
                "97": 235,
                "98": 141,
                "99": 17,
                "100": 17,
                "101": 227,
                "102": 76,
                "103": 130,
                "104": 174,
                "105": 250,
                "106": 239,
                "107": 188,
                "108": 61,
                "109": 211,
                "110": 193,
                "111": 48,
                "112": 203,
                "113": 93,
                "114": 190,
                "115": 230,
                "116": 222,
                "117": 93,
                "118": 177,
                "119": 154,
                "120": 129,
                "121": 59,
                "122": 3,
                "123": 28,
                "124": 116,
                "125": 132,
                "126": 107,
                "127": 102,
                "128": 198,
                "129": 12,
                "130": 205,
                "131": 121,
                "132": 160,
                "133": 28,
                "134": 61,
                "135": 196,
                "136": 52,
                "137": 97,
                "138": 246,
                "139": 8,
                "140": 11,
                "141": 53,
                "142": 78,
                "143": 211,
                "144": 212,
                "145": 20,
                "146": 105,
                "147": 159,
                "148": 183,
                "149": 166,
                "150": 219,
                "151": 188,
                "152": 32,
                "153": 21,
                "154": 250,
                "155": 6,
                "156": 252,
                "157": 151,
                "158": 82,
                "159": 67,
                "160": 219,
                "161": 128,
                "162": 193,
                "163": 112,
                "164": 95,
                "165": 186,
                "166": 22,
                "167": 86,
                "168": 121,
                "169": 27,
                "170": 239,
                "171": 134,
                "172": 253,
                "173": 159,
                "174": 83,
                "175": 243,
                "176": 116,
                "177": 136,
                "178": 178,
                "179": 249,
                "180": 88,
                "181": 17,
                "182": 84,
                "183": 201,
                "184": 132,
                "185": 1,
                "186": 247,
                "187": 41,
                "188": 84,
                "189": 160,
                "190": 68,
                "191": 254,
                "192": 20,
                "193": 173,
                "194": 222,
                "195": 182,
                "196": 97,
                "197": 92,
                "198": 220,
                "199": 233,
                "200": 5,
                "201": 162,
                "202": 122,
                "203": 132,
                "204": 150,
                "205": 9,
                "206": 2,
                "207": 198,
                "208": 133,
                "209": 252,
                "210": 228,
                "211": 37,
                "212": 159,
                "213": 203,
                "214": 0,
                "215": 72,
                "216": 44,
                "217": 254,
                "218": 45,
                "219": 9,
                "220": 110,
                "221": 124,
                "222": 145,
                "223": 83,
                "224": 33,
                "225": 154,
                "226": 147,
                "227": 192,
                "228": 105,
                "229": 206,
                "230": 37,
                "231": 15,
                "232": 229,
                "233": 38,
                "234": 227,
                "235": 84,
                "236": 28,
                "237": 44,
                "238": 66,
                "239": 203,
                "240": 216,
                "241": 223,
                "242": 156,
                "243": 45,
                "244": 31,
                "245": 24,
                "246": 47,
                "247": 128,
                "248": 66,
                "249": 226,
                "250": 212,
                "251": 41,
                "252": 90,
                "253": 2,
                "254": 227,
                "255": 90,
                "256": 20,
                "257": 31,
                "258": 94,
                "259": 64,
                "260": 99,
                "261": 11,
                "262": 129,
                "263": 197,
                "264": 237,
                "265": 186,
                "266": 185,
                "267": 117,
                "268": 6,
                "269": 148,
                "270": 232,
                "271": 146,
                "272": 18,
                "273": 236,
                "274": 120,
                "275": 10,
                "276": 169,
                "277": 14,
                "278": 46,
                "279": 200,
                "280": 75,
                "281": 10,
                "282": 131,
                "283": 7,
                "284": 216,
                "285": 142,
                "286": 173,
                "287": 25,
                "288": 204,
                "289": 242,
                "290": 196,
                "291": 152,
                "292": 18,
                "293": 176,
                "294": 195,
                "295": 180,
                "296": 158,
                "297": 149,
                "298": 80,
                "299": 143,
                "300": 17,
                "301": 111,
                "302": 36,
                "303": 146,
                "304": 131,
                "305": 1,
                "306": 75,
                "307": 54,
                "308": 227,
                "309": 58,
                "310": 141,
                "311": 157,
                "312": 36,
                "313": 238,
                "314": 196,
                "315": 76,
                "316": 253,
                "317": 107,
                "318": 66,
                "319": 0,
                "320": 142,
                "321": 136,
                "322": 31,
                "323": 2,
                "324": 51,
                "325": 148,
                "326": 26,
                "327": 122,
                "328": 123,
                "329": 75,
                "330": 66,
                "331": 238,
                "332": 38,
                "333": 15,
                "334": 62,
                "335": 252,
                "336": 48,
                "337": 107,
                "338": 146,
                "339": 225,
                "340": 254,
                "341": 207,
                "342": 133,
                "343": 113,
                "344": 176,
                "345": 151,
                "346": 141,
                "347": 175,
                "348": 216,
                "349": 255,
                "350": 180,
                "351": 204,
                "352": 154,
                "353": 170,
                "354": 152,
                "355": 160,
                "356": 173,
                "357": 249,
                "358": 41,
                "359": 49,
                "360": 91,
                "361": 160,
                "362": 100,
                "363": 175,
                "364": 94,
                "365": 155,
                "366": 70,
                "367": 180,
                "368": 17,
                "369": 254,
                "370": 235,
                "371": 141,
                "372": 198,
                "373": 79,
                "374": 192,
                "375": 41,
                "376": 131,
                "377": 126,
                "378": 245,
                "379": 105,
                "380": 109,
                "381": 39,
                "382": 181,
                "383": 96,
                "384": 246,
                "385": 80,
                "386": 216,
                "387": 93,
                "388": 93,
                "389": 139,
                "390": 50,
                "391": 69,
                "392": 35,
                "393": 66,
                "394": 127,
                "395": 15,
                "396": 236,
                "397": 120,
                "398": 154,
                "399": 116,
                "400": 207,
                "401": 250,
                "402": 173,
                "403": 206,
                "404": 99,
                "405": 60,
                "406": 113,
                "407": 83,
                "408": 43,
                "409": 51,
                "410": 126,
                "411": 53,
                "412": 179,
                "413": 141,
                "414": 2,
                "415": 80,
                "416": 42,
                "417": 185,
                "418": 186,
                "419": 202,
                "420": 94,
                "421": 188,
                "422": 81,
                "423": 81,
                "424": 13,
                "425": 140,
                "426": 52,
                "427": 178,
                "428": 176,
                "429": 82,
                "430": 58,
                "431": 196,
                "432": 45,
                "433": 159,
                "434": 75,
                "435": 253,
                "436": 43,
                "437": 95,
                "438": 72,
                "439": 237,
                "440": 226,
                "441": 245,
                "442": 159,
                "443": 239,
                "444": 18,
                "445": 212,
                "446": 131,
                "447": 117,
                "448": 113,
                "449": 165,
                "450": 73,
                "451": 178,
                "452": 214,
                "453": 146,
                "454": 150,
                "455": 214,
                "456": 158,
                "457": 195,
                "458": 36,
                "459": 109,
                "460": 188,
                "461": 182,
                "462": 238,
                "463": 74,
                "464": 176,
                "465": 156,
                "466": 41,
                "467": 232,
                "468": 26,
                "469": 210,
                "470": 109,
                "471": 104,
                "472": 225,
                "473": 148,
                "474": 85,
                "475": 42,
                "476": 206,
                "477": 121,
                "478": 242,
                "479": 193,
                "480": 246,
                "481": 131,
                "482": 209,
                "483": 170,
                "484": 217,
                "485": 61,
                "486": 38,
                "487": 0,
                "488": 230,
                "489": 142,
                "490": 133,
                "491": 207,
                "492": 82,
                "493": 94,
                "494": 130,
                "495": 99,
                "496": 225,
                "497": 138,
                "498": 107,
                "499": 62,
                "500": 237,
                "501": 87,
                "502": 113,
                "503": 118,
                "504": 209,
                "505": 227,
                "506": 8,
                "507": 161,
                "508": 188,
                "509": 38,
                "510": 195,
                "511": 185,
                "512": 12,
                "513": 122,
                "514": 139,
                "515": 12,
                "516": 149,
                "517": 35,
                "518": 103,
                "519": 80,
                "520": 146,
                "521": 74,
                "522": 26,
                "523": 115,
                "524": 211,
                "525": 96,
                "526": 230,
                "527": 21,
                "528": 143,
                "529": 212,
                "530": 156,
                "531": 143,
                "532": 72,
                "533": 93,
                "534": 194,
                "535": 238,
                "536": 140,
                "537": 125,
                "538": 205,
                "539": 10,
                "540": 45,
                "541": 164,
                "542": 233,
                "543": 226,
                "544": 62,
                "545": 205,
                "546": 241,
                "547": 90,
                "548": 219,
                "549": 70,
                "550": 221,
                "551": 156,
                "552": 82,
                "553": 113,
                "554": 197,
                "555": 233,
                "556": 209,
                "557": 87,
                "558": 225,
                "559": 150,
                "560": 146,
                "561": 70,
                "562": 180,
                "563": 40,
                "564": 170,
                "565": 136,
                "566": 216,
                "567": 130,
                "568": 194,
                "569": 74,
                "570": 19,
                "571": 124,
                "572": 12,
                "573": 227,
                "574": 72,
                "575": 86,
                "576": 45,
                "577": 58,
                "578": 19,
                "579": 73,
                "580": 216,
                "581": 79,
                "582": 243,
                "583": 20,
                "584": 210,
                "585": 210,
                "586": 98,
                "587": 179,
                "588": 206,
                "589": 21,
                "590": 153,
                "591": 253,
                "592": 148,
                "593": 234,
                "594": 232,
                "595": 96,
                "596": 67,
                "597": 49,
                "598": 214,
                "599": 193,
                "600": 112,
                "601": 122,
                "602": 244,
                "603": 107,
                "604": 83,
                "605": 233,
                "606": 22,
                "607": 226,
                "608": 95,
                "609": 185,
                "610": 45,
                "611": 41,
                "612": 120,
                "613": 202,
                "614": 76,
                "615": 22,
                "616": 240,
                "617": 64,
                "618": 138,
                "619": 70,
                "620": 123,
                "621": 91,
                "622": 16,
                "623": 66,
                "624": 42,
                "625": 1,
                "626": 235,
                "627": 54,
                "628": 146,
                "629": 210,
                "630": 41,
                "631": 157,
                "632": 85,
                "633": 64,
                "634": 192,
                "635": 5,
                "636": 116,
                "637": 235,
                "638": 121,
                "639": 183,
                "640": 95,
                "641": 163,
                "642": 232,
                "643": 12,
                "644": 69,
                "645": 194,
                "646": 248,
                "647": 125,
                "648": 191,
                "649": 170,
                "650": 167,
                "651": 156,
                "652": 87,
                "653": 60,
                "654": 224,
                "655": 11,
                "656": 132,
                "657": 178,
                "658": 19,
                "659": 230,
                "660": 225,
                "661": 135,
                "662": 130,
                "663": 147,
                "664": 250,
                "665": 238,
                "666": 5,
                "667": 224,
                "668": 217,
                "669": 203,
                "670": 50,
                "671": 177,
                "672": 77,
                "673": 94,
                "674": 85,
                "675": 84,
                "676": 49,
                "677": 113,
                "678": 238,
                "679": 216,
                "680": 116,
                "681": 102,
                "682": 52,
                "683": 17,
                "684": 59,
                "685": 247,
                "686": 103,
                "687": 169,
                "688": 130,
                "689": 93,
                "690": 41,
                "691": 49,
                "692": 198,
                "693": 187,
                "694": 180,
                "695": 71,
                "696": 135,
                "697": 141,
                "698": 179,
                "699": 8,
                "700": 98,
                "701": 143,
                "702": 131,
                "703": 81,
                "704": 131,
                "705": 246,
                "706": 134,
                "707": 225,
                "708": 3,
                "709": 190,
                "710": 8,
                "711": 244,
                "712": 33,
                "713": 80,
                "714": 42,
                "715": 248,
                "716": 187,
                "717": 73,
                "718": 29,
                "719": 48,
                "720": 14,
                "721": 240,
                "722": 60,
                "723": 124,
                "724": 230,
                "725": 57,
                "726": 27,
                "727": 81,
                "728": 9,
                "729": 145,
                "730": 220,
                "731": 4,
                "732": 152,
                "733": 230,
                "734": 213,
                "735": 241,
                "736": 143,
                "737": 251,
                "738": 172,
                "739": 227,
                "740": 208,
                "741": 165,
                "742": 57,
                "743": 139,
                "744": 183,
                "745": 191,
                "746": 91,
                "747": 211,
                "748": 45,
                "749": 142,
                "750": 114,
                "751": 71,
                "752": 95,
                "753": 83,
                "754": 53,
                "755": 157,
                "756": 35,
                "757": 229,
                "758": 233,
                "759": 158,
                "760": 177,
                "761": 64,
                "762": 6,
                "763": 87,
                "764": 235,
                "765": 253,
                "766": 202,
                "767": 163,
                "768": 183,
                "769": 166,
                "770": 44,
                "771": 4,
                "772": 133,
                "773": 255,
                "774": 231,
                "775": 55,
                "776": 154,
                "777": 166,
                "778": 124,
                "779": 2,
                "780": 200,
                "781": 149,
                "782": 107,
                "783": 103,
                "784": 27,
                "785": 77,
                "786": 99,
                "787": 8,
                "788": 233,
                "789": 159,
                "790": 163,
                "791": 32,
                "792": 174,
                "793": 0
            },
            "bitrateTest": false,
            "title": null,
            "initSegment": null
        },
        "endList": true
    },
    "id": "main",
    "errorAction": {
        "action": 2,
        "flags": 1,
        "retryConfig": {
            "maxNumRetry": 6,
            "retryDelayMs": 1000,
            "maxRetryDelayMs": 8000
        },
        "retryCount": 0,
        "resolved": true
    }
}

{
    "type": "mediaError",
    "details": "fragParsingError",
    "fatal": false,
    "error": {},
    "frag": {
        "_byteRange": null,
        "_url": "https://www.httpstest.com:771/video_360p_400k_h264_1.mp4.enc",
        "baseurl": "https://www.httpstest.com:771/0_enc.m3u8",
        "relurl": "video_360p_400k_h264_1.mp4.enc",
        "elementaryStreams": {
            "audio": null,
            "video": null,
            "audiovideo": null
        },
        "_decryptdata": {
            "uri": "https://www.myKeyServer/test.key",
            "method": "AES-128",
            "keyFormat": "identity",
            "keyFormatVersions": [
                1
            ],
            "encrypted": true,
            "isCommonEncryption": false,
            "iv": {
                "0": 0,
                "1": 0,
                "2": 0,
                "3": 0,
                "4": 0,
                "5": 0,
                "6": 0,
                "7": 0,
                "8": 0,
                "9": 0,
                "10": 0,
                "11": 0,
                "12": 0,
                "13": 0,
                "14": 0,
                "15": 0
            },
            "key": {
                "0": 65,
                "1": 65,
                "2": 65,
                "3": 65,
                "4": 65,
                "5": 65,
                "6": 65,
                "7": 65,
                "8": 65,
                "9": 65,
                "10": 65,
                "11": 65,
                "12": 65,
                "13": 65,
                "14": 65,
                "15": 65
            },
            "keyId": {
                "0": 0,
                "1": 0,
                "2": 0,
                "3": 0,
                "4": 0,
                "5": 0,
                "6": 0,
                "7": 0,
                "8": 0,
                "9": 0,
                "10": 0,
                "11": 0,
                "12": 0,
                "13": 0,
                "14": 0,
                "15": 0
            },
            "pssh": null
        },
        "rawProgramDateTime": null,
        "programDateTime": null,
        "tagList": [
            [
                "INF",
                "0.934"
            ]
        ],
        "duration": 0.934,
        "sn": 0,
        "levelkeys": {
            "identity": {
                "uri": "https://www.myKeyServer/test.key",
                "method": "AES-128",
                "keyFormat": "identity",
                "keyFormatVersions": [
                    1
                ],
                "encrypted": true,
                "isCommonEncryption": false,
                "iv": {
                    "0": 0,
                    "1": 0,
                    "2": 0,
                    "3": 0,
                    "4": 0,
                    "5": 0,
                    "6": 0,
                    "7": 0,
                    "8": 0,
                    "9": 0,
                    "10": 0,
                    "11": 0,
                    "12": 0,
                    "13": 0,
                    "14": 0,
                    "15": 0
                },
                "key": {
                    "0": 65,
                    "1": 65,
                    "2": 65,
                    "3": 65,
                    "4": 65,
                    "5": 65,
                    "6": 65,
                    "7": 65,
                    "8": 65,
                    "9": 65,
                    "10": 65,
                    "11": 65,
                    "12": 65,
                    "13": 65,
                    "14": 65,
                    "15": 65
                },
                "keyId": {
                    "0": 0,
                    "1": 0,
                    "2": 0,
                    "3": 0,
                    "4": 0,
                    "5": 0,
                    "6": 0,
                    "7": 0,
                    "8": 0,
                    "9": 0,
                    "10": 0,
                    "11": 0,
                    "12": 0,
                    "13": 0,
                    "14": 0,
                    "15": 0
                },
                "pssh": null
            }
        },
        "type": "main",
        "loader": null,
        "keyLoader": null,
        "level": 0,
        "cc": 0,
        "start": 0,
        "stats": {
            "aborted": false,
            "loaded": 0,
            "retry": 0,
            "total": 24128,
            "chunkCount": 1,
            "bwEstimate": 1700651.9823788546,
            "loading": {
                "start": 157724150.7,
                "first": 157724163.60000002,
                "end": 157724163.89999998
            },
            "parsing": {
                "start": 157724170.89999998,
                "end": 157724277.10000002
            },
            "buffering": {
                "start": 0,
                "first": 0,
                "end": 157724278.89999998
            },
            "fragMaxLatency": 12.900000035762787,
            "fragMinLatency": 12.900000035762787,
            "fragMaxProcess": 128.19999998807907,
            "fragMinProcess": 128.19999998807907,
            "fragMaxKbps": 1674,
            "fragMinKbps": 1674,
            "fragBuffered": 1,
            "fragBufferedBytes": 24128,
            "autoLevelCappingMax": -1,
            "autoLevelCappingMin": -1,
            "fraglastLatency": 12.900000035762787,
            "fragAvgLatency": 13,
            "fragLastProcess": 128.19999998807907,
            "fragAvgProcess": 128,
            "fragLastKbps": 1674,
            "fragAvgKbps": 1674,
            "fragparsingKbps": 1705,
            "fragparsingMs": 113,
            "autoLevelCappingLast": -1
        },
        "urlId": 0,
        "bitrateTest": false,
        "title": null,
        "initSegment": {
            "_byteRange": null,
            "_url": "https://www.httpstest.com:771/video_360p_400k_h264_init.mp4.enc",
            "baseurl": "https://www.httpstest.com:771/0_enc.m3u8",
            "relurl": "video_360p_400k_h264_init.mp4.enc",
            "elementaryStreams": {
                "audio": null,
                "video": null,
                "audiovideo": null
            },
            "_decryptdata": {
                "uri": "https://www.myKeyServer/test.key",
                "method": "AES-128",
                "keyFormat": "identity",
                "keyFormatVersions": [
                    1
                ],
                "encrypted": true,
                "isCommonEncryption": false,
                "iv": {
                    "0": 0,
                    "1": 0,
                    "2": 0,
                    "3": 0,
                    "4": 0,
                    "5": 0,
                    "6": 0,
                    "7": 0,
                    "8": 0,
                    "9": 0,
                    "10": 0,
                    "11": 0,
                    "12": 0,
                    "13": 0,
                    "14": 0,
                    "15": 0
                },
                "key": {
                    "0": 65,
                    "1": 65,
                    "2": 65,
                    "3": 65,
                    "4": 65,
                    "5": 65,
                    "6": 65,
                    "7": 65,
                    "8": 65,
                    "9": 65,
                    "10": 65,
                    "11": 65,
                    "12": 65,
                    "13": 65,
                    "14": 65,
                    "15": 65
                },
                "keyId": {
                    "0": 0,
                    "1": 0,
                    "2": 0,
                    "3": 0,
                    "4": 0,
                    "5": 0,
                    "6": 0,
                    "7": 0,
                    "8": 0,
                    "9": 0,
                    "10": 0,
                    "11": 0,
                    "12": 0,
                    "13": 0,
                    "14": 0,
                    "15": 0
                },
                "pssh": null
            },
            "rawProgramDateTime": null,
            "programDateTime": null,
            "tagList": [
                [
                    "# Generated with https",
                    "//github.com/google/shaka-packager version v2.6.1-634af65-release"
                ]
            ],
            "duration": 0,
            "sn": "initSegment",
            "levelkeys": {
                "identity": {
                    "uri": "https://www.myKeyServer/test.key",
                    "method": "AES-128",
                    "keyFormat": "identity",
                    "keyFormatVersions": [
                        1
                    ],
                    "encrypted": true,
                    "isCommonEncryption": false,
                    "iv": {
                        "0": 0,
                        "1": 0,
                        "2": 0,
                        "3": 0,
                        "4": 0,
                        "5": 0,
                        "6": 0,
                        "7": 0,
                        "8": 0,
                        "9": 0,
                        "10": 0,
                        "11": 0,
                        "12": 0,
                        "13": 0,
                        "14": 0,
                        "15": 0
                    },
                    "key": {
                        "0": 65,
                        "1": 65,
                        "2": 65,
                        "3": 65,
                        "4": 65,
                        "5": 65,
                        "6": 65,
                        "7": 65,
                        "8": 65,
                        "9": 65,
                        "10": 65,
                        "11": 65,
                        "12": 65,
                        "13": 65,
                        "14": 65,
                        "15": 65
                    },
                    "keyId": {
                        "0": 0,
                        "1": 0,
                        "2": 0,
                        "3": 0,
                        "4": 0,
                        "5": 0,
                        "6": 0,
                        "7": 0,
                        "8": 0,
                        "9": 0,
                        "10": 0,
                        "11": 0,
                        "12": 0,
                        "13": 0,
                        "14": 0,
                        "15": 0
                    },
                    "pssh": null
                }
            },
            "type": "main",
            "loader": null,
            "keyLoader": null,
            "level": 0,
            "cc": 0,
            "start": 0,
            "stats": {
                "aborted": false,
                "loaded": 880,
                "retry": 0,
                "total": 880,
                "chunkCount": 0,
                "bwEstimate": 23466670.396593474,
                "loading": {
                    "start": 157724124.5,
                    "first": 157724149.10000002,
                    "end": 157724149.39999998
                },
                "parsing": {
                    "start": 157724150.3,
                    "end": 157724150.3
                },
                "buffering": {
                    "start": 157724150.3,
                    "first": 0,
                    "end": 157724150.3
                },
                "fragMaxLatency": 24.600000023841858,
                "fragMinLatency": 24.600000023841858,
                "fragMaxProcess": 25.80000001192093,
                "fragMinProcess": 25.80000001192093,
                "fragMaxKbps": 5867,
                "fragMinKbps": 5867,
                "fragBuffered": 1,
                "fragBufferedBytes": 880,
                "autoLevelCappingMax": -1,
                "autoLevelCappingMin": -1,
                "fraglastLatency": 24.600000023841858,
                "fragAvgLatency": 25,
                "fragLastProcess": 25.80000001192093,
                "fragAvgProcess": 26,
                "fragLastKbps": 5867,
                "fragAvgKbps": 5867,
                "fragparsingKbps": 7822,
                "fragparsingMs": 1,
                "autoLevelCappingLast": -1
            },
            "urlId": 0,
            "data": {
                "0": 12,
                "1": 207,
                "2": 78,
                "3": 174,
                "4": 111,
                "5": 97,
                "6": 230,
                "7": 149,
                "8": 134,
                "9": 102,
                "10": 225,
                "11": 194,
                "12": 180,
                "13": 242,
                "14": 149,
                "15": 85,
                "16": 121,
                "17": 211,
                "18": 81,
                "19": 26,
                "20": 148,
                "21": 9,
                "22": 241,
                "23": 199,
                "24": 35,
                "25": 190,
                "26": 205,
                "27": 113,
                "28": 230,
                "29": 174,
                "30": 30,
                "31": 242,
                "32": 166,
                "33": 206,
                "34": 104,
                "35": 147,
                "36": 97,
                "37": 91,
                "38": 19,
                "39": 118,
                "40": 200,
                "41": 61,
                "42": 79,
                "43": 83,
                "44": 107,
                "45": 95,
                "46": 60,
                "47": 37,
                "48": 79,
                "49": 232,
                "50": 32,
                "51": 157,
                "52": 131,
                "53": 197,
                "54": 227,
                "55": 217,
                "56": 11,
                "57": 22,
                "58": 112,
                "59": 176,
                "60": 109,
                "61": 229,
                "62": 142,
                "63": 153,
                "64": 14,
                "65": 127,
                "66": 162,
                "67": 247,
                "68": 101,
                "69": 1,
                "70": 66,
                "71": 104,
                "72": 34,
                "73": 140,
                "74": 193,
                "75": 64,
                "76": 236,
                "77": 42,
                "78": 169,
                "79": 220,
                "80": 212,
                "81": 49,
                "82": 4,
                "83": 226,
                "84": 90,
                "85": 150,
                "86": 110,
                "87": 4,
                "88": 208,
                "89": 110,
                "90": 139,
                "91": 33,
                "92": 128,
                "93": 160,
                "94": 19,
                "95": 149,
                "96": 162,
                "97": 235,
                "98": 141,
                "99": 17,
                "100": 17,
                "101": 227,
                "102": 76,
                "103": 130,
                "104": 174,
                "105": 250,
                "106": 239,
                "107": 188,
                "108": 61,
                "109": 211,
                "110": 193,
                "111": 48,
                "112": 203,
                "113": 93,
                "114": 190,
                "115": 230,
                "116": 222,
                "117": 93,
                "118": 177,
                "119": 154,
                "120": 129,
                "121": 59,
                "122": 3,
                "123": 28,
                "124": 116,
                "125": 132,
                "126": 107,
                "127": 102,
                "128": 198,
                "129": 12,
                "130": 205,
                "131": 121,
                "132": 160,
                "133": 28,
                "134": 61,
                "135": 196,
                "136": 52,
                "137": 97,
                "138": 246,
                "139": 8,
                "140": 11,
                "141": 53,
                "142": 78,
                "143": 211,
                "144": 212,
                "145": 20,
                "146": 105,
                "147": 159,
                "148": 183,
                "149": 166,
                "150": 219,
                "151": 188,
                "152": 32,
                "153": 21,
                "154": 250,
                "155": 6,
                "156": 252,
                "157": 151,
                "158": 82,
                "159": 67,
                "160": 219,
                "161": 128,
                "162": 193,
                "163": 112,
                "164": 95,
                "165": 186,
                "166": 22,
                "167": 86,
                "168": 121,
                "169": 27,
                "170": 239,
                "171": 134,
                "172": 253,
                "173": 159,
                "174": 83,
                "175": 243,
                "176": 116,
                "177": 136,
                "178": 178,
                "179": 249,
                "180": 88,
                "181": 17,
                "182": 84,
                "183": 201,
                "184": 132,
                "185": 1,
                "186": 247,
                "187": 41,
                "188": 84,
                "189": 160,
                "190": 68,
                "191": 254,
                "192": 20,
                "193": 173,
                "194": 222,
                "195": 182,
                "196": 97,
                "197": 92,
                "198": 220,
                "199": 233,
                "200": 5,
                "201": 162,
                "202": 122,
                "203": 132,
                "204": 150,
                "205": 9,
                "206": 2,
                "207": 198,
                "208": 133,
                "209": 252,
                "210": 228,
                "211": 37,
                "212": 159,
                "213": 203,
                "214": 0,
                "215": 72,
                "216": 44,
                "217": 254,
                "218": 45,
                "219": 9,
                "220": 110,
                "221": 124,
                "222": 145,
                "223": 83,
                "224": 33,
                "225": 154,
                "226": 147,
                "227": 192,
                "228": 105,
                "229": 206,
                "230": 37,
                "231": 15,
                "232": 229,
                "233": 38,
                "234": 227,
                "235": 84,
                "236": 28,
                "237": 44,
                "238": 66,
                "239": 203,
                "240": 216,
                "241": 223,
                "242": 156,
                "243": 45,
                "244": 31,
                "245": 24,
                "246": 47,
                "247": 128,
                "248": 66,
                "249": 226,
                "250": 212,
                "251": 41,
                "252": 90,
                "253": 2,
                "254": 227,
                "255": 90,
                "256": 20,
                "257": 31,
                "258": 94,
                "259": 64,
                "260": 99,
                "261": 11,
                "262": 129,
                "263": 197,
                "264": 237,
                "265": 186,
                "266": 185,
                "267": 117,
                "268": 6,
                "269": 148,
                "270": 232,
                "271": 146,
                "272": 18,
                "273": 236,
                "274": 120,
                "275": 10,
                "276": 169,
                "277": 14,
                "278": 46,
                "279": 200,
                "280": 75,
                "281": 10,
                "282": 131,
                "283": 7,
                "284": 216,
                "285": 142,
                "286": 173,
                "287": 25,
                "288": 204,
                "289": 242,
                "290": 196,
                "291": 152,
                "292": 18,
                "293": 176,
                "294": 195,
                "295": 180,
                "296": 158,
                "297": 149,
                "298": 80,
                "299": 143,
                "300": 17,
                "301": 111,
                "302": 36,
                "303": 146,
                "304": 131,
                "305": 1,
                "306": 75,
                "307": 54,
                "308": 227,
                "309": 58,
                "310": 141,
                "311": 157,
                "312": 36,
                "313": 238,
                "314": 196,
                "315": 76,
                "316": 253,
                "317": 107,
                "318": 66,
                "319": 0,
                "320": 142,
                "321": 136,
                "322": 31,
                "323": 2,
                "324": 51,
                "325": 148,
                "326": 26,
                "327": 122,
                "328": 123,
                "329": 75,
                "330": 66,
                "331": 238,
                "332": 38,
                "333": 15,
                "334": 62,
                "335": 252,
                "336": 48,
                "337": 107,
                "338": 146,
                "339": 225,
                "340": 254,
                "341": 207,
                "342": 133,
                "343": 113,
                "344": 176,
                "345": 151,
                "346": 141,
                "347": 175,
                "348": 216,
                "349": 255,
                "350": 180,
                "351": 204,
                "352": 154,
                "353": 170,
                "354": 152,
                "355": 160,
                "356": 173,
                "357": 249,
                "358": 41,
                "359": 49,
                "360": 91,
                "361": 160,
                "362": 100,
                "363": 175,
                "364": 94,
                "365": 155,
                "366": 70,
                "367": 180,
                "368": 17,
                "369": 254,
                "370": 235,
                "371": 141,
                "372": 198,
                "373": 79,
                "374": 192,
                "375": 41,
                "376": 131,
                "377": 126,
                "378": 245,
                "379": 105,
                "380": 109,
                "381": 39,
                "382": 181,
                "383": 96,
                "384": 246,
                "385": 80,
                "386": 216,
                "387": 93,
                "388": 93,
                "389": 139,
                "390": 50,
                "391": 69,
                "392": 35,
                "393": 66,
                "394": 127,
                "395": 15,
                "396": 236,
                "397": 120,
                "398": 154,
                "399": 116,
                "400": 207,
                "401": 250,
                "402": 173,
                "403": 206,
                "404": 99,
                "405": 60,
                "406": 113,
                "407": 83,
                "408": 43,
                "409": 51,
                "410": 126,
                "411": 53,
                "412": 179,
                "413": 141,
                "414": 2,
                "415": 80,
                "416": 42,
                "417": 185,
                "418": 186,
                "419": 202,
                "420": 94,
                "421": 188,
                "422": 81,
                "423": 81,
                "424": 13,
                "425": 140,
                "426": 52,
                "427": 178,
                "428": 176,
                "429": 82,
                "430": 58,
                "431": 196,
                "432": 45,
                "433": 159,
                "434": 75,
                "435": 253,
                "436": 43,
                "437": 95,
                "438": 72,
                "439": 237,
                "440": 226,
                "441": 245,
                "442": 159,
                "443": 239,
                "444": 18,
                "445": 212,
                "446": 131,
                "447": 117,
                "448": 113,
                "449": 165,
                "450": 73,
                "451": 178,
                "452": 214,
                "453": 146,
                "454": 150,
                "455": 214,
                "456": 158,
                "457": 195,
                "458": 36,
                "459": 109,
                "460": 188,
                "461": 182,
                "462": 238,
                "463": 74,
                "464": 176,
                "465": 156,
                "466": 41,
                "467": 232,
                "468": 26,
                "469": 210,
                "470": 109,
                "471": 104,
                "472": 225,
                "473": 148,
                "474": 85,
                "475": 42,
                "476": 206,
                "477": 121,
                "478": 242,
                "479": 193,
                "480": 246,
                "481": 131,
                "482": 209,
                "483": 170,
                "484": 217,
                "485": 61,
                "486": 38,
                "487": 0,
                "488": 230,
                "489": 142,
                "490": 133,
                "491": 207,
                "492": 82,
                "493": 94,
                "494": 130,
                "495": 99,
                "496": 225,
                "497": 138,
                "498": 107,
                "499": 62,
                "500": 237,
                "501": 87,
                "502": 113,
                "503": 118,
                "504": 209,
                "505": 227,
                "506": 8,
                "507": 161,
                "508": 188,
                "509": 38,
                "510": 195,
                "511": 185,
                "512": 12,
                "513": 122,
                "514": 139,
                "515": 12,
                "516": 149,
                "517": 35,
                "518": 103,
                "519": 80,
                "520": 146,
                "521": 74,
                "522": 26,
                "523": 115,
                "524": 211,
                "525": 96,
                "526": 230,
                "527": 21,
                "528": 143,
                "529": 212,
                "530": 156,
                "531": 143,
                "532": 72,
                "533": 93,
                "534": 194,
                "535": 238,
                "536": 140,
                "537": 125,
                "538": 205,
                "539": 10,
                "540": 45,
                "541": 164,
                "542": 233,
                "543": 226,
                "544": 62,
                "545": 205,
                "546": 241,
                "547": 90,
                "548": 219,
                "549": 70,
                "550": 221,
                "551": 156,
                "552": 82,
                "553": 113,
                "554": 197,
                "555": 233,
                "556": 209,
                "557": 87,
                "558": 225,
                "559": 150,
                "560": 146,
                "561": 70,
                "562": 180,
                "563": 40,
                "564": 170,
                "565": 136,
                "566": 216,
                "567": 130,
                "568": 194,
                "569": 74,
                "570": 19,
                "571": 124,
                "572": 12,
                "573": 227,
                "574": 72,
                "575": 86,
                "576": 45,
                "577": 58,
                "578": 19,
                "579": 73,
                "580": 216,
                "581": 79,
                "582": 243,
                "583": 20,
                "584": 210,
                "585": 210,
                "586": 98,
                "587": 179,
                "588": 206,
                "589": 21,
                "590": 153,
                "591": 253,
                "592": 148,
                "593": 234,
                "594": 232,
                "595": 96,
                "596": 67,
                "597": 49,
                "598": 214,
                "599": 193,
                "600": 112,
                "601": 122,
                "602": 244,
                "603": 107,
                "604": 83,
                "605": 233,
                "606": 22,
                "607": 226,
                "608": 95,
                "609": 185,
                "610": 45,
                "611": 41,
                "612": 120,
                "613": 202,
                "614": 76,
                "615": 22,
                "616": 240,
                "617": 64,
                "618": 138,
                "619": 70,
                "620": 123,
                "621": 91,
                "622": 16,
                "623": 66,
                "624": 42,
                "625": 1,
                "626": 235,
                "627": 54,
                "628": 146,
                "629": 210,
                "630": 41,
                "631": 157,
                "632": 85,
                "633": 64,
                "634": 192,
                "635": 5,
                "636": 116,
                "637": 235,
                "638": 121,
                "639": 183,
                "640": 95,
                "641": 163,
                "642": 232,
                "643": 12,
                "644": 69,
                "645": 194,
                "646": 248,
                "647": 125,
                "648": 191,
                "649": 170,
                "650": 167,
                "651": 156,
                "652": 87,
                "653": 60,
                "654": 224,
                "655": 11,
                "656": 132,
                "657": 178,
                "658": 19,
                "659": 230,
                "660": 225,
                "661": 135,
                "662": 130,
                "663": 147,
                "664": 250,
                "665": 238,
                "666": 5,
                "667": 224,
                "668": 217,
                "669": 203,
                "670": 50,
                "671": 177,
                "672": 77,
                "673": 94,
                "674": 85,
                "675": 84,
                "676": 49,
                "677": 113,
                "678": 238,
                "679": 216,
                "680": 116,
                "681": 102,
                "682": 52,
                "683": 17,
                "684": 59,
                "685": 247,
                "686": 103,
                "687": 169,
                "688": 130,
                "689": 93,
                "690": 41,
                "691": 49,
                "692": 198,
                "693": 187,
                "694": 180,
                "695": 71,
                "696": 135,
                "697": 141,
                "698": 179,
                "699": 8,
                "700": 98,
                "701": 143,
                "702": 131,
                "703": 81,
                "704": 131,
                "705": 246,
                "706": 134,
                "707": 225,
                "708": 3,
                "709": 190,
                "710": 8,
                "711": 244,
                "712": 33,
                "713": 80,
                "714": 42,
                "715": 248,
                "716": 187,
                "717": 73,
                "718": 29,
                "719": 48,
                "720": 14,
                "721": 240,
                "722": 60,
                "723": 124,
                "724": 230,
                "725": 57,
                "726": 27,
                "727": 81,
                "728": 9,
                "729": 145,
                "730": 220,
                "731": 4,
                "732": 152,
                "733": 230,
                "734": 213,
                "735": 241,
                "736": 143,
                "737": 251,
                "738": 172,
                "739": 227,
                "740": 208,
                "741": 165,
                "742": 57,
                "743": 139,
                "744": 183,
                "745": 191,
                "746": 91,
                "747": 211,
                "748": 45,
                "749": 142,
                "750": 114,
                "751": 71,
                "752": 95,
                "753": 83,
                "754": 53,
                "755": 157,
                "756": 35,
                "757": 229,
                "758": 233,
                "759": 158,
                "760": 177,
                "761": 64,
                "762": 6,
                "763": 87,
                "764": 235,
                "765": 253,
                "766": 202,
                "767": 163,
                "768": 183,
                "769": 166,
                "770": 44,
                "771": 4,
                "772": 133,
                "773": 255,
                "774": 231,
                "775": 55,
                "776": 154,
                "777": 166,
                "778": 124,
                "779": 2,
                "780": 200,
                "781": 149,
                "782": 107,
                "783": 103,
                "784": 27,
                "785": 77,
                "786": 99,
                "787": 8,
                "788": 233,
                "789": 159,
                "790": 163,
                "791": 32,
                "792": 174,
                "793": 0
            },
            "bitrateTest": false,
            "title": null,
            "initSegment": null
        },
        "endList": true
    },
    "reason": "Found no media in msn 0 of level \"https://www.httpstest.com:771/0_enc.m3u8\"",
    "errorAction": {
        "action": 2,
        "flags": 1,
        "retryConfig": {
            "maxNumRetry": 6,
            "retryDelayMs": 1000,
            "maxRetryDelayMs": 8000
        },
        "retryCount": 1,
        "resolved": true
    }
}

All valid unencrypted files start with the bytes:

00 00 00

As you can see, the decrypted bytes in the message starts with:

12 207 78
robwalch commented 1 year ago

I don't know what else you could look in to other than making sure you have the correct PKCS7 padding.

Also make sure your asset works in Safari, and/or use the HLS Tools mediastreamvalidator and hlsreport to verify compliance.