Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFL download #7

Open
Tzelon opened this issue Jun 6, 2017 · 4 comments
Open

NFL download #7

Tzelon opened this issue Jun 6, 2017 · 4 comments

Comments

@Tzelon
Copy link

Tzelon commented Jun 6, 2017

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

@myteron
Copy link
Contributor

myteron commented Jun 6, 2017

  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.

@Tzelon
Copy link
Author

Tzelon commented Jun 6, 2017

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

@myteron
Copy link
Contributor

myteron commented Jun 6, 2017

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

@Tzelon
Copy link
Author

Tzelon commented Jun 7, 2017

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants