Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Error parsing message #4

Open
ImVantexHD opened this issue May 9, 2021 · 4 comments
Open

Error parsing message #4

ImVantexHD opened this issue May 9, 2021 · 4 comments

Comments

@ImVantexHD
Copy link

image

I tried it for amazon and got this error, maybe i need to fill the cookies but im not sure how, can you add an option like "--cookies" ?

@WHTJEON
Copy link
Owner

WHTJEON commented May 9, 2021

Cookies have nothing to do with this process. Can you leave the mpd link and the license url?

@ImVantexHD
Copy link
Author

ImVantexHD commented May 9, 2021

Cookies have nothing to do with this process. Can you leave the mpd link and the license url?

is that so...
mpd: https://pop-iad-2.cf.dash.row.aiv-cdn.net/dm/2$4LfRJ8MFrr5CBLy1NiF051Z37mA/c2d5/1e3f/710d/4a59-835b-e2e162eb45cf/43969eb0-d3a8-4d39-acbd-fbb44caece3f_corrected.mpd?encoding=segmentBase

license url: https://atv-ps.amazon.com/cdp/catalog/GetPlaybackResources?deviceID=fa6b6b9ee0a88e6b7516d078b62d078eb711a89393e65c659b1102a3&deviceTypeID=AOAGZA014O5RE&gascEnabled=false&marketplaceID=ATVPDKIKX0DER&uxLocale=en_US&firmware=1&clientId=f22dbddb-ef2c-48c5-8876-bed0d47594fd&deviceApplicationName=Chrome&playerType=xp&operatingSystemName=Windows&operatingSystemVersion=10.0&asin=amzn1.dv.gti.9cbc0a59-42ea-3da4-7c6d-e56e77b5e677&consumptionType=Streaming&desiredResources=Widevine2License&resourceUsage=ImmediateConsumption&videoMaterialType=Feature&userWatchSessionId=dd7b62ae-06d6-4831-bab3-5d3faabf098e&deviceProtocolOverride=Https&deviceStreamingTechnologyOverride=DASH&deviceDrmOverride=CENC&deviceBitrateAdaptationsOverride=CVBR%2CCBR&deviceHdrFormatsOverride=None&deviceVideoCodecOverride=H264&deviceVideoQualityOverride=HD&playerAttributes=%7B%22middlewareName%22%3A%22Chrome%22%2C%22middlewareVersion%22%3A%2279.0.3945.130%22%2C%22nativeApplicationName%22%3A%22Chrome%22%2C%22nativeApplicationVersion%22%3A%2279.0.3945.130%22%2C%22supportedAudioCodecs%22%3A%22AAC%22%2C%22frameRate%22%3A%22HFR%22%2C%22H264.codecLevel%22%3A%224.2%22%2C%22H265.codecLevel%22%3A%220.0%22%7D

@ImVantexHD
Copy link
Author

license url: https://atv-ps.amazon.com/cdp/catalog/GetPlaybackResources?deviceID=fa6b6b9ee0a88e6b7516d078b62d078eb711a89393e65c659b1102a3&deviceTypeID=AOAGZA014O5RE&gascEnabled=false&marketplaceID=ATVPDKIKX0DER&uxLocale=en_US&firmware=1&clientId=f22dbddb-ef2c-48c5-8876-bed0d47594fd&deviceApplicationName=Chrome&playerType=xp&operatingSystemName=Windows&operatingSystemVersion=10.0&asin=amzn1.dv.gti.9cbc0a59-42ea-3da4-7c6d-e56e77b5e677&consumptionType=Streaming&desiredResources=Widevine2License&resourceUsage=ImmediateConsumption&videoMaterialType=Feature&userWatchSessionId=dd7b62ae-06d6-4831-bab3-5d3faabf098e&deviceProtocolOverride=Https&deviceStreamingTechnologyOverride=DASH&deviceDrmOverride=CENC&deviceBitrateAdaptationsOverride=CVBR%2CCBR&deviceHdrFormatsOverride=None&deviceVideoCodecOverride=H264&deviceVideoQualityOverride=HD&playerAttributes=%7B%22middlewareName%22%3A%22Chrome%22%2C%22middlewareVersion%22%3A%2279.0.3945.130%22%2C%22nativeApplicationName%22%3A%22Chrome%22%2C%22nativeApplicationVersion%22%3A%2279.0.3945.130%22%2C%22supportedAudioCodecs%22%3A%22AAC%22%2C%22frameRate%22%3A%22HFR%22%2C%22H264.codecLevel%22%3A%224.2%22%2C%22H265.codecLevel%22%3A%220.0%22%7D

