Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 44 You must be signed in to star a gist
  • Fork 25 You must be signed in to fork a gist
  • 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
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mhdphp
Copy link

mhdphp commented May 18, 2019

excellent!

@PriyamVerma
Copy link

hey buddy your video is good enough, but i m not aware of python programming, i need some help
may u mak a program so that i just paste the url and just click on download button ???

@stmckeni
Copy link

stmckeni commented Feb 9, 2020

If you have linux, there are other software that does that. for free. everything is free (more or less) if you use linux. Have you tried python? what are you struggling with? python dynamics or programming in general? There are tons of tutorials, there is an app called sololearn that is free (with ads) that teach you so many programming languages as well as python. It helped me learn C and C++ and I go back just for refreshers every now and again. I think he is teaching and I got it. In fact this has helped me learn so much as well that I can easily do with php and C++ and such.

@suraj7007
Copy link

nikhil bhai I'm facing a minor problem in the above program. I'm beginner in python can you help......please

@suraj7007
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

@ashishpaul99
Copy link

bro even after installing pip m3u8 but while i'm using code in jupyter notebook it showing "no module found".please help me.

@manish2538
Copy link

can be download video from mxplayer too?

@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

@chaseneff11
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?

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