VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. Good afternoon, I wanted to download the stream from:
    https://www.discoveryplus.com/it/video/deal-with-it-stai-al-gioco/stagione-6-episodio-1
    I get a mpd link, but it is the advertisement, but nothing regarding the video. I tried checking the network tab, but I didn't see anything strange except a long list of dash links that end with "master-video=1234567-12345.dash" or "master-audio=1234567-12345.dash"
    If you could help me downloading this show, thank you a lot.
    Quote Quote  
  2. Code:
    N_m3u8DL-RE "https://dplus-it-prod-vod.akamaized.net/ssai/dep4-c1/v1/playlist/dash/2acd5b40-cd64-48ee-a25a-b2d4f37488fa/hdntl=exp=1677229745~acl=/ssai/dep4-c1/v1/playlist/dash/2acd5b40-cd64-48ee-a25a-b2d4f37488fa/*~data=hdntl~hmac=7d9e52f748c240c676cfb31b51a83037fff7e136f6d9feed81d0f2d3dae64d07/60e9ca1f-6907-5b86-b6e3-3eb5f5cec1b7.mpd?correlationId=dngTqFawM7&ctx=CghkcGx1c19pdBIxVVNFUklEOmRwbGF5OmNjM2NmODk2LWVkNDYtNDM2My1hY2Q1LWYwY2YxZTZhMGRjMxokMDAwZDBiMzQtZWFiYy00MzY2LWExMDYtYTBkNzU4NzVkYTM0IiQyYWNkNWI0MC1jZDY0LTQ4ZWUtYTI1YS1iMmQ0ZjM3NDg4ZmEqJDYwZTljYTFmLTY5MDctNWI4Ni1iNmUzLTNlYjVmNWNlYzFiNzIOMTUxLjM2LjE1Mi4xMjk6b01vemlsbGEvNS4wIChXaW5kb3dzIE5UIDEwLjA7IFdpbjY0OyB4NjQpIEFwcGxlV2ViS2l0LzUzNy4zNiAoS0hUTUwsIGxpa2UgR2Vja28pIENocm9tZS8xMDkuMC4wLjAgU2FmYXJpLzUzNy4zNkILCLHa3J8GEN3jm1RIA1IkNjQ0MDA3YWUtZWZjNy01MWQ5LWJiNmQtMTA2MDYwYmI1ZmEw"
    no encryption. 1080p available

    Image
    [Attachment 69392 - Click to enlarge]
    Quote Quote  
  3. Discovery+ is directly supported by yt-dlp, so you can use the regular URL without messing around:

    Code:
    yt-dlp -F "https://www.discoveryplus.com/it/video/deal-with-it-stai-al-gioco/stagione-6-episodio-1"
    [DiscoveryPlusItaly] Extracting URL: https://www.discoveryplus.com/it/video/deal-with-it-stai-al-gioco/stagione-6-episodio-1
    [DiscoveryPlusItaly] deal-with-it-stai-al-gioco/stagione-6-episodio-1: Downloading token
    [DiscoveryPlusItaly] deal-with-it-stai-al-gioco/stagione-6-episodio-1: Downloading JSON metadata
    [DiscoveryPlusItaly] 1917793: Downloading JSON metadata
    [DiscoveryPlusItaly] deal-with-it-stai-al-gioco/stagione-6-episodio-1: Downloading MPD manifest
    [info] Available formats for 1917793:
    ID                    EXT   RESOLUTION FPS │   FILESIZE   TBR PROTO │ VCODEC        VBR ACODEC      ABR ASR MORE INFO
    ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
    dash-thumb733300502   mhtml unknown        │                  mhtml │ images                                DASH storyboards (jpeg)
    dash-audio_ita=125000 m4a   audio only     │ ~ 57.66MiB  125k dash  │ audio only        mp4a.40.2  125k 48k [it] DASH audio, m4a_dash
    dash-video=139000     mp4   416x234     25 │ ~ 64.12MiB  139k dash  │ avc1.4D400C  139k video only          DASH video, mp4_dash
    dash-video=267000     mp4   640x360     25 │ ~123.17MiB  267k dash  │ avc1.4D4016  267k video only          DASH video, mp4_dash
    dash-video=508000     mp4   960x540     25 │ ~234.34MiB  508k dash  │ avc1.4D401F  508k video only          DASH video, mp4_dash
    dash-video=932000     mp4   1280x720    25 │ ~429.94MiB  932k dash  │ avc1.4D401F  932k video only          DASH video, mp4_dash
    dash-video=1804000    mp4   1280x720    25 │ ~832.19MiB 1804k dash  │ avc1.4D401F 1804k video only          DASH video, mp4_dash
    dash-video=3280000    mp4   1920x1080   25 │ ~  1.48GiB 3280k dash  │ avc1.4D4028 3280k video only          DASH video, mp4_dash
    dash-video=6124000    mp4   1920x1080   25 │ ~  2.76GiB 6124k dash  │ avc1.4D4028 6124k video only          DASH video, mp4_dash
    Quote Quote  
  4. Thank you both I didn't try this.
    Quote Quote  
  5. Member
    Join Date
    Jul 2021
    Location
    Desktop
    Search Comp PM
    Was the video encrypted?
    Quote Quote  
  6. Member
    Join Date
    Dec 2021
    Location
    Scotland
    Search Comp PM
    Discovery+ is a subscription based streaming site, which we are not supposed to discuss. However, some shows appear to be "free" and the UK channels are mainly free-to-air (like Quest and Really) so I guess we can continue.
    d+ has indeed recently changed. I'm currently working on suitable script for myself. Yes, it is L3 encrypted and getting the key is relatively straight forward.
    As you've discovered, using straight forward yt-dlp --allow-u will give you one advert (albeit in glorious 1080p lol).
    It's similar in someways to STV encrypted, in that there's a ton of adverts to download (which are unencrypted) and the main video is usually split into 3 or 4 chunks (encrypted). If you use this (as a start) you can download the 1080p streams and m4a audio:
    Code:
    os.system(f'yt-dlp  --allow-u -f all[height=1080]  -o  encryptVid.%(format_id)s.%(ext)s -N 6 "{mpd_url}"')
    os.system(f'yt-dlp  --allow-u -f all[vcodec=none][ext=m4a]  -o  encryptAud.%(format_id)s.%(ext)s -N 6 "{mpd_url}"')
    To get rid of the adverts I'm using:
    Code:
    for filename in os.listdir():
        if filename.endswith('.m4a') and (os.path.getsize(filename) < 2000000):
            os.remove(filename)
        if filename.endswith('.mp4') and (os.path.getsize(filename) < 50000000):
            os.remove(filename)
    basically, get rid of all audio files of size < 2MB and video files of size < 50MB (hopefully, all the adverts).

    Then you're left with the "true" (none advert) streams. Some shows have different bitrates for audio and/or video (so you will need to remove the lower spec'd ones), most shows are split over 3-4 files so after decryption they will need joining together.

    It's that last sentence I'm just working on at the moment: to automate it so that the script caters for all d+ downloads.

    ADDENDUM: I now notice that the OP was talking about the Italian d+. I live in the UK, so I'm looking at the UK d+. I'm assuming both use similar techniques.
    Last edited by deccavox; 25th Feb 2023 at 07:12.
    Quote Quote  
  7. Do not send me DM's
    Join Date
    Dec 2021
    Location
    Tórshavn
    Search Comp PM
    Originally Posted by deccavox View Post
    Discovery+ is a subscription based streaming site, which we are not supposed to discuss. However, some shows appear to be "free" and the UK channels are mainly free-to-air (like Quest and Really) so I guess we can continue.
    d+ has indeed recently changed. I'm currently working on suitable script for myself. Yes, it is L3 encrypted and getting the key is relatively straight forward.
    As you've discovered, using straight forward yt-dlp --allow-u will give you one advert (albeit in glorious 1080p lol).
    It's similar in someways to STV encrypted, in that there's a ton of adverts to download (which are unencrypted) and the main video is usually split into 3 or 4 chunks (encrypted). If you use this (as a start) you can download the 1080p streams and m4a audio:
    Code:
    os.system(f'yt-dlp  --allow-u -f all[height=1080]  -o  encryptVid.%(format_id)s.%(ext)s -N 6 "{mpd_url}"')
    os.system(f'yt-dlp  --allow-u -f all[vcodec=none][ext=m4a]  -o  encryptAud.%(format_id)s.%(ext)s -N 6 "{mpd_url}"')
    To get rid of the adverts I'm using:
    Code:
    for filename in os.listdir():
        if filename.endswith('.m4a') and (os.path.getsize(filename) < 2000000):
            os.remove(filename)
        if filename.endswith('.mp4') and (os.path.getsize(filename) < 50000000):
            os.remove(filename)
    basically, get rid of all audio files of size < 2MB and video files of size < 50MB (hopefully, all the adverts).

    Then you're left with the "true" (none advert) streams. Some shows have different bitrates for audio and/or video (so you will need to remove the lower spec'd ones), most shows are split over 3-4 files so after decryption they will need joining together.

    It's that last sentence I'm just working on at the moment: to automate it so that the script caters for all d+ downloads.

    ADDENDUM: I now notice that the OP was talking about the Italian d+. I live in the UK, so I'm looking at the UK d+. I'm assuming both use similar techniques.

    At present Discovery Italy uses a different layout. And as mentioned above yt-dlp has a specific extractor for the service
    https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/extractor/discovery.py
    And n-m3u8dl-re works with no issues on the service.
    Quote Quote  



Similar Threads

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