Coder Social home page Coder Social logo

raspberrypi-twitch-scripts's Introduction

Twitch as a web camera streaming service

This repo has a script I'm using to setup a Raspberry pi stream using the v2 camera module.

Directions

Put streamit in /usr/local/bin, and then make it executable with chmod +x /usr/local/bin/streamit

Next, setup a cron job that will run streamit once per minute. This is required because sometimes the twitch server will error out and drop your ffmpeg clinet. Note: your subscribers will be spammed with a live stream started notification each time your twitch webcam crashes and restarts, unless they disable this notification.

Run crontab -e

Then add a new crontab with:

1-59 * * * * /usr/local/bin/streamit

I've had this running for about a month at this point with fairly good results. The script limits the resolution to 720 with 10 frames per second amd has audio disabled (my camera is behind a window). The CPU usage is low and it seems pretty stable. I didn't have much luck with 1920x1080, as I noticed frames dropping and the stream would hang or not start. Let me know if you find a configuration that streams 1920x1080 smoothly on a Raspberry Pi B+.

raspberrypi-twitch-scripts's People

Contributors

chris408 avatar

Stargazers

 avatar

Watchers

 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.