BBB with Icecast

350 views
Skip to first unread message

tse com

unread,
Feb 12, 2014, 8:26:12 PM2/12/14
to bigblueb...@googlegroups.com
Hi there,

I am working on implementing a live stream so everyone can listen regardless of where they are. I read that Icecast can be used which is awesome.
My question is how do you alter the settings in Freeswitch? I have read this: https://code.google.com/p/bigbluebutton/issues/detail?id=1335
But I am not sure what to do specifically in order to get Freeswitch to record BBB conferences, and stream it via icecast.

John Roy

unread,
Feb 12, 2014, 8:49:31 PM2/12/14
to bigblueb...@googlegroups.com
1. It's possible. I've done it. Though I recall having to compile extra FS modules. 
2. Figure on a 10 second delay down to an icecast client. Think radio broadcast rather than a live conversation. That was an issue for me.
3. Watch the CPU overhead of the audio transcoding. I recall that was an issue also. 

See how you do and if you're still stuck in a week or so I'll dig up some of what I did.

Good luck
-J

--
https://bblr.co -- be virtually awesome


--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To post to this group, send email to bigblueb...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-dev.
For more options, visit https://groups.google.com/groups/opt_out.

HostBBB.com

unread,
Feb 13, 2014, 8:16:33 AM2/13/14
to bigblueb...@googlegroups.com
TSE  You need to compile freeswitch and add the mod_shout module.
An icecast server can also be installed on server, or you can use an existing ICE cast server.

If you look at freeswitch wiki,  you can do a conference record to the mount point either in fs_cli command or dialplan to get the audio automatically publishing when a bbb conf starts

Also, If you look at bigbluebutton git, there also is some code that might work to auto publish to icecast but i have not attempted to use since it is experimental.

with icecast on existing server delay is 6-8seconds if you minimize the icecast buffer settings.

regards.
Stephen

tse com

unread,
Feb 15, 2014, 1:19:48 AM2/15/14
to bigblueb...@googlegroups.com
Thank you both for the very helpful information. Will report back once I've got it going. Or if I get stuck. Thanks again! 


On Wednesday, February 12, 2014 8:26:12 PM UTC-5, tse com wrote:

Jenny

unread,
Mar 26, 2014, 9:36:17 AM3/26/14
to bigblueb...@googlegroups.com
I've run into a bit of a snag on streaming the conference. I've compiled a new FS with mod_shout enabled, added:

<action application="record" data="shout://source:pa...@127.0.0.1:8000/stream.mp3"/> to dialplan. 

And edited bigbluebutton.properties with icecast info.

Everything is working perfect with BBB, but still no stream when a conference is initiated. I must be missing something?

HostBBB.com

unread,
Mar 26, 2014, 10:00:28 AM3/26/14
to bigblueb...@googlegroups.com
Jenny, Not sure about the bigbluebutton.properties way of auto starting a stream when meeting starts, i have never used,  but to test if freeswitch/modshout is working.

if you start a bbb meeting in browser then  SSH into server.

cd  /opt/freeswitch/bin/fs_cli

   conference list  <-- find the confernece number of meeting you just started.
   conference 75xxx record shout://source:pass...@your.icecast.net:8000/live.mp3   <--- replace the conf info and icecast info with yours.

You should see in fs_cli where mod_shout connects to your icecast service and records.
Then go listen to stream in icecast admin panel.

Its also possible to connect to liquidsoap, and transcode ogg, acc, acc+, and mp3 in different bitrates for downstream players.

Regards,
Stephen


On Wednesday, March 26, 2014 9:36:17 AM UTC-4, Jenny wrote:
I've run into a bit of a snag on streaming the conference. I've compiled a new FS with mod_shout enabled, added:

<action application="record" data="shout://source:pass@127.0.0.1:8000/stream.mp3"/> to dialplan. 

Jenny

unread,
Mar 26, 2014, 10:50:18 AM3/26/14
to bigblueb...@googlegroups.com
Thank you, Stephen. Will try this as soon as I get a chance. Interesting about the bigbluebutton.properties, will take that out if it's not needed! 

If I'm understanding correctly, this means that streaming to icecast server can only be done manually, per each conference? This is why I tried doing it in dialplan, thinking perhaps it would then auto-publish each time a conference started. Either way, great test to see if it will work, thanks again!

On Wednesday, March 26, 2014 10:00:28 AM UTC-4, HostBBB.com wrote:
Jenny, Not sure about the bigbluebutton.properties way of auto starting a stream when meeting starts, i have never used,  but to test if freeswitch/modshout is working.

if you start a bbb meeting in browser then  SSH into server.

cd  /opt/freeswitch/bin/fs_cli

   conference list  <-- find the confernece number of meeting you just started.
   conference 75xxx record shout://source:password@your.icecast.net:8000/live.mp3   <--- replace the conf info and icecast info with yours.

Jenny

unread,
Mar 26, 2014, 11:29:19 AM3/26/14
to bigblueb...@googlegroups.com
It worked perfectly in the fs_cli. I was able to hear the stream! I suppose I have something not configured correctly in dialplan. As I mentioned above, I did add the mount to dialplan with  my icecast credentials. Maybe it is in the wrong place? I know this is not officially BBB stuff so there is very little info on this and when it says add to dialplan I assumed just adding to the local extension in default.xml?

HostBBB.com

unread,
Mar 26, 2014, 11:36:48 AM3/26/14
to bigblueb...@googlegroups.com
The issue with dialplan, you dont want that executing every time a new user joins audio.

I would remove the info from bigbluebutton.properties,  and then look at the fs wiki, to add the record command to the wideband profile in the freeswitch conference.xml so it is executed just once when conference starts.

Jenny

unread,
Mar 26, 2014, 11:51:06 AM3/26/14
to bigblueb...@googlegroups.com
Thank you, Stephen, you are a life-saver.

Fred Dixon

unread,
Mar 26, 2014, 12:42:02 PM3/26/14
to BigBlueButton-dev
Stephen +1 

:-)


Regards,... Fred
-- 
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton


--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To post to this group, send email to bigblueb...@googlegroups.com.
Visit this group at http://groups.google.com/group/bigbluebutton-dev.
For more options, visit https://groups.google.com/d/optout.




Reply all
Reply to author
Forward
0 new messages