VideoHelp Forum

+ Reply to Thread
Results 1 to 21 of 21
Thread
  1. Hello,

    I've tried for hours to get this to work, but not really having any luck.

    The URL is here:

    HTML Code:
    https://dbq3da34mdptq.cloudfront.net/HLS/production/d93221ee-a458-4d8d-9244-c8c8d07c5e6b.m3u8?Expires=1631389939&Signature=O1e9meygKJ88j6Kwm~crf1KAHO5GC0MYXMj4HzlftzgfvYZkmgeIjoq1QF4FOJvE7TCTEMnwZNRR4b-~sXJxu3MzSIP-qVJcPNbn-DSIbJQ86gVkwOmEt4wv6mugN~5aFxVzkfSWruuwz5VHgDDjbiRrBESpqbXguRoFNmIg~fIqkNBGd5PmJREh7oRM-WeBiXHolA5JJzmTonZu~F-JxcD~OPTHGMSALK2VARNVlxr3bvQdQa3hbgi9WV~hwsofDVjBBWYJgjeYZPKf~T1QXRS8qdSgrmaE9Pp4dkvtFlDH5OHiLTPnEP-4-tNgSDTGeHmD7QEE3uq9-E6FlU4V~A__&Key-Pair-Id=APKAIT7ACLZQMDFJXCBQ

    https://olympus.greatlearning.in is the actual website.

    I've tried following this: https://github.com/ytdl-org/youtube-dl/issues/22868 with no luck. and this is the command I used:

    Code:
    youtube-dl --hls-prefer-native --cookies ‪cookies.txt --referer https://olympus1.greatlearning.in/ https://dbq3da34mdptq.cloudfront.net/HLS/production/d93221ee-a458-4d8d-9244-c8c8d07c5e6b.m3u8?Expires=1631389939&Signature=O1e9meygKJ88j6Kwm~crf1KAHO5GC0MYXMj4HzlftzgfvYZkmgeIjoq1QF4FOJvE7TCTEMnwZNRR4b-~sXJxu3MzSIP-qVJcPNbn-DSIbJQ86gVkwOmEt4wv6mugN~5aFxVzkfSWruuwz5VHgDDjbiRrBESpqbXguRoFNmIg~fIqkNBGd5PmJREh7oRM-WeBiXHolA5JJzmTonZu~F-JxcD~OPTHGMSALK2VARNVlxr3bvQdQa3hbgi9WV~hwsofDVjBBWYJgjeYZPKf~T1QXRS8qdSgrmaE9Pp4dkvtFlDH5OHiLTPnEP-4-tNgSDTGeHmD7QEE3uq9-E6FlU4V~A__&Key-Pair-Id=APKAIT7ACLZQMDFJXCBQ
    The videos are locked behind a login, and I'm happy to provide the login credentials if someone can guide me on getting the first video downloaded.

    Thanks
    Quote Quote  
  2. Provide login credentials.
    Quote Quote  
  3. Originally Posted by [ss]vegeta View Post
    Provide login credentials.
    PM'ed, thanks!
    Quote Quote  
  4. Member
    Join Date
    Jan 2021
    Location
    Argentina
    Search PM
    Try with this

    Code:
    youtube-dl --hls-prefer-native --cookies ‪cookies.txt --referer https://olympus1.greatlearning.in/ --add-header "Expires:1631389939" --add-header "Signature:O1e9meygKJ88j6Kwm~crf1KAHO5GC0MYXMj4HzlftzgfvYZkmgeIjoq1QF4FOJvE7TCTEMnwZNRR4b-~sXJxu3MzSIP-qVJcPNbn-DSIbJQ86gVkwOmEt4wv6mugN~5aFxVzkfSWruuwz5VHgDDjbiRrBESpqbXguRoFNmIg~fIqkNBGd5PmJREh7oRM-WeBiXHolA5JJzmTonZu~F-JxcD~OPTHGMSALK2VARNVlxr3bvQdQa3hbgi9WV~hwsofDVjBBWYJgjeYZPKf~T1QXRS8qdSgrmaE9Pp4dkvtFlDH5OHiLTPnEP-4-tNgSDTGeHmD7QEE3uq9-E6FlU4V~A__" --add-header "Key-Pair-Id:APKAIT7ACLZQMDFJXCBQ" "https://dbq3da34mdptq.cloudfront.net/HLS/production/d93221ee-a458-4d8d-9244-c8c8d07c5e6b.m3u8?Expires=1631389939&Signature=O1e9meygKJ88j6Kwm~crf1KAHO5GC0MYXMj4HzlftzgfvYZkmgeIjoq1QF4FOJvE7TCTEMnwZNRR4b-~sXJxu3MzSIP-qVJcPNbn-DSIbJQ86gVkwOmEt4wv6mugN~5aFxVzkfSWruuwz5VHgDDjbiRrBESpqbXguRoFNmIg~fIqkNBGd5PmJREh7oRM-WeBiXHolA5JJzmTonZu~F-JxcD~OPTHGMSALK2VARNVlxr3bvQdQa3hbgi9WV~hwsofDVjBBWYJgjeYZPKf~T1QXRS8qdSgrmaE9Pp4dkvtFlDH5OHiLTPnEP-4-tNgSDTGeHmD7QEE3uq9-E6FlU4V~A__&Key-Pair-Id=APKAIT7ACLZQMDFJXCBQ"
    Of course you must use new cookies and a new m3u8 link, which will also contain new parameters for "Expires", "Signature" and "Key-Pair-Id".
    Quote Quote  
  5. Originally Posted by lfer94 View Post
    Try with this

    Code:
    youtube-dl --hls-prefer-native --cookies ‪cookies.txt --referer https://olympus1.greatlearning.in/ --add-header "Expires:1631389939" --add-header "Signature:O1e9meygKJ88j6Kwm~crf1KAHO5GC0MYXMj4HzlftzgfvYZkmgeIjoq1QF4FOJvE7TCTEMnwZNRR4b-~sXJxu3MzSIP-qVJcPNbn-DSIbJQ86gVkwOmEt4wv6mugN~5aFxVzkfSWruuwz5VHgDDjbiRrBESpqbXguRoFNmIg~fIqkNBGd5PmJREh7oRM-WeBiXHolA5JJzmTonZu~F-JxcD~OPTHGMSALK2VARNVlxr3bvQdQa3hbgi9WV~hwsofDVjBBWYJgjeYZPKf~T1QXRS8qdSgrmaE9Pp4dkvtFlDH5OHiLTPnEP-4-tNgSDTGeHmD7QEE3uq9-E6FlU4V~A__" --add-header "Key-Pair-Id:APKAIT7ACLZQMDFJXCBQ" "https://dbq3da34mdptq.cloudfront.net/HLS/production/d93221ee-a458-4d8d-9244-c8c8d07c5e6b.m3u8?Expires=1631389939&Signature=O1e9meygKJ88j6Kwm~crf1KAHO5GC0MYXMj4HzlftzgfvYZkmgeIjoq1QF4FOJvE7TCTEMnwZNRR4b-~sXJxu3MzSIP-qVJcPNbn-DSIbJQ86gVkwOmEt4wv6mugN~5aFxVzkfSWruuwz5VHgDDjbiRrBESpqbXguRoFNmIg~fIqkNBGd5PmJREh7oRM-WeBiXHolA5JJzmTonZu~F-JxcD~OPTHGMSALK2VARNVlxr3bvQdQa3hbgi9WV~hwsofDVjBBWYJgjeYZPKf~T1QXRS8qdSgrmaE9Pp4dkvtFlDH5OHiLTPnEP-4-tNgSDTGeHmD7QEE3uq9-E6FlU4V~A__&Key-Pair-Id=APKAIT7ACLZQMDFJXCBQ"
    Of course you must use new cookies and a new m3u8 link, which will also contain new parameters for "Expires", "Signature" and "Key-Pair-Id".
    This throws an SSL error.
    Code:
    youtube-dl --hls-prefer-native --cookies cookies.txt --referer https://olympus1.greatlearning.in/ --add-header "Expires:1631428683" --add-header "Signature:OkMjCiQvNuqG3h9S1uo4KAnBDHeNPP7sXuWPK7AcB1zEBc4hUWjqbWGWovSa6Ni9OdcEO3ifHpojKOmGiiujimZyEl0qJDv9Ok9OstAhDk8ykVuAqBKI8XB-VDCYlahgg2oT1NepFeZidJhRyRUGbogeR8kQae3f10Y391wXDxEVuVjJJ5WT4SGULpsv231JVzwZJH8YyOOrOjsbdX80xBjcMrjfVg2Moico~VKQWBPFZ3K6tCEOR9ODoy12AZbTSt7CVbdiMYB-ryd04-ig1uyaS64UeInhmRmOQuN0PCg00jU6QGDBPTnvK2Zl-~Ybu~q5jqMjkw1M-dDiNLn6AA__" --add-header "Key-Pair-Id:APKAIT7ACLZQMDFJXCBQ" "https://dbq3da34mdptq.cloudfront.net/HLS/production/2141cf0a-dcba-462c-9ef6-07206a2e2f9e.m3u8?Expires=1631428683&Signature=OkMjCiQvNuqG3h9S1uo4KAnBDHeNPP7sXuWPK7AcB1zEBc4hUWjqbWGWovSa6Ni9OdcEO3ifHpojKOmGiiujimZyEl0qJDv9Ok9OstAhDk8ykVuAqBKI8XB-VDCYlahgg2oT1NepFeZidJhRyRUGbogeR8kQae3f10Y391wXDxEVuVjJJ5WT4SGULpsv231JVzwZJH8YyOOrOjsbdX80xBjcMrjfVg2Moico~VKQWBPFZ3K6tCEOR9ODoy12AZbTSt7CVbdiMYB-ryd04-ig1uyaS64UeInhmRmOQuN0PCg00jU6QGDBPTnvK2Zl-~Ybu~q5jqMjkw1M-dDiNLn6AA__&Key-Pair-Id=APKAIT7ACLZQMDFJXCBQ"
    [generic] 2141cf0a-dcba-462c-9ef6-07206a2e2f9e: Requesting header
    [generic] 2141cf0a-dcba-462c-9ef6-07206a2e2f9e: Downloading m3u8 information
    [hlsnative] Downloading m3u8 manifest
    [hlsnative] Total fragments: 54
    [download] Destination: 2141cf0a-dcba-462c-9ef6-07206a2e2f9e-2141cf0a-dcba-462c-9ef6-07206a2e2f9e.mp4
    [download]   1.9% of ~12.43MiB at Unknown speed ETA Unknown ETAERROR: unable to download video data: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)>
    ytdlp with the same command says

    ERROR: Incorrect AES key length (6272 bytes)
    Quote Quote  
  6. Member
    Join Date
    Jan 2021
    Location
    Argentina
    Search PM
    Originally Posted by [ss]vegeta View Post
    This throws an SSL error.
    Code:
    youtube-dl --hls-prefer-native --cookies cookies.txt --referer https://olympus1.greatlearning.in/ --add-header "Expires:1631428683" --add-header "Signature:OkMjCiQvNuqG3h9S1uo4KAnBDHeNPP7sXuWPK7AcB1zEBc4hUWjqbWGWovSa6Ni9OdcEO3ifHpojKOmGiiujimZyEl0qJDv9Ok9OstAhDk8ykVuAqBKI8XB-VDCYlahgg2oT1NepFeZidJhRyRUGbogeR8kQae3f10Y391wXDxEVuVjJJ5WT4SGULpsv231JVzwZJH8YyOOrOjsbdX80xBjcMrjfVg2Moico~VKQWBPFZ3K6tCEOR9ODoy12AZbTSt7CVbdiMYB-ryd04-ig1uyaS64UeInhmRmOQuN0PCg00jU6QGDBPTnvK2Zl-~Ybu~q5jqMjkw1M-dDiNLn6AA__" --add-header "Key-Pair-Id:APKAIT7ACLZQMDFJXCBQ" "https://dbq3da34mdptq.cloudfront.net/HLS/production/2141cf0a-dcba-462c-9ef6-07206a2e2f9e.m3u8?Expires=1631428683&Signature=OkMjCiQvNuqG3h9S1uo4KAnBDHeNPP7sXuWPK7AcB1zEBc4hUWjqbWGWovSa6Ni9OdcEO3ifHpojKOmGiiujimZyEl0qJDv9Ok9OstAhDk8ykVuAqBKI8XB-VDCYlahgg2oT1NepFeZidJhRyRUGbogeR8kQae3f10Y391wXDxEVuVjJJ5WT4SGULpsv231JVzwZJH8YyOOrOjsbdX80xBjcMrjfVg2Moico~VKQWBPFZ3K6tCEOR9ODoy12AZbTSt7CVbdiMYB-ryd04-ig1uyaS64UeInhmRmOQuN0PCg00jU6QGDBPTnvK2Zl-~Ybu~q5jqMjkw1M-dDiNLn6AA__&Key-Pair-Id=APKAIT7ACLZQMDFJXCBQ"
    [generic] 2141cf0a-dcba-462c-9ef6-07206a2e2f9e: Requesting header
    [generic] 2141cf0a-dcba-462c-9ef6-07206a2e2f9e: Downloading m3u8 information
    [hlsnative] Downloading m3u8 manifest
    [hlsnative] Total fragments: 54
    [download] Destination: 2141cf0a-dcba-462c-9ef6-07206a2e2f9e-2141cf0a-dcba-462c-9ef6-07206a2e2f9e.mp4
    [download]   1.9% of ~12.43MiB at Unknown speed ETA Unknown ETAERROR: unable to download video data: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)>
    ytdlp with the same command says

    ERROR: Incorrect AES key length (6272 bytes)
    Try adding --no-check-certificate for youtube-dl
    Quote Quote  
  7. Originally Posted by lfer94 View Post
    Try adding --no-check-certificate for youtube-dl
    Then it gave the error ytdlp just gave, incorrect AES key length or something.

    Do you have access to the site and did you try it for sure to see if it works?
    Quote Quote  
  8. Member
    Join Date
    Jan 2021
    Location
    Argentina
    Search PM
    Originally Posted by [ss]vegeta View Post
    Do you have access to the site and did you try it for sure to see if it works?
    No, I was guided by my experience (?) with these type of links.

    Originally Posted by [ss]vegeta View Post
    Then it gave the error ytdlp just gave, incorrect AES key length or something
    Hmm I'm not sure what could be the problem. Maybe another header or query string are missing, or it's due to some kind of encryption that youtube-dl and yt-dlp do not support.

    You could try with Streamlink, although it probably throws the same error.

    Code:
    streamlink --http-header "User-Agent=x" --http-header "Referer=https://olympus1.greatlearning.in/" --http-no-ssl-verify --http-query-param "Expires=x" --http-query-param "Signature=x" --http-query-param "Key-Pair-Id=x" ".m3u8" best -o output.ts
    Quote Quote  
  9. Originally Posted by lfer94 View Post
    You could try with Streamlink, although it probably throws the same error.
    Code:
    streamlink --http-header "User-Agent=x" --http-header "Referer=https://olympus1.greatlearning.in/" --http-no-ssl-verify --http-query-param "Expires=x" --http-query-param "Signature=x" --http-query-param "Key-Pair-Id=x" ".m3u8" best -o output.ts
    Yes, throws the same error.

    ValueError: Incorrect AES key length (6272 bytes)

    I'm not sure which 6272 bytes are referred in these errors.

    In the m3u8 there's this in key

    Code:
    #EXT-X-KEY:METHOD=AES-128,URI="https://olympus1.greatlearning.in/api/v1/hls_videos/token/865ee0eb-f207-4577-9db5-835ec2b2d703",IV=0xab05a03a37e94beab5d4e7be5a7562bb
    Quote Quote  
  10. Member
    Join Date
    Jan 2021
    Location
    Argentina
    Search PM
    I found this here

    Neither a Streamlink, nor a plugin issue. The site is using an invalid key according to the HLS specification, simple as that.

    Take a look at the HLS playlist:
    HTML Code:
    $ curl -sSL 'https://d1tlsva54vi89q.cloudfront.net/b67e8bb3-8ac6-4dae-bb89-3d6ebf3df59c/master_Ott_Hls_Ts_Avc_Aac_16x9_1920x1080p_30Hz_8500Kbps.m3u8' \
      | head -n8
    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-TARGETDURATION:13
    #EXT-X-MEDIA-SEQUENCE:1
    #EXT-X-PLAYLIST-TYPE:VOD
    #EXT-X-KEY:METHOD=AES-128,URI="https://chartchampions.com/wp-admin/admin-ajax.php?action=s3bubble_proxy",IV=0x00000000000000000000000000000001
    #EXTINF:12,
    master_Ott_Hls_Ts_Avc_Aac_16x9_1920x1080p_30Hz_8500Kbps/00000/master_Ott_Hls_Ts_Avc_Aac_16x9_1920x1080p_30Hz_8500Kbps_00001.ts
    And the content of the provided AES key URI:
    HTML Code:
    $ curl -sSL 'https://chartchampions.com/wp-admin/admin-ajax.php?action=s3bubble_proxy'
    eyJwYXNzcGhyYXNlIjoiNjA4MWI4OTNkODY3YiIsImNpcGhlcnRleHQiOiI3RVBKVjJkUTBzRlwvOVZrdEJsaTRRc0ZFVWJlOFdjXC9iMkc3d3NrV21QMlJuaTFDS1lNRU93S0laRGk5OHBYUEIiLCJpdiI6IjI0MDk1NDkyNTgzZWM3MjVhZTEzOWQ5ZWU4N2M5NDZjIiwic2FsdCI6ImY0ZWFlYWM5MmJmN2NkZDFmMTczY2JkYzA2NDY5Yjc0In0=
    As you can see, it's a base64 encoded string, which results in a JSON payload:
    HTML Code:
    $ curl -sSL 'https://chartchampions.com/wp-admin/admin-ajax.php?action=s3bubble_proxy' | base64 -d
    {"passphrase":"6081b8b7173c1","ciphertext":"vzgVIAXHBIAtvBHSQr4\/\/uFz5u2spkgnTZK3vUq7GcVhU0CZyHY+UR+bW9Kls+iP","iv":"cd41e12b3e8e48f70afc6dc4d7cc9d04","salt":"437f1f379984e135bb1c6d8c4a2c615b"}
    Streamlink allows you to override the AES key URI, but you'll have to figure it out yourself.
    https://streamlink.github.io/cli.html#cmdoption-hls-segment-key-uri
    It's not exactly the same case and I'm not sure if this is the correct use, but following those instructions, I suppose that --hls-segment-key-uri "https://olympus1.greatlearning.in/api/v1/hls_videos/token/865ee0eb-f207-4577-9db5-835ec2b2d703" could fix it.

    Code:
    streamlink --http-header "User-Agent=x" --http-header "Referer=https://olympus1.greatlearning.in/" --http-no-ssl-verify --http-query-param "Expires=x" --http-query-param "Signature=x" --http-query-param "Key-Pair-Id=x" --hls-segment-key-uri "https://olympus1.greatlearning.in/api/v1/hls_videos/token/TOKEN" ".m3u8" best -o output.ts
    Quote Quote  
  11. Member notaghost's Avatar
    Join Date
    Sep 2020
    Location
    Pakistan
    Search PM
    which video do you want?
    Code:
     hlsdl -o "1.1 What is computer vision.mp4" -K "6271915c351995b0294673fbc50701fd"  -h "referer: https://olympus.greatlearning.in/" "https://dbq3da34mdptq.cloudfront.net/HLS/production/output-176a36e0-2dd8-42bd-9f14-7ef5bf8cbccf-1080p.m3u8"
    discord=notaghost#9997
    Quote Quote  
  12. Originally Posted by notaghost View Post
    which video do you want?
    Code:
     hlsdl -o "1.1 What is computer vision.mp4" -K "6271915c351995b0294673fbc50701fd"  -h "referer: https://olympus.greatlearning.in/" "https://dbq3da34mdptq.cloudfront.net/HLS/production/output-176a36e0-2dd8-42bd-9f14-7ef5bf8cbccf-1080p.m3u8"
    Nice!! I need to install hlsdl.

    my goal is to pull all the videos. Where did the key come from?
    Quote Quote  
  13. Having trouble getting hlsdl package compiled on windows... may create a linux VM unless anyone has any tips.

    Was able to find a precompiled version of hlsdl with all the dependencies. I get the error below when using your code, which I'm assuming it just needs an updated key. Not sure where that came from.

    Almost there!! thanks everyone
    Image Attached Thumbnails Click image for larger version

