Skip to content

Buffer audio streams and serve them back with a user-defined offset

License

Notifications You must be signed in to change notification settings

goshasawicka/streamshift

Repository files navigation

Travis Coverage Status Github All Releases PyPI

streamshift

Synopsis

Listening to radio station originating in different timezone is odd - nighttime programme is not exactly what you'd expect in the morning. Enter streamshift - buffer audio streams, and serve them back with a user-defined offset.

Config

[global]
buffer_dir = ./data/
port = 5000

[stream1]
url = http://stream3.polskieradio.pl:8904/
buffer = 86400 # number of seconds to buffer

Running

Buffer audio streams

streamshift --mode buffer

Serve over http

streamshift --mode web

Listening (with vlc)

vlc http://localhost:<port>/station/<station_name>/<offset_in_sec>

Help

streamshift --help

Setup & hacking

virtualenv .
. ./bin/activate
pip install -r requirements.txt
nosetests --exe
(...)
python setup.py sdist upload -r pypi

About

Buffer audio streams and serve them back with a user-defined offset

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages