How to use RED5 to enable live broadcast from a file? - red5

Is it possible to set up RED5 in a way where different users logging in at different times will be seeing the stream from an elapsed time period since the broadcast started? Say, my prescheduled broadcast starts at 10:00AM, is it possible for the user logging in at 10:05AM to start viewing the stream from the 5 minutes mark from video start? Much like a prerecorded online radio.
Thanks in advance.

Check out the examples:
http://red5.googlecode.com/svn/java/example/trunk
http://red5.googlecode.com/svn/flash/trunk/
You might be able to use these for what you need:
http://red5.googlecode.com/svn/java/example/trunk/oflaDemo/
http://red5.googlecode.com/svn/flash/trunk/simpleSubscriber.fla
http://red5.googlecode.com/svn/flash/trunk/simpleBroadcaster.fla
These do no create a recorded just the live feed, like radio.

Related

WebRTC Audio one to many unlimited listeners

I hope I can find an answer to my idea here.
I would like to broadcast audio via webrtc. meaning, there will be one admin streaming audio only and everyone else will be listening. no one will be communicating with each other. think about it as a radio.
simply share a page where everyone can press play and listen. the number of listeners is unlimited. 100 to start with would be good but the latency should not be more than 2 to 3-sec max.
If anyone can help with the code and/or how to do it, I appreciate that. I am not a developer but I like to learn. thank you all

How can I use Adaptive streaming for VODs in Ant Media Server?

I'm using Ant Media Server for streaming. My use case requires me to record the Live Streams as VODs so the users can access the content later as well.
Like the live streams, I want to apply adaptive settings to the VODs as well so that users can get the suited resolution as per their network.
I can't find any built in solution for this yet. Can you please tell me any solution as to how can I do this!
I'm using S3 to store the recordings.
Thanks.
Thank you for the question. As far as I understand from the question, it seems that Live Streams are recorded as VoD files.
I think the most efficient way is doing that through HLS. With this way, the VoD files are recorded as HLS and multibitrates is available. No need to transcode again and it'll be played directly. Let me explain this solution step by step.
Set HLS playlist type to event and settings.deleteHLSFilesOnEnded to false . Edit your red5-web.properties for the application and set the following settings
settings.hlsPlayListType=event
settings.deleteHLSFilesOnEnded=false
Restart the server
sudo service antmedia restart
Add adaptive bitrates on the web panel.
Start Live Streaming and let the Ant Media Server create HLS(m3u8 and ts) files for each bitrate.
Stop Live Streaming
Then you can watch the stream by giving the master m3u8 file which is {STREAM_ID}_adaptive.m3u8. It can be even played directly by embedded player even if it's not live.
For more information, take a look at this wiki about HLS Playing
Please let me know if this approach helps you.
antmedia.io

NAudio - Detect Audio via Application

Windows Volume Mixer shows audio output for individual applications.
Using NAudio, what is the right way for me to tap into this information? I essentially want to be able to make my application say:
Always record all audio input/output. Unless otherwise specified, only keep a buffer of the last 30 seconds. Throw the test away. (I know how to do this)
When Skype, Vonage, or Ring Central plays audio for more than 5 seconds, ask the user if they want to start saving the audio. (How would I do this?)
If so, save the 30-second buffer to a file and then start recording live. (I know how to do this)
Thanks for the help!
Windows won't let you capture audio from individual applications. You can use NAudio's WasapiLoopbackCapture to capture audio from all applications.
If you just want to see audio output levels for all apps, that can be achieved with the IMMDevice APIs which NAudio has wrappers for. It doesn't come with a specific demo showing that, but there's another open source project, EarTrumpet that you could explore to see how its done.

How many requests will a Video chat application make to the QuickBlox broker

I'm looking at the Quickblox demo for Video chat, and am interested in perhaps signing up, can someone provide some information on how much resources are needed to run an instance of the Video chat application, per conversation would be fine, may be able to calculate the total for the desired usage. As I understand it the service is a broker for the connection so in theory should be quite small? But would that mean with the Free for instance I would be limited to a single connection being limited to 20 connections per any 20 second period, so if I had a class of 30 I'd need to throttle 10 to have all connect to the chat?
http://quickblox.com/plans/
http://quickblox.com/developers/Sample-webrtc-web
Thanks

Time Delay for IPTV on Wowza Server

Can you help me scripting for time Delay on wowza server?
We need to stream live content and delayed content to suite the needs of the users on a different time zones.
Thanks
Bob
Depending on your specific requirements, you can take a look at the DVR or Recording modules. Also, you way want to ask your question at http://www.wowza.com/forums/.
You should take a look at gstreamill, with gstreamill you can access live as following:
.../dvr/name/playlist.m3u8?offset=-xxxx
offset=-xxxx means xxxx seconds before just now