Giter Site home page Giter Site logo

msoftware / lossless-audio-streamer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gdebat/lossless-audio-streamer

0.0 2.0 0.0 14 KB

Bash script to automatically stream audio to an Icecast2 server

License: GNU General Public License v2.0

Shell 100.00%

lossless-audio-streamer's Introduction

Icecast-Auto-Streamer

Bash script to automatically stream audio to an Icecast2 server

This script will automatically start an Icecast streaming of a particular PulseAudio sink when it detects that the sink is receiving audio. To create a dummy PulseAudio sinke place something like the following inside your default.pa config file: load-module module-null-sink sink_name=icecast sink_properties=device.description=Icecast then use your PulseAudio settings (pavucontrol or otherwise) to redirect a client to the sink. Please note that this script will stream FLAC audio to preserve quality as much as possible and preset to L1 compression for lowest CPU usage (bandwidth is ~1.5Mbit/s), which in turn is guaranteed to be usable only in LAN environments. For slower networks either increase the COMPRESSION value or consider modifying the gstreamer chain to use other (lossy) compression methods eg. vorbis: gst-launch-0.10 pulsesrc device=$PULSEAUDIO_SINK.monitor ! audio/x-raw-int,rate=44100,channels=2,width=16 ! audioconvert ! vorbisenc quality=0.5 ! oggmux ! shout2send ip=$ICECAST_IP port=$ICECAST_PORT password=$ICECAST_PASSWORD mount=$ICECAST_MOUNT

Dependencies: pulseaudio (obviously), pactl, gstreamer 0.10, IceCast2 server (if streaming to local), mpc (if MPD is enabled)

lossless-audio-streamer's People

Contributors

gdebat avatar

Watchers

Michael jentsch 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.