Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up audio stream from remote server

I've got a very general question. Unfortunately I wasn't able to find any tips online at all. There seem to be a lot of info on how to set up a radio stream from your home, but not from remote server.

I have a webpage with appropriate hosting set up. What ideally I'd like to do is to upload audio files over there and organize a radio stream. In addition, I'm planning to write some scripts to have streaming patterns, that is some customized scheduling...

Which tools do I need to do that? Firstly, to just have a .txt file with order of files to play and secondly, if possible the best way to customize the order.

like image 882
sashkello Avatar asked Nov 17 '25 14:11

sashkello


2 Answers

there are a lot of options documented to implement this, which can be found via google. for example:

http://nunzioweb.com/streaming_audio-example.htm

http://www.selfseo.com/story-13698.php

http://www.iradeo.com/

like image 183
jsteinmann Avatar answered Nov 19 '25 10:11

jsteinmann


If you have sshd on your remote server, you can also stream your files manually via ssh, like this:

ssh [email protected] "cat music.mp3" | mplayer -

I find this much easier to use in a script than 3rd party streaming software.

EDIT: If you have a text file with mp3 files to play you could do something like that:

ssh [email protected] 'cat <path to text playlist> | while read file; do cat $file; done' | mplayer -
like image 45
rausted Avatar answered Nov 19 '25 09:11

rausted



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!