Git Product home page Git Product logo

gr-streamsink's Introduction

gr-streamsink

A GNURadio sink block to stream the audio to SHOUTcast or Icecast.

Thanks

Thanks to Daniel Nöthen, his code from butt (broadcast using this tool) was very helpful.

Dependencies

GNURadio and the LAME library (libmp3lame-dev) must be installed and you need a SHOUTcast or Icecast server running.

Installation

$ mkdir build
$ cd build
$ cmake ../
$ make
$ sudo make install
$ sudo ldconfig

Usage

The block is available in grc (gnuradio-companion). See the examples directory for some flow graphs and python applications.

Usage in python

Import:

import streamsink
```

Create the sink block:
```
sink = streamsink.streamsink(
        samplerate,         # The input samplerate
        bitrate,            # The mp3 bitrate
        server_type,        # "shoutcast" or "icecast"
        address,            # IP address or hostname of the server
        port,
        password,
        icecast_user,       # Only required if using Icecast
        icecast_mountpoint) # Only required if using Icecast
```

Add additional info and properties for the SHOUTcast / Icecast stream:
```sink.set_stream_public(False)
sink.set_stream_name("Your stream name")
sink.set_stream_genre("Your genre")
sink.set_stream_url("example.org")
sink.set_stream_description("Your description") # Only for Icecast
```

gr-streamsink's People

Contributors

martinleolehner avatar

Stargazers

Jason Todd avatar Christer Lien avatar HackSmith avatar Joe Gilkey avatar Rashid Altayer avatar

Watchers

 avatar

Forkers

gdrapp

gr-streamsink's Issues

AttributeError: 'module' object has no attribute 'streamsink'

Hi!
I can import streamsink in python file, and also can get streamsink block in grc. when i run python file, yields the following error:
self.audio_sink = streamsink.streamsink(output_samp_rate, stream_bitrate, stream_type,AttributeError: 'module' object has no attribute 'streamsink'.
Can you give me some help?
Thank you very much!

Icecast server connection

Hello, I am still confused about the server specification. I already have an icecast server running on IP 35.197.156.83, but still can't connect to it.
image

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.