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
Results 1 to 6 of 6
  1. mpd have better bitrate..

    Image
    [Attachment 73588 - Click to enlarge]


    Code:
    import requests
    import re
    
    print('test link: https://player.restream.io/?token=2c8a9196085b4e1c9c25450451f55bd8&vwrs=1\n')
    
    link = input('link: ')
    link_id = re.findall(r'token=(.*)&', link)[0].strip()
    
    headers = {
        'authority': 'player-backend.restream.io',
        'content-type': 'application/json',
        'origin': 'https://player.restream.io',
        'player-version': '0.9.2',
        'referer': 'https://player.restream.io/',
        'user-agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36',
    }
    
    params = {
        'instant': 'true',
    }
    
    response = requests.get('https://player-backend.restream.io/public/videos/'+link_id+'', params=params, headers=headers).json()
    
    videoUrlDash = response['videoUrlDash']
    print(f'\nmpd link: \n{videoUrlDash}')
    videoUrlHls = response['videoUrlHls']
    print(f'\nm3u8 link: \n{videoUrlHls}')
    Quote Quote  
  2. M3U8 link does not work anymore, can you get a permanent m3u8 from it.
    Quote Quote  
  3. There is no permanent m3u8


    In post #2 sk8ordi3 wrote quite the exquisite piece of coding in order to help you.


    Why not consider using it. At least study what was written.


    Manual way


    In dev tools filter on 2c8a9196085b4e1c9c25450451f55bd8?instant=true


    Look at the response for videoUrlHls <== this response is what you are after


    "videoUrlHls": "https://customer-gllhkkbamkskdl1p.cloudflarest..................... ..


    You were not given a fish but instead a rod and hook to catch the fish. But, alas, you had no idea as to how to use the tools.
    Quote Quote  
  4. use this code to play your video


    Code:
    curl -ks "https://player-backend.restream.io/public/videos/2c8a9196085b4e1c9c25450451f55bd8?instant=true" | jq -r .videoUrl | xargs mpv



    jq xargs and mpv are all free programs
    Quote Quote  
  5. How would I use this code? please help me.
    Quote Quote  



Similar Threads

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