VideoHelp Forum




+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 34
  1. I'm trying to download a video from goplay.be by yt-dlp, and an error came up:[GoPlay] This video is only available for registered users. Use --username and --password, --netrc-cmd, or --netrc (goplay) to provide account credentials. What should I do next? I've logged in goplay.be. Thanks a lot.Image
    [Attachment 75739 - Click to enlarge]
    Quote Quote  
  2. add credentials to yt-dlp .... message above seems clear ...

    yt-dlp --username xxx --password xxx [your_link]
    Quote Quote  
  3. Originally Posted by lomero View Post
    add credentials to yt-dlp .... message above seems clear ...

    yt-dlp --username xxx --password xxx [your_link]

    Image
    [Attachment 75743 - Click to enlarge]

    and this came up
    Quote Quote  
  4. this error because yt-dlp can't have an extractor for your site ...
    so, put in yt-dlp mpd link (or m3u8). this is general rule for not allowed site for yt-dlp
    and also use -allow-u option is your video have drm (but on this case need also key to decrypt)
    Quote Quote  
  5. Member
    Join Date
    Dec 2021
    Location
    england
    Search Comp PM
    it need login so i dont have one.

    try with yt-dlp --cookie-from-browser chrome or firefox URL

    edit: i have login now, video is not playing just spining round circle, chrome, firefox and edge is the same

    does it playing on your side?
    Last edited by iamghost; 25th Dec 2023 at 06:44.
    Quote Quote  
  6. Search, Learn, Download! Karoolus's Avatar
    Join Date
    Oct 2022
    Location
    Belgium
    Search Comp PM
    Your file: https://www.swisstransfer.com/d/72b3e245-ca2a-4254-bbd1-d2ba08c96ecd

    GoPlay needs some extra stuff because of the periods in the MPD
    Quote Quote  
  7. Originally Posted by lomero View Post
    this error because yt-dlp can't have an extractor for your site ...
    so, put in yt-dlp mpd link (or m3u8). this is general rule for not allowed site for yt-dlp
    and also use -allow-u option is your video have drm (but on this case need also key to decrypt)
    thanks its working now.
    Quote Quote  
  8. Originally Posted by iamghost View Post
    it need login so i dont have one.

    try with yt-dlp --cookie-from-browser chrome or firefox URL

    edit: i have login now, video is not playing just spining round circle, chrome, firefox and edge is the same

    does it playing on your side?
    yes, its playing after I close AD block
    Quote Quote  
  9. Originally Posted by Karoolus View Post
    Your file: https://www.swisstransfer.com/d/72b3e245-ca2a-4254-bbd1-d2ba08c96ecd

    GoPlay needs some extra stuff because of the periods in the MPD
    I used MPD and its working, have you also used MPD to download?
    Quote Quote  
  10. Search, Learn, Download! Karoolus's Avatar
    Join Date
    Oct 2022
    Location
    Belgium
    Search Comp PM
    Originally Posted by heidy333 View Post
    Originally Posted by Karoolus View Post
    Your file: https://www.swisstransfer.com/d/72b3e245-ca2a-4254-bbd1-d2ba08c96ecd

    GoPlay needs some extra stuff because of the periods in the MPD
    I used MPD and its working, have you also used MPD to download?
    I did, yt-dlp must have fixed it. When they first switched to doubleclick.net it only downloaded part of the video due to periods in the MPD
    Quote Quote  
  11. Originally Posted by Karoolus View Post
    Originally Posted by heidy333 View Post
    Originally Posted by Karoolus View Post
    Your file: https://www.swisstransfer.com/d/72b3e245-ca2a-4254-bbd1-d2ba08c96ecd

    GoPlay needs some extra stuff because of the periods in the MPD
    I used MPD and its working, have you also used MPD to download?
    I did, yt-dlp must have fixed it. When they first switched to doubleclick.net it only downloaded part of the video due to periods in the MPD

    I also used MPD, but it only downloaded part of the video, like 11 mins of 24 mins, may I know what codes you used? Thanks a lot.
    Quote Quote  
  12. Search, Learn, Download! Karoolus's Avatar
    Join Date
    Oct 2022
    Location
    Belgium
    Search Comp PM
    Originally Posted by heidy333 View Post
    Originally Posted by Karoolus View Post
    Originally Posted by heidy333 View Post
    Originally Posted by Karoolus View Post
    Your file: https://www.swisstransfer.com/d/72b3e245-ca2a-4254-bbd1-d2ba08c96ecd

    GoPlay needs some extra stuff because of the periods in the MPD
    I used MPD and its working, have you also used MPD to download?
    I did, yt-dlp must have fixed it. When they first switched to doubleclick.net it only downloaded part of the video due to periods in the MPD

    I also used MPD, but it only downloaded part of the video, like 11 mins of 24 mins, may I know what codes you used? Thanks a lot.
    I edit the MPD before I download the video to merge the periods
    Quote Quote  
  13. Originally Posted by Karoolus View Post
    Originally Posted by heidy333 View Post
    Originally Posted by Karoolus View Post
    Originally Posted by heidy333 View Post
    Originally Posted by Karoolus View Post
    Your file: https://www.swisstransfer.com/d/72b3e245-ca2a-4254-bbd1-d2ba08c96ecd

    GoPlay needs some extra stuff because of the periods in the MPD
    I used MPD and its working, have you also used MPD to download?
    I did, yt-dlp must have fixed it. When they first switched to doubleclick.net it only downloaded part of the video due to periods in the MPD


    I also used MPD, but it only downloaded part of the video, like 11 mins of 24 mins, may I know what codes you used? Thanks a lot.
    I edit the MPD before I download the video to merge the periods
    could you please teach me how to edit it? Thanks a lot.
    Quote Quote  
  14. Search, Learn, Download! Karoolus's Avatar
    Join Date
    Oct 2022
    Location
    Belgium
    Search Comp PM
    Originally Posted by heidy333 View Post
    Originally Posted by Karoolus View Post
    Originally Posted by heidy333 View Post
    Originally Posted by Karoolus View Post
    Originally Posted by heidy333 View Post
    Originally Posted by Karoolus View Post
    Your file: https://www.swisstransfer.com/d/72b3e245-ca2a-4254-bbd1-d2ba08c96ecd

    GoPlay needs some extra stuff because of the periods in the MPD
    I used MPD and its working, have you also used MPD to download?
    I did, yt-dlp must have fixed it. When they first switched to doubleclick.net it only downloaded part of the video due to periods in the MPD


    I also used MPD, but it only downloaded part of the video, like 11 mins of 24 mins, may I know what codes you used? Thanks a lot.
    I edit the MPD before I download the video to merge the periods
    could you please teach me how to edit it? Thanks a lot.
    If you open the MPD, you can see that there is different <period> tags
    Remove the ones that contains the ads (you can tell from the names)
    Then, in the remaining periods, look for the highest resolution representation and remove all the other ones
    You should have 3 periods now, each of them should contain 1 video Representation and 1 audio.
    Copy all the entries from SegmentTimeline in period 2 and 3 to period 1 (copy video into video and audio into audio)

    You should end up with this:
    https://files.videohelp.com/u/303646/WTFock.zip

    manifest.mpd is the original I downloaded from GoPlay
    cleaned.mpd is the resulting MPD that I use to download the video
    Last edited by Karoolus; 26th Dec 2023 at 19:38.
    Quote Quote  
  15. Originally Posted by Karoolus View Post
    Originally Posted by heidy333 View Post
    Originally Posted by Karoolus View Post
    Originally Posted by heidy333 View Post
    Originally Posted by Karoolus View Post
    Originally Posted by heidy333 View Post
    Originally Posted by Karoolus View Post
    Your file: https://www.swisstransfer.com/d/72b3e245-ca2a-4254-bbd1-d2ba08c96ecd

    GoPlay needs some extra stuff because of the periods in the MPD
    I used MPD and its working, have you also used MPD to download?
    I did, yt-dlp must have fixed it. When they first switched to doubleclick.net it only downloaded part of the video due to periods in the MPD


    I also used MPD, but it only downloaded part of the video, like 11 mins of 24 mins, may I know what codes you used? Thanks a lot.
    I edit the MPD before I download the video to merge the periods
    could you please teach me how to edit it? Thanks a lot.
    If you open the MPD, you can see that there is different <period> tags
    Remove the ones that contains the ads (you can tell from the names)
    Then, in the remaining periods, look for the highest resolution representation and remove all the other ones
    You should have 3 periods now, each of them should contain 1 video Representation and 1 audio.
    Copy all the entries from SegmentTimeline in period 2 and 3 to period 1 (copy video into video and audio into audio)

    You should end up with this:
    https://files.videohelp.com/u/303646/WTFock.zip

    manifest.mpd is the original I downloaded from GoPlay
    cleaned.mpd is the resulting MPD that I use to download the video
    thanks a lot for your explanation! I’ll try it after I off work
    Quote Quote  
  16. Hi all, need some help here

    Downloading the video works fine via yt.
    However, there is no audio

    Any ideas how to solve that?

    Thx

    -- solved
    Last edited by tcools; 4th Aug 2024 at 01:59. Reason: solved
    Quote Quote  
  17. Search, Learn, Download! Karoolus's Avatar
    Join Date
    Oct 2022
    Location
    Belgium
    Search Comp PM
    Originally Posted by tcools View Post
    Hi all, need some help here

    Downloading the video works fine via yt.
    However, there is no audio

    Any ideas how to solve that?

    Thx

    -- solved
    When taking the time to edit your post to mark it solved, you should probably also add the solution so others can learn from it instead of having to ask the same thing...
    Quote Quote  
  18. @Karoolus is there a script that can edit the mpd?
    Quote Quote  
  19. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Originally Posted by KB-01 View Post
    is there a script that can edit the mpd?
    If it's not too much trouble, could you upload an original mpd from them? I'm curious to see how it looks.
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  20. Originally Posted by 2nHxWW6GkN1l916N3ayz8HQoi View Post
    Originally Posted by KB-01 View Post
    is there a script that can edit the mpd?
    If it's not too much trouble, could you upload an original mpd from them? I'm curious to see how it looks.
    ofcourse here is two one without ads and one with
    Image Attached Files
    Quote Quote  
  21. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Originally Posted by KB-01 View Post
    ofcourse here is two one without ads and one with
    @karoolus' solution worked well
    https://forum.videohelp.com/threads/412813-Download-from-goplay-be-using-yt-dlp#post2717437

    It's not that hard to build a script from it. Just to confirm, is the actual video 45:42 in duration? Also please give the decryption keys for the manifest infested with ads so I can confirm the output
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  22. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    Seeing as you probably don't have the decryption keys, here's a prototype to @karoolus description

    Code:
    import xmltodict
    
    INPUT_FILE = "mpd_input.mpd"
    OUTPUT_FILE = "mpd_output.mpd"
    
    
    def extend_dict(input_dict, input_key, input_value):
        old_value = input_dict.get(input_key, None)
        if old_value is None:
            input_dict[input_key] = input_value
            return input_dict
    
        for k1, v1 in input_value.items():
            if v1 is None:
                continue
            if type(v1) is not list:
                v1 = [v1]
    
            v2 = old_value.get(k1, None)
            if v2 is None:
                old_value[k1] = v1
                continue
            if type(v2) is not list:
                v2 = [v2]
    
            v2.extend(v1)
            old_value[k1] = v2
        input_dict[input_key] = old_value
    
    
    if __name__ == '__main__':
        with open(INPUT_FILE, 'r') as file:
            mpd_content = file.read()
        xml_dict = xmltodict.parse(mpd_content)
    
        xml_node = xml_dict["MPD"]
        new_nodes = []
        for period in xml_node["Period"]:
            if "-ad-" in period["@id"]:
                continue
            new_nodes.append(period)
    
        segment_dict = {}
        assert len(new_nodes) >= 1
    
        for loop in range(0, 2):
            if loop == 1:
                new_nodes = [new_nodes[0]]
    
            for node in new_nodes:
                adaptations = node["AdaptationSet"]
                if type(adaptations) is not list:
                    adaptations = [adaptations]
    
                for adaptation in adaptations:
                    representations = adaptation["Representation"]
                    if type(representations) is not list:
                        representations = [representations]
    
                    for representation in representations:
                        segment_key = representation.get("@width", representation.get("@audioSamplingRate", None))
                        if loop == 0:
                            extend_dict(segment_dict, segment_key, representation["SegmentTemplate"]["SegmentTimeline"])
                        else:
                            representation["SegmentTemplate"]["SegmentTimeline"] = segment_dict[segment_key]
    
        xml_dict["MPD"]["Period"] = new_nodes
        mpd_content = xmltodict.unparse(xml_dict, pretty=True)
        with open(OUTPUT_FILE, "w") as f:
            f.write(mpd_content)
    Code:
    pip install xmltodict
    The input/output are established at the beginning of the script. Something bonus in this script is that I merge all the resolutions with each other accordingly with the segment timeline, not just the highest one. For your 2 mpds I get 45:42 and 39:55, but I have no way of confirming the output without keys.

    Edit: only for advanced users that are familiar with scripts. Do not contact me if you are new. You can download in 1 command from goplay by running
    Code:
    python widefrog.py "https://www.goplay.be/video/de-expeditie/niets-beter-dan-natuurdocumentairestem-janne-om-de-groep-over-de-duinen-te-krijgen"
    Last edited by 2nHxWW6GkN1l916N3ayz8HQoi; 23rd Mar 2025 at 23:24.
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  23. Originally Posted by 2nHxWW6GkN1l916N3ayz8HQoi View Post
    Originally Posted by KB-01 View Post
    ofcourse here is two one without ads and one with
    @karoolus' solution worked well
    https://forum.videohelp.com/threads/412813-Download-from-goplay-be-using-yt-dlp#post2717437

    It's not that hard to build a script from it. Just to confirm, is the actual video 45:42 in duration? Also please give the decryption keys for the manifest infested with ads so I can confirm the output
    sorry for my late response, awesome when i tried i always get a incorrect playback time i most do something wrong, the actual video 45:42 you got it right
    Image
    [Attachment 81826 - Click to enlarge]

    The key is
    Code:
    --key f0326780f032f032f032f0326780f032:4d3f79c797d49dcbe275c6acb3da0b04
    the key for the 39:55 mpd is
    Code:
    --key f0326424f032f032f032f0326424f032:efcde34ec1348ae471d2aaf56fa69948
    Last edited by KB-01; 28th Aug 2024 at 15:02.
    Quote Quote  
  24. Originally Posted by 2nHxWW6GkN1l916N3ayz8HQoi View Post
    Seeing as you probably don't have the decryption keys, here's a prototype to @karoolus description

    Code:
    import xmltodict
    
    INPUT_FILE = "mpd_input.mpd"
    OUTPUT_FILE = "mpd_output.mpd"
    
    
    def extend_dict(input_dict, input_key, input_value):
        old_value = input_dict.get(input_key, None)
        if old_value is None:
            input_dict[input_key] = input_value
            return input_dict
    
        for k1, v1 in input_value.items():
            if v1 is None:
                continue
            if type(v1) is not list:
                v1 = [v1]
    
            v2 = old_value.get(k1, None)
            if v2 is None:
                old_value[k1] = v1
                continue
            if type(v2) is not list:
                v2 = [v2]
    
            v2.extend(v1)
            old_value[k1] = v2
        input_dict[input_key] = old_value
    
    
    if __name__ == '__main__':
        with open(INPUT_FILE, 'r') as file:
            mpd_content = file.read()
        xml_dict = xmltodict.parse(mpd_content)
    
        xml_node = xml_dict["MPD"]
        new_nodes = []
        for period in xml_node["Period"]:
            if "-ad-" in period["@id"]:
                continue
            new_nodes.append(period)
    
        segment_dict = {}
        assert len(new_nodes) >= 1
    
        for loop in range(0, 2):
            if loop == 1:
                new_nodes = [new_nodes[0]]
    
            for node in new_nodes:
                adaptations = node["AdaptationSet"]
                if type(adaptations) is not list:
                    adaptations = [adaptations]
    
                for adaptation in adaptations:
                    representations = adaptation["Representation"]
                    if type(representations) is not list:
                        representations = [representations]
    
                    for representation in representations:
                        segment_key = representation.get("@width", representation.get("@audioSamplingRate", None))
                        if loop == 0:
                            extend_dict(segment_dict, segment_key, representation["SegmentTemplate"]["SegmentTimeline"])
                        else:
                            representation["SegmentTemplate"]["SegmentTimeline"] = segment_dict[segment_key]
    
        xml_dict["MPD"]["Period"] = new_nodes
        mpd_content = xmltodict.unparse(xml_dict, pretty=True)
        with open(OUTPUT_FILE, "w") as f:
            f.write(mpd_content)
    Code:
    pip install xmltodict
    The input/output are established at the beginning of the script. Something bonus in this script is that I merge all the resolutions with each other accordingly with the segment timeline, not just the highest one. For your 2 mpds I get 45:42 and 39:55, but I have no way of confirming the output without keys.
    thankyou for your script! see my previous replay for the key
    Quote Quote  
  25. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    No idea what the key is supposed to be for non-ad one, but this one worked for the ad. So I don't think there's anymore any need for testing. Apparently you still need to merge them, regardless of there being ads or not, simply because you have lots of periods xml nodes that mess it up.

    I know the title of the post is "download...using yt-dlp" but you should use something that automatically decrypts, like N_m3u8DL-RE. yt-dlp is good for non-DRM

    In your case I ran the script for manifest2.mpd in your zip archive and then
    Code:
    N_m3u8DL-RE mpd_output.mpd --check-segments-count false -M format=mkv --key f0326780f032f032f032f0326780f032:4d3f79c797d49dcbe275c6acb3da0b04
    The video
    https://www.transfernow.net/dl/20240828O7eKgixV

    Edit: here's video for non-ad
    https://www.transfernow.net/dl/20240828ASv7GKKs
    Last edited by 2nHxWW6GkN1l916N3ayz8HQoi; 28th Aug 2024 at 15:07.
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  26. Member aqzs's Avatar
    Join Date
    Mar 2024
    Location
    Paris
    Search Comp PM
    I haven't tried that tool for a while but dash-mpd-cli have '--minimum-period-duration' parameter, maybe it works for skipping ads ?
    Quote Quote  
  27. Originally Posted by 2nHxWW6GkN1l916N3ayz8HQoi View Post
    No idea what the key is supposed to be for non-ad one, but this one worked for the ad. So I don't think there's anymore any need for testing. Apparently you still need to merge them, regardless of there being ads or not, simply because you have lots of periods xml nodes that mess it up.

    I know the title of the post is "download...using yt-dlp" but you should use something that automatically decrypts, like N_m3u8DL-RE. yt-dlp is good for non-DRM

    In your case I ran the script for manifest2.mpd in your zip archive and then
    Code:
    N_m3u8DL-RE mpd_output.mpd --check-segments-count false -M format=mkv --key f0326780f032f032f032f0326780f032:4d3f79c797d49dcbe275c6acb3da0b04
    The video
    https://www.transfernow.net/dl/20240828O7eKgixV

    Edit: here's video for non-ad
    https://www.transfernow.net/dl/20240828ASv7GKKs
    thankyou for your help
    Quote Quote  
  28. Feels Good Man 2nHxWW6GkN1l916N3ayz8HQoi's Avatar
    Join Date
    Jan 2024
    Location
    Pepe Island
    Search Comp PM
    No problem. You should be thanking @karoolus as well. I just converted his words into code, almost ad verbatim. You should try @aqzs suggestion as well. After all, these "patch" scripts are only meant as a temporary solution until the big main download tools fix their stuff. Can't say I care that much to try dash-mpd-cli out, but it's worth a shot
    --[----->+<]>.++++++++++++.---.--------.
    [*drm mass downloader: widefrog*]~~~~~~~~~~~[*how to make your own mass downloader: guide*]
    Quote Quote  
  29. Originally Posted by 2nHxWW6GkN1l916N3ayz8HQoi View Post
    No problem. You should be thanking @karoolus as well. I just converted his words into code, almost ad verbatim. You should try @aqzs suggestion as well. After all, these "patch" scripts are only meant as a temporary solution until the big main download tools fix their stuff. Can't say I care that much to try dash-mpd-cli out, but it's worth a shot
    you are absolutely right i forgot to thank him @karoolus thankyou so much for explaining how to fix the mpd @2nHxWW6GkN1l916N3ayz8HQoi thank you for you code, thanks to you i can download without issues now. Yes i will try dash-mpd-cli, my main downloader is N_m3u8DL-RE with your script is a golden combination i hope that N_m3u8DL-RE will fix this soon. Not sure if Dash Role Scheme fix this in the N_m3u8DL-RE_v0.2.1-beta
    Last edited by KB-01; 29th Aug 2024 at 07:17.
    Quote Quote  
  30. Search, Learn, Download! Karoolus's Avatar
    Join Date
    Oct 2022
    Location
    Belgium
    Search Comp PM
    No problem

    I still use this in my own downloader for GoPlay daily
    Quote Quote  



Similar Threads

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