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
Results 1 to 11 of 11
Thread
  1. Average video editor
    Join Date
    Sep 2018
    Location
    USA
    Search Comp PM
    Is there any way to download content from this site?
    Some firefox plugins used to work but not anymore. It uses AES-128 decryption and i've tried various methods,but nothing so far.
    Plugin gives .m3u8 url,but it's unplayable.
    The key file is this (from .m3u8)
    (i've tried FFMPEG, streamlink, hlsdl, youtube-dl so far). Closest i got was with streamlink,but got error:
    Code:
        raise ValueError("Incorrect AES key length (%d bytes)" % len(key))
    ValueError: Incorrect AES key length (7 bytes)
    I really hope i won't have to use a screen recorder for this.

    Thanks.
    Quote Quote  
  2. I was able to download from that site using Tubedigger. I choose:
    https://www.filmas.lv/movie/3904/
    and downloaded a 5 minute 19 second video. I'm not sure if this is just a short preview. I know when I played it in the browser, it also showed 5 minute 19 seconds. Probably can also use youtube-dl or livestreamer.
    Last edited by jimdagys; 20th Nov 2018 at 18:34.
    Quote Quote  
  3. Average video editor
    Join Date
    Sep 2018
    Location
    USA
    Search Comp PM
    Weird, i already tried all 3 of those,none of them worked
    Quote Quote  
  4. I am using Windows 7. For that filmas site, I needed to choose "Chromium3" in the Tubedigger settings (see below screenshot). If I chose the default setting, which is IExplorer, I couldn't download the video. I have a question for you: Can you give me an exact link that will play (in the browser) a full length movie (like over an hour) from that site? I was curious why the video I chose only was 5 minutes. The website doesn't seem to list the length of the videos.
    Image Attached Thumbnails Click image for larger version

Name:	Clipboard01.jpg
Views:	23
Size:	203.8 KB
ID:	47254  

    Last edited by jimdagys; 21st Nov 2018 at 06:58.
    Quote Quote  
  5. The films are only viewable using an IP within Latvia. IPs from other locations just get a trailer, or no video at all.

    The key url that you supplied:
    Code:
    https://www.filmas.lv/lmdb/hls/key/server/72529B84A28644D7DB6923E83CA0AB40
    is not the key for the m3u8 url that you supplied:
    Code:
    https://as2.filmas.lv/FilmasLV/86A6F43BC636B08174239F8E2E092F78/index-f4-v1-a1.m3u8
    and that m3u8 url is not for the webpage url that you supplied:
    Code:
    https://www.filmas.lv/movie/3903
    Originally Posted by Sviests View Post
    Code:
        raise ValueError("Incorrect AES key length (%d bytes)" % len(key))
    ValueError: Incorrect AES key length (7 bytes)
    The reason that you're getting an incorrect length for the key is because in order to download the actual key, cookies and other various header data is required. It could be done manually, or you could ask the tubdigger guy to add this site.
    Quote Quote  
  6. Originally Posted by ponens View Post
    The reason that you're getting an incorrect length for the key is because in order to download the actual key, cookies and other various header data is required. It could be done manually
    Code:
    youtube-dl --add-header "Cookie:PHPSESSID=3e0rgk6m7nurfs3c51nbnueic0; _ga=GA1.2.1461534251.1542807053; _gid=GA1.2.430100020.1542807053; _gat=1; __gfp_64b=cEJsy
    rFzdk9wqDJBf97SlCZCx0QlXNgefcbmXS4maLr.77" --referer "https://www.filmas.lv/movie/3903/" https://www.filmas.lv/lmdb/hls/playlist/7383FD32AF7B5446CEE5B26BB028FDF5.m3u8
    [generic] 7383FD32AF7B5446CEE5B26BB028FDF5: Requesting header
    [generic] 7383FD32AF7B5446CEE5B26BB028FDF5: Downloading m3u8 information
    [download] Destination: 7383FD32AF7B5446CEE5B26BB028FDF5-7383FD32AF7B5446CEE5B26BB028FDF5.mp4
    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 --ena
    ble-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --e
    nable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-li
    bzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --en
    able-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
    [hls,applehttp @ 05d84ec0] Opening 'https://www.filmas.lv/lmdb/hls/key/server/7383FD32AF7B5446CEE5B26BB028FDF5' for reading
    [hls,applehttp @ 05d84ec0] Opening 'crypto+https://as2.filmas.lv/FilmasLV/7383FD32AF7B5446CEE5B26BB028FDF5/seg-1-f4-v1-a1.ts' for reading
    Input #0, hls,applehttp, from 'https://as2.filmas.lv/FilmasLV/7383FD32AF7B5446CEE5B26BB028FDF5/index-f4-v1-a1.m3u8':
      Duration: 01:41:35.00, start: 0.101000, bitrate: N/A
      Program 0
        Metadata:
          variant_bitrate : 0
        Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
        Metadata:
          variant_bitrate : 0
        Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
        Metadata:
          variant_bitrate : 0
        Stream #0:2: Data: timed_id3 (ID3  / 0x20334449)
        Metadata:
          variant_bitrate : 0
    Output #0, mp4, to 'file:7383FD32AF7B5446CEE5B26BB028FDF5-7383FD32AF7B5446CEE5B26BB028FDF5.mp4.part':
      Metadata:
        encoder         : Lavf58.12.100
        Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
        Metadata:
          variant_bitrate : 0
        Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp
        Metadata:
          variant_bitrate : 0
    Stream mapping:
      Stream #0:0 -> #0:0 (copy)
      Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=  238 fps=121 q=-1.0 Lsize=     501kB time=00:00:09.48 bitrate= 432.6kbits/s speed=4.82x
    video:126kB audio:370kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.986175%

    or you could ask the tubdigger guy to add this site.
    Referer and Cookies are processed automatically:
    Quote Quote  
  7. Average video editor
    Join Date
    Sep 2018
    Location
    USA
    Search Comp PM
    Thanks @TubeDigger, will try this out.

    Edit: Wonderful! I was able to recreate youtube-dl line with cookies from my browser,worked like a charm.
    Last edited by Sviests; 21st Nov 2018 at 16:40.
    Quote Quote  
  8. Question for Tubedigger,
    I know Tubedigger can be used with a vpn , but I don't have any free vpn that will do Latvia. Is it possible to use Tubedigger in conjunction with those manual free proxies like those found on www.spys.ru ?
    If so, how to put those proxy numbers into Tubedigger? For example, spys.ru shows several Latvia proxies like:
    85.15.216.56:53540
    How would I put this number into Tubedigger so that I can download the video? Presently, I can't even play the video (listed in post#1) in the browser.
    (https://www.filmas.lv/movie/3903/#)
    I didn't yet try to use one of those manual free proxies to play the video in the browser, but in the past, I have been usually able to get the manual free proxies to work to play intermittently in the browser.
    EDIT: I FIGURED IT OUT MYSELF (RARE FOR ME) AND IT WAS EXTREMELY EASY TO DO.
    I went to above proxy site (www.spys.ru) and choose a Latvia proxy (thank you Ponens for that tip) . The proxy I chose was:
    85.15.216.56:53540
    I put this proxy into IE on my Windows 7 computer (tools>internet options>connections>LAN settings>tick "Proxy server" and put in 85.15.216.56:53540 in the boxes and clicked "OK". See screenshot 1, red circles.
    Then I tried to play the video with IE:
    (https://www.filmas.lv/movie/3903/#)
    Before, there was no play arrow, now there was a play arrow, and when I clicked it, the video started to play with a running time shown as 1hour 41minutes. I closed out IE, opened up Tubedigger and put in the video url. (See screenshot 2)
    Again, the play arrow appeared, (before, there was no play arrow) I clicked it and was able to start the download. I downloaded a 780MB ts file, however it won't play in any media player. When I try to use Tubedigger to convert the ts to mp4, I get error message that the file is not a media file. QUESTION: How can I get the video to play? Here is a mega link:
    https://mega.nz/#!IG4EzQQT!uFBiRW70KLc8tyHtRNlPsVIQMRgKrfteQidElaaV0X8
    SEVERAL OTHER QUESTIONS, CAN SOMEBODY HELP: If I want to download this with youtube-dl, I looked at the above code from Mr Tubedigger.
    How did he get the cookie value (--add-header "Cookie:PHPSESSID...)?
    How did he get the m3u8 (https://www.filmas.lv/lmdb/hls/playlist/7383FD32AF7B5446CEE5B26BB028FDF5.m3u8)
    Is the m3u8 gotten by simply playing the video in the IE browser (with proxy) and using network developer tool?
    Are there any other special considerations (like using --proxy "85.15.216.56:53540") in the final youtube-dl code because of needing a proxy?
    Image Attached Thumbnails Click image for larger version

Name:	Clipboard1.jpg
Views:	12
Size:	185.6 KB
ID:	47262  

    Click image for larger version

Name:	Clipboard2.jpg
Views:	18
Size:	172.3 KB
ID:	47263  

    Last edited by jimdagys; 21st Nov 2018 at 23:49.
    Quote Quote  
  9. Originally Posted by jimdagys View Post
    If so, how to put those proxy numbers into Tubedigger?
    I put this proxy into IE on my Windows 7 computer (tools>internet options>connections>LAN settings>tick "Proxy server" and put in 85.15.216.56:53540 in the boxes
    Yes, you did everything correct. TubeDigger and all its embedded browsers use system (IE) proxy settings.
    Just click in TubeDigger: Settings -> Proxy config --> LAN Settings and enter proxy IP:Port (or Advanced for SOCKS proxy).


    Again, the play arrow appeared, (before, there was no play arrow) I clicked it and was able to start the download. I downloaded a 780MB ts file, however it won't play in any media player. When I try to use Tubedigger to convert the ts to mp4, I get error message that the file is not a media file. QUESTION: How can I get the video to play? Here is a mega link:
    https://mega.nz/#!IG4EzQQT!uFBiRW70KLc8tyHtRNlPsVIQMRgKrfteQidElaaV0X8
    Sorry, but I do not want to download 800MB file, probably there was some glitch during retrieving HLS-AES key and therefore media content was not properly decrypted and video must be redownloaded, please see screenshot. Normally such downloads with failed key will be also failed, but this media site responds 200 OK with "error" in key payload. To avoid such situations - put mouse over download when its size will be few MBytes and if you will see media information in tooltip about video and/or audio - then such video is downloading properly.



    Is the m3u8 gotten by simply playing the video in the IE browser (with proxy) and using network developer tool?
    Yes, developer tools from IE or Firefox.


    Are there any other special considerations (like using --proxy "85.15.216.56:53540") in the final youtube-dl code because of needing a proxy?
    Only if your system settings are without proxy.
    Quote Quote  
  10. OK, I was able to download the 780MB video with Tubedigger and play it with vlc no problem. I'm not sure what fixed the problem, but I did this:
    First I updated to the latest Tubedigger (my version was about 10 months old). Then I tried to download the video
    (https://www.filmas.lv/movie/3903/#) with Tubedigger using the default setting (IExplorer). I downloaded a 780MB ts file, but again I could not play the file with any media player and also could not convert the ts file to mp4 with the Tubedigger tool. I then changed the Tubedigger setting to Chromium3. (Before, I used the Chromium 3 setting on the 10 month old version of Tubedigger and could not play the downloaded video). So I used the Chromium 3 setting on the latest version of Tubedigger (see screenshot), downloaded the 780MB ts file. This time, I was able to convert the ts file to mp4 with the Tubedigger tool, and I was able to play the resulting file no problem with vlc. The most useful thing I learned from all this is: Putting those free proxy numbers into IE will allow Tubedigger to download from geo-restricted sites. Before, I thought you had to use a vpn with Tubedigger to download from geo-restricted sites. And nobody has a free vpn for Latvia.
    EDIT:
    Tubedigger,
    Can you tell me how you got the cookie value (--add-header "Cookie:PHPSESSID...) in your above code? I assume I need to get my own cookie value if I want to try to download the video with youtube-dl using your above script.
    Image Attached Thumbnails Click image for larger version

Name:	Clipboard01.jpg
Views:	18
Size:	175.7 KB
ID:	47267  

    Last edited by jimdagys; 22nd Nov 2018 at 08:58.
    Quote Quote  
  11. Better to teach people how to do it manually, and not just suggesting Tubedigger all the time


    I do like Tubedigger though
    Last edited by Tortle; 24th Nov 2018 at 11:52.
    Quote Quote  



Similar Threads