Skip to main content
EMelville
Participating Frequently
November 2, 2010
Question

Is this Possible? Stream Video File using Server or Encoder?

  • November 2, 2010
  • 1 reply
  • 902 views

Is it possible to stream a video file (.mp4) Live using the Flash Media Encoder or by placing the file in an app instance on a flash media streaming server?

Thanks!

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    November 3, 2010

    As of now FMLE does not take input from a file as video source.

    Second question with respect to FMS - i somehow did not get it very clearly. I suppose you would know that i can stream "mp4" content from a file in VOD fashion but if you want it to like "live" content where many clients can see same feed for that file - that is not possible using Streaming Edition of FMS - however it is possible in Interactive Edition of FMS.

    EMelville
    EMelvilleAuthor
    Participating Frequently
    November 3, 2010

    Can you elaborate how it would be possible with a Flash Media Interactive Streaming Server? Would we place the file in an Application Instance somehow? If you could provide any links, that would be very helpful.

    Participating Frequently
    November 3, 2010

    First of all lets call it Flash Media Interactive Server (adding Streaming becomes little confusing to readers as we have Flash Media Streaming Server) - both are FMS but two different edition.

    Now coming to FMIS, you can place all your video files in "streams" directory of application in the simplest configuration and then use Server-side API Class "Stream" to play them. When you use Stream class to play VOD files, it basically becomes live publish and is available as live stream. I will give you simple code snippet which will explain what i am saying above:

    var myStream;

    application.onAppStart = function(){

         myStream = Stream.get("livestream");

         myStream.onStatus = function(info){

              trace("Info code:"+info.code);

         }

        myStream.play("mp4:myvod.f4v",0,-1,true);

    }

    Now client will subscribe to live stream using stream name as "livestream" and it will basically get all the content of mp4:myvod.f4v

    Say if you save above code in file named main.asc and place it in application folder named "test" on FMS, you will need to copy "mp4:myvod.mp4" inside "streams" i.e. create "_definst_" folder or any instance name folder under "streams" folder of "test" and place the file there

    Hope this helps