VideoHelp Forum
+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 41
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. 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=notaghost9997
    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:	399
Size:	26.3 KB
ID:	60689  

    Last edited by MachineLearning; 12th Sep 2021 at 12:40.
    Quote Quote  
  14. working for me



    i am using this version of hlsdl https://siasky.net/_AkANbWEMKCasc6MPVqA6QXC0nRwDAdqNCKgGmfYQ3usOQ
    discord=notaghost9997
    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 13:22.
    Quote Quote  
  16. 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=notaghost9997
    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  
  22. Member Takyon's Avatar
    Join Date
    Jun 2022
    Location
    United States
    Search Comp PM
    Hello I have a m3u8 url that I would like to download. What is the best way to go about it? Also can someone who is knowledge about yt--dlp cookies message me. I need help with something.
    Last edited by Takyon; 16th Jun 2022 at 00:34.
    Quote Quote  
  23. if you need help, write here your video link
    otherwise how can we advise? each site has specific properties, there is no general rule ...
    Quote Quote  
  24. Member Takyon's Avatar
    Join Date
    Jun 2022
    Location
    United States
    Search Comp PM
    I figured it out already, i'll delete the message. I still need help with yt-dlp cookies though. I posted somewhere else. If a link can help in that situation let me know.
    Last edited by Takyon; 16th Jun 2022 at 05:09.
    Quote Quote  
  25. Know old thread

    Been trying to download a link but cant figure it out

    https://d2o75c1wl3rtfi.cloudfront.net/Philsophy-MASTER-1/duh_hls_video_1m_v4.m3u8

    This is in the source


    [3] => stdClass Object
    (
    [url] => https://d2o75c1wl3rtfi.cloudfront.net/Philsophy-MASTER-1/index.m3u8?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNl IjoiaHR0cCo6Ly9kMm83NWMxd2wzcnRmaS5jbG91ZGZyb250Lm 5ldC8qIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJB V1M6RXBvY2hUaW1lIjoxNzA5ODE4MzIxfSwiSXBBZGRyZXNzIj p7IkFXUzpTb3VyY2VJcCI6IjAuMC4wLjAvMCJ9fX1dfQ__&Sig nature=SKtcGrCfHxba2jBTp-zgewBhwZxQQR3NYXyY1~BaLP9UkrHVFw-EONC6LB1~X6SfyGTXhUzO49aCT7GwadAl22zVc710LPd9j5Qve aYVxXjt7UoWwlW~3QaxCQK-tzgm1v9SYI-EreBI~gM8FGrckVAH4pxO6BUNmfUPRoEw0cxThEth103Z0qcQL 7ch-ltrXdqWglwjS34NSP-YIWUtDbvK7c7dB1L~3YHMrf9eV0LAZIXQf1pgXLrnwo3f105XS Mc2vGa53FwqVMF2w0CRTDeU02iwDxd9Q~XDOFrn5K8SJbquo2p BiJZFjCXmDJny62Tx91Gkjy~BQEgVWZVDgg__&Key-Pair-Id=APKAIDA5ECQKC4AMW6MQ
    [unsigned_url] => https://d2o75c1wl3rtfi.cloudfront.net/Philsophy-MASTER-1/index.m3u8
    [key] => Philsophy-MASTER-1/index.m3u8
    [width] =>
    [height] =>
    [contentType] => application/x-mpegURL
    [type] => HlsPlaylistFile
    [signature] => SKtcGrCfHxba2jBTp-zgewBhwZxQQR3NYXyY1~BaLP9UkrHVFw-EONC6LB1~X6SfyGTXhUzO49aCT7GwadAl22zVc710LPd9j5Qve aYVxXjt7UoWwlW~3QaxCQK-tzgm1v9SYI-EreBI~gM8FGrckVAH4pxO6BUNmfUPRoEw0cxThEth103Z0qcQL 7ch-ltrXdqWglwjS34NSP-YIWUtDbvK7c7dB1L~3YHMrf9eV0LAZIXQf1pgXLrnwo3f105XS Mc2vGa53FwqVMF2w0CRTDeU02iwDxd9Q~XDOFrn5K8SJbquo2p BiJZFjCXmDJny62Tx91Gkjy~BQEgVWZVDgg__
    [key_pair_id] => APKAIDA5ECQKC4AMW6MQ
    [policy] => eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cCo6Ly9kMm 83NWMxd2wzcnRmaS5jbG91ZGZyb250Lm5ldC8qIiwiQ29uZGl0 aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIj oxNzA5ODE4MzIxfSwiSXBBZGRyZXNzIjp7IkFXUzpTb3VyY2VJ cCI6IjAuMC4wLjAvMCJ9fX1dfQ__
    [license] => UurT2L01KRHz66T70kfxmg==

    [encrypted] => 1


    tried most the as headers
    tried yt-dlp
    hlsdl

    any help would be great and might get me in good books with the wife
    Quote Quote  
  26. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Originally Posted by Jagomister View Post
    Know old thread

    Been trying to download a link but cant figure it out
    Can you provide link to the original video?

    Edit: problem was solved in private by using an account. The video can be downloaded using N_m3u8 and some local m3u8 file editing. For some reason, if you remove the first #EXTINF, N_m3u8 can handle the file, but if you leave it untouched, it can't handle the first fragment. Weird, never seen this before.
    Last edited by 2nHxWW6GkN1l916N3ayz8HQoi; 7th Mar 2024 at 15:25.
    Quote Quote  
  27. Still struggling with this

    I Noticed that the key was not getting downloaded and populated into the json file.
    So did that and solved that error

    I tried removing the first segment from the m3u8 file

    LOG:
    Code:
    Task CommandLine: "D:\M3U8DL\N_m3u8DL-CLI_v3.0.2.exe" "E:\CA\m3u8\Fundamentals_Philosophy_1.m3u8" --workDir "E:\CA\working" --saveName "Fundamentals_Philosophy_1" --baseUrl "https://d2o75c1wl3rtfi.cloudfront.net/Philsophy-MASTER/" --useKeyFile "E:\CA\m3u8\Fundamentals_Philosophy_1.key" 
    
    13:37:21.345 / (NORMAL) Start Parsing E:\CA\m3u8\Fundamentals_Philosophy_1.m3u8
    13:37:21.377 / (NORMAL) Downloading M3u8 Key... file:///E:/CA/m3u8/Fundamentals_Philosophy_1.key
    13:37:21.409 / (NORMAL) Writing Json: [meta.json]
    13:37:21.548 / (NORMAL) Start Downloading
    13:37:22.235 / (ERROR) Padding is invalid and cannot be removed.
    Original M3U8 (headers and first 3 segments
    Code:
    #EXTM3U
    #EXT-X-VERSION:4
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-ALLOW-CACHE:YES
    #EXT-X-TARGETDURATION:13
    #EXTINF:12.012,
    #EXT-X-BYTERANGE:3616384@0
    #EXT-X-KEY:METHOD=AES-128,URI="https://downunderhorsemanship.com/?hls_key=Philosophy/Philsophy-MASTER.mp4",IV=0x0b834405ae9efaf88960581e0d527737
    duh_hls_video_2m.ts
    #EXTINF:12.011999999999999,
    #EXT-X-BYTERANGE:2035680
    duh_hls_video_2m.ts
    #EXTINF:12.012,
    #EXT-X-BYTERANGE:4735536
    duh_hls_video_2m.ts
    M3U8 with the first segment removed
    Code:
    #EXTM3U
    #EXT-X-VERSION:4
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-ALLOW-CACHE:YES
    #EXT-X-TARGETDURATION:13
    #EXT-X-KEY:METHOD=AES-128,URI="https://downunderhorsemanship.com/?hls_key=Philosophy/Philsophy-MASTER.mp4",IV=0x0b834405ae9efaf88960581e0d527737
    #EXTINF:12.011999999999999,
    #EXT-X-BYTERANGE:2035680@0
    duh_hls_video_2m.ts
    #EXTINF:12.012,
    #EXT-X-BYTERANGE:4735536
    duh_hls_video_2m.ts

    JSON top few segments-original
    Code:
    {
      "m3u8": "file:///E:/CA/m3u8/Fundamentals_Philosophy_1.m3u8",
      "m3u8BaseUri": "https://d2o75c1wl3rtfi.cloudfront.net/Philsophy-MASTER/",
      "updateTime": "2024-03-09T13:54:35.7721879+10:00",
      "m3u8Info": {
        "originalCount": 1264,
        "count": 1264,
        "vod": true,
        "targetDuration": 13,
        "totalDuration": 15181.7666,
        "segments": [
          [
            {
              "index": 0,
              "method": "AES-128",
              "key": "GciuQedg0zgUyKOw/AuSjQ==",
              "iv": "0x00000000000000000000000000000000",
              "duration": 12.012,
              "expectByte": 3616384,
              "startByte": 0,
              "segUri": "https://d2o75c1wl3rtfi.cloudfront.net/Philsophy-MASTER/duh_hls_video_2m.ts"
            },
            {
              "index": 1,
              "method": "AES-128",
              "key": "GciuQedg0zgUyKOw/AuSjQ==",
              "iv": "0x0b834405ae9efaf88960581e0d527737",
              "duration": 12.011999999999999,
              "expectByte": 2035680,
              "startByte": 3616384,
              "segUri": "https://d2o75c1wl3rtfi.cloudfront.net/Philsophy-MASTER/duh_hls_video_2m.ts"
            },
            {
              "index": 2,
              "method": "AES-128",
              "key": "GciuQedg0zgUyKOw/AuSjQ==",
              "iv": "0x0b834405ae9efaf88960581e0d527737",
              "duration": 12.012,
              "expectByte": 4735536,
              "startByte": 5652064,
              "segUri": "https://d2o75c1wl3rtfi.cloudfront.net/Philsophy-MASTER/duh_hls_video_2m.ts"
            },
    with first seg removed
    Code:
    {
      "m3u8": "file:///E:/CA/m3u8/Fundamentals_Philosophy_1.m3u8",
      "m3u8BaseUri": "https://d2o75c1wl3rtfi.cloudfront.net/Philsophy-MASTER/",
      "updateTime": "2024-03-09T13:56:15.4049169+10:00",
      "m3u8Info": {
        "originalCount": 1263,
        "count": 1263,
        "vod": true,
        "targetDuration": 13,
        "totalDuration": 15169.7546,
        "segments": [
          [
            {
              "index": 0,
              "method": "AES-128",
              "key": "GciuQedg0zgUyKOw/AuSjQ==",
              "iv": "0x0b834405ae9efaf88960581e0d527737",
              "duration": 12.011999999999999,
              "expectByte": 2035680,
              "startByte": 0,
              "segUri": "https://d2o75c1wl3rtfi.cloudfront.net/Philsophy-MASTER/duh_hls_video_2m.ts"
            },
            {
              "index": 1,
              "method": "AES-128",
              "key": "GciuQedg0zgUyKOw/AuSjQ==",
              "iv": "0x0b834405ae9efaf88960581e0d527737",
              "duration": 12.012,
              "expectByte": 4735536,
              "startByte": 2035680,
              "segUri": "https://d2o75c1wl3rtfi.cloudfront.net/Philsophy-MASTER/duh_hls_video_2m.ts"
            },
            {
              "index": 2,
              "method": "AES-128",
              "key": "GciuQedg0zgUyKOw/AuSjQ==",
              "iv": "0x0b834405ae9efaf88960581e0d527737",
              "duration": 12.012,
              "expectByte": 2401904,
              "startByte": 6771216,
              "segUri": "https://d2o75c1wl3rtfi.cloudfront.net/Philsophy-MASTER/duh_hls_video_2m.ts"
            },
    Quote Quote  
  28. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Originally Posted by Jagomister View Post
    Still struggling with this
    Download the key from this link: https://downunderhorsemanship.com/?hls_key=Philosophy/Philsophy-MASTER.mp4. You should be connected in your account after you played the video. Otherwise you will get an empty file. Save it to key.txt file. Then modify the m3u8 and replace the key URL with "key.txt" so it becomes a local resource. Then remove the first #EXTINF. Then use N_m3u8 on it.
    Quote Quote  
  29. No matter what I do I get: ERROR: Padding is invalid and cannot be removed.

    I have done what you suggest

    Tried Software:
    N_m3u8DL-CLI_v3.0.2.exe
    N_m3u8DL-RE (Beta version) 20230628

    I have the key file
    Sub it in via the m3u8 file or cli get same result

    Key:
    Hex: 19 C8 AE 41 E7 60 D3 38 14 C8 A3 B0 FC 0B 92 8D
    Base64: GciuQedg0zgUyKOw/AuSjQ==


    #EXT-X-KEY:METHOD=AES-128,URI="E:\CA\m3u8\key.txt",IV=0xff8b10cfee25c34f b3192b2479c3bc09

    Code:
    C:\Users\xxxx>D:\M3U8DL\N_m3u8DL-CLI_v3.0.2.exe "E:\CA\m3u8\duh_hls_video_2m_v4.m3u8" --workDir "E:\CA\working" --saveName "Fundamentals_Philosophy_1" --baseUrl "https://d2o75c1wl3rtfi.cloudfront.net/Philsophy-MASTER/" --useKeyFile "E:\CA\m3u8\key.txt"
    N_m3u8DL-CLI version 3.0.2 2018-2022
      built date: 20220711
    
    19:21:46.739 File Name: Fundamentals_Philosophy_1
    19:21:46.739 Save Path: E:\CA\working
    19:21:46.743 Start Parsing  E:\CA\m3u8\duh_hls_video_2m_v4.m3u8
    19:21:46.769 Downloading M3u8 Key...
    19:21:46.784 Writing Json: [meta.json]
    19:21:46.854 File Duration: 47m52s
    19:21:46.855 Original Count: 240, Selected Count: 240
    19:21:46.870 Start Downloading
    19:21:46.874 Downloading First Segement...
    19:21:48.021 Padding is invalid and cannot be removed.
    19:21:50.000  (0 bytes/s)


    Code:
    C:\Users\xxx>D:\M3U8DL\N_m3u8DL-CLI_v3.0.2.exe "E:\CA\m3u8\duh_hls_video_2m_v4.m3u8" --workDir "E:\CA\working" --saveName "Fundamentals_Philosophy_1" --baseUrl "https://d2o75c1wl3rtfi.cloudfront.net/Philsophy-MASTER/"
    N_m3u8DL-CLI version 3.0.2 2018-2022
      built date: 20220711
    
    19:27:46.042 File Name: Fundamentals_Philosophy_1
    19:27:46.042 Save Path: E:\CA\working
    19:27:46.046 Start Parsing  E:\CA\m3u8\duh_hls_video_2m_v4.m3u8
    19:27:46.072 Downloading M3u8 Key...
    19:27:46.087 Writing Json: [meta.json]
    19:27:46.157 File Duration: 47m52s
    19:27:46.158 Original Count: 240, Selected Count: 240
    19:27:46.173 Start Downloading
    19:27:46.176 Downloading First Segement...
    19:27:46.897 Padding is invalid and cannot be removed.
    19:27:49.000  (0 bytes/s)
    Quote Quote  
  30. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Originally Posted by Jagomister View Post
    No matter what I do I get: ERROR: Padding is invalid and cannot be removed.
    I have no idea what you're doing wrong. For me, it works. I'll give you the processed m3u8 to see how it should look and the key used.

    processed_m3u8.txt
    key.txt

    The final result.
    Code:
    N_m3u8DL-RE.exe --base-url "https://d2o75c1wl3rtfi.cloudfront.net/Philsophy-MASTER-1/" processed.m3u8
    Image
    [Attachment 77534 - Click to enlarge]


    I'll also post the link to the original m3u8 (which can be accessed directly) so other users can take a look. Maybe someone who is an expert with N_m3u8 can give you the direct command that can be used to remove the first #EXTINF. For some reason, if you leave it, N_m3u8 fails because of a bad fragment (???). The base URL is the same one used everywhere. The key is the same. You can't obtain the key without access to the account so I just uploaded it in a txt file.

    https://d2o75c1wl3rtfi.cloudfront.net/Philsophy-MASTER-1/index.m3u8
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!