Skip to content

Instantly share code, notes, and snippets.

@gabrieljcs
Last active November 19, 2025 16:38
Show Gist options
  • Select an option

  • Save gabrieljcs/7e8cc236bd08cdfe995f188d6380c4ae to your computer and use it in GitHub Desktop.

Select an option

Save gabrieljcs/7e8cc236bd08cdfe995f188d6380c4ae to your computer and use it in GitHub Desktop.
Ripping HLS

https://developer.apple.com/streaming/

  1. Get .m3u8 and download all .ts wget [url]/[filename]{0..xxx}.ts
  2. Save key to file (get key URI from .m3u8)
  3. Rename .m3u8 key URI to file
  4. Join and create final video ffmpeg -protocol_whitelist file,tls,tcp,https,crypto -allowed_extensions ALL -i [filename].m3u8 -c copy [output].mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment