View previous topic :: View next topic |
Author |
Message |
dan@loudaudio.co.uk
Joined: 31 Jan 2012 Posts: 2
|
Posted: Tue Jan 31, 2012 3:07 pm Post subject: Is it possible to do this with an Icecast stream? |
|
|
I am currently using an Icecast stream to do live outside broadcast feeds into the studio of a small community radio station I'm involved with.
The system works very well, however every time I connect into the Icecast server from a remote location, it involves someone in the studio (or a remote connection into the server) to press 'play' on a playback client (VLC running on the same computer as the Icecast server) in order to play the audio out of the computer to a mixing desk. Not ideal...
What I am looking for, is a solution to avoid this step of having to start the playback manually and for the audio to just appear on the soundcard output ***as soon as someone starts streaming into the server***. That way, the main server computer in the studio can be locked away and does not need to be touched! Is it possible to configure the Icecast server to spit the audio out the soundcard without needing to use a playback client? If I have to use a playback client (running on the same machine as the Icecast server), it is possible to keep the stream "alive" even when nothing is streaming into the Icecast server and therefore VLC will only need to be started once?
I'm sure there must be a solution to this!
Running Windows XP although happy to go with a Linux solution if necessary..
Many thanks for any help.
Dan |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Jan 31, 2012 4:10 pm Post subject: |
|
|
icecast itself doesn't decode, although it could trigger a decode to start up.
For win32 and unix, you could use the <mount> <authentication type="url"> and just define an option of mount_add to call a web script which starts the playback or even the player itself. On unix, you also have the option of calling the <on-connect> script which runs a script on the icecast server.
karl. |
|
Back to top |
|
|
dan@loudaudio.co.uk
Joined: 31 Jan 2012 Posts: 2
|
Posted: Tue Jan 31, 2012 4:25 pm Post subject: |
|
|
Hi Karl,
Many thanks for your reply.
Glad an option exists! Could you kindly help me out with a little code for Win32, to call VLC or other player using the <mount> command as recemmended please?
Much appreciated
Dan |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Jan 31, 2012 5:20 pm Post subject: |
|
|
Code: |
<mount>
<mount-name>/stream</mount-name>
<authentication type="url">
<option name="mount_add" value="http://xxxx/script.php" />
</authentication>
</mount>
|
The script php will then be located on a webserver and will do whatever it needs to start playback eg
vlc --open http://..../stream &
karl. |
|
Back to top |
|
|
gerrit
Joined: 25 Apr 2009 Posts: 17
|
Posted: Fri Feb 03, 2012 2:46 pm Post subject: put vlc in a loop |
|
|
You can put the playlist in a loop then vlc will start to play when the stream is up |
|
Back to top |
|
|
liteFun
Joined: 13 Jan 2006 Posts: 79
|
Posted: Sun Feb 12, 2012 1:14 pm Post subject: |
|
|
Looped playlist is not good if there's stuff for like 30mins and live stream for server should be broadcasted immediately. If it only needs to get played and nothing more, then it would work, just set playlist with url and repeat on.
Why don't you use vnc to operate server remotely? I would do that if i had bradcast going on studio and would need to stop current playlist and get live stream played outside studio. That way you could just add url to play between playlist items and after stream stops it would jump to next song. |
|
Back to top |
|
|
|