VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or try DVDFab and copy, convert or make Blu-rays and DVDs! :)
+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 38 of 38
Thread
  1. Originally Posted by damnson View Post
    I should be able to play and watch the video through this link and using User Agent Switcher?
    No, it won't actually play on a non-mobile device. But it gives you the m3u8 url which you can use to download the video.

    Originally Posted by damnson View Post
    Anyway I can find a m3u8 link located in "scr=".
    Inside the file there is this code (up to 130.ts)
    Code:
    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-TARGETDURATION:13
    #EXT-X-MEDIA-SEQUENCE:0
    #EXT-X-KEY:METHOD=AES-128,URI="/keystore/byXTGsjCGojqb",IV=0x33e624acf348548f77e44b18199b8f6c
    #EXTINF:9.650000,
    _0.ts
    #EXTINF:12.500000,
    _1.ts
    #EXTINF:12.500000,
    _2.ts
    #EXTINF:12.000000,
    Creating this link it download a file with a single encrypted line
    Code:
    M tӁd,zX
    That is the key to decrypt the video.

    If you download the m3u8 file, the key, and all of the ts segments, and then do a minor edit to the m3u8 file, you can then use ffmpeg to decrypt and assemble it all into a playable video.

    Or, through some (somewhat complex) operations with curl (that sets the cloudfront keys externally from your browser) you could use the m3u8 url directly with ffmpeg.

    I assumed that you were already familiar with hls downloading.

    Anyway, you've done the hard part. You have all the elements you need to produce the video. You just need to learn how this special case of hls downloading works.
    Quote Quote  
  2. Originally Posted by ponens View Post
    That is the key to decrypt the video.

    If you download the m3u8 file, the key, and all of the ts segments, and then do a minor edit to the m3u8 file, you can then use ffmpeg to decrypt and assemble it all into a playable video.

    Or, through some (somewhat complex) operations with curl (that sets the cloudfront keys externally from your browser) you could use the m3u8 url directly with ffmpeg.

    I assumed that you were already familiar with hls downloading.

    Anyway, you've done the hard part. You have all the elements you need to produce the video. You just need to learn how this special case of hls downloading works.
    Can't believe I'm getting close to solve this puzzle hahahahaha
    I think I'm not familiar with hls neither ffmpeg but I'll the tutorials in this website and hopefully being able to download the video
    Quote Quote  
  3. Don't know how to download the ts files (well, I can, manually one by one)...

    Code:
    ffmpeg https://dmf9cnjua2s32.cloudfront.net/data/byXTGsjCGojqb/hls/449/_.m3u8
    ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
      built with gcc 7.3.1 (GCC) 20180722
      configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-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 --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
      libavutil      56. 14.100 / 56. 14.100
      libavcodec     58. 18.100 / 58. 18.100
      libavformat    58. 12.100 / 58. 12.100
      libavdevice    58.  3.100 / 58.  3.100
      libavfilter     7. 16.100 /  7. 16.100
      libswscale      5.  1.100 /  5.  1.100
      libswresample   3.  1.100 /  3.  1.100
      libpostproc    55.  1.100 / 55.  1.100
    Output #0, hls, to 'https://dmf9cnjua2s32.cloudfront.net/data/byXTGsjCGojqb/hls/449/_.m3u8':
    Output file #0 does not contain any stream
    Code:
    ffmpeg -i https://dmf9cnjua2s32.cloudfront.net/data/byXTGsjCGojqb/hls/449/_.m3u8
    ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
      built with gcc 7.3.1 (GCC) 20180722
      configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-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 --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
      libavutil      56. 14.100 / 56. 14.100
      libavcodec     58. 18.100 / 58. 18.100
      libavformat    58. 12.100 / 58. 12.100
      libavdevice    58.  3.100 / 58.  3.100
      libavfilter     7. 16.100 /  7. 16.100
      libswscale      5.  1.100 /  5.  1.100
      libswresample   3.  1.100 /  3.  1.100
      libpostproc    55.  1.100 / 55.  1.100
    [https @ 000002092f65a600] HTTP error 403 Forbidden
    https://dmf9cnjua2s32.cloudfront.net/data/byXTGsjCGojqb/hls/449/_.m3u8: Server returned 403 Forbidden (access denied)
    Code:
    streamlink https://dmf9cnjua2s32.cloudfront.net/data/byXTGsjCGojqb/hls/449/_.m3u8
    [cli][info] Found matching plugin hls for URL https://dmf9cnjua2s32.cloudfront.net/data/byXTGsjCGojqb/hls/449/_.m3u8
    error: Unable to open URL: https://dmf9cnjua2s32.cloudfront.net/data/byXTGsjCGojqb/hls/449/_.m3u8 (403 Client Error: Forbidden for url: https://dmf9cnjua2s32.cloudfront.net/data/byXTGsjCGojqb/hls/449/_.m3u8)
    Code:
    youtube-dl https://dmf9cnjua2s32.cloudfront.net/data/byXTGsjCGojqb/hls/449/_.m3u8
    [generic] _: Requesting header
    WARNING: Could not send HEAD request to https://dmf9cnjua2s32.cloudfront.net/data/byXTGsjCGojqb/hls/449/_.m3u8: HTTP Error 403: Forbidden
    [generic] _: Downloading webpage
    ERROR: Unable to download webpage: HTTP Error 403: Forbidden (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
    Quote Quote  
  4. The m3u8 url can't be used directly with those programs because of the cloudfront keys.

    Ordinarily, the keys could be specified to those programs, but in this case there are two different groups of cloudfront keys that are required and there is no way to specify both groups of keys to these programs simultaneously because each group uses the same name for the keys.

    The workaround is to edit the m3u8 to include the cloudfront keys within.

    If you haven't figured it out yet, post another otp code and I'll make an example edited m3u8 file and a list of steps to serve as an example.
    Quote Quote  
  5. Originally Posted by ponens View Post
    The m3u8 url can't be used directly with those programs because of the cloudfront keys.

    Ordinarily, the keys could be specified to those programs, but in this case there are two different groups of cloudfront keys that are required and there is no way to specify both groups of keys to these programs simultaneously because each group uses the same name for the keys.

    The workaround is to edit the m3u8 to include the cloudfront keys within.
    Yeah I'm having trouble with it... Was trying to use this following code that jagabo posted in this thread. Having the same error as mine, but being able to download with his code. But I cannot figure out the referer code on my case. Probably because there isn't one.

    Code:
    ffmpeg.exe -headers "Referer: http://reshet.tv/live/" -i "https://besttv1.aoslive.it.best-tv.com/reshet/studio/index_4.m3u8" -c copy output.mp4
    If you haven't figured it out yet, post another otp code and I'll make an example edited m3u8 file and a list of steps to serve as an example.
    otp=20160313versUSE323ba4b208dd8ec77b35e5b1f5e310193f9 1b5f9684239b0d
    Quote Quote  
  6. The issue in this case isn't the Referer, it is the cloudfront keys.
    Last edited by ponens; 12th Sep 2018 at 22:15.
    Quote Quote  
  7. Originally Posted by ponens View Post
    The m3u8 url can't be used directly with those programs because of the cloudfront keys.

    Ordinarily, the keys could be specified to those programs, but in this case there are two different groups of cloudfront keys that are required and there is no way to specify both groups of keys to these programs simultaneously because each group uses the same name for the keys.

    The workaround is to edit the m3u8 to include the cloudfront keys within.

    If you haven't figured it out yet, post another otp code and I'll make an example edited m3u8 file and a list of steps to serve as an example.
    Please do. I have been able to download the m3u8 file but as before, ffmpeg throws a 403 error. How to proceed? Same case of vdocipher widevine, tried iOS and Android UA
    Quote Quote  
  8. Member
    Join Date
    Dec 2018
    Location
    Calgary
    Search PM
    hey guys I got a bit lost in one discussion around the m3u8 file through user agent switcher.
    I was able to acomplish few things. found the URL:
    Code:
    https://cdn-gce.vdocipher.com/playerAssets/1.6.6/vdo/embed/index.html#otp=20160313versASE323KzwVQQJnr3vFgSKvf5OZiGC6W9HTUjYVGZKCmrP8ZjiwYU&playbackInfo=eyJ2aWRlb0lkIjoiNGNjYTMzMDQ4NzBjNDllNzgzZjQzZTZjMDUzYThkMjQifQ==
    and downloaded all the xhr parts from requests (around 570 parts). I have ffmpeg as well, but how do I decrypt the video, cant get to the point of getting the playlist file. Can anybody point me to next step ?
    Quote Quote  



Similar Threads