Code Monkey home page Code Monkey logo

raspystream's Introduction

RaspyStream

This is a simple-to-use tool to stream on Twitch or other streaming services from a Raspberry Pi and the new camera module v3. There are a lot of projects like this online the problem is that most of them use the old Raspivid which is not supported anymore, that's why I created this project adapting old programs to the new Libcam library. You can check a step-by-step gide on mi instructables RaspiStream

Info

This project consists of 3 scripts made for streaming without audio, with music, and with a microphone all from the Raspberry Pi, there is also a script name ScreenIt.sh that will run the stream in a screen session.

Key-features

  • 1080p 30fps Stream.
  • HDR option.
  • Autofocus.
  • Microphone, music playlist, or blank audio options.
  • Bitrate adjustable for compromise bandwidth

Dependecies

This has been tested on:

  • Raspberry Pi 4B
  • Camera module v3 Wide and normal
  • Raspberry Pi OS Lite(64-bit), Kernel: 5.15, Debian: 11 (bullseye)
  • Ffmpeg library v4.3.5

Instructions

First of all download the Ffmpeg. Modify the keys.txt with the URL and private key from twitch, then you can use the ScreenIt.sh script to run it in a screen session or just use any of the RaspyStream*.sh Modify the keys.txt with the URL and private key from twitch, then you can use the ScreenIt.sh script to run it in a screen session or just use any of the RaspyStream*.sh, all the files are documented so you can change parameter like the resolution, the HDR or the bitrate easyli.

  • RaspyStreamMusic.sh: This script plays .wav files in the Music folder to run it first upload all your wav files to the folder Music then modify the file Playlist.txt and write the name of your files just like the example songs. It will be played in the order and you can repeat the files, once it finishes all it will start again, note that the default songs are blank.
  • RaspyStreamMic.sh: This script is for conecting a microphone, you will need to edit the script in line 62 where is says "InputA=3,0" change it to what the comand gives you back in the "card:" and "device:". For the example bellow you wil have to write : "InputA=3,0"
pi@RaspyStream:~/RaspyStream-main $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 3: U188 [U-188], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

you wil have to write : "InputA=3,0"

Contact

I will be happy to discuss the proyect or any questions here or in my socials

[email protected] [email protected] Instagram @abyteofthat

raspystream's People

Contributors

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