GithubHelp home page GithubHelp logo

honeycomb-video-streamer's Introduction

honeycomb-video-streamer

Provides a postgres storage API for storing and serving video

Also includes a prepare service for building streamable video from raw classroom video

Development

Setup poetry

If using pyenv, select/set your pyenv environment and run:

  poetry env use $(pyenv which python)

Then install packages:

  poetry install

Run the python streaming service:

  • Copy .env.template to .env

    cp .env.template .env
    
  • Update ENV vars as needed

  • Run the streaming service with docker-compose (build happens automatically)

    just docker-run-streaming-service
    
  • The streaming API should be exposed via port 8000

Prepare video:

  • Copy ./video_prepare/.env.template to ./video_prepare/.env

    cp ./video_prepare/.env.template ./video_prepare/.env
    
  • Update ENV vars as needed

Run via Docker:

  • Build all video-streamer services and stand up the streaming DB + API service

    just build
    just docker-run-streaming-service
    
  • Run the video prepare job (this example fetches video for greenbrier on 5/27/2021):

    docker run -ti \
      --rm \
      --volume $(pwd)/public/videos:/data/videos \
      --network honeycomb-video-streamer_default \
      --env-file ./video_prepare/.env \
      --env ENVIRONMENT_NAME=greenbrier \
      --env VIDEO_NAME=2021-05-27 \
      --env START_TIME=2021-05-27T09:00-0600 \
      --env END_TIME=2021-05-27T09:10-0600 \
      --env REWRITE=true \
      --env VIDEO_STREAM_SERVICE_URI=http://streamer:8000 \
      honeycomb-video-streamer-prepare:latest
    

Run locally:

  • Run: just install-dev

  • Run (this example fetches video for greenbrier on 5/27/2021):

    python -m video_prepare prepare-videos-for-environment-for-time-range \
    --environment_name greenbrier \
    --video_directory ./public/videos \
    --video_name 2021-05-27 \
    --start 2021-05-27T09:00-0600 \
    --end 2021-05-27T09:10-0600 \
    --rewrite
    

honeycomb-video-streamer's People

Contributors

btalberg avatar optimuspaul avatar

Watchers

 avatar James Cloos avatar Megan Wood avatar Theodore Quinn avatar  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.