VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Hi Guys,

    I'm trying to download a protected stream - I do have login access. I'm trying to do this with StreamLink but I think I am missing something with the string. I use the following:

    streamlink --http-cookie __cfduid=dd779ddd611db7725eeac993cce0f80b516180532 75 --http-cookie PHPSESSID=1557c8561649ce209ff065be67d51676 --http-cookie pmpro_visit=1 --http-cookie ac_enable_tracking=1 --http-cookie _ga=GA1.2.1237583597.1618053277 --http-cookie _gac_UA-188958599-1=1.1618053277.Cj0KCQjwmcWDBhCOARIsALgJ2QdDvGf2etD I60-HL4871P1L7svnmVk_QWfZo9isnoX2XNPjp1Vsso8aAuTzEALw_ wcB --http-cookie prism_1000857978=bce39580-b19b-4389-8c1a-7dfd8c144198 --http-cookie __stripe_mid=c1c3d490-eef7-42b9-8b94-f811a1af28be9a4824 --http-cookie _gid=GA1.2.1455607181.1619191539 --http-cookie wordpress_test_cookie=WP%20Cookie%20check --http-cookie wordpress_logged_in_8b69705b13e658bba1a20a4737b629 c3=MJGFIB%7C1619364354%7CKiSVuA1ap0cUz3UsJGmkWPLJD LuxBlJqeB88rYYb0nz%7C02b6421ef31069fead205a85ecba0 0839836f15d419ff24a2eaea34f3f7dee38 --http-cookie fakesessid=b5fa1062ea59f872a438f26546dffcfa --http-cookie _gat_s3bubble=1 --hls-live-restart -o hot-pop.mp4 https://di2l6fs1w0mp2.cloudfront.net/b63abacf-6b92-4cd3-8961-4ba1dc341d4f/master_Ott_H..._3500Kbps.m3u8 best

    and I get the following output:

    Microsoft Windows [Version 10.0.19042.928]
    (c) Microsoft Corporation. All rights reserved.

    C:\Users\mike_>streamlink --hls-live-restart -o hot-pop.mp4 https://di2l6fs1w0mp2.cloudfront.net/b63abacf-6b92-4cd3-8961-4ba1dc341d4f/master_Ott_H..._3500Kbps.m3u8 best
    [cli][info] Found matching plugin hls for URL https://di2l6fs1w0mp2.cloudfront.net/b63abacf-6b92-4cd3-8961-4ba1dc341d4f/master_Ott_H..._3500Kbps.m3u8
    [cli][info] Available streams: live (worst, best)
    [cli][info] Opening stream: live (hls)
    Exception in thread Thread-HLSStreamWriter:
    Traceback (most recent call last):
    File "threading.py", line 932, in _bootstrap_inner
    File "C:\Program Files (x86)\Streamlink\pkgs\streamlink\stream\segmented.py", line 189, in run
    self.write(segment, result)
    File "C:\Program Files (x86)\Streamlink\pkgs\streamlink\stream\hls.py", line 135, in write
    return self._write(sequence, *args, **kwargs)
    File "C:\Program Files (x86)\Streamlink\pkgs\streamlink\stream\hls.py", line 150, in _write
    decryptor = self.create_decryptor(sequence.segment.key,
    File "C:\Program Files (x86)\Streamlink\pkgs\streamlink\stream\hls.py", line 91, in create_decryptor
    return AES.new(self.key_data, AES.MODE_CBC, iv)
    File "C:\Program Files (x86)\Streamlink\pkgs\Crypto\Cipher\AES.py", line 232, in new
    return _create_cipher(sys.modules[__name__], key, mode, *args, **kwargs)
    File "C:\Program Files (x86)\Streamlink\pkgs\Crypto\Cipher\__init__.py", line 79, in _create_cipher
    return modes[mode](factory, **kwargs)
    File "C:\Program Files (x86)\Streamlink\pkgs\Crypto\Cipher\_mode_cbc.py", line 274, in _create_cbc_cipher
    cipher_state = factory._create_base_cipher(kwargs)
    File "C:\Program Files (x86)\Streamlink\pkgs\Crypto\Cipher\AES.py", line 93, in _create_base_cipher
    raise ValueError("Incorrect AES key length (%d bytes)" % len(key))
    ValueError: Incorrect AES key length (256 bytes)
    [cli][error] Try 1/1: Could not open stream <HLSStream('https://di2l6fs1w0mp2.cloudfront.net/b63abacf-6b92-4cd3-8961-4ba1dc341d4f/master_Ott_Hls_Ts_Avc_Aac_16x9_960x540p_30Hz_3500K bps.m3u8', None)> (Failed to read data from stream: Read timeout)
    error: Could not open stream <HLSStream('https://di2l6fs1w0mp2.cloudfront.net/b63abacf-6b92-4cd3-8961-4ba1dc341d4f/master_Ott_Hls_Ts_Avc_Aac_16x9_960x540p_30Hz_3500K bps.m3u8', None)>, tried 1 times, exiting
    [cli][info] Closing currently open stream...

    C:\Users\mike_>streamlink --http-cookie __cfduid=dd779ddd611db7725eeac993cce0f80b516180532 75; PHPSESSID=1557c8561649ce209ff065be67d51676; pmpro_visit=1; ac_enable_tracking=1; _ga=GA1.2.1237583597.1618053277; _gac_UA-188958599-1=1.1618053277.Cj0KCQjwmcWDBhCOARIsALgJ2QdDvGf2etD I60-HL4871P1L7svnmVk_QWfZo9isnoX2XNPjp1Vsso8aAuTzEALw_ wcB; prism_1000857978=bce39580-b19b-4389-8c1a-7dfd8c144198; __stripe_mid=c1c3d490-eef7-42b9-8b94-f811a1af28be9a4824; _gid=GA1.2.1455607181.1619191539; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_8b69705b13e658bba1a20a4737b629 c3=MJGFIB%7C1619364354%7CKiSVuA1ap0cUz3UsJGmkWPLJD LuxBlJqeB88rYYb0nz%7C02b6421ef31069fead205a85ecba0 0839836f15d419ff24a2eaea34f3f7dee38; fakesessid=b5fa1062ea59f872a438f26546dffcfa; _gat_s3bubble=1 --hls-live-restart -o hot-pop.mp4 https://di2l6fs1w0mp2.cloudfront.net/b63abacf-6b92-4cd3-8961-4ba1dc341d4f/master_Ott_H..._3500Kbps.m3u8 best
    usage: streamlink [OPTIONS] <URL> [STREAM]
    streamlink: error: unrecognized arguments: ac_enable_tracking=1; _ga=GA1.2.1237583597.1618053277; _gac_UA-188958599-1=1.1618053277.Cj0KCQjwmcWDBhCOARIsALgJ2QdDvGf2etD I60-HL4871P1L7svnmVk_QWfZo9isnoX2XNPjp1Vsso8aAuTzEALw_ wcB; prism_1000857978=bce39580-b19b-4389-8c1a-7dfd8c144198; __stripe_mid=c1c3d490-eef7-42b9-8b94-f811a1af28be9a4824; _gid=GA1.2.1455607181.1619191539; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_8b69705b13e658bba1a20a4737b629 c3=MJGFIB%7C1619364354%7CKiSVuA1ap0cUz3UsJGmkWPLJD LuxBlJqeB88rYYb0nz%7C02b6421ef31069fead205a85ecba0 0839836f15d419ff24a2eaea34f3f7dee38; fakesessid=b5fa1062ea59f872a438f26546dffcfa; _gat_s3bubble=1 https://di2l6fs1w0mp2.cloudfront.net/b63abacf-6b92-4cd3-8961-4ba1dc341d4f/master_Ott_H..._3500Kbps.m3u8 best

    C:\Users\mike_>streamlink --http-cookie __cfduid=dd779ddd611db7725eeac993cce0f80b516180532 75; --http-cookie PHPSESSID=1557c8561649ce209ff065be67d51676; pmpro_visit=1; ac_enable_tracking=1; _ga=GA1.2.1237583597.1618053277; _gac_UA-188958599-1=1.1618053277.Cj0KCQjwmcWDBhCOARIsALgJ2QdDvGf2etD I60-HL4871P1L7svnmVk_QWfZo9isnoX2XNPjp1Vsso8aAuTzEALw_ wcB; prism_1000857978=bce39580-b19b-4389-8c1a-7dfd8c144198; __stripe_mid=c1c3d490-eef7-42b9-8b94-f811a1af28be9a4824; _gid=GA1.2.1455607181.1619191539; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_8b69705b13e658bba1a20a4737b629 c3=MJGFIB%7C1619364354%7CKiSVuA1ap0cUz3UsJGmkWPLJD LuxBlJqeB88rYYb0nz%7C02b6421ef31069fead205a85ecba0 0839836f15d419ff24a2eaea34f3f7dee38; fakesessid=b5fa1062ea59f872a438f26546dffcfa; _gat_s3bubble=1 --hls-live-restart -o hot-pop.mp4 https://di2l6fs1w0mp2.cloudfront.net/b63abacf-6b92-4cd3-8961-4ba1dc341d4f/master_Ott_H..._3500Kbps.m3u8 best
    usage: streamlink [OPTIONS] <URL> [STREAM]
    streamlink: error: unrecognized arguments: _ga=GA1.2.1237583597.1618053277; _gac_UA-188958599-1=1.1618053277.Cj0KCQjwmcWDBhCOARIsALgJ2QdDvGf2etD I60-HL4871P1L7svnmVk_QWfZo9isnoX2XNPjp1Vsso8aAuTzEALw_ wcB; prism_1000857978=bce39580-b19b-4389-8c1a-7dfd8c144198; __stripe_mid=c1c3d490-eef7-42b9-8b94-f811a1af28be9a4824; _gid=GA1.2.1455607181.1619191539; wordpress_test_cookie=WP%20Cookie%20check; wordpress_logged_in_8b69705b13e658bba1a20a4737b629 c3=MJGFIB%7C1619364354%7CKiSVuA1ap0cUz3UsJGmkWPLJD LuxBlJqeB88rYYb0nz%7C02b6421ef31069fead205a85ecba0 0839836f15d419ff24a2eaea34f3f7dee38; fakesessid=b5fa1062ea59f872a438f26546dffcfa; _gat_s3bubble=1 https://di2l6fs1w0mp2.cloudfront.net/b63abacf-6b92-4cd3-8961-4ba1dc341d4f/master_Ott_H..._3500Kbps.m3u8 best

    C:\Users\mike_>streamlink --http-cookie __cfduid=dd779ddd611db7725eeac993cce0f80b516180532 75 --http-cookie PHPSESSID=1557c8561649ce209ff065be67d51676 --http-cookie pmpro_visit=1 --http-cookie ac_enable_tracking=1 --http-cookie _ga=GA1.2.1237583597.1618053277 --http-cookie _gac_UA-188958599-1=1.1618053277.Cj0KCQjwmcWDBhCOARIsALgJ2QdDvGf2etD I60-HL4871P1L7svnmVk_QWfZo9isnoX2XNPjp1Vsso8aAuTzEALw_ wcB --http-cookie prism_1000857978=bce39580-b19b-4389-8c1a-7dfd8c144198 --http-cookie __stripe_mid=c1c3d490-eef7-42b9-8b94-f811a1af28be9a4824 --http-cookie _gid=GA1.2.1455607181.1619191539 --http-cookie wordpress_test_cookie=WP%20Cookie%20check --http-cookie wordpress_logged_in_8b69705b13e658bba1a20a4737b629 c3=MJGFIB%7C1619364354%7CKiSVuA1ap0cUz3UsJGmkWPLJD LuxBlJqeB88rYYb0nz%7C02b6421ef31069fead205a85ecba0 0839836f15d419ff24a2eaea34f3f7dee38 --http-cookie fakesessid=b5fa1062ea59f872a438f26546dffcfa --http-cookie _gat_s3bubble=1 --hls-live-restart -o hot-pop.mp4 https://di2l6fs1w0mp2.cloudfront.net/b63abacf-6b92-4cd3-8961-4ba1dc341d4f/master_Ott_H..._3500Kbps.m3u8 best
    [cli][info] Found matching plugin hls for URL https://di2l6fs1w0mp2.cloudfront.net/b63abacf-6b92-4cd3-8961-4ba1dc341d4f/master_Ott_H..._3500Kbps.m3u8
    [cli][info] Available streams: live (worst, best)
    [cli][info] Opening stream: live (hls)
    Exception in thread Thread-HLSStreamWriter:
    Traceback (most recent call last):
    File "threading.py", line 932, in _bootstrap_inner
    File "C:\Program Files (x86)\Streamlink\pkgs\streamlink\stream\segmented. py", line 189, in run
    self.write(segment, result)
    File "C:\Program Files (x86)\Streamlink\pkgs\streamlink\stream\hls.py", line 135, in write
    return self._write(sequence, *args, **kwargs)
    File "C:\Program Files (x86)\Streamlink\pkgs\streamlink\stream\hls.py", line 150, in _write
    decryptor = self.create_decryptor(sequence.segment.key,
    File "C:\Program Files (x86)\Streamlink\pkgs\streamlink\stream\hls.py", line 91, in create_decryptor
    return AES.new(self.key_data, AES.MODE_CBC, iv)
    File "C:\Program Files (x86)\Streamlink\pkgs\Crypto\Cipher\AES.py", line 232, in new
    return _create_cipher(sys.modules[__name__], key, mode, *args, **kwargs)
    File "C:\Program Files (x86)\Streamlink\pkgs\Crypto\Cipher\__init__.py", line 79, in _create_cipher
    return modes[mode](factory, **kwargs)
    File "C:\Program Files (x86)\Streamlink\pkgs\Crypto\Cipher\_mode_cbc.py", line 274, in _create_cbc_cipher
    cipher_state = factory._create_base_cipher(kwargs)
    File "C:\Program Files (x86)\Streamlink\pkgs\Crypto\Cipher\AES.py", line 93, in _create_base_cipher
    raise ValueError("Incorrect AES key length (%d bytes)" % len(key))
    ValueError: Incorrect AES key length (256 bytes)
    [cli][error] Try 1/1: Could not open stream <HLSStream('https://di2l6fs1w0mp2.cloudfront.net/b63abacf-6b92-4cd3-8961-4ba1dc341d4f/master_Ott_Hls_Ts_Avc_Aac_16x9_960x540p_30Hz_3500K bps.m3u8', None)> (Failed to read data from stream: Read timeout)
    error: Could not open stream <HLSStream('https://di2l6fs1w0mp2.cloudfront.net/b63abacf-6b92-4cd3-8961-4ba1dc341d4f/master_Ott_Hls_Ts_Avc_Aac_16x9_960x540p_30Hz_3500K bps.m3u8', None)>, tried 1 times, exiting
    [cli][info] Closing currently open stream...

    Can someone help me figure out what I am missing?
    Quote Quote  
  2. psaframe
    Join Date
    Mar 2021
    Location
    Algeria
    Search PM
    need link
    Quote Quote  



Similar Threads

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