Skip to main content
Participating Frequently
August 5, 2011
Answered

Streaming from a FMS to another FMS (Youtube live)

  • August 5, 2011
  • 3 replies
  • 6198 views

Hello.

I need to stream some videos from a Flash Media Server (for example on Amazon Cloudfront or other servers) to the Adobe Flash Media Server of Yoube live (via a rtmp protocol).

How can I do this but first of all: is it possible?

Thank you very much.

    This topic has been closed for replies.
    Correct answer Nikhil_Kalyan

    Thank you one more time!

    So I need to find a server with FMS installed and where I can change the destination of a rtmp stream to Youtube FMS using main.asc file.

    Right?


    That is correct.

    3 replies

    Participating Frequently
    February 12, 2012

    Hi all, i'm confuse with this issue.

    for example i have a live stream on my fms4 "rtmp://localhost/live" "streamA.flv"

    i need to push this to 2 other diferent servers like if i was flash media live encoder

    rtmp://host1/live "streamX.flv"

    rtmp://host2/live "streamY.flv"

    what is the correct main.asc in my situation ? or this is not possible ??

    Thanks for your help and sory about bad english.

    Adobe Employee
    February 13, 2012

    I think for your use case - best is to use Stream API and use remote play.  Look at this documentation page: http://help.adobe.com/en_US/flashmediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7e42SSASLR.html#WS5b3ccc516d4fbf351e63e3d11a11afc95e-7f36SSASLR

    and see the example "The following example shows how streams can be chained between servers:"

    pauljimesAuthor
    Participating Frequently
    August 7, 2011

    I am testing using primecast.com FMS.

    I'm trying to stream a video (sample.flv) from primacast to "youtube live" via rtmp.

    1. I've opened the FMS administration console in primcast (trial)
    2. I've created a new instance in root/live application directory (named "sample")
    3. I've uploaded to root/live a video file : sample.flv
    4. In the server I've created this main.asc file :

    application.onPublish = function(client, sample){
        nc = new NetConnection();
    nc.connect("rtmp://youtubeFMS/YTname");
        ns = new NetStream(nc); 
        ns.publish(sample, "live");
    };

    What else should I do?

    It seems not working.

    Nikhil_Kalyan
    Participating Frequently
    August 8, 2011

    Did you get any error when you said it is no working ?

    I think you need to wait till the net connection is made before you make a netstream. Use onStatus methods on the server script to have a better process.

    Also , i think the name of the stream to republish to be 'sample.name' instead of just 'sample'.

    serverNC = new NetConnection();

    serverNC.connect ("rtmp://localhost/multipoint2");

    serverNS = new NetStream(serverNC);

    serverNS.attach(myStream);

    serverNS.publish(myStream.name,"live");

    pauljimesAuthor
    Participating Frequently
    August 8, 2011

    This is my first flash application so I am very confused.

    This is my main.asc  content:

    application.onStatus = function (){

    serverNC = new NetConnection();

    serverNC.connect("rtmp://rtmp1.youtube.com/videolive?sparams=...../youtubestreamname");

    serverNS = new NetStream(serverNC);

    serverNS.attach(sample);

    serverNS.publish(sample.name,"live");

    }

    This is my FMS directories:

    And this is my panel on the server:

    What can I do?

    Nikhil_Kalyan
    Participating Frequently
    August 6, 2011
    pauljimesAuthor
    Participating Frequently
    August 6, 2011

    Thank you.

    Can I simply upload some videos on a server A (not live) and then send them to Youtube FMS?

    And do I need FMS on the server A?

    In this page on Amazon Cloudfront I found:

    Your streaming bucket holds your media files and is the origin server for a streaming distribution. In this example, the distribution's domain name is s5678.cloudfront.net.

    Can I change the distribution's domain name with youtube FMS?

    Nikhil_Kalyan
    Participating Frequently
    August 6, 2011

    Yes, i think it is possible. FMS is required as long as you need to stream from that server. Else it is not required. FMS can pick up files from a network share as well to stream. Or you can write your own plugins to fetch from other locations .

    On the cloudfront, i do not think you can change it to any other fms.