Streaming from a FMS to another FMS (Youtube live)

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 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?

Similar Messages

  • Trying to set up my video site to stream from the "fms server." Any Idea?

    I am trying to set up my video site to stream from the “fms server” and the instruction stated that I should create my own new folder in the application directory on the “fms server,” and I have created my directory, which I called “brigma_streams”, and I have copied files from {FMS-Install-Dir}/ sample/Application/vod to my new folder.
    I also configured the vod service in the FMS-Install-Dir/applications/(in my-New-Folder/Application.xml file).
    Here is the sample of my configuration below:
    <Streams>/;${BRIGMA_STREAMS_VOD_COMMON_DIR}</Streams>
    <Streams>/;${BRIGMA_STREAMS_VOD_DIR}</Streams>
    And here is an example on how I modified to my XML streaming:
    src="rtmp://localhost/inetpub/wwwroot/brigma_streams/SanfordNSons768K_002.f4v"
    thumb="thumbs/SanfordNSons768K_002.jpg" />
    After all these configuration and modification it still didn’t work at all when I tested the video in streaming mode. Could some one please take a look at and point me to the right direction. Thanks in advance.

    Hi,
    After adding the configurations to the Application.xml file, you also need to add those entries to the FMS.ini file (in the conf folder). Please add those entries (similar to VOD_ entries) if not already added.
    Once that step is also done, the src RTMP url will look like this : rtmp://localhost/<name of your application folder>/mp4:<stream-name-with-extension>

  • Sending Live Stream from one FMS to another FMS

    Hey,
    Here's what I would like to do:
    1. The Flash Media Encoder sends a live stream to FMS 1
    2. On FMS 1, a connection to FMS 2 is set up and the live
    stream is sent to FMS 2.
    3. Every second, a message with metadata is sent to FMS 2
    using Stream.send()
    4. A Client connecting to FMS 2 receives the stream and the
    metadata that was sent along with it.
    I know this sounds pretty confusing, but the main problem is,
    that I don't have access to the FMS 2, so I can't call
    Stream.send() there. First I thought the solution would be using
    Stream.play() with a remote connection, but when I call the
    Stream.send() method nothing happens on the client side.
    Then I thought I could do the whole thing by using a client
    side application that connects to FMS 1, receives the stream,
    embeds the metadata and publishes it to FMS 2. Here's the code I
    used:
    // Connect to FMS 1 to get stream
    client_nc.connect("rtmp://localhost/encoder_stream/room_01",
    "Client");
    // Create input stream
    in_ns = new NetStream(client_nc);
    // Connect to FMS 2
    akamai_nc.connect("rtmp://localhost/akamai/room_01",
    "Client");
    // Create new stream, feed with in_ns and send to FMS2
    out_ns = new NetStream(akamai_nc);
    out_ns.publish("stream");
    out_ns.attachVideo(in_ns);
    Unfortunately the attachVideo method only accepts a camera
    and not a netstream object.
    So this is where I'm standing now... anyone any ideas?
    thanks

    Hello,
    i've asked our Akamai contact and they say it's not possible
    to install any scripts on their servers. I think the only way is to
    push the stream from FMS1 to FMS2, but since FMS doesn't support a
    push method, there i have to find another way *sigh*
    I've heard about FMS version 3 coming up soon, and I'd really
    like to play around with the alpha version. Any idea where you can
    get it from? On Steve Wolkoffs blog it says the new FMS is going to
    support a push method:
    http://blogs.adobe.com/dreaming/2006/10/fmsnext_feature_open_thread.html
    I've also played around with the Red5 server, but I couldn't
    find anything there to achieve a server side push method. Does
    anyone have any experience with Red5 and live streaming?
    Cheers!

  • Pulling a stream from external FMS and publishing in Multicast

    Hi. I'm developping a FMS 4 application that read an external stream, and then, republish it in multicast:
    1.- So, first of all I open  a NetConnection to the remote application. And I associate it to a new Stream created in the application. Then I have the stream available in my application.
    nc = new NetConnection();
    nc.connect(REMOTE_APPLICATION);
    nc.onStatus = function(info)
    trace("REMOTE_APPLICATION->NetConnection> code: " + info.code);
    if (info.code == "NetConnection.Connect.Success")
      rebroadcast_s = new Stream.get("tempStream");
      rebroadcast_s.onStatus = function(info)
       trace("Stream> code: " + info.code);
       trace("Stream> details: " + info.details);
       if (info.code == "NetStream.Publish.Start")
              trace("REMOTE_STREAM->The stream is now publishing");
      rebroadcast_s.play(REMOTE_STREAM, -1, -1, true, nc);
    2.- I would like to use the same methods of native multicast.as application, for managing the multicast publishing: registerStream, openMulticastConnection, ...
    var MULTICAST_PARAMETERS = "fms.multicast.type=2&fms.multicast.groupspec=G%3A0101210558cc3408e77326e2fa1c53c52697d73 e1b02182c358c57075cd9a58ed1a25241010d160e666d732e6d756c7469636173742e6578616d706c65210e855 5a813f0c73cd8f5384e0fba657163ab87e76c25b6f82be9b94777b2d52cfe00070aefff00fe7530051576706f6 4&fms.multicast.address=239.255.0.254%3A30000";
    var params = parseQueryString(MULTICAST_PARAMETERS);
    var streamContext = registerStream(CLIENT??????, MULTICAST_STREAM_NAME, params);
    openMulticastConnection(streamContext);
    But, I don't know who would be the client in the registerStream method. Which reference should I add there? Is it possible in this way?
    I made another different script that republish that stream in localhost using NetConnection.publish(localhost/sameapplication). It works properly. But I would like to be able of managing it in the other way.
    Thank you,
    Iván

    1.- Tried adding NULL, and there's an error trying to access to the properties of the parameter, and finally the multicast publication is not done:
    Registered multicast context for source stream: livestream
    Sending error message: /opt/adobe/fms/applications/vpodmulticast2/main.asc: line 308: TypeError: streamContext.client has no properties
    2.- Tried adding the nc reference, and there's no error in the logs, but the multicast publication is not done neither.
    3.- Going deeply in the code, I discovered that client object is only used for getting the client.uri (the uri where the client is publishing the stream) and the client.ip (for internal connection managing). So I created a client object with these two attributes, and It's working properly:
    var params = parseQueryString(MULTICAST_PARAMETERS);
    var client = new Object();
    client.uri = "rtmp://localhost/"+application.name;
    client.ip = "localhost";
    var streamContext = registerStream(client, MULTICAST_STREAM_NAME, params);
    openMulticastConnection(streamContext);
    Thank you,
    Iván

  • Can you copy Subtitle Streams from one project to another?

    I inserted subtitles onto a track and would like to use the same subtitles on a new track; can I copy them and paste them into the new project?
    How can I do this?
    Many thanks!

    What you can do is export the item description for the track (File->Export->Item Description) which will export the track, including the subtitles. Then import that back into the project or new project, subtitles will come in, though you would need to change the video portion (if needed).

  • Live Streaming from Video File

    Hi everyone,,, im newbie in programming streaming video with flash....ater reading documentations i tried the instructions on doc, i got a question that i've not been solved. How to make a "live streaming" from "video file". It likes a live streaming from camera but it uses video file  as the source.... many thanks

    Do you mean you have video file but you want to publish it as live stream , am i right? If yes following is the solution, but before that let me clarify you will need server to do it , i mean there is no way Flash client (i.e. .swf file running in Flash Player) can publish file from local disk.
    Now let me tell you how to do it from server:
    Place your video file under "streams" folder of your application i.e. say "myVideo.flv" under  <FMS root>/applications/myApp/streams/_definst_
    Now write following code in your main.asc file (this file would be under <FMS root>/applications/myApp )
    var mystream;
    application.onAppStart = function(){
         mystream = Stream.get("livestream");
         mystream.play("myVideo",0,-1,true);
    This will publish "myVideo" file as live stream under name of "livestream". Client would have to subscriber using NetStream and
    use ns.play("livestream",-1,-1)
    You might have to write some extra code if you want to loop same file else once play of recorded file gets over , live publish will automatically stop.
    let me know if this solves your problem

  • How can I see My Photo Stream from two Macs associated with the same Apple ID?

    I have a MacBook Pro (my personal machine) and an iMac (our family computer).
    The iPhoto library housing all of our family photos lives on the iMac.
    The iPhoto library on my MacBook Pro is currently empty.
    I have an account on both machines.  I have associated the same Apple ID with both machines.
    When I launch iPhoto on my MacBook Pro and attempt to turn on photo sharing (so that I can see My Photo Stream, as well as other shared streams), iPhoto informs me that "iCloud Photos for xxx@xxx is being used with another library named 'iPhoto Library'."
    My iPhone, which is also affiliated with the same Apple ID, shows the streams just fine.
    What can I do to remedy this situation?  I'd like to be able to view my shared streams on my MacBook Pro, while leaving the actual massive photo library on the iMac.

    I found out about this issue when I created a new library with some photo's I wanted to sync to my iCloud account.  I found the following on the Fat Cat Software page and thought it might be helpful to others:
    Using Photo Stream with multiple libraries
    Starting in iPhoto 9.2, Apple introduced a new feature called Photo Stream, which lets you automatically transfer photos via their iCloud service between your iPhoto library and your other devices such as an iPhone, iPad, or another Mac. This feature works when you have multiple iPhoto libraries set up, but there are a couple things to be aware of.
    First, iPhoto will only allow Photo Stream to be active in one iPhoto library at any given time. If you've already enabled Photo Stream in one library, but then open a second library and enable Photo Stream there, this will cause Photo Stream to be turned off in the first library.
    Any photos downloaded by Photo Stream are actually stored in an entirely separate location from any of your iPhoto libraries. This means that, even if you do switch Photo Stream from one library to another, you will not need to go through redownloading all the photos you already have in Photo Stream back from the iCloud servers. So, switching Photo Stream from one library to another is a relatively inexpensive operation, so you can do it as often as needed without it being much of a hassle.

  • Problem playing remote live stream from FMS

    Hello all,
    I'm having problems playing remote live streams from FMS (server-side) that I can play with any other player (client-side)
    Example of server-side application which plays a remote live stream:
    nc = new NetConnection();
    nc.connect("rtmp://remoteserver/live");
    stream = Stream.get("localStream");
    stream.play("remoteStream.flv", -1, -1, true, nc);
    This code works only sometimes.
    Most of the times, FMS is able to connect to remote string and the localStream dispatches events:
       NetStream.Publish.Strart
       NetStream.Play.Reset
    In this case, FMS is publishing the local stream but it is not playing the remoteStrem on it.
    The rest of the times, localStream dispatches events:
       NetStream.Publish.Strart
       NetStream.Play.Reset
       NetStream.Play.Start
       NetStream.Data.Start
    In this case FMS plays the remoteStream correctly.
    Any hint to solve this issue?
    Regards.

    Thanks, I tried your code and it works when playing a remote live stream on another FMS.
    But the remote live stream is not on a FMS but on a Wowza Server which re-streams an RTSP stream over RTMP.
    With this code:
    var nc;
    var myStream;
    application.onAppStart = function(){
         nc = new NetConnection();
         myStream = Stream.get("localstream");
         myStream.onStatus= function(info){
               trace(info.code);
         nc.onStatus = function(info){
               trace (info.code);
               if(info.code == "NetConnection.Connect.Success" ){
                    myStream.play("remoteLive.sdp", -1, -1, true, nc);
         nc.connect("rtmp://remoteServer/live");
    Every live stream player I tried was able to play the remote stream "remoteLive.sdp", but FMS play it only sometimes. This is the output log of the FMS application:
    NetConnection.Connect.Success
    NetStream.Publish.Start
    NetStream.Play.Reset        <--------------------------------- Stuck there, stream won't play
    Unloaded application instance wowza4/_definst_ <--- Reload app
    NetConnection.Connect.Success
    NetStream.Publish.Start
    NetStream.Play.Reset        <--------------------------------- Stuck there, stream won't play
    Unloaded application instance wowza4/_definst_ <--- Reload app
    NetConnection.Connect.Success
    NetStream.Publish.Start
    NetStream.Play.Reset
    NetStream.Play.Start         <--------------------------------- Stream is playing just fine
    NetStream.Data.Start
    Unloaded application instance wowza4/_definst_ <--- Reload app
    NetConnection.Connect.Success
    NetStream.Publish.Start
    NetStream.Play.Reset       <--------------------------------- Stuck there, stream won't play
    Any idea? Why FMS won't play it everytime?
    Regards

  • Must i have FMS to publish a stream from my camera ?

    hello
    i am building an live streaming website and i am use
    1- FMS
    2- Apache webserver
    i have made the subcriber and i works well .
    but i need to build the publisher to allow users to broadcast thier stream from thier cameras.
    i have tested a publisher which was build using actionscript and it didn't work untill i have installed the fms on my localhost , but i need a publisher which any user can use in his web browser .

    Are you asking whether each publisher needs to have FMS on its machine in order to publish stream - then answer is NO. There is absolutely no need for someone have FMS insalled on its machine to publish stream - what he needs is microphone and camera.
    Probably your publisher code was wrong and hence it did not work - may be you just need to put correct URI of your FMS machine in your connection URI instead of "localhost"

  • How to stream video from FCS/FMS on Flex 2.0?

    Has anyone figured out how to stream video from FCS/FMS on
    FLEX 2.0?
    I've been working with all the sample code I can find,
    especially the
    FLEX 2.0 samples found in the Adobe documentation, but I'm
    having a heck of a time getting any of them to work.
    If any one has any working code that streams video from
    FCS/FMS using
    FLEX 2.0 that I can work with I would greatly appreciate it.
    Thanks
    Chris S.

    Some thinks that where helpful for me:
    http://coenraets.com/viewarticle.jsp?articleId=98
    http://flash-communications.net/technotes/fms2/flex2FMS/index.html
    NOTE: Only try and attach the Video and start the publishing
    of the video after you have a successful NetConnection.

  • FMS; multicast streaming from Digital Rapids

    Has anyone had experience configuring multicast streaming from Digital Rapids encoders to an FMS 4.5 server? I can stream RTMP to the FMS server and access the video with an embedded Flash player easily enough, but I'm interested in setting up the FMS to allow clients to access a multicast stream. Most Adobe support documentation refers to Adobe Media Encoder Live for the multicast connection configs, not necessarily non-Adobe encoders, so I'm missing a step or two.
    Thanks,
    Hugh

    Following is the link to setup multicast streaming:
    http://help.adobe.com/en_US/flashmediaserver/devguide/WS7812b00092aae0 dc-2829dcd012a54a3ed1a-8000.html
    Instead of publishing from Flash Media Live Encoder, you can publish from DR Encoder by making an "rtmp" connection to the "multicast" app on the AMS server and then start publishing to that app from the encoder using the "Publish Stream Name" generated by Multicast Config Tool.

  • How can you record stream from a webcam like YouTube does it

    We need to create a webcam stream recorder with FMS which should be able to record stream in some predefined quality (128000/bandwidth,95/quality) and will work also in the situation when the user doesn't have enough bandwidth to transfer this stream in realtime.  YouTube has a solution which is using something like a buffer and when the user stops recording they continue to send video data to the server until the stream is completely recorded.  We are recording the stream from our user's webcam, but when the bandwidth is not consistent or not enough, we are losing video data and ending up with poor quality recordings. What we need is that the record stream is buffered on the user's computer and the video data continues to be sent to our server even after the user has finished recording so that we end up with the complete stream (video data). We need some idea how to do this - which specific features should we used for this solution?

    Does it have to be a live solution? Or can you have the user record locally and then upload to your FMS server?

  • How to record stream from camera like on YouTube?

    Hello i would to create webcam stream recorder with FMS which should be able record stream in some predefined quality (128000/bandwidth,95/quality) and will be working also in situation if user doesnt have enough internet connection to transfer this stream in realtime. I realized that youtube has solution which is using something like buffer and when user stop recording they are still sending video data to server until stream is completly recorded. I just need some clue how this should solved and which specific features should be used for this solution?
    Thank you very much for any help!

    The only way to transfer photos back to a computer that were synced to your phone from a computer is to use an app like PhotoSync, which can transfer photos from any album on your phone over your wifi.  (They cannot be imported using your usb cable, which only imports camera roll photos, nor can they be saved to the camera roll so the could be imported using your usb cable.)

  • Streaming over 2 FMS

    Hi,
    we need to stream a live video over more than one FMS.
    We connected a camera to first FMS and publish a live stream.
    That works fine.
    Now, the second FMS (FMS2) is in a different location and
    hosts the videos for our second office . To reduce the bandwidth
    over the internet we would like to stream the live stream from FMS1
    to FMS2, so that FMS2 can deliver the content in the second
    intranet (one to one to many).
    I hope you understand this.
    Maybe one of you can help me, maybe with a sample.
    Thanks in advance!
    Friedemann Enderlein

    FMS 3 has a feature called "Multipoint Publishing" that will
    allow you to do exactly what you described. Using a little bit of
    Server-Side Actionscript, you can detect when the stream is first
    published to server 1, and republish it to server 2.
    More information can be found online at livedocs.adobe.com,
    or in the Flash Media Server Developers guide.

  • Facing Problems in Streaming Video using FMS 3.5

    I want to stream .flv using FMS 3.5. The file is streaming on the company intranet but when it comes to internet, it is not streaming. Here is what im doing
    I,am using Flash Media Server with IIS 6.0 and Operating System windows 2003 server with SP2
    This server machine has a private IP 192.168.10.19(localhost) which is maped to a public ip 202.77.xxx.xx. This server is hosting a website www.mywebsite.com, where i want to stream this file. The exact path of the html page where this sample.swf will be contained is www.mywebsite.com/FlashStreaming/FlashStreaming.html
    Now the website is working fine but when i test the streaming of .swf file its not working. It is only showing a progress bar
    I used the following procedure to create the .swf from .flv
    I created an .swf with the name sample.swf, using FLVPlayBack component and given its source address as
    " rtmp://192.168.10.19/vod/_StreamingSample_/Sample(where Sample is an flv file) . After it i selected the option "Stream from Flash Media Server"
    I also created an instance named  "_StreamingSample_ " for vod on the server 192.168.10.19(localhost) in the Flash Media Administration Console
    Then I deployed it on the server with the local ip address 192.168.10.19. Now when i open the link www.mywebsite.com/FlashStreaming/FlashStreaming.html  from any client pc on the same company intranet as the server  it streams perfectly and i can also see it on the FMS Media Administration Console but when i type this link from any public pc using internet (i.e. outside my company intranet) it only shows a bar with play and pause buttons in it trying to connect to the server, and no video is streamed/shown . Is it due to the fact that im putting in the wrong address or there is some other reason behind this malfunctioning. I dont want to use Action Scripting so please let me know any solution which does not require action scripting.
    Note : The hosting server is within our company so we are managing it.

    Fraz,
    Remove the .flv extension from your address and give it a try:
    rtmp://202.77.xxx.xx/FlashStreaming/sample.flv
    should be:
    rtmp://202.77.xxx.xx/FlashStreaming/sample

Maybe you are looking for

  • How to get podcasts onto my ipod so I can see what's going on?

    Hi, My G3 15GB ipod with version 2.3 on it... My podcasts sync over from itunes OK. But by the time they get onto my iPOD its really hard to see what's what. The ipod shows a "Podcasts" playlist. But really they are not presented in an elegant way. W

  • Things have been running a bit slowly on my mac of late, several months after having installed 8 gig of fresh ram

    Good evening, folks. I'm running with a 13 inch 2011 macbook pro.  Some months ago, I upgraded from 4 to 8 gigs of ram.  Things were snappy and running very smoothly, however, over the past several weeks or so, I've noticed a decline in efficiency. 

  • G/L Account Determination Document for SBO 2007

    I would like to find a document (word, excel or pdf) that explains the G/L Account Determination and its accounts. In which documents inside SBO are those account used? I see more accounts used in SBO 2007 and use trial and error to see these but pre

  • Mapping java classes to XML files

    Hi Friends !! Please I need your help. Does somebody out there know any framework or API that helps me to map Java classes to XML files. Something like: public class Test {     public int x;     public int y;     public int sum(){} }to something like

  • TRX CR10- work center change documents

    I need to get a report which can show me all the change logs by workcenter.  I found trx CR10 in the menu path, but I don't get any output, it does not appear to work at all.  Is any one familiar with the trx? and how to make it work? Thanks Edited b