Name:	Untitled.png
Views:	80
Size:	26.3 KB
ID:	60689  

    Last edited by MachineLearning; 12th Sep 2021 at 13:40.
    Quote Quote  
  14. Member notaghost's Avatar
    Join Date
    Sep 2020
    Location
    Pakistan
    Search PM
    working for me



    i am using this version of hlsdl https://siasky.net/_AkANbWEMKCasc6MPVqA6QXC0nRwDAdqNCKgGmfYQ3usOQ
    discord=notaghost#9997
    Quote Quote  
  15. Originally Posted by notaghost View Post
    working for me



    i am using this version of hlsdl https://siasky.net/_AkANbWEMKCasc6MPVqA6QXC0nRwDAdqNCKgGmfYQ3usOQ

    Works now, my version of hlsdl didn't like the capital "K" so I changed it to lowercase. This version works with the capital K and the download completes!

    Are you able to explain where you found the key? Or how long it may last?

    When I try to download a different video, using the below, it can't decrypt it. Looks like the key may be specific per video?

    Code:
     hlsdl -o "1.2 Approaches to computer vision-Pixel Intensity Histograms and CNN.mp4" -K "6271915c351995b0294673fbc50701fd"  -h "referer: https://olympus.greatlearning.in/" "https://dbq3da34mdptq.cloudfront.net/HLS/production/output-f5641f24-dd25-41d9-abec-219f8950671b-1080p.m3u8"


    Thank you for your help
    Last edited by MachineLearning; 12th Sep 2021 at 14:22.
    Quote Quote  
  16. Member notaghost's Avatar
    Join Date
    Sep 2020
    Location
    Pakistan
    Search PM
    Code:
    hlsdl -o "1.2 Approaches to computer vision-Pixel Intensity Histograms and CNN.mp4" -K "83bd37740ca1cdbcc7157e4f73e854cb" -h "referer: https://olympus.greatlearning.in/" "https://dbq3da34mdptq.cloudfront.net/HLS/production/output-f5641f24-dd25-41d9-abec-219f8950671b-1080p.m3u8"
    discord=notaghost#9997
    Quote Quote  
  17. Originally Posted by notaghost View Post
    Code:
    hlsdl -o "1.2 Approaches to computer vision-Pixel Intensity Histograms and CNN.mp4" -K "83bd37740ca1cdbcc7157e4f73e854cb" -h "referer: https://olympus.greatlearning.in/" "https://dbq3da34mdptq.cloudfront.net/HLS/production/output-f5641f24-dd25-41d9-abec-219f8950671b-1080p.m3u8"
    Thank you. Do you mind sharing how you find the key? There are hundreds of videos I want to pull from here.
    Quote Quote  
  18. psaframe
    Join Date
    Mar 2021
    Location
    Algeria
    Search PM
    need login credentials access
    Quote Quote  
  19. @notaghost, I also need to know how you found the KEY, help us!
    Quote Quote  
  20. Message deleted. Please Ignore.
    Quote Quote  
  21. Originally Posted by Mateus Aires View Post
    @notaghost, I also need to know how you found the KEY, help us!
    It's usually done with javascript debugging. Search my posts here, I have explained this for another site, should be something similar.
    Quote Quote