VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 9 of 9
Thread
  1. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    at one link video file, rip m3u8 string with ffox and iphone user-agent, i have this error:
    Code:
    D:\streaming_vids\youtube-dl>youtube-dl https://vtsstr4.tv24.vn/vod_s
    ctv_drm/_definst_/cache/vod/FileConverted2016/nhomkiemduyet/HD/TVB/TVBPhapvongtr
    uykich01/smil:TVBPhapvongtruykich01_t26494a4y2a4x2c4v244n4q5p5p50335y3m4p3l5f5k4
    n4m4g4b4o4n4o4w4r5h454d424x244q48413w2b4948464r4w2a4z256u2g584z5s27403.smil/play
    list.m3u8?uid=x2546494x26474z584x50634o4c444o4q4v2v2&otttokenstarttime=157884817
    7 --user-agent "Mozilla/5.0 (iPhone; CPU OS 10_15_2 like Mac OS X) AppleWebKit/6
    05.1.15 (KHTML, like Gecko) Version/12.1.1 Mobile/14E304 Safari/605.1.15"
    
    [generic] playlist: Requesting header
    [generic] playlist: Downloading m3u8 information
    [download] Destination: playlist-playlist.mp4
    ffmpeg version git-2019-12-23-5b42d33 Copyright (c) 2000-2019 the FFmpeg develop
    ers
      built with gcc 9.2.1 (GCC) 20191125
      configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfi
    g --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libb
    luray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enab
    le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --e
    nable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable
    -libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 -
    -enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enab
    le-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --en
    able-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcode
    c --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 -
    -enable-avisynth --enable-libopenmpt --enable-amf
      libavutil      56. 36.101 / 56. 36.101
      libavcodec     58. 65.100 / 58. 65.100
      libavformat    58. 35.101 / 58. 35.101
      libavdevice    58.  9.101 / 58.  9.101
      libavfilter     7. 69.101 /  7. 69.101
      libswscale      5.  6.100 /  5.  6.100
      libswresample   3.  6.100 /  3.  6.100
      libpostproc    55.  6.100 / 55.  6.100
    
    [hls @ 00000000004b1b40] Skip ('#EXT-X-VERSION:3')
    [hls @ 00000000004b1b40] Opening 'https://vtsstr4.tv24.vn:2126/licenseServer.php
    ?name=TVBPhapvongtruykich01_4500_t26494a4y2a4x2c4v244n4q5p5p50335y3m4p3l5f5k4n4m
    4g4b4o4n4o4w4r5h454d424x244q48413w2b4948464r4w2a4z256u2g584z5s27403&wowzasession
    id=567681396&uid=x2546494x26474z584x50634o4c444o4q4v2v2' for reading
    
    [hls @ 00000000004b1b40] Unable to read key file https://vtsstr4.tv24.vn:2126/li
    censeServer.php?name=TVBPhapvongtruykich01_4500_t26494a4y2a4x2c4v244n4q5p5p50335
    y3m4p3l5f5k4n4m4g4b4o4n4o4w4r5h454d424x244q48413w2b4948464r4w2a4z256u2g584z5s274
    03&wowzasessionid=567681396&uid=x2546494x26474z584x50634o4c444o4q4v2v2
    
    [hls @ 00000000004b1b40] Opening 'crypto+https://vtsstr4.tv24.vn/vod_sctv_drm/_d
    efinst_/cache/vod/FileConverted2016/nhomkiemduyet/HD/TVB/TVBPhapvongtruykich01/s
    mil:TVBPhapvongtruykich01_t26494a4y2a4x2c4v244n4q5p5p50335y3m4p3l5f5k4n4m4g4b4o4
    n4o4w4r5h454d424x244q48413w2b4948464r4w2a4z256u2g584z5s27403.smil/media_w5676813
    96_b4694000_0.ts?uid=x2546494x26474z584x50634o4c444o4q4v2v2' for reading
    
    [hls @ 00000000004b1b40] Error when loading first segment 'https://vtsstr4.tv24.
    vn/vod_sctv_drm/_definst_/cache/vod/FileConverted2016/nhomkiemduyet/HD/TVB/TVBPh
    apvongtruykich01/smil:TVBPhapvongtruykich01_t26494a4y2a4x2c4v244n4q5p5p50335y3m4
    p3l5f5k4n4m4g4b4o4n4o4w4r5h454d424x244q48413w2b4948464r4w2a4z256u2g584z5s27403.s
    mil/media_w567681396_b4694000_0.ts?uid=x2546494x26474z584x50634o4c444o4q4v2v2'
    https://vtsstr4.tv24.vn/vod_sctv_drm/_definst_/cache/vod/FileConverted2016/nhomk
    iemduyet/HD/TVB/TVBPhapvongtruykich01/smil:TVBPhapvongtruykich01_t26494a4y2a4x2c
    4v244n4q5p5p50335y3m4p3l5f5k4n4m4g4b4o4n4o4w4r5h454d424x244q48413w2b4948464r4w2a
    4z256u2g584z5s27403.smil/chunklist_w567681396_b4694000.m3u8?uid=x2546494x26474z5
    84x50634o4c444o4q4v2v2: Invalid data found when processing input
    
    
    ERROR: ffmpeg exited with code 1
    "otttokenstarttime" it is not recognized as an internal or external command.....
    
    D:\streaming_vids\youtube-dl>
    this site requires login accont to see, but it's free video service...
    suggestion??
    Last edited by lomero; 12th Jan 2020 at 12:26.
    Quote Quote  
  2. Hi lomero ,

    Do this try (?) :

    replace character & by %26
    ---
    &otttokenstarttime
    =>
    %26otttokenstarttime
    ---

    Cheers .
    JE SUIS CHARLIE !!!
    Quote Quote  
  3. Member
    Join Date
    Nov 2015
    Location
    Campuchia - Sapoche
    Search Comp PM
    Hi aazerty, thanks for your reply.

    I'm added "%26otttokenstarttime" and try but get same error below :

    C:\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\youtube-dl>youtube-dl --no-part --restrict-f
    ilenames --user-agent "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.
    36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36" --referer "https://tv
    24.vn/" "https://vtsstr4.tv24.vn/vod_sctv_drm/_definst_/cache/vod/FileConverted2
    016/nhomkiemduyet/HD/TVB/TVBPhapvongtruykich01/smil:TVBPhapvongtruykich01_t26494
    a4y2a4x2c4v244n4q5p5p50335y3m4p3l5f5k4n4m4g4b4o4n4 o4w4r5h454d424x244q48413w2b494
    8464r4w2a4z256u2g584z5s27403.smil/playlist.m3u8?uid=w2948444y2a474z584x50634o4c4
    44o4q4v2v2&%26otttokenstarttime=1578914483"
    [generic] playlist: Requesting header
    [generic] playlist: Downloading m3u8 information
    [download] Destination: playlist-playlist.mp4
    ffmpeg version 4.2 Copyright (c) 2000-2019 the FFmpeg developers
    built with gcc 9.1.1 (GCC) 20190807
    configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfi
    g --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libb
    luray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enab
    le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --e
    nable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable
    -libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 -
    -enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enab
    le-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --en
    able-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --en
    able-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --e
    nable-dxva2 --enable-avisynth --enable-libopenmpt

    [hls @ 000000000056a0c0] Skip ('#EXT-X-VERSION:3')
    [hls @ 000000000056a0c0] Opening 'https://vtsstr4.tv24.vn:2126/licenseServer.php
    ?name=TVBPhapvongtruykich01_4500_t26494a4y2a4x2c4v 244n4q5p5p50335y3m4p3l5f5k4n4m
    4g4b4o4n4o4w4r5h454d424x244q48413w2b4948464r4w2a4z 256u2g584z5s27403&wowzasession
    id=160143741&uid=w2948444y2a474z584x50634o4c444o4q 4v2v2&%26otttokenstarttime=157
    8914483' for reading
    [hls @ 000000000056a0c0] Unable to read key file https://vtsstr4.tv24.vn:2126/li
    censeServer.php?name=TVBPhapvongtruykich01_4500_t2 6494a4y2a4x2c4v244n4q5p5p50335
    y3m4p3l5f5k4n4m4g4b4o4n4o4w4r5h454d424x244q48413w2 b4948464r4w2a4z256u2g584z5s274
    03&wowzasessionid=160143741&uid=w2948444y2a474z584 x50634o4c444o4q4v2v2&%26otttok
    enstarttime
    =1578914483
    [hls @ 000000000056a0c0] Opening 'crypto+https://vtsstr4.tv24.vn/vod_sctv_drm/_d
    efinst_/cache/vod/FileConverted2016/nhomkiemduyet/HD/TVB/TVBPhapvongtruykich01/s
    mil:TVBPhapvongtruykich01_t26494a4y2a4x2c4v244n4q5 p5p50335y3m4p3l5f5k4n4m4g4b4o4
    n4o4w4r5h454d424x244q48413w2b4948464r4w2a4z256u2g5 84z5s27403.smil/media_w1601437
    41_b4694000_0.ts?uid=w2948444y2a474z584x50634o4c44 4o4q4v2v2&%26otttokenstarttime
    =1578914483' for reading
    [hls @ 000000000056a0c0] Error when loading first segment 'https://vtsstr4.tv24.
    vn/vod_sctv_drm/_definst_/cache/vod/FileConverted2016/nhomkiemduyet/HD/TVB/TVBPh
    apvongtruykich01/smil:TVBPhapvongtruykich01_t26494a4y2a4x2c4v244n4q 5p5p50335y3m4
    p3l5f5k4n4m4g4b4o4n4o4w4r5h454d424x244q48413w2b494 8464r4w2a4z256u2g584z5s27403.s
    mil/media_w160143741_b4694000_0.ts?uid=w2948444y2a474z 584x50634o4c444o4q4v2v2&%2
    6otttokenstarttime
    =1578914483'
    https://vtsstr4.tv24.vn/vod_sctv_drm/_definst_/cache/vod/FileConverted2016/nhomk
    iemduyet/HD/TVB/TVBPhapvongtruykich01/smil:TVBPhapvongtruykich01_t26494a4y2a4x2c
    4v244n4q5p5p50335y3m4p3l5f5k4n4m4g4b4o4n4o4w4r5h45 4d424x244q48413w2b4948464r4w2a
    4z256u2g584z5s27403.smil/chunklist_w160143741_b4694000.m3u8?uid=w2948444y2a 474z5
    84x50634o4c444o4q4v2v2&%26otttokenstarttime=1578914483: Invalid data found when
    processing input


    ERROR: ffmpeg exited with code 1
    With streamlink (Incorrect AES key length (%d bytes)" % len(key)

    [cli][info] Found matching plugin hls for URL https://vtsstr4.tv24.vn/vod_sctv_d
    rm/_definst_/cache/vod/FileConverted2016/nhomkiemduyet/HD/TVB/TVBPhapvongtruykic
    h01/smil:TVBPhapvongtruykich01_t26494a4y2a4x2c4v244n4q 5p5p50335y3m4p3l5f5k4n4m4g
    4b4o4n4o4w4r5h454d424x244q48413w2b4948464r4w2a4z25 6u2g584z5s27403.smil/playlist.
    m3u8?uid=w2948444y2a474z584x50634o4c444o4q4v2v2&ot ttokenstarttime=1578914483
    [cli][info] Available streams: 480p (worst), 576p, 720p, 1080p (best)
    [cli][info] Opening stream: 1080p (hls)
    Exception in thread Thread-HLSStreamWriter:
    Traceback (most recent call last):
    File "threading.py", line 916, in _bootstrap_inner
    File "C:\Program Files (x86)\Streamlink 1.2.0\pkgs\streamlink\stream\segmented
    .py", line 167, in run
    self.write(segment, result)
    File "C:\Program Files (x86)\Streamlink 1.2.0\pkgs\streamlink\stream\hls.py",
    line 124, in write
    sequence.num)
    File "C:\Program Files (x86)\Streamlink 1.2.0\pkgs\streamlink\stream\hls.py",
    line 80, in create_decryptor
    return AES.new(self.key_data, AES.MODE_CBC, iv)
    File "C:\Program Files (x86)\Streamlink 1.2.0\pkgs\Crypto\Cipher\AES.py", line
    202, in new
    return _create_cipher(sys.modules[__name__], key, mode, *args, **kwargs)
    File "C:\Program Files (x86)\Streamlink 1.2.0\pkgs\Crypto\Cipher\__init__.py",
    line 79, in _create_cipher
    return modes[mode](factory, **kwargs)
    File "C:\Program Files (x86)\Streamlink 1.2.0\pkgs\Crypto\Cipher\_mode_cbc.py"
    , line 234, in _create_cbc_cipher
    cipher_state = factory._create_base_cipher(kwargs)
    File "C:\Program Files (x86)\Streamlink 1.2.0\pkgs\Crypto\Cipher\AES.py", line
    92, in _create_base_cipher
    raise ValueError("Incorrect AES key length (%d bytes)" % len(key))
    ValueError: Incorrect AES key length (0 bytes)
    Last edited by therain; 13th Jan 2020 at 06:45.
    Quote Quote  
  4. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    tanxs for reply aazerty, but same error...
    Quote Quote  
  5. Hi ,

    I have said :
    ===
    replace character & by %26
    ---
    &otttokenstarttime
    =>
    %26otttokenstarttime
    ===

    REPLACE !!!
    &%26otttokenstarttime
    =>
    %26otttokenstarttime

    Cheers .
    JE SUIS CHARLIE !!!
    Quote Quote  
  6. Member
    Join Date
    Nov 2015
    Location
    Campuchia - Sapoche
    Search Comp PM
    i get same error

    [hls @ 000000000043a100] Opening 'crypto+https://vtsstr4.tv24.vn/vod_sctv_drm/_d
    efinst_/cache/vod/FileConverted2016/nhomkiemduyet/HD/TVB/TVBPhapvongtruykich01/s
    mil:TVBPhapvongtruykich01_t26494a4y2a4x2c4v244n4q5 p5p50335y3m4p3l5f5k4n4m4g4b4o4
    n4o4w4r5h454d424x244q48413w2b4948464r4w2a4z256u2g5 84z5s27403.smil/media_w1768881
    916_b4694000_0.ts?uid=w2948444y2a474z584x50634o4c4 44o4q4v2v2%26otttokenstarttime
    %3D1579003152' for reading
    [hls @ 000000000043a100] Error when loading first segment 'https://vtsstr4.tv24.
    vn/vod_sctv_drm/_definst_/cache/vod/FileConverted2016/nhomkiemduyet/HD/TVB/TVBPh
    apvongtruykich01/smil:TVBPhapvongtruykich01_t26494a4y2a4x2c4v244n4q 5p5p50335y3m4
    p3l5f5k4n4m4g4b4o4n4o4w4r5h454d424x244q48413w2b494 8464r4w2a4z256u2g584z5s27403.s
    mil/media_w1768881916_b4694000_0.ts?uid=w2948444y2a474 z584x50634o4c444o4q4v2v2%2
    6otttokenstarttime
    %3D1579003152'
    https://vtsstr4.tv24.vn/vod_sctv_drm/_definst_/cache/vod/FileConverted2016/nhomk
    iemduyet/HD/TVB/TVBPhapvongtruykich01/smil:TVBPhapvongtruykich01_t26494a4y2a4x2c
    4v244n4q5p5p50335y3m4p3l5f5k4n4m4g4b4o4n4o4w4r5h45 4d424x244q48413w2b4948464r4w2a
    4z256u2g584z5s27403.smil/chunklist_w1768881916_b4694000.m3u8?uid=w2948444y2 a474z
    584x50634o4c444o4q4v2v2%26otttokenstarttime%3D1579003152: Invalid data found whe
    n processing input

    ERROR: ffmpeg exited with code 1
    Quote Quote  
  7. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    @ aazerty
    i don't understand the difference between post #5 and previous #2....
    anyway same error...
    Image
    [Attachment 51463 - Click to enlarge]
    Last edited by lomero; 14th Jan 2020 at 09:00.
    Quote Quote  
  8. Do you have some reason to believe that an "iphone user-agent" returns a different key?

    As I said before (here), it seems that other header values are needed in order to obtain the correct length key (or any key at all).

    However, even when the correct key is obtained, it appears that the key can't be used directly with ffmpeg, or any other standard hls utility.

    The player software on this site uses the key as an input that it further manipulates before using it to decrypt the video.

    If this assessment is correct, some sort of plugin (or other code), that does the same thing as the player to the key, will be required to download the hls video. Youtube-dl, streamlink, or tubedigger could add this code.

    But you are probably wasting your time trying to get ffmpeg to work for this.
    Quote Quote  
  9. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    mmm... in many cases --user-agent it served to obtain a valid (and different) string to use with yt-dl or strmlink.
    i do tests since nothing is certain!
    Quote Quote  



Similar Threads