Skip to main content
Participating Frequently
January 27, 2012
Answered

FMS4.5 live stream with multiple video files as single source?

  • January 27, 2012
  • 1 reply
  • 3046 views

I am using Flash Media server 4.5 and i read the tutorial if i want to stream the live feed, i may need to use the media live encoder.

but what i found in media encoder is i have to manually setup everything and it only support camera devices.

But in my case i have multiple video files keep received from another program and place it on file system (server),

my goal is use the Flash Media server to perform a live boardcasting with these video file one by one.

That means when client watching a live streaming, they will not notice the server is playing mov1, then mov2, then mov3, then mov4... and so on.

You can imagine i am trying to boardcast a live footage say for 60sec,

but the video file will not recorded entirely after 60sec, instead for every 10sec i will save a new video file,

so that when client watching the live by HLS (e.g. http://xxxx.com/live123)

when the time reach to 10sec, a mov1 video file available and FMS should boardcast this video on live123.

when the time reach to 20sec, a mov2 video file available and FMS should Immediately follow the mov1 boardcast on live123.

and so on...

Also can FMS dynamically create a new streaming session (invoke by code),

so that when client A uploading some video files to the server, the FMS open a new streaming session only stream cilent A video files?

the configuration to boardcasting like screen size, bit rate, etc should be pre-defined on the server. 

(e.g. clientA boardcast on http://xxxx.com/live123, clientB boardcast on http://xxxx.com/live124....)

so is that possible to use FMS perform such ideas? or is there any appraoches?

I am very new to FMS, if i have any misconcept on the FMS or media (live) encoder, please feel free to correct me.

Thank you!

This topic has been closed for replies.
Correct answer Nikhil_Kalyan

Hi,

To have FMLE load some videos from file sources, to be published, at this point, you need third party softwares like ManyCam.

Alternatively, FMS can use file sources and do a playlist-kind publishing, from the server side.


So, you need to make application scripting on the server, to have server read from the files, and publish them (server side publish) to be subscribed by clients. Essentially we are asking the server to replace FMLE/encoder published stream with server-read file sources to have the publishing stream.

http://help.adobe.com/en_US/flashmediaserver/ssaslr/index.html should give more info about how to do this.

Thank you !

1 reply

Nikhil_Kalyan
Nikhil_KalyanCorrect answer
Participating Frequently
January 27, 2012

Hi,

To have FMLE load some videos from file sources, to be published, at this point, you need third party softwares like ManyCam.

Alternatively, FMS can use file sources and do a playlist-kind publishing, from the server side.


So, you need to make application scripting on the server, to have server read from the files, and publish them (server side publish) to be subscribed by clients. Essentially we are asking the server to replace FMLE/encoder published stream with server-read file sources to have the publishing stream.

http://help.adobe.com/en_US/flashmediaserver/ssaslr/index.html should give more info about how to do this.

Thank you !

paymokAuthor
Participating Frequently
January 29, 2012

thanks for your reply Nikhil!

So are you suggesting i dont have to use FMLE or other third part software like Manycam.

Simply i just need to use FMS, and make some script to read the files and publishing the stream?

Also quote your words "Alternatively, FMS can use file sources and do a playlist-kind publishing, from the server side."

For the playlist-kind publishing, the playlist you are saying should prepared at the very beginning?

or i can modify the playlist while publishing the stream?

Because i am concerning if i modify the playlist while streaming, will FMS know the playlist is updated? will it cause i stop of publish or black screen?


paymokAuthor
Participating Frequently
February 15, 2012

You can script or write the code in such a way that your playlist is dyanamic. Basically any Stream.play call can add to playlist depending upon your "reset" parameter in the call.

Just check this tutorial : http://fmsguru.com/showtutorial.cfm?tutorialID=12 - it might help you (its not about playlist but for single file but forms basis of live play from recorded file)


This method seems works for me! I have tried to follow the instruction but the tutorial shows how to connect it with rtmp, instead i would like to connect it through HLS-live, is that possible?

i tried to input the link like this,

http://localhost/hls-live/serverSideStream/_definst_/cilentStream.m3u8

but it seems not working...