GithubHelp home page GithubHelp logo

hmsuorg / icestream Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 146 KB

HMSU IceStream - a CLI tool used to stream HMSU radio shows

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%
gstreamer icecast icecast-server python3

icestream's Introduction

Build Status PyPI

HMSU Online Radio - Icestream

icestream.py is CLI tool, that play a role of wrapper, around gst-launch, used for real time audio streaming, during HMSU Radio shows.

The tool requires gstream so you have to ensure it is installed.

Installation

First let's clone the project:

$ git clone https://github.com/hmsuorg/icestream

Next let's install it:

$ cd icestream
$ pip install .

Usage

For help type:

$ icestream.py --help

Example usage:

$ icestream.py --password YOURPASSWORD --desc "HMSU Radio Show" --ip YOUR_ICECAST_SERVER_IP \
    --port 8888

the above command will create lamemp3enc and will stream the data to YOUR_ICECAST_SERVE_IP on port 8888.

the default bitrate is 128kbps if you wish to change the value use the --bitrate option. The valid values are: 96, 128, 192, 320 kbps.

Testing

$ python setyp.py test

or

$ python -m unittest discover

for code coverage:

$ pip install coverage
$ coverage run --source=. -m unittest
$ coverage report -m

Contributing

For new a feature we using a git flow workflow, so please follow it. When you are ready push your feature. Then will be merged into a develop branch.

Author: Dimitar Dimitrov [email protected]

icestream's People

Contributors

dimddev avatar realies avatar

Watchers

 avatar  avatar

Forkers

estacionckweb

icestream's Issues

Use gst-python

Currently, the CLI builds a pipeline by spawning a gst-launch instance which is primarily a debugging tool. While simple, gst-launch does not provide handlers for events such as a network disrupt or unsuitable input audio without doing silly things such as parsing the log. Transitioning the pipeline make-up to gst-python would provide various useful bindings that would allow for automating and further developing the tool while adding just a couple hundred of KBs to the project dependencies.

Add option to record

Tee allows for splitting the pipeline which would allow adding the ability to record radio shows locally while streaming them. An additional CLI flag could allow for a raw wave or re-encoded filesink.

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.