How to publish a p2p/multicast stream

Hello,
   Suppose I have a RTMP server (wowza) which strems this : rtmp://192.168.0.10/live, and the stream name is my.stream
   The question is : which tool should I use to publish this stream to FMS using p2p/multicast mode ? So the output will be something like this :
rtmp://192.168.0.20/multicast/livestream1?fms.multicast.type=1&fms.multicast.groupspec=G%3 A01012105a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3010c160e666d732e6 d756c7469636173742e6578616d706c65210edde11d4d04c2a1b0d5514c19861fde3854dbd2fb012ae1bff6363 8fa3f334242011b00070ae00000fe75300415313233&fms.multicast.address=224.0.0.254%3A30000
I tried (using ffmpeg from xuggler) something like this :
/opt/xuggler/bin/ffmpeg -i "rtmp://192.168.0.10/live/my.stream" -acodec copy -vcodec copy -f flv "rtmp://192.168.0.20/multicast/livestream1?fms.multicast.type=1&fms.multicast.groupspec=G %3A01012105a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3010c160e666d732 e6d756c7469636173742e6578616d706c65210edde11d4d04c2a1b0d5514c19861fde3854dbd2fb012ae1bff63 638fa3f334242011b00070ae00000fe75300415313233&fms.multicast.address=224.0.0.254%3A30000"
But it didn't worked
Can somebody help me ?

Probably I haven't clearly understood your use-case, but looking at your question, I feel that you already have ts fragments and m3u8 file with you, that you want to serve to clients, and a simple Apache web server can do this task pretty easily (HTTP PUT from your encoder and HTTP GET from yuor clients).
I dont understand why do you want to publish these ts fragments and m3u8 containing their URLs as live to FMS. You may also like to use the Apache that comes bundled with FMS for this task, but it will always be a vod stream, not a live stream.
FMS, on the other hand can on the fly package (HLS JIT module) and deliever (serve the simple Apache GET requests for ts from clients based on m3u8) the m3u8 file that contains the ts fragments.

