nhldl icon indicating copy to clipboard operation
nhldl copied to clipboard

NFL download

Open Tzelon opened this issue 7 years ago • 4 comments

Hey, First, thank you for your great work. I appreciate it. I have two questions.

  1. Do you know if the script can work on NFL.TV stream also?
  2. 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

Tzelon avatar Jun 06 '17 14:06 Tzelon

  1. no idea, I don't have an NFL account
  2. 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.

myteron avatar Jun 06 '17 19:06 myteron

Where can I find the main.py and tests In the code I can only see nhldl.sh

Tzelon avatar Jun 06 '17 20:06 Tzelon

oops sorry mixed up the projects you can find them here https://github.com/cmaxwe/dl-nhltv nhldl is a good read tho.

myteron avatar Jun 06 '17 20:06 myteron

Thank you!

Tzelon avatar Jun 07 '17 07:06 Tzelon