NetStream.Publish.BadName

For some reason my Internet connection between FME and FMS is
not stable. When connection
with my live stream is dropped I can't reconnect to FMS and
I'm getting " NetStream.Publish.BadName"
error. It is because previous session (project) exists for
random time.
The only solution I made is to put FME in command line mode
in batch continous loop (as
FME exits on that error so the standard reconnect procedure
does not work) - it takes even
few minutes in few cases I was able to trace (many tries). In
GUI mode situation is much is
worse - there is dialog window that requires clicking when
that error occurs.
The other one is manual and requires someone watching stream
24/7 - vhost restart - plus all
clients are dropped. Baaad - it is better to make clients
wait for stream 2-5 minutes than force all of them
to restart live stream Flash player.
Is live streaming with FME + FMS designed to work only on
stable LAN connection?
Even if that is true such disconnects can occur - so this bug
is really anoying.
Does anyone found other solutions than mine?

The same problem with latest FME 3.2 and FMS 4.5 default live app. Setting PublishTimeout=-1 serverside and/or increasing reconnect interval in FME does not help.
Any workaround except custom live app with shared objects?

Similar Messages

  • Problem with connection ( NetStream.Publish.BadName)

    Fri Sep 11 2009 08:52:10 : Session Started
    Fri Sep 11 2009 08:52:11 : Audio Encoding Started
    Fri Sep 11 2009 08:52:11 : Video Encoding Started
    Fri Sep 11 2009 09:13:59 : Primary - Network Status: NetConnection.Connect.Closed status
    Fri Sep 11 2009 09:14:04 : Primary - Disconnected
    Fri Sep 11 2009 09:14:04 : Primary - Re-establishing connection, attempt 1
    Fri Sep 11 2009 09:14:05 : Primary - Reconnected to FMS/3,0,1,123
    Fri Sep 11 2009 09:14:05 : Primary - Network Command: onBWDone
    Fri Sep 11 2009 09:14:05 : Primary - Stream[onetv] Status: Success
    Fri Sep 11 2009 09:14:05 : Primary - Network Command: onFCPublish
    Fri Sep 11 2009 09:14:07 : Primary - Stream[onetv] Status: NetStream.Publish.Start
    Fri Sep 11 2009 09:14:58 : Primary - Network Status: NetConnection.Connect.Closed status
    Fri Sep 11 2009 09:15:04 : Primary - Disconnected
    Fri Sep 11 2009 09:15:05 : Primary - Re-establishing connection, attempt 1
    Fri Sep 11 2009 09:15:05 : Primary - Reconnected to FMS/3,0,1,123
    Fri Sep 11 2009 09:15:05 : Primary - Stream[onetv] Status: Success
    Fri Sep 11 2009 09:15:05 : Primary - Network Command: onFCPublish
    Fri Sep 11 2009 09:15:07 : Primary - Stream[onetv] Status: NetStream.Publish.BadName
    Fri Sep 11 2009 09:27:20 : Audio Encoding Stopped
    Fri Sep 11 2009 09:27:20 : Video Encoding Stopped
    Fri Sep 11 2009 09:27:20 : Session Stopped
    Fri Sep 11 2009 09:27:23 : Primary - Network Status: NetConnection.Connect.Closed status
    Fri Sep 11 2009 09:27:23 : Primary - Disconnected
    Fri Sep 11 2009 09:27:24 : Primary - Connected to FMS/3,0,1,123
    Fri Sep 11 2009 09:27:24 : Primary - Network Command: onBWDone
    Fri Sep 11 2009 09:27:28 : Primary - Network Command: onFCPublish
    Fri Sep 11 2009 09:27:28 : Primary - Stream[onetv] Status: Success
    Fri Sep 11 2009 09:27:28 : Primary - Stream[onetv] Status: NetStream.Publish.Start
    Fri Sep 11 2009 09:27:28 : Session Started
    Fri Sep 11 2009 09:27:29 : Video Encoding Started
    Fri Sep 11 2009 09:27:29 : Audio Encoding Started
    Fri Sep 11 2009 12:23:03 : Primary - Network Status: NetConnection.Connect.Closed status
    Fri Sep 11 2009 12:23:09 : Primary - Disconnected
    Fri Sep 11 2009 12:23:09 : Primary - Re-establishing connection, attempt 1
    Fri Sep 11 2009 12:23:09 : Primary - Reconnected to FMS/3,0,1,123
    Fri Sep 11 2009 12:23:09 : Primary - Stream[onetv] Status: Success
    Fri Sep 11 2009 12:23:09 : Primary - Network Command: onFCPublish
    Fri Sep 11 2009 12:23:11 : Primary - Stream[onetv] Status: NetStream.Publish.BadName
    Fri Sep 11 2009 12:26:26 : Audio Encoding Stopped
    Fri Sep 11 2009 12:26:26 : Video Encoding Stopped
    Fri Sep 11 2009 12:26:26 : Session Stopped
    Fri Sep 11 2009 12:26:32 : Primary - Network Status: NetConnection.Connect.Closed status
    Fri Sep 11 2009 12:26:32 : Primary - Disconnected
    Fri Sep 11 2009 12:26:37 : Primary - Connected to FMS/3,0,1,123
    Fri Sep 11 2009 12:26:49 : Primary - Network Command: onFCPublish
    Fri Sep 11 2009 12:26:49 : Primary - Stream[onetv] Status: Success
    Fri Sep 11 2009 12:26:49 : Primary - Stream[onetv] Status: NetStream.Publish.Start
    Fri Sep 11 2009 12:26:49 : Session Started
    Fri Sep 11 2009 12:26:50 : Audio Encoding Started
    Fri Sep 11 2009 12:26:50 : Video Encoding Started
    Hy, this is from my log.
    I connect the flash media encoder to flash media server, and after a short time it disconnect from server and try to reconect automatically, that is good, but IT DON'T CONNECT!!!
    Stream[onetv] Status: NetStream.Publish.BadName
    Fri Sep 11 2009 12:26:26 : Audio Encoding Stopped
    Fri Sep 11 2009 12:26:26 : Video Encoding Stopped
    Fri Sep 11 2009 12:26:26 : Session Stopped
    Where is the problem??? What i can do to resolve this problem?????
    I'm waiting for your answers!
    Thanks

    The NetStream.Publish.BadName status means an attempt was made to publish to a stream that is already being published by someone else. Is another client using the same stream name?
    About the connections being closed, there a lots of conditions that could cause the connection to be lost. It may not be an FMS or FMLE error, it could be poor conditions on the local network, or between the local network and the server.

  • NetStream.Publish.Failed

    I'm trying to connect 2 swfs over Stratus and the second client is getting NetStream.Publish.Failed when I try to publish a stream. They both have connected to Stratus via the NetConnection and one can publish a stream but the second can not. I've made sue that each swf is using a different name to publish. I can't find this error listed anywhere in the documentation it only listed NetStream.Publish.BadName. I'm using the AIR 2 RC1 beta sdk from adobe labs set to publish for 10.1.
    Are there any other reasons why i would be getting NetStream.Publish.Failed?

    I found out why it was failing. I was entering the peerID I wanted to allow connection from instead of allowing any direction connection.
    so I had:
    stream = new NetStream(connection, farID);
    stream.publish( channel );
    where is should be:
    stream = new NetStream(connection, NetStream.DIRECT_CONNECTIONS);
    stream.publish( channel );
    then the other client needs to use both my farID and name of my stream in order to connect

  • Using variable name for Netstream Publish() (actionscript)

    Relatively new to Actionscript.  In the netstream publish() or play() methods, can I pass variable names to the methods instead of hard-coding the stream name?
    Example:
    private function publishLiveStream():void
                ns = new NetStream(nc);
                ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
                ns.client = this;
              // blah blah other stuff...
               ns.publish("thefilename", "record");
    I want to replace "thefilename" with a value passed from an input box or use dynamic naming (i.e. current date & time).

    you can use in procedure using sunopisis technology
    OdiExportMaster "-TODIR=/temp/" "-ZIPFILE_NAME=export.zip" "-XML_CHARSET=ISO-8859-1" "-JAVA_CHARSET=ISO8859_1" "-EXPORT_VERSIONS=YES"
    or you can use (unix System)
    OdiExportMaster "-TODIR=/#v_FileName" "-ZIPFILE_NAME=export.zip" "-XML_CHARSET=ISO-8859-1" "-JAVA_CHARSET=ISO8859_1" "-EXPORT_VERSIONS=YES"
    Hope it will work
    Thanks

  • NetStream.publish for P2P NetGroup fails in the FMS 4.0 AS

    Hi,
    I recently tried to modify the system-provided codes in the "multicast" folder, and could not get it work. I pinned down the issue to be the function call NetStream.publish("p2p_pindao1", "live") always failed for me. The proof the function call failed including:
    1. The returned value is false.
    2. I got no further events beyond NetStream.Connect.Success, i.e. I did not get the expected NetStream.Publish.Start
    The following are the testing codes
    application.onAppStart = function()
    var nc = new NetConnection();
    nc.onStatus = testNetStatus;
    nc.connect("rtmfp://localhost/TVLive");
    trace("to connect");
    function testNetStatus(info)
    trace("TestNetStatus:" + info.code);
    var gs = new GroupSpecifier("net.lysk.pindao1");
    gs.serverChannelEnabled = true;
    gs.postingEnabled = true;
    gs.peerToPeerDisabled = false;
    // Multicast address over which to exchange peer discovery.
    //var p2pm = "224.0.0.255:30000"; // BUGBUG
    // Must be enabled for LAN peer discovery to work
    //gs.ipMulticastMemberUpdatesEnabled = true; 
    var ng = new NetGroup(this, gs);
    ng.objNc = this;
    ng.objGs = gs;
    ng.onStatus = testNetGroupStatus;
    function testNetGroupStatus(info)
    trace("testNetGroupStatus:" + info.code);
    var ns = new NetStream(this.objNc, this.objGs);
    ns.onStatus = testNetStreamStatus;
    function testNetStreamStatus(info)
    trace("testNetStreamStatus:" + info.code);
    if (info.code == "NetStream.Connect.Success")
      if(!this.attach(Stream.get("mp4:sample1_1000kbps.f4v")))
       trace("can not attach");
      if (!this.publish("testpublish", "live"))
       trace ("can not publish");
    tracing outputs are the following:
    to connect
    TestNetStatus:NetConnection.Connect.Success
    testNetGroupStatus:NetGroup.Connect.Success
    testNetStreamStatus:NetStream.Connect.Success
    can not publish
    Your help in solving the problem will be highly appreciated.
    Thanks.

    em, it appears I was wrong in believing peerToPeerDisabled=true sufficed for P2P publishing, while multicastEnabled was for IP multicast. I will try out the answer. Thanks for the help.

  • NetStream publish and play synchronize buffers

    NetStream publish and play synchronize buffers

    I haven't tried to run your code, but something obvious is
    the server-side code. It doesn't do anything.
    When you publish a stream, you need to tell other client to
    connect to it... manually. There are three thing to account for. A
    client connecting needs to subscribe to all existing streams. A
    client connecting needs to inform all existings clients that it has
    published its stream and give them the stream name so they can
    subscribe. The client needs to receive stream names of any new
    (future) connecting clients so it can subscribe to their stream.
    First you need to publish your stream... lets say this is
    client A and publishes a stream named stream_A.
    1. Then you need to send the stream name (stream_A) to all
    other existing clients, so they can subscribe to it.
    2. Then you need to receive the names of existing clients
    streams, so the client can subscribe to them.
    The logic in step 1, will handle any new clients connecting
    in the future.
    If anyone sees any errors in this or has a better method..
    please feel free to add to it....

  • NetStream.publish() to AMS ends up with 1kb file.

    I'm using Adobe Media Server 4.5 and the FLEX 4.6.0 sdk.
    I have an .swf application that connects to Adobe Media Server over RMTP, takes audio and video input from the user's webcam and mic, and does a NetStream.publish() to stream the file to the server. When the user is done, I do a NetStream.stop(). On occasion, the resulting file will end up with a size of 1kb.
    What's causing this and how can I prevent it, or otherwise end the session and inform the user that something went wrong?
    Alternatively, these forums seem dead, so does anyone know of a place where my question might be better suited?

    Solved by changing the frame rate of the footage (image sequence) into any other frame rate, then change back to desired frame rate. In my case, after load the image sequence >check inspector of footage >change current frame rate (from 24fps to other fps) >change back frame rate to 24fps. Same bug in version 3.5.2. Hope it helps.

  • HI,Why every five minutes, the server - side NetStream.publish failure

    RTMP spread to the FMS, and then create netGroup and NetStream objects on the server side, then the NetStream.publish (), the beginning of everything is normal, but after five minutes, very strange happens to be five minutes, the client node receives less thanstream had, and I monitor the status of this server-side NetStream no change is to publish the start, why the five minutes it will automatically stop publishing flow RTMP stream has been no problem in the transmission

    i assume, from your post, that you are using FMS and are publishing a multicast stream.
    if you are using the "Flash Media Development Server", prior to release 4.5, multicast streams time out after about 10 minutes.  as of release 4.5, multicast streams time out after about 30 minutes.  to see this and other limits of the Development Server, see:
       http://www.adobe.com/products/flashmediaserver/helpmechoose.html
    if that is not the problem, then if you are writing your own server-side scripts, perhaps you are not anchoring a NetStream, Stream, or NetConnection object properly and it is being destroyed by the garbage collector.
    if you need more help with Flash Media Server, you should direct your questions to the Flash Media Server forums. the Codename Cirrus service is not based on FMS.

  • Primary - Stream[live_2521213_QPzTR2Uo] Status: NetStream.Publish.Rejected

    Have anyone had this same problem on trying to bradcast from FMLE to Justin.tv??
    I get this Log:
    Mon Jun 14 2010 18:18:21 : Video Encoding Started
    Mon Jun 14 2010 18:18:22 : Audio Encoding Started
    Mon Jun 14 2010 18:18:26 : Primary - Disconnected
    Mon Jun 14 2010 18:18:29 : Primary - Re-establishing connection, attempt 1
    Mon Jun 14 2010 18:18:30 : Primary - Reconnected to FMS/3,5,2,654
    Mon Jun 14 2010 18:18:30 : Primary - Stream[live_2521213_QPzTR2Uo] Status: Success
    Mon Jun 14 2010 18:18:30 : Primary - Stream[live_2521213_QPzTR2Uo] Status: NetStream.Publish.Rejected
    Mon Jun 14 2010 18:18:30 : Primary - Network Status: NetConnection.Connect.Closed status
    Mon Jun 14 2010 18:18:35 : Primary - Disconnected
    Mon Jun 14 2010 18:18:38 : Primary - Re-establishing connection, attempt 1
    Mon Jun 14 2010 18:18:39 : Primary - Reconnected to FMS/3,5,2,654
    Mon Jun 14 2010 18:18:39 : Primary - Stream[live_2521213_QPzTR2Uo] Status: Success
    Mon Jun 14 2010 18:18:39 : Primary - Stream[live_2521213_QPzTR2Uo] Status: NetStream.Publish.Rejected
    Mon Jun 14 2010 18:18:39 : Primary - Network Status: NetConnection.Connect.Closed status
    Mon Jun 14 2010 18:18:44 : Primary - Disconnected
    Mon Jun 14 2010 18:18:47 : Primary - Re-establishing connection, attempt 1
    And it goes on and on every 5 secs, can anyone help me???

    The only thing I can think of is there is an issue with your authentication.  Have you changed your justin.tv password since you generated the XML file?  In the justin.tv wiki it says
    "IMPORTANT: Beware that the text box labeled "Stream" contains a key that is like a password for streaming to your channel. Be careful when you are broadcasting your desktop not to show that area!"
    This implies to me that the XML file gets generated using the password that you use when you logged into justin.tv.  I think if you generate the XML and then change your password the XML file expires.  Try generating a new XML file, make sure to Open it in FMLE and try streaming again.

  • NetStream publish audioloss problem using FMS 3.5

    Hi All,
    I am new to flex 3.2.0 and FMS 3.5. I have problem using netstream data publish (i.e.record) the audio from client to FMS server. I tried NetStreamInfo class in flash player 10. Alert will show zero value.
    nsi = recordStream.info;
       if (nsi){
        Alert.show( nsi.audioLossRate.toString() );
    how to avoid data loss over the network. Please help
    Thanks
    Arulkumar

    Adding to my previous post this is the XML output i get when i try to access the fms admin console from local ip address i.e http://192.168.10.19:1111/fms_adminConsole.htm
    <?xml version="1.0" encoding="utf-8" ?>
    - <result>
    <level>error</level>
    <code>NetConnection.Connect.Rejected</code>
    <description>Admin user requires valid username and password.</description>
    <timestamp>2/3/2010 8:26:08 AM</timestamp>
    </result>
    but when i try to access fms admin console through public ip (http://212.77.xx.xx:1111/fms_adminConsole.htm) then it gives me the following :
    Internet Explorer cannot display the webpage.
    Any more suggestions Jay (because really ur the only one helping me out in this so far) ??

  • Live Webcam and Netstream.publish HELP!

    Hello! Im new to the forums. Im working on a project for work and im using FMS 3 and AS3. I've gotten to a point where google cant help me anymore. When I get my webcamera with flash and allow the camera to be used it then opens a netstream to the FMS server, which for some reason doesnt work all the way. I can see the new stream being published but i just stops and you cant view it. Here is my code.
    var my_nc:NetConnection = new NetConnection();
    my_nc.connect("rtmp://my_fms_server_ip/live/livestream");
    var camera ;
    var video ;
    function onCameraStatus( evt ):void {
        if (evt.code == "Camera.Muted"){
            trace("Camera Access Has Been Denied!") ;
        if (evt.code == "Camera.Unmuted"){
            trace("Camera Access Has Been Granted") ;
    camera = Camera.getCamera() ;
    camera.addEventListener(StatusEvent.STATUS, onCameraStatus) ;
    if (camera == null)
           Security.showSettings(SecurityPanel.CAMERA) ;
       }else{
    video = new Video(camera.width, camera.height) ;
    video.attachCamera(camera) ;
    addChild(video) ;
    var my_ns:NetStream = new NetStream(my_nc);
    my_ns.attachCamera(camera);
    my_ns.publish("cwysong");
    Please Help!

    I got everything working.. here is my code. FYI this is done in Actionscript 2.0 and im passing variables from PHP to actionscript using FlashVars.
         var nc:NetConnection = new NetConnection();
         nc.connect("rtmp://My.Server.IP/live/"+ confid);
         var ns:NetStream = new NetStream(nc);
    mycam = Camera.get();
         mymic = Microphone.get();
         myvid.attachVideo(mycam);
         mycam.setQuality(84500,0);
         mymic.setRate(11);
         ns.attachAudio(mymic);
         ns.attachVideo(mycam);
    ns.publish(+ uname);
    there ya go!

  • Netstream.publish

    Hi,
    I know Flash can capture webcam and record the video to FMS.
    Can I publish a streaming video to FMS ?
    I mean, I am streaming a video with netstream and I want record to FMS the output of that video.

    yes it is, sorry
    Instead of passing webcam output to FMS I want pass a video output I am playing with Flash AS3.

  • Netstream publish problem

    Hi,
    I am facing a problem to publish and play a live stream from
    FMS3. I am using flex3 (Action script 3 and FMS 3).
    I have coded a demo application with server side script. You
    can download this application and server side from this URL:
    Demo app:
    http://bang-dev.isprime.com/idma-test/FlashAngels/Amitabh/FMS_Issue/TestAppFMS.zip
    Server side:
    http://bang-dev.isprime.com/idma-test/FlashAngels/Amitabh/FMS_Issue/FMSTest.asc
    Please find the issue and let me know, how to fix it.
    To change the FMS server string: Go to Src >> Classes
    >> InitApp.as >> line no 38 and replace your string.
    Add a name at left side text field to publish the video.
    Add a name at right side text field to play the video.
    For the server side, just create a folder inside application
    folder of FMS with name of “FMSTest” and put the server
    side “FMSTest.asc “file there.
    Let me know incase you face any issue while deploying it.
    Thanks

    The Clinet side code is a zip file, The code is really
    simple, and there is only two files, one mxml ( you don't need to
    see this, just needed to run the project.), and one class file
    (InitApp.as).
    You can easily find, code related to play, publish or
    connect.
    and Server side file is just text file, with just
    acceptConnection method and few events with trace. Nothing else.
    You can try on your local FMS 3.
    Is there no one skilled, who can help me.
    Let me know incase I could help you to make it easier and to
    avoid confusions.

  • NetStream.publish() PC vs. Mac?

    I have an application that publishes a webcam stream to FMS and I am getting fantastic results on the PC, but on the Mac, I am getting some pixelation, but worse, the audio drops in/out completely.  I have tried upgrading the Mac to the latest flash player, but still no luck. 
    I have tried playing around with the camera/mic settings and still getting nowhere.  Again, PC works perfectly, Mac audio dropping out anywhere from 2-10 seconds, repeatedly. 
    Here are the current settings for the cam/mic:
    cam.setMode(320,240,cam.fps);
    cam.setQuality(40000,0);
    mic.setRate(11);
    I would really appreciate any help you guys can offer!
    thanks in advance.
    Steve

    Thank you, Barbara B, for your reply.  More specifically,...
    I have PSE3.0 installed on my pc.  I want to upgrade to the latest version and I also want to install the upgrade to my mac, so I can use PSE10 (or most current version) on both my pc and my mac.
    1-  Is there a way to upgrade my PSE3.0 to the latest version without purchasing the whole product?
    2-  Is this upgrade transferrable between my pc and my mac, so that I can have the program installed for use by and between both computers? 
    Thank you.

  • NetStream.publish speed very low?

    How to speed up the pace publish, config?client code?

    take the estiamtor wiht a pinch of salt untill your fttc is actualy enabled it wont give accurate info, if its already enabled and the information propagated to the line estimator then it could be down to a lot of different things, including but not limited ot the type of metal used in the line, known High Resistence joints etc etc. if the retail checker isnt giving and estimate then chances are its still awaiting activation and is just giving out the adslmax rateing for your area.

Maybe you are looking for

  • Apex Listener commercial license

    Hello, I created applications with Apex and I'm about to install Apex on an other database. I 'll maybe choose Apex Listener but I don't know if there is a commercial license for it: would my customers have to pay to use an apex application that runs

  • How do I make a photo my desktop in iPhoto 9.2 Thanks

    Can anyone help with this - How to make a photo a desktop picture in iPhoto 9.2  Thanks

  • How to use ITextmodel interface in VC++

    hai, i want to know how to use ITextModel interface in VC++, that is how to give the story to ITextModel interface, if any one knows please tell him ASAP regards, ram

  • Which equipment for that ?

    Is there any NI equipment which can do next thing on 60-100 channels: - need to measure resistance, or just voltage (if i have constant current source) - constant current source (need about 100 mA per channel) What's the best solution for that. I nee

  • Regarding import, export, and report programs in biw

    Hi to all, This is kittu, i want to know what type of abap code will be written on import programs, export programs, and report programs in biw and if we need to make any changes what type of changes can we make. waiting for reply from u all guys. by