Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nikhilkumarsingh/197dcb3e4bd81ef50dc28d565010ab18 to your computer and use it in GitHub Desktop.
Save nikhilkumarsingh/197dcb3e4bd81ef50dc28d565010ab18 to your computer and use it in GitHub Desktop.
Video Stream Downloader
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sbdipun
Copy link

sbdipun commented Oct 3, 2021

Can we download movies from OTT?

@PrashantSingh7
Copy link

nikhil bhai I'm facing a minor problem in the above program. I'm beginner in python can you help......please
import requests
import m3u8
url = "https://vcdn.spayee.in/spees/w/o/5e356a710cf24531c92ac49f/v/5e63c83c0cf26922cfe928c8/u/5ef4a91e0cf25c6d8dcaad36/t/2d5b70bd0405c2c352c8b93b9180f3e5/p/assets/videos/5e356a710cf24531c92ac49f/2020/03/07/5e63c83c0cf26922cfe928c8/hls_350k_.m3u8"
r = requests.get(url)
m3u8_master = m3u8.loads(r.text)
m3u8_master.data['segments'][0]['uri']

i dont know where I'm going wrong

Bro, Which video link is this ?

@featuriz
Copy link

featuriz commented Apr 8, 2023

Hey, If you do pip install. Check the result. It may install in local/bin directory and if its not in path you can't use those directly in command prompt. You have to either cd to that dir or add it to path.

Like old school days. Running Java :)

@chapmanjacobd
Copy link

chapmanjacobd commented Sep 22, 2023

You don't need to download in python. Just pass the headers directly to ffmpeg and it will work:

ffmpeg -headers 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0' -headers 'Referer: https://blah.com/' -i "https://ss216.livepie.com/stream/A/AA/tststst/master.m3u8" out.mp4 

@raghavshende
Copy link

Hello I am facing some issues and would be appreciated if you take some time to help me out of this . I had an url (
https://d1d34p8vz63oiq.cloudfront.net/1c582537-d008-4d1e-a395-ac24caae41de/dash/audio/248.mp4) This downloads the video from streaming platform but it does not play. What to do further kindly guide me

@cachemoney11
Copy link

What if there is nothing for playlists it's just []

@bekich97
Copy link

bekich97 commented Apr 20, 2024

why there is no sound in video?

@desho20
Copy link

desho20 commented May 22, 2024

How to download a video protected by vdocipher ?

@yonkidoodle
Copy link

Can you please make a download button for this? I have no idea how to code and have no idea what I am doing. I got python and whatnot but no one is explaining how to download and run this PLEASEEEEE

@bipinkrish
Copy link

Can you please make a download button for this? I have no idea how to code and have no idea what I am doing. I got python and whatnot but no one is explaining how to download and run this PLEASEEEEE

in browser search google collab, create a new notebook, copy the code, click run button

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment