GithubHelp home page GithubHelp logo

mlbtv-docker's Introduction

MLB.TV Downloader

This is a docker image which can be used to download and transcode a game from mlb.tv to a format suitable to watch on for example an ipad.

I use it to create an mp4 with the video from the TV video stream and the radio audio stream.

The scripts also detects any silence longer than 5 seconds in the TV audio feed and cuts that section out from both the video and the audio. This removes the commercial breaks since they are silent in the TV audio stream.

For locally broadcast games, both the home and away audio streams are available and the script will select the one for the team given on the command line. For nationally broadcast games only the home radio feed is available.

Podcast feed

If you have a webserver set up to point to the video directory then you can access the file podcast.xml with a podcast app capable of displaying video. Personally, I use this with a cron job to download games over night to have them freshly available in my phone when I wake up in the morning.

The base url to the podcast file can be modified with the BASEURL environment variable in docker-compose.yml.

Requirements

  • docker
  • docker-compose

Running

Build the image with

docker-compose build

Then run it with:

docker-compose run --rm mlbtv /mlbviewer/mlbplay.py v=chc

This will create an mp4 file in the videos directory.

mlbtv-docker's People

Contributors

mattiasa avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.