Created
May 29, 2023 21:31
-
-
Save lobotony/44fc7303214854d121ea3bc27147d6e0 to your computer and use it in GitHub Desktop.
Download video stream described in .m3u8 file as found on e.g. Patreon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is just a quick note-to-self. | |
I haven't looked into any details regarding .m3u8, .ts or more compact ffmpeg usage. | |
Originally from here: https://unix.stackexchange.com/questions/687641/how-can-i-download-a-video-from-an-m3u8-file | |
* install ffmpeg | |
* download the .m3u8 file | |
* when logged in on Patreon, on Mac and Safari, this is what you get when you right-click on the embedded player and choose "Download Video" | |
* this should give you a file that can be used as thingy.m3u8 below | |
* download the stream with ffmpeg | |
* ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i thingy.m3u8 -c copy my_movie.ts | |
* convert to video | |
* ffmpeg -i my_movie.ts -map 0 -c copy output.mkv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment