Skip to content

Instantly share code, notes, and snippets.

@ATouhou
Created February 10, 2019 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ATouhou/da0c4ac3ec42a9ee156aefb7cded5832 to your computer and use it in GitHub Desktop.
Save ATouhou/da0c4ac3ec42a9ee156aefb7cded5832 to your computer and use it in GitHub Desktop.
Download from dr.dk (Windows guide)
1) Download ffmpeg (https://www.videohelp.com/software/ffmpeg)
2) Unzip .exe files in your windows folder (ex. C:/Windows)
3) Go to the video you want to download. Look in the developer console for XHR request containing index_X_av.m3u8. A file called master.m3u8 contains different m3u8 directories according to which resolution it finds best for your screen. In my case X was 5.
4) Open CMD.
5) Use the command:
ffmpeg -i VIDEO_URL_ENDS_ON_M3U8 -vcodec copy -acodec copy -bsf:a aac_adtstoasc output.mp4
and replace VIDEO_URL_ENDS_ON_M3U8 with the URL that looks something like (https://drod03h-vh.akamaihd.net/i/dk/clear/streaming/7b/zzzzzzzzzzzzzzzzz/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_,273,406,754,1473,2102,3310,.mp4.csmil/index_5_av.m3u8?null=0
6) Video file can be found in "C:/Windows/system32/output.mp4".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment