https://github.com/torvaney/motd-extractor
Extract highlights from BBC's match of the day
https://github.com/torvaney/motd-extractor
Last synced: about 1 year ago
JSON representation
Extract highlights from BBC's match of the day
- Host: GitHub
- URL: https://github.com/torvaney/motd-extractor
- Owner: Torvaney
- License: mit
- Created: 2016-08-25T19:24:08.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-23T18:35:02.000Z (over 9 years ago)
- Last Synced: 2025-04-06T17:06:43.997Z (about 1 year ago)
- Language: Jupyter Notebook
- Size: 130 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Automated MotD highlights extractor
This repo contains a small python (3) module for automatically removing the banal and uninsightful commentary from Match of the day, leaving you with just footage of the actual football you wanted to watch in the first place.
A slightly fuller explanation of the method and motivation behind this project can be found in [this blog post](https://statsandsnakeoil.wordpress.com/2016/08/29/improving-match-of-the-day-with-python/)
## Example
You can either use this in python or directly from the command line.
Python:
```python
import scoreboard_slicer as motd
my_clip = motd.load_video('full_fat_motd.mp4')
motd.extract_highlights(my_clip, 'highlights_only.mp4')
```
Terminal:
```terminal
motd-extractor $ python3 scoreboard_slicer.py [full video filename] [output video filename]
```
This will take the video saved in `/motd-extractor/video/[full video filename]` and save a trimmed version to `/motd-extractor/output/[output video filename]`
The module contains two primary functions:
* `load_video` for loading the video (obviously). This is effectively just a wrapper around `moviepy.editor.VideoFileClip`.
* `extract_highlights` for identifying, trimming and joining back together the match highlights.
And that's more or less all there is to it.