VideoHelp Forum



Support our site by donate $5 directly to us Thanks!!!

Try StreamFab Downloader and download streaming video from Netflix, Amazon!



+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 41
  1. Bonjour à tous, Voici une bouteille à la mer.

    Cela fait près d'une semaine que je cherche sur le forum et je vois différents sujets sur les chaines du groupe M6.

    J'ai compris que pour télécharger leurs vidéos avec ytdl il fallait avoir un "mpd" et/ou "pssh" et les ajouter dans le ligne de commande mais je ne maîtrise pas trop jusque la.

    Alors si il y aurait une âme charitable pour m'expliquer les manœuvres à effectuer pour mener à bien mon téléchargement ?

    Sois, via le forum, soit en message privé ? A votre convenance...

    La vidéo (entre autres) que je voudrais télécharger est : https://www.6play.fr/6play/recherche-appartement-ou-maison-6play-f_1563

    Merci infiniment de votre aide
    Cordialement

    Alex
    Quote Quote  
  2. use N_m3u8DL-RE to download

    Code:
    N_m3u8DL-RE -M format=mp4 --key eb6f9fd67c5fd259c816bf0c89ffb550:a966b96c23c7fcd7f6300d4591d2f238 "https://par5-edge-06.cdn.bedrock.tech/m6web/output/6/5/6/656ce91e5b2e86cfdfea59286c025052406a50d5/static/13010007_f3f4bbc7f979a0810007fb072def8efa_web_dash_upTo720p_720p_vbr_cae_drm_software.mpd?st=Nza3gV5fYKtq6lwZOYqlZg&e=1687137035"
    and please, forum in english, so write in english
    Quote Quote  
  3. Hello lomero,

    Thank you very much for your link it works perfect!

    But if I ever wanted to download videos from the same site by myself, how do I do it? Because I understood that we had to find the url of the license and the pssh via the chrome console and put them in the getwvkeys site.
    That's right ?

    In any case, despite the keyword search for "lic" in the chrome "network" console, I can't find the license url... Perhaps the keyword is no longer the right one?

    Thank you for your help
    Quote Quote  
  4. ...
    Last edited by mister_ nex; 18th Jun 2023 at 17:18.
    Quote Quote  
  5. Originally Posted by lomero View Post
    can't find "lic"? look that
    yes lomero ! i also see it, but tell me on this website, cdrm is it working or not ? i'm asking because I can't see the payload request...
    Quote Quote  
  6. in headers put only 'x-dt-auth-token' value
    Quote Quote  
  7. Hello, loméro,

    Thank for your answer !

    But when i try the same way you show in the screenshot i don't have "lic"... ? Look :
    Image Attached Thumbnails Click image for larger version