Similar Messages

  • How to publish a local audio stream using NetStream?

    As all we know, if we want to publish a stream to FMS or Red5, we can code like below:
    var nc:NetConnection = new NetConnection();
    nc.connect("rtmp://localhost/myApp");
    var ns:NetStream = new NetStream(nc);
    ns.attachAudio(Microphone);
    ns.publish("audio", "live");
    my problem is that we can pass an instance of Microphone to ns.attachAudio() only, if I want to attach a local audio stream,like playing a local sample.flv file to become a audio stream, how can I do?
    this issue has been asked 7 years ago, see the post. but i can not find any solutions.
    any tips will be appreciated. thx in advance.

    how to watch my local network stream using java,help!http://www.ethereal.com - a third party program (but not using java)

  • Unable to connect to p2p multicast stream from external access

    Hi
    I have been tasked with creating a stream using p2p multicast.
    I have been able to create and connect to the stream locally, however when I try to connect from a external connection I get a message from flash player
    "We are unable to connect to the network. We apologize for the inconvenience"
    On looking at the logs for the external connection I find that the session is pending, where as on when I connect locally the session is pending then connect session and streams.
    I have looked at some of the posting here and not found the answer.
    Host machine server 2003 is on host.domain.local
    External ip address has a domain name pointing to it
    Delivery html page
    Local server is in DMZ for debugging, this should rule out any firewall issues
    Flash Player 10.3
    I have set connections to allow all on FMS and Apache and have no problems accessing web server, FMS admin and I can stream vod's without any problems.
    In order to deliver stream I am using a html page, which is setup using flashplayer setup this generates the stream information to be pasted into the html and works locally. When I setup using external domain name I get the above message.
    Multicast Config Tool is set to external domain name
    On searching for an answer I have come across cross domains, could this be what the issue is, if not any suggestions?

    No, the files are not on windows or on HD. I moved the files i.e. cut and paste from the HD connected on Win and directly copied them to MAC as the HD was not readable on MAC.
    I notice that the files and folders were there but they were grayed out, but when I copied them to new folder on MAC and did UNDO they disappeared.
    I assume they are somewhere on the MAC drive as I haven't moved anything to Trash and not yet emptied the trash once since I got this MAC.

  • How to publish and record video stream in h.264 format

    I'm a fresher. I want to publish and record video stream in h.264 and audio stream in AAC format .
    Does flash player support to publish video stream in h.264 format ?
    And which version of flash player and FMS could implement this function ?
    Thank you very much.

    The Flashplayer does not support h264 or AAC publishing. The Flashplayer supports only h.263 (sorenson spark) video, and Nellymoser Asao and Speex audio.
    If you want to publish h.264 you'll need to use Flash Media Live Encoder, or a third party encoder.

  • How to publish swf file as streaming html on LMS?

    Hi Folks
    When i try to publish a swf file it creates a html file and
    works fine. but when its created in the folder. It creates a skin
    file, 2 html files and standard file. When i publish it on LMS to
    create a streaming flash file nothing is seen. Is there any other
    way to publish. It is not a scrom compliant LMS. If that helps.
    Appreciate all the replies
    Thanks!

    Hi again
    I think you are probably still seeing the _skin.swf file
    because I don't believe that Captivate deletes the files prior to
    creating the new ones. So you should probably clear the folder
    before publishing again. Once you do that, you should see only
    three files.
    Cheers... Rick

  • P2P multicast and upstream bandwidth

    Hi,
    I'm in the process of developing a realtime video chat application where multiple users can send video streams simultanuously. The number of users receiving the streams can be very big, e.g. 10 broadcasters and 500 receivers, each receiver should get all streams.
    I use RTMFP connections to an FMS and streams are published in P2P multicast groups by passing the groupspec to the NetStream constructor. Currently I'm having problems with audio/video synchronization and video stream 'jumps' (not continuous). From what I read on other threads, this is related to the fact that there is not enough upstream bandwidth for sending the streams. So my questions are:
    How to calculate the required upstream bandwidth on every peer for the given example of 10 broadcasters and 500 receivers (is it 10*bandwidth of one stream)?
    What settings (on NetStream, Camera, Microphone etc.) should be used for best results and how to adapt them based on the number of broadcasters?
    I hope my questions make sense!
    Thanks,
    Haykel

    I have done some tests to find out how much upstream bandwidth is used for different situations. The data is taken from the 'multicastInfo' property of all involved 'NetStream' objects as follows:
    Multicast Data: average of 'multicastInfo.sendDataBytesPerSecond' of all streams.
    Multicast Control : average of 'multicastInfo.sendControlBytesPerSecond' of all streams.
    Different measurements have been done for different situations:
    The user is broadcasting and not broadcasting
    Varying number of connected users
    Varying number of users broadcasting
    I have limited the maximum video bandwidth to 16 KBytes with 'Camera.setQuality(1024 * 16, 0)'.
    The application uses only application level multicast (passing a groupspec to the NetStream constructor). In this test all peers are on the same LAN and the FMS server is on a remote machine.
    The results in Bytes/s (click to enlarge):
    What I have noticed is that the outgoing multicast data volume grows by ~15 KByte with every new connected user (receiver) and goes down when the number of broadcasters grows. Is that normal? Does it mean that only the broadcasters are sharing the streams with the other peers? I thought that every peer would share the data with a number of neighbours (i.e. 3) which would share with their neighbours and so on.
    During the tests I have also checked for a/v delays and noticed the following:
    For every new stream, at the beginning audio and video are in sync but have a delay of ~3 seconds
    After ~20 seconds the video delay becomes marginal but the audio remains delayed and so goes out of sync with video
    After ~30 seconds the audio delay becomes marginal and goes in sync with video (a/v are now stable)
    The delays of 20 and 30 seconds grow up to more than a minute when the number of broadcasters grows
    My questions:
    Are my measurements correct?
    Why is the outgoing multicast data volume growing with every new receiver? Is the publishing stream sending the data to all peers?
    Should I expect the bandwidth to grow indefinitly with the number of receivers or will it stabilize at some value?
    How to decrease the time required for a/v to become stable (in-sync with a small delay)?
    Is P2P multicast a good choice for this kind of applications (up to 10 broadcasters and a very big number of receivers)?
    Any advices???
    Thanks.

  • How can I publish and record video stream in h.264 format

    I'm a fresher. I want to publish and record video stream in h.264 and audio stream in AAC format .
    Does flash player support to publish video stream in h.264 format ?
    And which version of flash player and FMS could implement this function ?
    Thank you very much.

    The Flashplayer does not support h264 or AAC publishing. The Flashplayer supports only h.263 (sorenson spark) video, and Nellymoser Asao and Speex audio.
    If you want to publish h.264 you'll need to use Flash Media Live Encoder, or a third party encoder.

  • How do the FPGA P2P FIFOs running if some of the P2P stream is disable?

    Now, I am doing LabVIEW FPGA coding, the P2P FIFO streams are used to communicate between two different RIOs.
    I have 8 P2P FIFOs in one FPGA, but at the host, I only enable the P2P Stream of four FIFOs.
    because the other 4 P2P FIFOs are not used, I was wondering whether the enable P2P FIFOs stream normally?
    Thanks!

    Quote: ''I'm not sure what you mean Address bar > Plugins ''
    What is meant in to open the "Tools > Add-ons > Plugins" window (the about:addons page doesn't exist in Firefox 3.6.x)
    You can inspect and modify some prefs on the about:config page to suppress the plugin reminder.
    *set the plugins.hide_infobar_for_missing_plugin pref to true
    *set the plugins.hide_infobar_for_outdated_plugin pref to true
    *http://kb.mozillazine.org/about:config

  • About Flash P2P live streaming from non-webcam sources

    Hello, I am a university student. Our lab is attempting to work on a p2p live streaming using flash p2p features. The media source is not from a webcam but a file from a certain server, which is not directly supported by any of the 4 methods flash player offers(posting, direct routing , object replication,and multicast.) As some of the forum threads mentioned, our method is to use NetStream.publish() a stream and use send("callbackname", data)  to all subscribers that have joined in a NetGroup. So we can use p2p transmission. Now here are our questions:
    1. We know from MAX 2009 that flash p2p camera video multicasting implements pull-push mechanism inside which makes full use of p2p features like buffer map exchange. If we use NetStream.send() API to send non-webcam source data, will it also make use of this pull-push mechanism to spread data among all peers(subscribers) with proper data exchange?
    or more detailedly,
    I saw the P2P Gaming Libs at flashrealtime.com. It uses DIRECT_CONNECTIONS when creating publish-used NetStream in order to send data with lowest latency. My question is if I do not use DIRECT_CONNECTIONS, than when the NetGroup grow large (1000), will those peers that are not direct neighbors to the publisher in the same group relay data to each other using pull-push via buffer map?
    2. I have written a sample app and use send() to deliver data only (NetStream.bufferTime = 0) without camera video and audio. When the publisher sends the data  in a "for()" stantence for 20 times, the subscribers can only receive about 8 of them. But when I set a timer and periodically send them(e.g., 500ms), the subscribers can receive them correctly. My questions are: Is the packet loss caused by UDP unreliability? Can this be solved by setting the NetStream.dataReliable = ture? Can this totally be solved by setting a timer? How to set the delaytime property in timer? Are all data sent are orderedly received?
    I'm very appreciated if you can answer my questions? thanks.

    1. NetStream.send() data is delivered in the order it was sent, whether in client-server, DIRECT_CONNECTIONS, or multicast mode.
    2. the lowest latency will be achieved with DIRECT_CONNECTIONS.  however, that isn't scalable to large numbers of recipients.  the P2P multicast system trades low latency for scalability.
    3. there are no plans to support a natural NetStream streaming source that's not a camera/microphone.  Flash Media Server can perform that function.
    4. you should never need to implement "bitmap exchange"; the object replication system handles all the communication needed to accomplish its function. typically you will divide a file into segments, giving each one an index number. object replication uses ranges internally, so the index numbers should be contiguous.  nodes that have indices use NetGroup.addHaveObjects().  nodes that want indices they don't have use NetGroup.addWantObjects().  nodes that have objects will send them to nodes that want the objects.  when a node receives an object, it's automatically removed from its "want" set; once the node decides the object is acceptable, it adds it to its "have" set, at which point it can answer requests from other nodes who still "want" it.  eventually every node will have all the pieces and not want any.  for an example, please see Tom Krcha's articles on using object replication:
       http://www.flashrealtime.com/file-share-object-replication-flash-p2p/
       http://www.flashrealtime.com/video-on-demand-over-p2p-in-flash-player-101-with-object-repl ication/
    5. please see Tom Krcha's articles.  for VOD you will probably want to use the "LOWEST_FIRST" replication strategy, as that may allow you to start playing earlier.  for general file replication you'll get better sharing if you use RAREST_FIRST.

  • How to Publish more than 8 peers?

    Hai,
    I read that at default a peer can publish streams to 8 peers and can set to more than 8.How is it doing? is it in coding,how the code looks?
    i.e: syntax...
    Plz help
    Ad. Thanx

    when you join a multicast NetStream, you automatically help redistribute the stream to your peers.
    Matthew Kaufman's session from MAX2009 explains how our system works.  you can watch it at
       http://tv.adobe.com/watch/max-2009-develop/p2p-on-the-flash-platform-with-rtmfp
    i posted the materials from my MAX2009 lab using P2P multicast and NetGroup.post() to create a P2P video with text chat application.  you can see those at
       http://forums.adobe.com/message/2423240#2423240

  • Multicast streaming suddenly stopped working :\

    I've setupped a multicast streaming flash application (a broadcaster and a receiver), following Tom's video tutorial (using my own Cirrus developer key)
    Everything was working okay.
    About a week later - I ran the same code without a change - and suddenly it doesn't seem to work. There are no errors... all of the status-handlers' (event.info.code) show what they are supposed to show -
    only - the receiver doesn't show the video of the broadcaster... no matter what I tried.
    What could be the reason for this?
    Is there a certain "expiration date" for the Cirrus developer key, or something like that?
    Thanks,
    Yuval.

    no, Cirrus developer keys don't expire. if you're connecting to Cirrus, that means your developer key is good.
    are you sure *nothing* changed? no network equipment changes, no software changes, etc?
    without more detail it's not possible to diagnose your problem. are the publisher and subscriber really joining the same group? do you see the NetGroup.Neighbor.Connect events fire on both sides? does your GroupSpecifier enable multicast and not disable P2P? is the subscriber playing the same stream name that the publisher is publishing to?  etc.

  • [Cisco FAQ] - DCM Gbe input port is not joining Multicast stream

    Why does it do this and how do I fix this issue?

    DCM will not join a multicast stream if the Gbe port is disabled while configuring IGMP for that port. Also when the DCM was joined but the Gbe port has been disabled for a longer time afterwards, it is necessary to reconfigure IGMP when the port is enabled. This to force the DCM again to join the multicast stream Solution : • Make sure the Gbe port is enabled • Remove and re-apply the IGMP configuration again to force the DCM to join the multicast again.

  • How to publish video?

    Okay guys well I'm kind of new to Premiere Pro CS3 and was just wondering how you publish a video?
    The video I used in my video is a 1280x720 25fps wmv file.
    To publish do I just go File > Export > Adobe Media Encoder. Then in "Present" i selected HDTV 720p 25 High Quality.
    Is this how you publish?
    What I'm making is a tv show and there's an ad at the bottom with writing, shapes etc but they kind of look not high quality (HD)
    Anyway to fix this?
    Btw, is there anything in Adobe Premiere Pro that will alow fixing windy noises? I've got some footage but you can hear wind so I want to get rid of that!
    + What is so different to After Effects and Adobe Premiere Pro?
    Thank you sooo much!

    First, you will need to think about what you want/intend, when you "publish" the movie. Do you want to Burn to SD-DVD, or BD, or do you want to upload as "streaming" content? There are a lot of choices to make initially. That will determine the workflow path that you use. Without that info, no one will know. Make that decision first, then ask for advice, predicated on your choice. Until then, the only answer will be, "it depends."
    For wind noise, there are some Audio Effects in PrPro, but they are limited. There are some 3rd party VST plug-ins that can help too. There are more tools for this in Soundbooth, but for critical work, I strongly recommend Adobe Audition (if you're on a PC) and Pro Tools, if you are on a Mac. Much can be done to "improve" the Audio, but only you, though listening and tweaking, will ever know if it's "fixed."
    As for the ads, again the answer is "it depends." Please describe, or better yet, post a snippet of the footage, or a screen-cap with the Program Monitor view, and tell us specifically what you want removed. Also, you will need to tell us the answer from the first paragraph above. That will help determine the best way to handle your desire to "remove" the ad.
    AfterEffects is basically a very high-powered X-platform animation program. It does much more, but that is its main use to general users. Much of what it does can also be done in PrPro. One might have more control, or tools in AE, but PrPro can handle a lot of animation too. I use it, until I run out of tools to do the work, then move to AE. Is there something in particular, that you wish to do? That will help someone direct you to PrPro, or to AE.
    Good luck,
    Hunt

  • 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 we delete a video stream of a webCamSubcriber

    Hi guys
    I m facing a problem that when i start video chat with some one, it goes fine.... but after then, when i close the video chat and starts with another person ... it will show three streams!!! two are in running condition and the third one is static just like image.... even if i start chat with the same person.. it will show the previous stream as well as the new streams.. and this process is going on and on to..... one stream adds every time i start video chat... (within a session).
    so any body can tell me how to delete a video stream of a webCamSubscriber.
    Thanks
    Abdul Aziz

    Hi Hironmav
    I m using webCamPublisher and when i say that i close the video chat it means I call the method webCamPub.stop() and at that time all the streams are disapear but after then when i again start the chat by webCamPub.publish() method it displays the current streams as well as the previous one.!! so my question is how to get rid of previous streams which ideally should be deleted when i call the webCamPub.stop() method.
    waiting for your reply
    Thanks
    Abdul Aziz

Maybe you are looking for