GithubHelp home page GithubHelp logo

bash-streamer's Introduction

bash-streamer

This is the Docker container we're using for our chicken coop live stream to Twitch. It uses multiple input channels to create a split screen, weather overlay, and streaming music, and allows external processes to switch the cameras.

It assumes there is a /srv/mp3 directory with the music that will be played, and for now assumes a subdirectory called BeansBlvd (the name of our twitch channel).

Changing cameras

Cron tasks can switch cameras on the stream at set times of day. Here's a copy of /etc/cron.d/cam_auto_change we're using:

SHELL=/bin/bash

# cameras:
# 3 - IR inside
# 2 - IR front
# 1 - standard front
# 0 - standard rear

# evening: IR cameras
#0 20 * * * pi docker exec ffmpeg-pusher bash -c "echo streamselect@left  map 3 | /usr/local/bin/zmqsend"
0 20 * * * pi docker exec ffmpeg-pusher bash -c "echo streamselect@right map 2 | /usr/local/bin/zmqsend"

# daytime: standard cameras
0 6 * * * pi docker exec ffmpeg-pusher bash -c "echo streamselect@left  map 0 | /usr/local/bin/zmqsend"
0 6 * * * pi docker exec ffmpeg-pusher bash -c "echo streamselect@right map 1 | /usr/local/bin/zmqsend"

Known Issues

Lots. The thing isn't 100% stable. A lot needs to be done to generalize some of the settings for normal people to use. This is enough to get started though.

bash-streamer's People

Contributors

poorsquinky 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.