views:

470

answers:

3

I need an open-source application which streams on demand (RTSP?) the prerecorded files. It should support all major codecs (G.711,g729...), and must be reasonably efficient.

Up until now Ive found only VLAN player suitable for this task. Any advice?

+1  A: 

Well, I have an asterisk machine with all major codecs. Get g729/g723 on: asterisk.hosting.lv. Don't forget that in some countries it is illegal to use g729/g723 without paying for them.

Anyway back to your question. In your Asterisk dial plan you could playback the prerecorded file like:

exten => _X.,1,Answer()
exten => _X.,n,Playback(/path/to/file)
exten => _X.,n,Hangup()

When I make a call going to that context I get to hear the file. Is that what it is you want to do?

Also have a look on voip-info.org. There is lots of knowledge there.

edit:

Also note that asterisk has a MusicOnHold diaplan utility which you can use to stream FM-radio streams. You might want to have a look on a blog post I wrote last year. So in a sense you could have VLAN player or something else to act as a streaming server and use asterisk to VoIP it.

Matthias van der Vlies
A: 

We have used rtpplay to send audio files to a specified ip/port. That's at least a good place to start

JayG
A: 

mediastremer2 sdk was good enough for me.

But live555 media server did the job as simple RTSP servers

Boris