Name:	m6.png
Views:	244
Size:	1,024.0 KB
ID:	71816  

    Quote Quote  
  8. holy shit

    delete your browser lol

    I'm kidding. try with another browser. like brave, slimjet or waterfox
    Quote Quote  
  9. Hello,
    You can do same as in this tutorial in video 6play.mp4. It works for me.
    https://forum.videohelp.com/threads/403843-6Play/page3#post2673068
    Quote Quote  
  10. Thank loméro i'll try and i say it to you !

    nic030 : i already tried with this video but as you can see in my screenshot, with google chrome i don't have any "lic" file...
    Quote Quote  
  11. Hello,
    Good morning,
    I read french, but it's an english forum. please write in English only.
    I use firefox. Try the words 'cene' or 'drmtoday'.

    Either way, the license server is:
    https://lic.drmtoday.com/license-proxy-widevine/cenc/?specConform=true
    Quote Quote  
  12. Originally Posted by alexandre91 View Post
    Hello, loméro,

    Thank for your answer !

    But when i try the same way you show in the screenshot i don't have "lic"... ? Look :
    I think the problem is that you started the developer tools late, go to the refresh button to reload the page and don't miss it..
    Quote Quote  
  13. So thank you all indeed it had to be the case...

    On the other hand, I tried to reproduce the operation on a stream from the TF1 group and it does not seem to be the same "keywords" to find the stream, the mpd, the pssh, the header and the license url?

    https://www.tf1.fr/tf1/hpi/videos/hpi-s02-e07-55-kilos-42395289.html

    Could you teach me for this site also
    Thank you so much
    Quote Quote  
  14. Originally Posted by alexandre91 View Post
    So thank you all indeed it had to be the case...

    On the other hand, I tried to reproduce the operation on a stream from the TF1 group and it does not seem to be the same "keywords" to find the stream, the mpd, the pssh, the header and the license url?

    https://www.tf1.fr/tf1/hpi/videos/hpi-s02-e07-55-kilos-42395289.html

    Could you teach me for this site also
    Thank you so much
    license url: https://widevine-proxy-m.prod.p.tf1.fr/proxy?............
    pssh is in the mpd file:
    Code:
    AAAAMHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAABAiCDEzOTk1NzU1SOPclZsG
    no headers needed, just copy the pssh and full license url and paste into https://cdrm-project.com/
    keys:
    Code:
    d235461f2ab05c039f1eeb4fe9627472:0aae478fcfcd723fa7d6aa2cf00c623e
    d7d34c382b605e0db7527f7722385c44:1f6ffda83c95da677feface3802b71f8
    b7b8eac9bf00516fbfe3838fb500136b:7be5a5be3d55229ce5e2a05b2c17922c
    Quote Quote  
  15. @alexandre91
    I tried to reproduce the operation on a stream from the TF1 group
    every site is different.....

    you need:
    Bearer + token (filter dev menu: mediainfo and can find it in headers)
    place here in script:
    bearer_token = ''

    Code:
    from pathlib import Path
    import subprocess
    import requests
    import json
    import re
    import os
    
    files_to_delete = ["key.txt"]
    for file_name in files_to_delete:
        if os.path.exists(file_name):
            os.remove(file_name)
            print(f"{file_name} file successfully deleted.")
    
    m3u8DL_RE = 'N_m3u8DL-RE.exe'
    
    print('\ntest link: https://www.tf1.fr/tf1/hpi/videos/hpi-s02-e07-55-kilos-42395289.html\ntest link: https://www.tf1.fr/tf1/taxi/videos/taxi-11992322.html\n')
    
    link = input('link: ')
    
    bearer_token = '!Bearer + token here! (filter dev menu: mediainfo and can find it in headers)'
    
    import requests
    import re
    
    headers1 = {
        'authority': 'www.tf1.fr',
        'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8',
        'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36',
    }
    
    response1 = requests.get(link, headers=headers1).text
    
    embed_id = re.findall(r'embedUrl\":\".*player/(.*?)\"', response1)[0].strip()
    print(f'\n{embed_id}')
    
    import requests
    
    headers2 = {
        'authority': 'mediainfo.tf1.fr',
        'authorization': bearer_token,
        'origin': 'https://prod-player.tf1.fr',
        'referer': 'https://prod-player.tf1.fr/',
        'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36',
    }
    
    params2 = {
        'pver': '5010000',
        'context': 'MYTF1',
        'topDomain': 'www.tf1.fr',
        'platform': 'web',
        'device': 'desktop',
        'os': 'windows',
        'osVersion': '10.0',
        'playerVersion': '5.10.0',
        'productName': 'mytf1',
        'productVersion': '2.59.2',
        'browser': 'chrome',
        'browserVersion': '114',
    }
    
    response2 = requests.get('https://mediainfo.tf1.fr/mediainfocombo/'+embed_id+'', params=params2, headers=headers2).json()
    
    title = response2['media']['title']
    print(f'\n{title}')
    
    lic_url = response2['delivery']['drm-server']
    
    mpd = response2['delivery']['url']
    
    import requests
    
    headers3 = {
        'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
        'Connection': 'keep-alive',
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36',
    }
    
    response3 = requests.get(mpd, headers=headers3).text
    
    pssh = re.findall(r'<cenc:pssh>(.{20,170})</cenc:pssh>', response3)[0].strip()
    
    import requests
    
    headers_cdrm = {
        'Connection': 'keep-alive',
        'Content-Type': 'application/json',
        'Origin': 'https://cdrm-project.com',
        'Referer': 'https://cdrm-project.com/',
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36',
    }
    
    json_data_cdrm = {
        'license': lic_url,
        'headers': f'connection: keep-alive\n',
        'pssh': pssh,
        'buildInfo': '',
        'proxy': '',
        'cache': True,
    }
    
    cdrm_resp = requests.post('https://cdrm-project.com/wv', headers=headers_cdrm, json=json_data_cdrm).text
    
    from bs4 import BeautifulSoup
    
    soup = BeautifulSoup(cdrm_resp, 'html.parser')
    li_s = soup.find_all('li')
    keys = []
    
    for li in li_s:
        keys.append(li.text.strip())
    
    key_s = ' '.join(['--key ' + key for key in keys])
    print(f'\nkey(s):\n{key_s}')
    
    print(key_s, file=open("key.txt", "w"))
    
    with open("key.txt", "r") as fs:
     ke_ys = fs.readlines()
     ke_ys = ke_ys[0].strip().split()
    
    print()
    subprocess.run([m3u8DL_RE,
                    '-M', 'format=mkv:muxer=ffmpeg',
                    '--concurrent-download',
                    '--auto-select', 
                    '--del-after-done',
                    '--log-level', 'INFO',
                    '--save-name', 'video',
                    mpd, *ke_ys])
    
    try:
        Path('video.mkv').rename(''+title+'.mkv')
        print(f'{title}.mkv \nall done!\n')
    except FileNotFoundError:
        print("[ERROR] no mkv file")                
    
    for file_name in files_to_delete:
        if os.path.exists(file_name):
            os.remove(file_name)
            print(f"{file_name} file successfully deleted.")
    Quote Quote  
  16. Ok then thank you @Elcap I find this information well but I think I made a mistake in the feed?

    I have that :

    m3u8.exe -M format=mp4 --key d235461f2ab05c039f1eeb4fe9627472:0aae478fcfcd723fa 7d6aa2cf00c623e --key d7d34c382b605e0db7527f7722385c44:1f6ffda83c95da677 feface3802b71f8 --key b7b8eac9bf00516fbfe3838fb500136b:7be5a5be3d55229ce 5e2a05b2c17922c “https://strmt.tf1.fr/router/v2/c1335d96-4e28-4b42-8065-9a5a8267d421/content/2675837d-c...ash_drm_nomax”
    Last edited by alexandre91; 23rd Jun 2023 at 06:09.
    Quote Quote  
  17. And for @Sk8ordi3's solution, I'm sorry but I downloaded media info and couldn't find the "dev" menu?

    If I understand correctly this software allows me to have the bearer-token, which I must place in this script?
    Quote Quote  
  18. Originally Posted by alexandre91 View Post
    And for @Sk8ordi3's solution, I'm sorry but I downloaded media info and couldn't find the "dev" menu?

    If I understand correctly this software allows me to have the bearer-token, which I must place in this script?
    ..Image
    [Attachment 71932 - Click to enlarge]
    Quote Quote  
  19. alexandre, every website is different.
    for tf1 group, even if they recently add drm, as ELCAP said, there is no difficulties, no headers needed, just copy the pssh and full license url and paste into https://cdrm-project.com/
    for m6 group, it's more complicated but still doable as you can read here in your thread.
    Quote Quote  
  20. Hi @abacaxi,

    Thank you for your answer, but indeed now I manage to find the pssh and the url for tf1 but the link of the video is which one because

    https://strmt.tf1.fr/router/v2/c1335d96-4e28-4b42-8065-9a5a8267d421/content/2675837d-c...nomax%E2%80%9D

    do not work

    do you have the link of the video to indicate in "N_m3u8DL-RE.exe"?

    And since there are three keys I guess you have to put all three of them as in my previous post?
    Quote Quote  
  21. search "mpd" and use this link in RE

    about your keys: put all keys into new file key.txt

    then add this code in RE command:
    --key-text-file key.txt
    Quote Quote  
  22. Originally Posted by alexandre91 View Post
    Hi @abacaxi,

    Thank you for your answer, but indeed now I manage to find the pssh and the url for tf1 but the link of the video is which one because

    https://strmt.tf1.fr/router/v2/c1335d96-4e28-4b42-8065-9a5a8267d421/content/2675837d-c...nomax%E2%80%9D

    do not work

    do you have the link of the video to indicate in "N_m3u8DL-RE.exe"?

    And since there are three keys I guess you have to put all three of them as in my previous post?
    as lomero has said you need to use the mpd url
    it should be like this (ive removed part of the url as its very long)
    Code:
    https://vod-das.cdn-0.diff.tf1.fr/--cut--/2/USP-0x0/57/55/13995755/ssm/9a1b7be581963f800a277e7dac5c1cc305c1d70b01662ec6d09e80e6806d9218.ism/13995755.mpd
    Quote Quote  
  23. Hello @Elcap and @loméro,

    So indeed I had already tried with this url but I have the following error message: "Object reference not set to an instance of an object." ?

    Code used:

    m3u8.exe -M format=mp4 --key d235461f2ab05c039f1eeb4fe9627472:0aae478fcfcd723fa 7d6aa2cf00c623e --key d7d34c382b605e0db7527f7722385c44:1f6ffda83c95da677 feface3802b71f8 --key b7b8eac9bf00516fbfe3838fb500136b:7be5a5be3d55229ce 5e2a05b2c17922c “https://vod-das.cdn-0.diff.tf1.fr/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjaXAiOiI5Mi4.../13995755.mpd”
    Quote Quote  
  24. check your link: from your post is seem to end with ....../13995755.mpd (correct)

    but if you copy and past into RE your link is this one: ....../13995755.mpd%E2%80%9D (wrong)

    in RE use mpd link with right final like .... "....../13995755.mpd"
    Quote Quote  
  25. No in my message this morning (9:51) the link does end with 13995755.mpd"
    Quote Quote  
  26. Code:
    m3u8.exe -M format=mp4 --key d235461f2ab05c039f1eeb4fe9627472:0aae478fcfcd723fa7d6aa2cf00c623e --key d7d34c382b605e0db7527f7722385c44:1f6ffda83c95da677feface3802b71f8 --key b7b8eac9bf00516fbfe3838fb500136b:7be5a5be3d55229ce5e2a05b2c17922c “https://vod-das.cdn-0.diff.tf1.fr/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjaXAiOiI5Mi4xODQuOTguNTQiLCJjbWNkIjoiIiwiZXhwIjoxNjg3NjA3MjQxLCJnaWQiOiJlZjE5NDU3Yy02N2ZiLTQ2ZWUtYmIzMS1jZmU0N2VlMDZhZjYiLCJpYXQiOjE2ODc1OTI4NDEsImlzcyI6ImRlbGl2ZXJ5IiwibWF4YiI6MjgwMDAwMCwic3RlbSI6Ii8yL1VTUC0weDAvNTcvNTUvMTM5OTU3NTUvc3NtLzlhMWI3YmU1ODE5NjNmODAwYTI3N2U3ZGFjNWMxY2MzMDVjMWQ3MGIwMTY2MmVjNmQwOWU4MGU2ODA2ZDkyMTguaXNtLzEzOTk1NzU1Lm1wZCIsInN1YiI6ImVmMTk0NTdjLTY3ZmItNDZlZS1iYjMxLWNmZTQ3ZWUwNmFmNiJ9.WMWoDpGCYHUTnDVmk_VRZnRaVN68SlyNHQL2DwujjZ0/2/USP-0x0/57/55/13995755/ssm/9a1b7be581963f800a277e7dac5c1cc305c1d70b01662ec6d09e80e6806d9218.ism/13995755.mpd”
    Quote Quote  
  27. Not issue with your url as you can see:
    Code:
    D:\Video\N_m3u8DL-RE_Beta_win-x64>N_m3u8DL-RE.exe -M format=mp4 --key d235461f2ab05c039f1eeb4fe9627472:0aae478fcfcd723fa7d6aa2cf00c623e --key d7d34c382b605e0db7527f7722385c44:1f6ffda83c95da677feface3802b71f8 --key b7b8eac9bf00516fbfe3838fb500136b:7be5a5be3d55229ce5e2a05b2c17922c https://vod-das.cdn-0.diff.tf1.fr/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjaXAiOiI5Mi4...m/13995755.mpd
    10:39:39.256 INFO : N_m3u8DL-RE (Beta version) 20230412
    10:39:39.278 INFO : Loading URL: https://vod-das.cdn-0.diff.tf1.fr/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjaXAiOiI5Mi4...m/13995755.mpd
    10:39:39.466 INFO : New version detected! v0.1.9-beta
    10:39:39.510 INFO : Content Matched: Dynamic Adaptive Streaming over HTTP
    10:39:39.511 INFO : Parsing streams...
    10:39:39.604 INFO : Extracted, there are 12 streams, with 6 basic streams, 4 audio streams, 2 subtitle streams
    10:39:39.605 INFO : Vid *CENC 1280x720 | 2500 Kbps | video=2500867 | avc1.4D401F | 402 Segments | ~53m32s
    10:39:39.606 INFO : Vid *CENC 1024x576 | 1700 Kbps | video=1700589 | avc1.4D401F | 402 Segments | ~53m32s
    10:39:39.606 INFO : Vid *CENC 1024x576 | 1200 Kbps | video=1200449 | avc1.4D401F | 402 Segments | ~53m32s
    10:39:39.607 INFO : Vid *CENC 640x360 | 600 Kbps | video=600114 | avc1.42C01E | 402 Segments | ~53m32s
    10:39:39.609 INFO : Vid *CENC 480x270 | 400 Kbps | video=400085 | avc1.42C01E | 402 Segments | ~53m32s
    10:39:39.610 INFO : Vid *CENC 416x234 | 200 Kbps | video=200039 | avc1.42C01E | 402 Segments | ~53m32s
    10:39:39.611 INFO : Aud *CENC audio_fra=128000 | 128 Kbps | mp4a.40.2 | fr | 2CH | 402 Segments | ~53m32s
    10:39:39.612 INFO : Aud *CENC audio_fra_1=128000 | 128 Kbps | mp4a.40.2 | fr | 2CH | 402 Segments | ~53m32s
    10:39:39.613 INFO : Aud *CENC audio_fra=64000 | 64 Kbps | mp4a.40.2 | fr | 2CH | 402 Segments | ~53m32s
    10:39:39.614 INFO : Aud *CENC audio_fra_1=64000 | 64 Kbps | mp4a.40.2 | fr | 2CH | 402 Segments | ~53m32s
    10:39:39.614 INFO : Sub textstream_fra=1000 | fr | wvtt | 402 Segments | ~53m32s
    10:39:39.615 INFO : Sub 4150766452 | fr | 1 Segment | ~53m32s
    10:41:57.475 INFO : Parsing streams...
    10:41:57.476 INFO : Selected streams:
    10:41:57.476 INFO : Vid *CENC 1280x720 | 2500 Kbps | video=2500867 | avc1.4D401F | 402 Segments | ~53m32s
    10:41:57.476 INFO : Aud *CENC audio_fra=64000 | 64 Kbps | mp4a.40.2 | fr | 2CH | 402 Segments | ~53m32s
    10:41:57.477 INFO : Sub textstream_fra=1000 | fr | wvtt | 402 Segments | ~53m32s
    10:41:57.477 INFO : Save Name: 13995755_2023-06-24_10-41-57
    10:41:57.478 INFO : Start downloading...Vid 1280x720 | 2500 Kbps | video=2500867 | avc1.4D401F
    10:41:57.479 WARN : When CENC encryption is detected, binary merging is automatically enabled
    10:41:57.645 WARN : Type: cenc
    10:41:57.646 WARN : PSSH(WV): IggxMzk5NTc1NUjj3JWbBg==
    10:41:57.647 WARN : KID: d7d34c382b605e0db7527f7722385c44
    10:41:57.648 WARN : Reading media info...
    10:41:58.600 INFO : [0x1]: Video, h264 (avc1), 1280x720
    10:57:45.902 INFO : Binary merging...
    10:57:56.908 INFO : Decrypting...
    10:58:21.806 INFO : Start downloading...Aud audio_fra=64000 | 64 Kbps | mp4a.40.2 | fr | 2CH
    10:58:22.032 WARN : Type: cenc
    10:58:22.036 WARN : PSSH(WV): IggxMzk5NTc1NUjj3JWbBg==
    10:58:22.040 WARN : KID: d7d34c382b605e0db7527f7722385c44
    10:58:22.046 WARN : Reading media info...
    10:58:22.118 INFO : [0x1]: Audio, aac (mp4a), 64 kb/s
    10:58:53.358 INFO : Binary merging...
    10:58:53.650 INFO : Decrypting...
    10:58:54.213 INFO : Start downloading...Sub textstream_fra=1000 | fr | wvtt
    10:58:54.254 WARN : Reading media info...
    10:58:54.321 INFO : [0x1]: Data, none (wvtt) (default) (hearing impaired) (captions)
    10:59:00.579 WARN : Extracting VTT(mp4) subtitle...
    10:59:01.092 INFO : Binary merging...
    10:59:01.122 WARN : 13995755_2023-06-24_10-41-57.mp4
    10:59:01.123 WARN : 13995755_2023-06-24_10-41-57.fr.m4a
    10:59:01.124 WARN : 13995755_2023-06-24_10-41-57.fr.srt
    10:59:01.124 WARN : Muxing to 13995755_2023-06-24_10-41-57.MUX.mp4
    10:59:16.914 WARN : Cleaning files...
    10:59:17.064 WARN : Rename to 13995755_2023-06-24_10-41-57.mp4
    10:59:17.269 INFO : Done
    Quote Quote  
  28. Originally Posted by alexandre91 View Post
    Code:
    m3u8.exe -M format=mp4 --key d235461f2ab05c039f1eeb4fe9627472:0aae478fcfcd723fa7d6aa2cf00c623e --key d7d34c382b605e0db7527f7722385c44:1f6ffda83c95da677feface3802b71f8 --key b7b8eac9bf00516fbfe3838fb500136b:7be5a5be3d55229ce5e2a05b2c17922c “https://vod-das.c..........9218.ism/13995755.mpd”

    your quote is wrong
    this is the right :
    Code:
    " "
    and yours is just wierd between the mpd link:
    Code:
    “ ”
    Quote Quote  



Similar Threads

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