Coder Social home page Coder Social logo

chromeline's Introduction

chromeline

Live stream line in on a Pi to a Chromecast.

Setup on Pi

First:

chmod 755 install_prerequisites.sh
./install_prerequisites.sh

Then hook up some magic:

gconftool-2 -t string --set /system/gstreamer/0.10/default/audiosrc pulsesrc

Allow scripts to execute:

chmod 755 push_to_icecast.sh

Icecast configuration

Edit /etc/icecast2/icecast.xml

Change:

burst-on-connect = 0
burst-size = 0

Then:

sudo /etc/init.d/icecast2 restart

Input device name

Need to know your input sound card name for the config:

pactl list

Then update the config.ini with it (and the other settings you'll need).

Starting chromeline

For now, this will be a daemon later:

sudo pip install virtualenv
virtualenv venv
source venv/bin/activate

pip install -r requirements.txt
python chromeline.py

As soon as the desired Chromecast is detected, line in will be streamed to it.

For auto-starting for now, I am doing (in crontab):

@reboot cd /home/pi/chromeline ; venv/bin/python chromeline.py

chromeline's People

Contributors

thisismyrobot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mikezm

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.