nhldl
nhldl copied to clipboard
NFL download
Hey, First, thank you for your great work. I appreciate it. I have two questions.
- Do you know if the script can work on NFL.TV stream also?
- Can you explain in more details the flow of the script? I understand that you go a fetch the m3u8 file -> open the file and reading each line -> checking to see if the line is a new key and IV -> ?
Thanks again
- no idea, I don't have an NFL account
- main flow can be seen in main.py see also tests/data for some of the files the unit tests might explain some details. Flow:
- try to find new game checkForNewGame parsing schedule.gamecontent.media.epg Below is all in download_nhl:
- fetch tests/data/master.m3u8 for best quality stream like 3500K/3500_complete-trimmed.m3u8
- that master points to a list of urls representing the encrypted mpeg and keys.
- build up a list of urls (see tests/data/input.m3u8)
- get aria2c to download the list
- decrypt
- use ffmpeg to put them together into one file
- use ffmpeg to detect silences indicating a break
- use ffmpeg to split into sections without silence
- put all back together.
How the authentication works is still a mystery to me.
Where can I find the main.py and tests In the code I can only see nhldl.sh
oops sorry mixed up the projects you can find them here https://github.com/cmaxwe/dl-nhltv nhldl is a good read tho.
Thank you!