Home | Trees | Indices | Help |
|
---|
|
A simple library to download, slice and search NFL game footage on a play-by-play basis.
This library comes with preloaded play-by-play meta data, which describes the start time of each play in the game footage. However, the actual footage does not come with this library and is not released by me. This package therefore provides utilities to batch download NFL Game Footage from the original source.
Once game footage is downloaded, you can use this library to search plays and construct a playlist to play in any video player.
Classes | |
Play Represents a single play with meta data that ties it to game footage. |
|
PlayTime Represents a footage time point, in the format HH:MM:SS:MM |
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
__package__ =
|
Function Details |
Returns the path to the full video for a given game inside an nflvid footage directory. If the full footage doesn't exist, then None is returned. |
Returns a list of all footage broken down by play inside an nflvid footage directory. The list is sorted numerically by play id. If no footage breakdown exists for the game provided, then an empty list is returned. |
Starts an ffmpeg process to download the full footage of the given game with the quality provided. The qualities available are: 400, 800, 1200, 1600, 2400, 3000, 4500 with 4500 being the best. The footage will be saved to the following path: footage_dir/{eid}-{gamekey}/full.mp4 If footage is already at that path, then a LookupError is raised. A full game's worth of footage at a quality of 1600 is about 2GB. |
Returns an ordered dictionary of all plays for a particular game. The game must be a nflgame.game.Game object. If there is a problem retrieving the data, None is returned. If the game is over, then the XML data is saved to disk. |
Returns a Play object given a game and a play id. The game must be a nflgame.game.Game object. If a play with the given id does not exist, None is returned. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jul 18 22:33:23 2013 | http://epydoc.sourceforge.net |