hmm, it seems that the license url throw some errors without the cookies, i tested it with curl and this is the full response, I don't know if it helps

{
    "returnedTitleRendition": {
        "asin": "amzn1.dv.gti.9cbc0a59-42ea-3da4-7c6d-e56e77b5e677",
        "assetBundleVideoQuality": "HD",
        "audioQuality": "Stereo",
        "contentId": "amzn1.dv.vcid.10c764e6-b339-4918-999d-100860d18433",
        "selectedEntitlement": {
            "consumptionExpiration": "1620846487702",
            "entitlementType": "PRIME_SUBSCRIPTION",
            "grantedByCustomerId": "A21NLE1JVH9T56"
        },
        "titleId": "amzn1.dv.gti.9cbc0a59-42ea-3da4-7c6d-e56e77b5e677",
        "videoMaterialType": "Feature",
        "videoQuality": "HD",
        "videoResolution": "1080p"
    },
    "widevine2License": {
        "license": "CAUSwgUKvAIIAxIQCuQRtZRasVgFt7DIvVtVHBi17OSpBSKOAjCCAQoCggEBAKU2UrYVOSDlcXajWhpEgGhqGraJtFdUPgu6plJGy9ViaRn5mhyXON5PXmw1krQdi0SLxf00FfIgnYFLpDfvNeItGn9rcx0RNPwP39PW7aW0Fbqi6VCaKWlR24kRpd7NQ4woyMXr7xlBWPwPNxK4xmR/6UuvKyYWEkroyeIjWHAqgCjCmpfIpVcPsyrnMuPFGl82MMVnAhTweTKnEPOqJpxQ1bdQvVNCvkba5gjOTbEnJ7aXegwhmCdRQzXjTeEV2dO8oo5YfxW6pRBovzF6wYBMQYpSCJIA24ptAP/2TkneyJuqm4hJNFvtF8fsBgTQQ4TIhnX4bZ9imuhivYLa6HsCAwEAAToPYW1hem9uLmNvbS1wcm9kEoADETQD6R0H/h9fyg0Hw7mj0M7T4s0bcBf4fMhARpwk2X4HpvB49bJ5Yvc4t41mAnXGe/wiXbzsddKMiMffkSE1QWK1CFPBgziU23y1PjQToGiIv/sJIFRKRJ4qMBxIl95xlvSEzKdt68n7wqGa442+uAgk7CXU3uTfVofYY76CrPBnEKQfad/CVqTh48geNTb4qRH1TX30NzCsB9NWlcdvg10pCnWSm8cSHu1d9yH+2yQgsGe52QoHHCqHNzG/wAxMYWTevXQW7EPTBeFySPY0xUN+2F2FhCf5/A7uFUHywd0zNTswh0QJc93LBTh46clRLO+d4RKBiBSj3rah6Y5iXMw9N9o58tCRc9gFHrjfMNubopWHjDOO3ATUgqXrTp+fKVCmsGuGl1ComHxXV9i1AqHwzzY2JY2vFqo73jR3IElr6oChPIwcNokmNc0D4TXtjE0BoYkbWKJfHvJJihzMOvDicWUsemVHvua9/FBtpbHgpbgwijFPjtQF9Ldb8Swf",
        "metadata": {
            "keyIds": {
                "contentKeyIds": ["ServiceCertificateKIDg=="]
            },
            "keyMetadata": [{
                "id": "ServiceCertificateKIDg==",
                "keyType": "SERVICE_CERTIFICATE"
            }]
        }
    }
}

@WHTJEON
Copy link
Owner

WHTJEON commented May 9, 2021

Amazon is not supported. They have higher level of security. Try using widevine l3 decryptor browser extension to extract keys and use widevine-dl which is one of my other repos to decrypt the video.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants