Stopping FMLE programatically?

We've just started using Flash Media Live Encoder with an Osprey capture card on a Windows 2003 server.
The challenge I'm having it trying to figure out how to STOP the stream after a predetermined time.
We can start the product using the Windows scheduler, and that works okay, but I can't figure out how to get it to stop automatically.
The issue is, we're a PBS station, and want to stream only certain programs (live political debates, etc.)  So, we need a way to start the stream at, say, 7:00 PM. and stop it at 8:30 PM.
I actually considered scheduling SHUTDOWN.EXE to force a reboot of the server, but that seems a bit extreme.
The stream is being sent to a CDN, and then presented by JWplayer on our website.
Any suggestions?

Worked brilliantly -- thanks!
(Now I just have to figure out a way to get the JWplayer to replace the stopped image from the live stream with a "that's all, folks!" jpg image.)

Similar Messages

  • Switching audio sources without stopping FMLE

    We use several Osprey cards, and wish to change from one audio/video source to another audio/video source without stopping FMLE.
    We can do the video switching from one Osprey input to the other using wirecast or vidblaster software video mixers, but are at a loss how to switch the sudio from one osprey input to another without stopping FME and selecting the other audio inpout from the drop-down list. We do not know of any audio mixer that FMLE recognises with which we can accomplish changing one audio source to another withour stopping FMLE.
    Any information in this regard much appreciated,
    Thank you

    to my knowledge, there is no software mixer with 0 lag because its software.  Hardware allows for no lag because theres nothing reading the info, encoding etc.  Software reads the audio data, usually it chunks, this is why it creates lag.  i did some testing using a usb mic and listening for the amount of time between me making the sound and it actually coming out.  Its just barely noticeable to annoy the person talking if he or she were to be listening to it through headphones or speakers, but i would estimate about 1/8 of a second.  Though if you want to be able to remotely control a mixer and you have someone working with you with a little technical experience, you could have them rig up a remote control system using remote control airplane actuators to turn the knobs.
    also while looking mackie control mixers say they have motorized faders, and since its program controlled, i believe you can actually control the faders using a program, but his would mean getting a new mixer.  if you want to look these up, http://www.mackie.com/products/mcupro/

  • Starting and Stopping FMLE from command line yields corrupt .flv files

    I am using FMLE to record and live stream TV content. In order to this I am remotely calling FMLEcmd in order to start and stop encoding processes. The problem that I am running in to is that the .flv files generated are corrupt. The odd thing is that if I use the exact same profile XML from the GUI, then the encoding process works just fine and results appear as intended.
    Here is the way my workflow works:
    I start the process by calling
    FMLEcmd /p C:\lighttpd\htdocs\xml\default.xml /l C:\lighttpd\htdocs\logs\log.txt
    then at the conclusion of the recording I call
    FMLEcmd /s "C:\lighttpd\htdocs\files\default.flv"
    When I attempt to open the files using FFmpeg I get a codec error saying that no codecs were detected. When I attempt to open the files in VLC I get a error saying that the media types are "Undf". When I attempt to open or modify the files with flvtool2 I get an end-of-file error. My guess is that my stop command is incorrect and somehow abruptly stopping the stream, but I don't know another way to stop the stream. Do I need to specify a specific stream duration in the XML and make sure to call the stop command *after* the duration has been reached? What would cause this codec corruption when the same profile works properly from the GUI?
    Here is the profile I am attempting to use.
    <?xml version="1.0" encoding="UTF-16"?>
    <flashmedialiveencoder_profile>
        <preset>
            <name>Custom</name>
            <description></description>
        </preset>
        <capture>
            <video>
            <device>Osprey-440 Video Device 1A</device>
            <crossbar_input>0</crossbar_input>
            <frame_rate>20.00</frame_rate>
            <size>
                <width>640</width>
                <height>480</height>
            </size>
            </video>
            <audio>
            <device>SigmaTel Audio</device>
            <crossbar_input>0</crossbar_input>
            <sample_rate>22050</sample_rate>
            <channels>1</channels>
            <input_volume>75</input_volume>
            </audio>
        </capture>
        <process>
            <video>
            <preserve_aspect></preserve_aspect>
            <deinterlace></deinterlace>
            </video>
        </process>
        <encode>
            <video>
            <format>VP6</format>
            <datarate>650;</datarate>
            <outputsize>640x480;</outputsize>
            <advanced>
                <keyframe_frequency>5 Seconds</keyframe_frequency>
                <quality>Best Quality - Lower Framerate</quality>
                <noise_reduction>None</noise_reduction>
                <datarate_window>Medium</datarate_window>
                <cpu_usage>Dedicated</cpu_usage>
            </advanced>
            <autoadjust>
                <enable>false</enable>
                <maxbuffersize>1</maxbuffersize>
                <dropframes>
                <enable>false</enable>
                </dropframes>
                <degradequality>
                <enable>false</enable>
                <minvideobitrate></minvideobitrate>
                <preservepfq>false</preservepfq>
                </degradequality>
            </autoadjust>
            </video>
            <audio>
            <format>MP3</format>
            <datarate>48</datarate>
            </audio>
        </encode>
        <restartinterval>
            <days></days>
            <hours></hours>
            <minutes></minutes>
        </restartinterval>
        <reconnectinterval>
            <attempts></attempts>
            <interval></interval>
        </reconnectinterval>
        <output>
            <file>
            <limitbysize>
                <enable>false</enable>
                <size>10</size>
            </limitbysize>
            <limitbyduration>
                <enable>false</enable>
                <hours>0</hours>
                <minutes>60</minutes>
            </limitbyduration>
            <path>C:\lighttpd\htdocs\files\default.flv</path>
            </file>
        </output>
        <metadata>
            <entry>
            <key>author</key>
            <value></value>
            </entry>
            <entry>
            <key>copyright</key>
            <value></value>
            </entry>
            <entry>
            <key>description</key>
            <value></value>
            </entry>
            <entry>
            <key>keywords</key>
            <value></value>
            </entry>
            <entry>
            <key>rating</key>
            <value></value>
            </entry>
            <entry>
            <key>title</key>
            <value></value>
            </entry>
        </metadata>
        <preview>
            <video>
            <input>
                <zoom>100%</zoom>
            </input>
            </video>
            <audio></audio>
        </preview>
        <log>
            <level>100</level>
            <directory>C:\Documents and Settings\Administrator\My Documents\My Videos</directory>
        </log>
    </flashmedialiveencoder_profile>

    If issue of corrupt file after cmd line not in GUI mode. Are you using some automation to copy/paste output flv to someother location?
    AFAIK, after placing stop command, FMLE took some time to write proper EOF in FLV. wait ~10 sec for FMLE to complete file writing process and than play in FLV PLayer.
    I tried manually with steps you mentioned and it's working fine for me.I playerd file in Applian Flash PLayer. "http://www.applian.com/flvplayer/"

  • Stop timer programatically

    I know how to programmatically set the start date/time for the timer to start executing...
    But how does one set the end time so that the TimerTask would gracefully stop executing..
    This is the scenario:
    I want to post data to a servlet at a 5 minute interval and I want to do this only from 8 am to 5 pm everyday.
    I know that I need 2 TimerTasks. TimerTask1 and TimerTask2
    TimerTask1 is to execute scheduleAtFixedRate() every 5 minutes. And TimerTask2 needs to execute every 8 am.
    How do I tell TimerTask1 to stop posting data to the servlet when the time reaches 5 pm?
    Pls help. Thanks.

    put it in a tread that spawns at 8:00 am and then the spawned thread can check time every XX minutes. When it's 5pm stop the tread and dispose it appropriately.

  • Any way to control FMLE publishing?

    Is there any way to stop FMLE (3.0.1) from publishing a stream?
    I have seen code before where you send "NetStream.Publish.BadName" back to onFCPublish - example:
    Client.prototype.FCPublish = function( streamname )
       // Reject the stream
       this.call("onFCPublish", null, {code:"NetStream.Publish.BadName", description:streamname});
    The encoding log on my FMLE reads:
    Mon Mar 15 2010 14:33:09 : Primary - Network Command: onFCPublish
    Mon Mar 15 2010 14:33:09 : Primary - Stream[testStream] Status: Success
    Mon Mar 15 2010 14:33:10 : Primary - Stream[testStream] Status: NetStream.Publish.Start
    Mon Mar 15 2010 14:33:10 : Session Started
    Mon Mar 15 2010 14:33:12 : Video Encoding Started
    Mon Mar 15 2010 14:33:12 : Audio Encoding Started
    I can see where onFCPublish was called, but the stream still published.
    Any thoughts?

    What is your use case at first place? What you are seeing is expected behaviour. So you can let me know your use case and then we can go ahead and try to find solution for it.

  • Does FMLE support authenticating with FMS?

    When user publishes the live stream to FMS,
    he should provide user/password to authenticate.
    Is that viable with FMLE?

    Thanks,
    my other part of the problem is:
    is it possible to start/stop FMLE in actionscript for webcast[ing?

  • FMLE API

    Can I get my Flex app to use FMLE programatically to encode
    my live stream. Ideally, I would like to use H.264, but for now, I
    will be OK with Sorensen encoder as well. I cannot expect my user
    to be running FMLE on their PCs. If that is not possible, do you
    know if there is a way to use the Microsft H.264 in conjunction
    with my Flex app? Any help is appreciated. Thanks, Ramesh

    Hi Laurel, how would I use the flash player in my Flex app.
    Currently, in my flex app, I use Video class object and I get the
    camera using getCamera call, I create a NetConenction and NetStream
    and I call publish to stream the video using FMS. My understanding
    is that in my process, there is no encoding and I am sending s raw
    stream.
    If you are saying that flash player can encode H.263, should
    I be calling a special video object? Should I be using VideoDisplay
    object? Can you please clarify as to how I would use Flash player
    to stream out the message? Thanks, Ramesh

  • AMS play back stops once 30 ppl are watching

    Hello,
    I am posting this here and  the Adobe Forum service.
    I am streaming live/dvr with 5.0.4  using the m1.large ec2 server. I have streamed well with 100+ people watching at the same time for 72 hrs events.
    I have 14 live feeds each connected to a different aws cloudfront. All feeds exists on the 1 ec2 adobe server (livepkgr 1-14)
    My web code calls to an standard .swf strobe player on my server (that came with AMS,) through cloudfront also.
    My streams are viewed on my website through enbed code which  ask for .f4m and .m3u8 through amazon cloudfront code to reduce server calls.( as I thought this might help with any bandwidth issues since each cloudfront is suppose to be 27 extra cache servers?)  The problem I just ran into this weekend was, with the only difference being the .swf player was on adobe.com
    I was only using 1 live feed this time. Then, once 31 people were viewing on 1 cloudfront feed the strobe player would stop on the website.!!?? I would have to stop FMLE live feed  and restart each time. Then the feed would come back and again once 30+ viewers were watching, down again. And the feed was being shown on two separate websites. Both sites have unlimited bandwidth in terms of people who can log on to watch.
    I am only encoding at 400kbs. on 1 feed, through 1 cloudfront. My ec3 was only at 10% usage.
    30 ppl would be only 12 Mbps
    Can someone please help. What should be my best setup to get the most out of this size ec2 before have to move up to the larger servers.
    Seems as though I should be able to more than 30 people to watch at one time on a m1.large
    Thank you greatly.
    Extra note: I have used the c1. class ec2's and can get 150 viewers. The ec2 is 8x larger, but will I get this same problem when 240 viewers are watching?

    You say your sequence settings match the clips. But if they really match, there shouldn't even be an opportunity to render on the timeline.
    You are probably using a codec that is not DV - clearly it is not the same as your timeline or you wouldn't need to render.
    Thanks everyone for your input, but I'm still at a loss and pulling my hair out. First, let me reiterate that these clips play back perfectly smoothly in iMovie, and in a larger window to boot, without dropping any frames. So I doubt my older G4, or hard-drive data throughput, is to blame.
    Let me clarify the problem. When I view clips in the Viewer, I'm not sure that frames are being dropped. Rather, every 2 secs (like clockwork), the clip freezes momentarily, then plays smoothly for another 2 secs, almost as if a cache is being filled up before playing the next 2 sec.
    I've double and triple-checked that my settings, and clips, are for DV. The clip icon on the desktop is a little slate with the letters "DV" in the center.
    My A/V Settings show the Sequence Preset: DV NTSC 48 kHz
    My Sequence Settings are:
    Frame size: 720 x 480 NTSC DV (3:2)
    Pixel aspect ratio: NTSC-CCIR 601/DV (720x480)
    Field dominance: Lower (even)
    Editing timebase: 29.97
    Compressor: DV/DVC Pro NTSC
    Quality: 100% (i.e. Best)
    Scan mode: Interlaced
    Aspect ratio: 4:3
    Audio rate: 48 kHz
    Audio depth: 16-bit
    Audio config: Default
    Lastly, the only 2 strange things I've found is that even though the clips are DV, in the clip properties it says the data rate is 6.9 Mb/sec (I thought DV is 3.2 Mb/sec). Also, the audio says 32 kHz (I thought DV is 48 kHz). Does this mean anything?
    Thanks again!

  • Why does the /s not work for me in the commandline?

    We have a HD webcam pointed at a pooltable in our local poolbar. We use FMLE to stream to Dacast. To finish the project we want to automate the process: only stream between 17.00 and 01.00 hours every day.
    It looks like FMLEcmd + batch/cmd files + scheduled tasks can make this possible.
    I am diving into FMLEcmd. Starting up works fine. But stopping gives me troubles. I use the command: fmlecmd /s rtmp://live-ams.dacast.com/201346/21653+xxxx
    Reply is: "Stop command send to FMLE."
    Then i do fmlecmd /s and it says " All running FMLE sessions are: rtmp://live-ams.dacast.com/201346/21653+xxxx".
    Questions:
    1. What am i doing wrong here?
    2. When starting a session through cmd, will it be visible when you open FMLE Gui?
    Plan is to make two batchfiles: One to start FMLE streaming on a daily basis at 17.00 hours. And one to stop FMLE streaming at 01.00 in the morning. If somebody already has similar batchfiles ready for me to use, please let me know! If somebody has another solution for the above, also let me know!
    Already implemented the reconnect interval and times in the XML file... that was needed...
    Maybe stupid question: When i do the command "FMLEcmd", encoding starts, text displays "streaming to server", and i see bitrates moving. Is the only option then to close the command window? Because i see no cursor anymore?
    Thanks in advance, any help is appreciated.
    Marten Hoekstra
    ADDON: I just restarted my computer to stop the streaming session. But doing fmlecmd /s still says:
    C:\Program Files\Adobe\Flash Media Live Encoder 3.2>fmlecmd /s
    Adobe(R) Flash(R) Media Live Encoder Command Line Utility v 3.2
    Copyright(C) 2009-10 Adobe Systems Incorporated. All rights res
    Fri Jun 21 2013 17:34:18 : All running FMLE sessions are:
    rtmp://live-ams.dacast.com/201346/21653+xxxx

    Hi Vikrantt
    Many thanks for your reply.
    It doesn't give me an error message, it simply does not search. I type in my search term and it appears to search the document but then a dialogue box appears which says that my search term has not been found. This even happens when I am looking at a page in which my search term is clearly visible!
    I am shutting down now until the morning as I have been working almost 12 hours.

  • How to restart midlet ???

    i need to restart the midlet in my app to apply my new settings ???

    @Ran_Cu
    Please enlighten us which class has a method repaint (). I was unable to find any such method in the API docs.
    @OP: The startApp () method is called by the system whenever a MIDlet (1) starts and (2) resumes from standby. Similarly, pauseApp () is called when a MIDlet is sent to standby.
    You cannot restart a stopped MIDlet programatically.
    db

  • Broadcast Gradually Loses Quality

    Copy and pasted from my topic on creativecow.net:
    Hello everyone. My name is Danny, a Justin.TV broadcaster who goes by the name iMoogle. I recently bought a new computer along with an intensity pro, and have tested it using Adobe Flash Media Live Encoder (FMLE) to upload the stream to JTV. The video is perfectly fine for the first 7-8 minutes of intense action, but after that, many things start to happen:
    - The video bitrate show in FMLE starts jumping from very low to very high bitrates, nowhere near the selected bitrate (700kbps). I've seen it jump from 50kbps to a whopping 2000kbps for unknown reasons. It's not very noticeable in the video, but an inconsistent bitrate can never be good. When it streams perfectly fine, it only jumps between the range of 650 and 750.
    - The FPS starts to drop dramatically. From a very very steady 30FPS, then gradually down to 28, then 25, then 22, then if I choose to keep the broadcast on even longer, down to 10FPS! But I usually stop the broadcast after around 22 because the video becomes way too choppy for my viewers and I.
    - The audio becomes out of sync, and gets more and more delayed the longer I let the FMLE stream to JTV.
    Here are some videos of how good it is from the start, then how bad it gets in the end...
    GoW2 (360) - http://www.justin.tv/clip/4983dc87147c9fbe **I cussed a bit in this highlight. Just a warning =P
    CoD4 (360) - http://www.justin.tv/clip/910b1ec95d278003 **This is after 14 minutes of idling in the lobby.
    The strange thing is, that if I stop FMLE, then start it again, it will stream perfectly fine for 7-8 minutes then it will show these symptoms again, gradually getting worse. My computer is pretty good, and my CPU usage never goes over 50% while broadcasting.
    Intel Core 2 Quad Q9550
    4GB of RAM
    Geforce GTX 260
    About 3.5 Mbps upload speed (doesn't matter what my FMLE settings are put to. Even if I have a stream of only a total of 400 kbps, the quality will die down after 7 minutes)
    Update: Upgraded from Vista 32-bit to Windows 7 64-bit. Still no good.
    I'm going to try broadcasting with my old Dazzle DVC100 capture card and see if FMLE does the same thing. Update: FMLE indeed does the same thing and lags the broadcast, even though it worked perfectly fine on my old computer with no lag whatsoever. This cancels out the possibility of a problem with the Intensity Pro capture card. There's something wrong with my computer but I can't pin it down.
    Any help is appreciated. Thanks!

    I watched your videos. At first look, the problem seems to be of insufficient bitrate and lack of CPU. But as you mentioned that your CPU usage never goes above 50%, cpu shouldn't be a problem. If the bitrate is insufficient you might observe choppyness in the video. When you say that the problem occurs after ~7min, do you encode the same thing everytime after 7min? I mean, as the complexity of the content increases vp6 codec will try to budget more bits for the content. If it is unable to do so, video quality will suffer. Please attach FMLE session log file of the choppy session. If you are creating a local flv file, please verify whether the problem exists in the file.

  • When FMLE stopped,Remote RTMP stream to FMS 4.5 with rtmfp?

    When FMLE stopped,Remote RTMP stream to FMS 4.5 with rtmfp?
    edit  "applications/multicast/main.asc" ?
    HELP ME !!! THANKS!!!
    * File: main.asc
    * The server-side portion of the multicast sample application.
    * This app accepts publish and unpublish requests from FMLE, and republishes
    * the live stream from FMLE into a target Flash Group.
    // General Constants
    // "Constants" representing multicast event types.
    var TYPE_FUSION = 1;
    var TYPE_IP = 2;
    var TYPE_P2P = 3;
    // StreamContext Description, Constants and Functions
    * Type: StreamContext
    * This application tracks the context for live streams published to the server
    * that are being republished into a Flash Group. The StreamContext "type" used
    * for this is just an Object containing the following members:
    *   client         - The encoding/publishing client.
    *   streamName     - The source Stream name as published by the client.
    *   type           - The multicast event type.
    *   groupspec      - The groupspec identifying the Flash Group and capabilities.
    *   address        - IP multicast address (optional for pure P2P events).
    *   netConnection  - A loopback NetConnection used for the mcastNetStream.
    *   mcastNetStream - The NetStream used to republish the source Stream into
    *                    the Flash Group.
    *   netGroup       - An (optional) NetGroup handle for the target Group.
    *                    Only present for Fusion or P2P events.
    *   state          - One of the state constants defined immediately below
    *                    this comment.
    var STATE_INIT            = 0; // Starting state for a StreamContext.
    var STATE_CONNECTING      = 1; // Establishing loop-back connection.
    var STATE_CONNECTED       = 2; // Connection established.
    var STATE_PUBLISH_PENDING = 3; // Attempting to publish.
    var STATE_REPUBLISHING    = 4; // Actively republishing to multicast.
    var STATE_UNPUBLISHING    = 5; // Shutting down multicast republish.
    var STATE_UNPUBLISHED     = 6; // Unpublished successfully.
    var STATE_DISCONNECTING   = 7; // Shutting down loopback connection.
    var STATE_DISCONNECTED    = 8; // Connection shut down. Done.
    * Registers a source Stream published by the specified client, along with the
    * context for the multicast event, as a StreamContext Object.
    * @param client - The Client publishing the stream.
    * @param streamName - The source Stream name.
    * @param params - The parameters resulting from parsing the source Stream's
    *                 query string.
    * @return The new StreamContext Object for the registered Stream.
    function registerStream(client, streamName, params)
        var streamContext = { "client": client,
                              "streamName": streamName,
                              "type": params["fms.multicast.type"],
                              "groupspec": params["fms.multicast.groupspec"] };
    if (params["fms.multicast.interface"])
      streamContext["interfaceAddress"] = params["fms.multicast.interface"];
        if (params["fms.multicast.address"])
            streamContext["address"] = params["fms.multicast.address"],
        streamContext.state = STATE_INIT;
        updateStreamContextLookups(streamContext);
        trace("Registered multicast context for source stream: " + streamName);
        return streamContext;
    * Updates the indexed lookups installed for the passed StreamContext Object
    * with the application.
    * @param streamContext - The StreamContext Object to (re)index.
    function updateStreamContextLookups(streamContext)
        application.streamTable[streamContext.streamName] = streamContext;
        if (streamContext.netConnection)
            application.netConnTable[streamContext.netConnection] = streamContext;
        if (streamContext.mcastNetStream)
            application.mcastNetStreamTable[streamContext.mcastNetStream] = streamContext;
        if (streamContext.netGroup)
            application.netGroupTable[streamContext.netGroup] = streamContext;
    * Provides access to the StreamContext Object for a registered source Stream
    * by name.
    * @param streamName - A registered source Stream name.
    * @return The associated StreamContext Object; undefined if the source Stream
    *         name is not registered.
    function getStreamContextForSourceStream(streamName)
        return application.streamTable[streamName];
    * Provides access to the StreamContext Object for a given server-side
    * NetConnection hosting a multicast NetStream.
    * @param netConnection - A server-side NetConnection.
    * @return The associated StreamContext Object; undefined if the passed
    *         NetConnection is not indexed to a StreamContext.
    function getStreamContextForNetConnection(netConnection)
        return application.netConnTable[netConnection];
    * Provides access to the StreamContext Object for a given multicast NetStream.
    * @param netStream - A multicast NetStream.
    * @return The associated StreamContext Object; undefined if the passed
    *         NetStream is not indexed to a StreamContext.
    function getStreamContextForMulticastNetStream(netStream)
        return application.mcastNetStreamTable[netStream];
    * Provides access to the StreamContext Object for a given NetGroup associated
    * with a multicast NetStream.
    * @param netGroup - A NetGroup.
    * @return The associated StreamContext Object; undefined if the passed
    *         NetGroup is not indexed to a StreamContext.
    function getStreamContextForNetGroup(netGroup)
        return application.netGroupTable[netGroup];
    * Unregisters the StreamContext from the application.
    * @param streamContext - The StreamContext Object to unregister.
    function unregisterStreamContext(streamContext)
        if (streamContext.netConnection)
            delete application.netConnTable[streamContext.netConnection];
        if (streamContext.mcastNetStream)
            delete application.mcastNetStreamTable[streamContext.mcastNetStream];
        if (streamContext.netGroup)
            delete application.netGroupTable[streamContext.netGroup];
        trace("Unregistered multicast context for source stream: " +
              streamContext.streamName);
    // Application callback functions
    * Initializes global StreamContext lookup tables.
    application.onAppStart = function()
        application.streamTable = {};
        application.netConnTable = {};
        application.mcastNetStreamTable = {};
        application.netGroupTable = {};
    * Handles a publish event for the application by validating the request
    * and bridging the published stream into a target Flash Group. Invalid
    * publish requests are ignored and the publishing client's connection
    * is closed.
    * @param client - The publishing client.
    * @param stream - The published stream.
    application.onPublish = function(client, stream)
        //trace("Handling publish request for source stream: " + stream.name);
        var params = parseQueryString(stream.publishQueryString);
        if (!validateStreamParams(params))
            application.disconnect(client);
            return;
        var prevContext = getStreamContextForSourceStream(stream.name);
        if (prevContext)
            forceCloseStreamContext(prevContext);
        // Register source Stream, and kick off the async process that will
        // eventually wire-up the associated multicast NetStream.
        var streamContext = registerStream(client, stream.name, params);
        openMulticastConnection(streamContext);
    * Handles an unpublish event for the application by shutting down
    * any associated multicast NetStream.
    * @param client - The unpublishing client.
    * @param stream - The source stream being unpublished.
    application.onUnpublish = function(client, stream)
        trace("Handling unpublish request for source stream: " + stream.name);
        var streamContext = getStreamContextForSourceStream(stream.name);
        if (streamContext && (streamContext.state <= STATE_REPUBLISHING))
            destroyStreamContext(streamContext);
    // Callback functions for NetConnection and multicast NetStream/NetGroup wiring.
    * First step in setting up a republished multicast NetStream; open the loopback
    * connection it requires.
    * @param streamContext - The StreamContext Object for the publish event.
    function openMulticastConnection(streamContext)
        var nc = new NetConnection();
        nc.onStatus = netConnectionStatusHandler;
        streamContext.netConnection = nc;
        updateStreamContextLookups(streamContext);
        streamContext.state = STATE_CONNECTING;
        nc.connect(resetUriProtocol(streamContext.client.uri, "rtmfp"));
    * Status event handler for the loopback NetConnection used by the multicast
    * NetStream. Advances setup upon successful connection, or triggers or advances
    * tear-down as a result of connection loss or an unpublish and clean shutdown.
    * @param info - The status info Object.
    function netConnectionStatusHandler(info)
        var streamContext = getStreamContextForNetConnection(this);
        trace("Multicast NetConnection Status: " + info.code +
              (streamContext ? ", Source stream: " + streamContext.streamName : ", Not associated with a source stream."));
        if (streamContext)
            switch (info.code)
            case "NetConnection.Connect.Success":
                streamContext.state = STATE_CONNECTED;
                // If event type is Fusion or P2p, wire up a NetGroup for neighbor
                // bootstrapping and maintenance ahead of (re)publishing the stream.
                var type = streamContext.type;
                if (type == TYPE_FUSION || type == TYPE_P2P)
                    initNetGroup(streamContext);
                else
                    initMulticastNetStream(streamContext);
                break;
            case "NetConnection.Connect.Failed":
            case "NetConnection.Connect.Rejected":
            case "NetConnection.Connect.AppShutdown":
                trace("MULTICAST PUBLISH ERROR: Failed to establish server-side NetConnection for use by multicast NetStream. " +
                      "Status code: " + info.code + ", description: " + info.description + ", Source stream: " +
                      streamContext.streamName);
                streamContext.state = STATE_DISCONNECTED;
                destroyStreamContext(streamContext);
                break;
            case "NetConnection.Connect.Closed":
                if (streamContext.state < STATE_DISCONNECTING)
                    trace("MULTICAST PUBLISH ERROR: Unexpected server-side NetConnection close. " +
                         "Status code: " + info.code + ", description: " + info.description + ", Source stream: " +
                         streamContext.streamName);
                streamContext.state = STATE_DISCONNECTED;
                destroyStreamContext(streamContext);
                break;
            default:
                // Ignore.
    * Initializes the multicast NetGroup following a successful connection of its
    * underlying loopback NetConnection. This hook is optional and only runs for
    * event types of Fusion and pure P2P.
    * @param streamContext - The StreamContext Object for the multicast publish.
    function initNetGroup(streamContext)
        var ng = null;
        try
            ng = new NetGroup(streamContext.netConnection, streamContext.groupspec);
        catch (e)
            trace("MULTICAST PUBLISH ERROR: Failed to construct NetGroup. Error: "
                  + e.name + (e.message ? " " + e.message : "") +
                  ", Source stream: " + streamContext.streamName);
            destroyStreamContext(streamContext);
            return;
        ng.onStatus = netGroupStatusHandler;
        streamContext.netGroup = ng;
        updateStreamContextLookups(streamContext);
    * Status event handler for the multicast NetGroup. Advances to initializing the
    * multicast NetStream upon successful NetGroup connect. Otherwise, triggers
    * shut down.
    * @param info - The status info Object.
    function netGroupStatusHandler(info)
        var streamContext = getStreamContextForNetGroup(this);
        trace("Multicast NetGroup Status: " + info.code +
              (streamContext ? ", Source stream: " + streamContext.streamName : ", Not associated with a source stream."))
        if (streamContext)
            switch (info.code)
            case "NetGroup.Connect.Success":
                initMulticastNetStream(streamContext);
                break;
            case "NetGroup.Connect.Failed":
            case "NetGroup.Connect.Rejected":
                trace("MULTICAST PUBLISH ERROR: Failed to connect multicast NetGroup. " +
                      "Status code: " + info.code + ", description: " + info.description +
                      ", Source stream: " + streamContext.streamName);
                destroyStreamContext(streamContext);
                break;
            case "NetGroup.MulticastStream.UnpublishNotify":
                // At this point, multicast publishers will be notified;
                // continue shut down.
                destroyStreamContext(streamContext);
                break;
            default:
                // Ignore.
    * Initializes the multicast NetStream following a successful connection of its
    * underlying loopback NetConnection.
    * @param streamContext - The StreamContext Object for the multicast publish.
    function initMulticastNetStream(streamContext)
        var ns = null;
        try
            ns = new NetStream(streamContext.netConnection, streamContext.groupspec);
        catch (e)
            trace("MULTICAST PUBLISH ERROR: Failed to construct multicast NetStream. Error: " +
                  e.name + (e.message ? " " + e.message : "") +
                  ", Source stream: " + streamContext.streamName);
            destroyStreamContext(streamContext);
            return;
        var type = streamContext.type;
        if (type == TYPE_FUSION || type == TYPE_IP)
      var iAddr = (streamContext.interfaceAddress) ? streamContext.interfaceAddress : null;
            try
                trace("Multicast NetStream will publish to IP address: " + streamContext.address +
          " on interface address: " + ((iAddr) ? iAddr : "default") +
                      ", Source stream: " + streamContext.streamName);
                ns.setIPMulticastPublishAddress(streamContext.address, iAddr);
            catch (e2)
                trace("MULTICAST PUBLISH ERROR: Failed to assign IP multicast address and port for publishing. Address: "
                      + streamContext.address + " on interface address: " + ((iAddr) ? iAddr : "default") +
          ", Source stream: " + streamContext.streamName);
                destroyStreamContext(streamContext);
                return;
        ns.onStatus = netStreamStatusHandler;
        streamContext.mcastNetStream = ns;
        updateStreamContextLookups(streamContext);
        streamContext.state = STATE_PUBLISH_PENDING;
    * Status event handler for the multicast NetStream. Advances state upon successful
    * connect and publish, or upon successful unpublish. Triggers tear-down if we fail
    * to attach to a source Stream to republish.
    * @param info - The status info Object.
    function netStreamStatusHandler(info)
        var streamContext = getStreamContextForMulticastNetStream(this);
        trace("Multicast NetStream Status: " + info.code +
              (streamContext ? ", Source stream: " + streamContext.streamName : ", Not associated with a source stream."))
        if (streamContext)
            switch (info.code)
            case "NetStream.Connect.Success":
                if (!this.attach(Stream.get(streamContext.streamName)))
                    trace("MULTICAST PUBLISH ERROR: Failed to attach multicast NetStream to source. Source stream: " +
                          streamContext.streamName);
                    destroyStreamContext(streamContext);
        //var stream;
                //stream = Stream.get("liveStream");
                    //return;
                }else{
                this.publish(streamContext.streamName, "live");
                break;
            case "NetStream.Publish.Start":
                streamContext.state = STATE_REPUBLISHING;
                break;
            case "NetStream.Unpublish.Success":
                streamContext.state = STATE_UNPUBLISHED;
                // Wait for unpublish notify event if the context has a NetGroup;
                // otherwise continue shut down now.
                if (!streamContext.netGroup)
                    destroyStreamContext(streamContext);
                    break;
            default:
                // Ignore.
    * The common tear-down hook. Other functions that manage or shut down
    * the StreamContext Object delegate to this function upon detecting a fatal
    * error or during shut down.
    * @param streamContext - The StreamContext Object for the source Stream and
    *                        (potentially wired-up) multicast NetStream.
    function destroyStreamContext(streamContext)
        // Unregister by Stream name immediately; lookups by NetConnection, NetGroup
        // and multicast NetStream remain in place until tear-down is complete.
        delete application.streamTable[streamContext.streamName];
        switch (streamContext.state)
        case STATE_REPUBLISHING:
            streamContext.mcastNetStream.attach(false);
            streamContext.mcastNetStream.publish(false);
            streamContext.state = STATE_UNPUBLISHING;
            return;
        case STATE_CONNECTING:
        case STATE_CONNECTED:
        case STATE_PUBLISH_PENDING:
        case STATE_UNPUBLISHED:
            // Delete status handler callbacks and cleanup in case we arrived here
            // as a result of a force close.
            if (streamContext.netGroup)
                delete streamContext.netGroup.onStatus;
            if (streamContext.mcastNetStream)
                streamContext.mcastNetStream.attach(false);
                delete streamContext.mcastNetStream.onStatus;
            streamContext.netConnection.close();
            streamContext.state = STATE_DISCONNECTING;
            return;
        default:
            // Fall-through.
        // At this point, we either never got to the republishing state or we've
        // proceeded through the clean shut down steps above. Everything for this
        // StreamContext can go away.
        unregisterStreamContext(streamContext);
    * Utility function used to force close a StreamContext in the event that we
    * start handling a republish of a Source stream before the context for its
    * prior incarnation has been torn down.
    * @param streamContext - The StreamContext Object for the source Stream.
    function forceCloseStreamContext(streamContext)
        trace("Force closing previous multicast context for source stream: " + stream.name);
        prevContext.state = STATE_UNPUBLISHED;
        destroyStreamContext(prevContext);
    // Client callback functions
    * A no-op. Answers the RPC in the fashion expected by encoders, but the real
    * work happens in application.onPublish.
    * @param streamName - The name of the stream being published.
    Client.prototype.FCPublish = function(streamName)
        this.call("onFCPublish",
                  null,
                  {code:"NetStream.Publish.Start", description:streamName});
    * A no-op. Answers the RPC in the fashion expected by encoders, but the real
    * work happens in application.onUnpublish.
    * @param streamName - The name of the stream being unpublished.
    Client.prototype.FCUnpublish = function(streamName)
        this.call("onFCUnpublish",
                  null,
                  {code:"NetStream.Unpublish.Success", description:streamName});
    * If the client invoker's ip matches what was captured for a currently publishing
    * stream, assume it's the same client and reset the stream. Otherwise, ignore.
    * @param streamName - The name of the stream being released.
    Client.prototype.releaseStream = function(streamName)
        var streamContext = getStreamContextForSourceStream(streamName);
        if (streamContext &&
            (streamContext.client.ip == this.ip) &&
            (streamContext.state <= STATE_REPUBLISHING))
            // Only tear-down an orphaned stream if it's not
            // already shutting down (see state check above).
            destroyStreamContext(streamContext);
    // Helper functions
    * Validates that a newly published stream has correct metadata (e.g. query
    * string parameters) to republish into a Flash Group. This function also
    * writes a message to the application log for any validation failures.
    * @param params - The quiery string parameters for the source Stream.
    * @return true if valid; otherwise false.
    function validateStreamParams(params)
        var empty = true;
        for (var param in params)
           empty = false;
           break;
        if (empty)
            trace("MULTICAST PUBLISH ERROR: Stream query string is empty.");
            return false;
        if (!params["fms.multicast.type"])
    trace("MULTICAST PUBLISH ERROR: Stream query string does not specify a 'fms.multicast.type'.");
            return false;
        var type = params["fms.multicast.type"];
        if (type != 1 && type != 2 && type != 3)
            trace("MULTICAST PUBLISH ERROR: 'fms.multicast.type' has invalid value: " + type);
            return false;
        if (!params["fms.multicast.groupspec"])
            trace("MULTICAST PUBLISH ERROR: Stream query string does not specify a 'fms.multicast.groupspec'.");
            return false;
        // Fusion and IP require an address:port.
        if ((type == 1 || type == 2) &&
            !params["fms.multicast.address"])
            trace("MULTICAST PUBLISH ERROR: Stream query string does not specify a 'fms.multicast.address'.");
            return false;
        // No obvious validation issues.
        return true;
    * Parses the supplied query string, and if valid, returns an Object populated
    * with the name-value pairs contained in the query string. The simple processing
    * here does not preserve multiple name-value pairings having the same name; the
    * last value seen wins. Parameters with no value are mapped to "" (empty String)
    * in the returned Object.
    * @param queryString - A query string portion of a URI, not including the leading
    *                     '?' character.
    * @return An Object containing a key-value mapping for each name-value parameter
    *         defined in the query string; Object is empty if the query string is
    *         invalid.
    function parseQueryString(queryString)
        var result = {};
        var decoded = "";
        try
            decoded = decodeURIComponent(queryString);
        catch (e) // Invalid URI component; return empty result.
            return result;
        if (decoded.length)
            var params = decoded.split('&');
            for (var i in params)
                var pair = params[i];
         var sepIndex = pair.indexOf('=');
                if (sepIndex != -1)
                    var name = pair.substr(0, sepIndex);
                    result[name] = pair.substr(sepIndex + 1);
                else
                    result[pair] = "";
        return result;
    * Utility function used to swap out the protocol (scheme) portion
    * of a given URI with an alternate.
    * @param uri - The full URI.
    * @param desiredProtocol - The replacement protocol.
    * @return The URI with its protocol replaced.
    function resetUriProtocol(uri, desiredProtocol)
        var sepIndex = uri.indexOf("://");
        return desiredProtocol + uri.substr(sepIndex);

    HELP ME !!! THANKS!!!

  • Programati​cally stop and start computer process

    Is there a way to programatically start and stop computer processes/services using LabVIEW?
    Thanks,
    Taylor

    Which OS? For Windows you can use System Exec to execute DOS commands to start programs. For services use the net start or net stop <servicename> commands.

  • FMLE encoding stopped: Problem with capture device. Incorrect samples given by the device.

    Hi Support,
    I am trying to use FMLE to encode and stream video from an Axis P1346 IP camera, via Axis' Streaming Assistant software, to a Wowza server.
    Everyting appears to be working perfectly and the encoding and resultant stream quality is excellent. Sometimes after a few hours and sometimes after just a few minutes, the encoding will stop with the following error:
    Tue Mar 26 2013 11:47:18 : Session Stopped
    Tue Mar 26 2013 11:47:18 : Problem with capture device. Incorrect samples given by the device. Stopping encoding session.
    I have attached a recent log of a session that only lasted a few minutes - do you have any ideas on how to resolve this instability?
    =================================================================
    File: C:\Program Files (x86)\Adobe\Flash Media Live Encoder 3.2\FlashMediaLiveEncoder.exe
    Description: Adobe® Flash® Media Live Encoder
    Copyright: © 2009 - 10 Adobe Systems Incorporated. All Rights Reserved. Adobe, the Adobe logo, and Flash are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. All other trademarks are the property of their respective owners. <AdobeIP#0000716>
    Version: 3.2.0.9932
    =================================================================
    Tue Mar 26 2013 11:42:10 : Selected video input device: TowerBridge
    Tue Mar 26 2013 11:42:10 : Failed with error 80040154:CoCreateInstance(CLSID_VideoMixingRenderer9, NULL, CLSCTX_INPROC, IID_IBaseFilter, pFilterVideoMixingRenderer.ppv())
    Tue Mar 26 2013 11:42:10 : Display Color Quality Warning : Display color quality is currently lower than 32 bit. Colors in video display may be distorted when encoding is not on. To change the display color, open the Display Properties, Settings tab and change color quality to 32 bit.
    Tue Mar 26 2013 11:42:12 : No audio capture devices detected. : Flash Media Live Encoder requires an audio capture device to be connected and properly installed.
    Tue Mar 26 2013 11:42:24 : Primary - Connected to FMS/3,5,7,7009
    Tue Mar 26 2013 11:42:24 : Primary - Network Command: onFCPublish
    Tue Mar 26 2013 11:42:24 : Primary - Stream[fmlestream] Status: Success
    Tue Mar 26 2013 11:42:24 : Primary - Stream[fmlestream] Status: NetStream.Publish.Start
    ==========================================================
    <?xml version="1.0" encoding="UTF-16"?>
    <flashmedialiveencoder_profile>
        <preset>
            <name>Custom</name>
            <description></description>
        </preset>
        <capture>
            <video>
            <device>TowerBridge</device>
            <crossbar_input>0</crossbar_input>
            <frame_rate>30.00</frame_rate>
            <size>
                <width>640</width>
                <height>360</height>
            </size>
            </video>
            <timecode>
            <frame_rate>15</frame_rate>
            <systemtimecode>true</systemtimecode>
            <devicetimecode>
                <enable>false</enable>
                <vertical_line_no>16</vertical_line_no>
                <burn>false</burn>
                <row>Bottom</row>
                <column>Left</column>
            </devicetimecode>
            </timecode>
        </capture>
        <encode>
            <video>
            <format>H.264</format>
            <datarate>1000;</datarate>
            <outputsize>640x360;</outputsize>
            <advanced>
                <profile>Baseline</profile>
                <level>3.1</level>
                <keyframe_frequency>1 Second</keyframe_frequency>
            </advanced>
            <autoadjust>
                <enable>false</enable>
                <maxbuffersize>1</maxbuffersize>
                <dropframes>
                <enable>false</enable>
                </dropframes>
                <degradequality>
                <enable>false</enable>
                <minvideobitrate></minvideobitrate>
                <preservepfq>false</preservepfq>
                </degradequality>
            </autoadjust>
            </video>
        </encode>
        <restartinterval>
            <days></days>
            <hours></hours>
            <minutes></minutes>
        </restartinterval>
        <reconnectinterval>
            <attempts></attempts>
            <interval></interval>
        </reconnectinterval>
        <output>
            <rtmp>
            <url>rtmp://localhost/live</url>
            <backup_url></backup_url>
            <stream>fmlestream</stream>
            </rtmp>
        </output>
        <metadata>
            <entry>
            <key>author</key>
            <value>Octopus MT</value>
            </entry>
            <entry>
            <key>copyright</key>
            <value>Octopus MT</value>
            </entry>
            <entry>
            <key>description</key>
            <value>Tower Bridge - London, UK</value>
            </entry>
            <entry>
            <key>keywords</key>
            <value>"Tower Bridge", London</value>
            </entry>
            <entry>
            <key>rating</key>
            <value></value>
            </entry>
            <entry>
            <key>title</key>
            <value>Tower Bridge - LIVE</value>
            </entry>
        </metadata>
        <preview>
            <video>
            <input>
                <zoom>100%</zoom>
            </input>
            <output>
                <zoom>100%</zoom>
            </output>
            </video>
            <audio></audio>
        </preview>
        <log>
            <level>100</level>
            <directory>C:\Users\Administrator\Videos</directory>
        </log>
    </flashmedialiveencoder_profile>
    ==========================================================
    DumpGraph [00CA91F8]
        Filter [00CABFDC] Output Video Renderer
              Pin [00CAC3B4] Input [Input] Connected to pin [00CACE1C]
        Filter [00CA9C8C] Input Video Renderer
              Pin [00CAA064] Input [Input] Connected to pin [03BA33A4]
        Filter [02F6AF10] Mux
              Pin [02F6AF70] FLV7 [Input] Connected to pin [02F6FC00]
              Pin [02F6B790]  audio [ Input] This pin is not Connected
              Pin [02F6BA08]  out [ Output] This pin is not Connected
        Filter [00CAEADC] AVI Decompressor 0003
              Pin [00CAEC14] XForm In [Input] Connected to pin [02F70D88]
              Pin [00CACE1C] XForm Out [Output] Connected to pin [00CAC3B4]
        Filter [03BA326C] AVI Decompressor
              Pin [00CAACD4] XForm In [Input] Connected to pin [02F68BF8]
              Pin [03BA33A4] XForm Out [Output] Connected to pin [00CAA064]
        Filter [02F70048] H264 Compressor
              Pin [02F70070] Input [Input] Connected to pin [02F6F898]
              Pin [02F70D88] Preview [Output] Connected to pin [00CAEC14]
              Pin [02F6FC00] Output1 [Output] Connected to pin [02F6AF70]
              Pin [02F71228]  Output2 [ Output] This pin is not Connected
        Filter [02F68AF0] Input RGB
              Pin [02F68B08] Input [Input] Connected to pin [02F60178]
              Pin [02F68BF8] Output [Output] Connected to pin [00CAACD4]
        Filter [02F6F118] FPS Controller Encoder
              Pin [02F6F128] Input [Input] Connected to pin [02F6E880]
              Pin [02F6F898] Output [Output] Connected to pin [02F70070]
        Filter [02F5FAB8] YV12
              Pin [02F5FAD0] Input [Input] Connected to pin [03BA3F24]
              Pin [02F60178] Output [Output] Connected to pin [02F68B08]
        Filter [02F6E778] Resize
              Pin [02F6E790] Input [Input] Connected to pin [02F6E620]
              Pin [02F6E880] Output [Output] Connected to pin [02F6F128]
        Filter [02F6DF60] YV12 0002
              Pin [02F6DF78] Input [Input] Connected to pin [02F6DE00]
              Pin [02F6E620] Output [Output] Connected to pin [02F6E790]
        Filter [02F6D680] FPS Controller Resize
              Pin [02F6D690] Input [Input] Connected to pin [00CA9B6C]
              Pin [02F6DE00] Output [Output] Connected to pin [02F6DF78]
        Filter [00CAB9CC] Video Tee
              Pin [00CABA34] Input [Input] Connected to pin [03B9EE9C]
              Pin [03BA3F24] Output1 [Output] Connected to pin [02F5FAD0]
              Pin [00CA9B6C] Output2 [Output] Connected to pin [02F6D690]
              Pin [03BA3454]  Output3 [ Output] This pin is not Connected
        Filter [00CA99C4] Smart Tee
              Pin [00CA9A2C] Input [Input] Connected to pin [00C0974C]
              Pin [03B9EE9C] Capture [Output] Connected to pin [00CABA34]
              Pin [00CAE204]  Preview [ Output] This pin is not Connected
        Filter [00C0A6DC] SOURCE
              Pin [00C0974C] Video [Output] Connected to pin [00CA9A2C]
    DumpGraph [00CA91F8]
        Filter [00CABFDC] Output Video Renderer
              Pin [00CAC3B4] Input [Input] Connected to pin [00CACE1C]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {E436EB7A-524F-11CE-9F53-0020AF0BA770}  MEDIASUBTYPE_RGB8
    Not temporally compressed
    Sample size 230400
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 8 bpp c:0
    Image size 230400
    Planes 1
    Pels per metre (0, 0)
    Colours used 256
    AvgTimePerFrame 333333, 30 fps
        Filter [00CA9C8C] Input Video Renderer
              Pin [00CAA064] Input [Input] Connected to pin [03BA33A4]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {E436EB7A-524F-11CE-9F53-0020AF0BA770}  MEDIASUBTYPE_RGB8
    Not temporally compressed
    Sample size 230400
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 8 bpp c:0
    Image size 230400
    Planes 1
    Pels per metre (0, 0)
    Colours used 256
    AvgTimePerFrame 333333, 30 fps
        Filter [02F6AF10] Mux
              Pin [02F6AF70] FLV7 [Input] Connected to pin [02F6FC00]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {37564C46-0000-0010-8000-00AA00389B71}  Unknown GUID Name
    Temporally compressed
    Variable size samples
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:37564c46
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F6B790]  audio [ Input] This pin is not Connected
              Pin [02F6BA08]  out [ Output] This pin is not Connected
        Filter [00CAEADC] AVI Decompressor 0003
              Pin [00CAEC14] XForm In [Input] Connected to pin [02F70D88]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {30323449-0000-0010-8000-00AA00389B71}  Unknown GUID Name
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:30323449
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [00CACE1C] XForm Out [Output] Connected to pin [00CAC3B4]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {E436EB7A-524F-11CE-9F53-0020AF0BA770}  MEDIASUBTYPE_RGB8
    Not temporally compressed
    Sample size 230400
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 8 bpp c:0
    Image size 230400
    Planes 1
    Pels per metre (0, 0)
    Colours used 256
    AvgTimePerFrame 333333, 30 fps
        Filter [03BA326C] AVI Decompressor
              Pin [00CAACD4] XForm In [Input] Connected to pin [02F68BF8]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {56555949-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_IYUV
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:56555949
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [03BA33A4] XForm Out [Output] Connected to pin [00CAA064]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {E436EB7A-524F-11CE-9F53-0020AF0BA770}  MEDIASUBTYPE_RGB8
    Not temporally compressed
    Sample size 230400
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 8 bpp c:0
    Image size 230400
    Planes 1
    Pels per metre (0, 0)
    Colours used 256
    AvgTimePerFrame 333333, 30 fps
        Filter [02F70048] H264 Compressor
              Pin [02F70070] Input [Input] Connected to pin [02F6F898]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32315659-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YV12
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:32315659
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F70D88] Preview [Output] Connected to pin [00CAEC14]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {30323449-0000-0010-8000-00AA00389B71}  Unknown GUID Name
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:30323449
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F6FC00] Output1 [Output] Connected to pin [02F6AF70]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {37564C46-0000-0010-8000-00AA00389B71}  Unknown GUID Name
    Temporally compressed
    Variable size samples
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:37564c46
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F71228]  Output2 [ Output] This pin is not Connected
        Filter [02F68AF0] Input RGB
              Pin [02F68B08] Input [Input] Connected to pin [02F60178]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32315659-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YV12
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:32315659
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F68BF8] Output [Output] Connected to pin [00CAACD4]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {56555949-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_IYUV
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:56555949
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
        Filter [02F6F118] FPS Controller Encoder
              Pin [02F6F128] Input [Input] Connected to pin [02F6E880]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32315659-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YV12
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:32315659
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F6F898] Output [Output] Connected to pin [02F70070]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32315659-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YV12
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:32315659
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
        Filter [02F5FAB8] YV12
              Pin [02F5FAD0] Input [Input] Connected to pin [03BA3F24]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F60178] Output [Output] Connected to pin [02F68B08]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32315659-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YV12
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:32315659
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
        Filter [02F6E778] Resize
              Pin [02F6E790] Input [Input] Connected to pin [02F6E620]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32315659-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YV12
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:32315659
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F6E880] Output [Output] Connected to pin [02F6F128]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32315659-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YV12
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:32315659
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
        Filter [02F6DF60] YV12 0002
              Pin [02F6DF78] Input [Input] Connected to pin [02F6DE00]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F6E620] Output [Output] Connected to pin [02F6E790]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32315659-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YV12
    Not temporally compressed
    Sample size 345600
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 12 bpp c:32315659
    Image size 345600
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
        Filter [02F6D680] FPS Controller Resize
              Pin [02F6D690] Input [Input] Connected to pin [00CA9B6C]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [02F6DE00] Output [Output] Connected to pin [02F6DF78]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
        Filter [00CAB9CC] Video Tee
              Pin [00CABA34] Input [Input] Connected to pin [03B9EE9C]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [03BA3F24] Output1 [Output] Connected to pin [02F5FAD0]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [00CA9B6C] Output2 [Output] Connected to pin [02F6D690]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [03BA3454]  Output3 [ Output] This pin is not Connected
        Filter [00CA99C4] Smart Tee
              Pin [00CA9A2C] Input [Input] Connected to pin [00C0974C]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [03B9EE9C] Capture [Output] Connected to pin [00CABA34]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
              Pin [00CAE204]  Preview [ Output] This pin is not Connected
        Filter [00C0A6DC] SOURCE
              Pin [00C0974C] Video [Output] Connected to pin [00CA9A2C]
    Major type {73646976-0000-0010-8000-00AA00389B71}  MEDIATYPE_Video
    Sub type   {32595559-0000-0010-8000-00AA00389B71}  MEDIASUBTYPE_YUY2
    Not temporally compressed
    Sample size 460800
    Source rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Target rectangle ( Left 0 Top 0 Right 0 Bottom 0)
    Size of BITMAPINFO structure 40
    640 x 360, 16 bpp c:32595559
    Image size 460800
    Planes 1
    Pels per metre (0, 0)
    Colours used 0
    AvgTimePerFrame 333333, 30 fps
    Tue Mar 26 2013 11:42:24 : Session Started
    Tue Mar 26 2013 11:42:24 : Video Encoding Started
    Tue Mar 26 2013 11:47:18 : Video Encoding Stopped
    Tue Mar 26 2013 11:47:18 : Session Stopped
    Tue Mar 26 2013 11:47:18 : Problem with capture device. Incorrect samples given by the device. Stopping encoding session.
    Tue Mar 26 2013 11:47:18 : Primary - Network Command: onFCUnpublish
    Tue Mar 26 2013 11:47:18 : Primary - Stream[fmlestream] Status: NetStream.Unpublish.Success
    Tue Mar 26 2013 11:47:18 :
    ================== Encoding Statistics ====================
                            Current                        
                                           Input              Output
                 Time    Bit Rate     Drops      fps     Drops      fps
    Audio  :                                 
    Video 1:   0:04:50    644 Kbps        72    74.00         0    15.00
                            Average                         
                                           Input              Output
                 Time    Bit Rate     Drops      fps     Drops      fps
    Audio  :                                 
    Video 1:   0:04:50    983 Kbps        75    29.40         0    29.36
    ===========================================================
    ================= Publishing Statistics ===================
             Bandwidth     Buffer   Frame Drops
    Primary:  824 Kbps   0.00 Sec          0
    Backup :    0 Kbps   0.00 Sec          0
    ===========================================================
    Tue Mar 26 2013 11:47:18 : Failed with error 80040273:CoCreateInstance(CLSID_VideoMixingRenderer9, NULL, CLSCTX_INPROC, IID_IBaseFilter, pFilterVideoMixingRenderer.ppv())
    Tue Mar 26 2013 11:47:56 : Primary - Network Status: NetConnection.Connect.Closed status
    Tue Mar 26 2013 11:47:56 : Primary - Disconnected
    Thank you for your assistance
    Richard

    Please attach the session log file.

  • Run programati​cally w/ stop option

    I have created a vi that runs programatically, but I want it to be able to stop in the middle of running the program if the stop button is pushed.
    I put the vi in a while loop and want the condition to be if stop is false. I tried to connect a local variable to the condition, among other things, but can not figure out what I need to connect to the condition if I cannot directly connect the stop button to it. Any suggestions?
    Ellie

    I want to stop the vi that I start programatically with a button on the front panel of that vi. I have attached the program this time to clarify the question.
    Attachments:
    front_panel_10_10.vi ‏102 KB

Maybe you are looking for

  • How to display the field name in the tabulated view for a content query web part

    I have added a content query web part changed the web part file to include custom columns imported and reffered itemstyle.xsl to include the tabulated view for the content query. However the way it is displayed is such that only the content is displa

  • Current Keyword in Formula in Financial Reporting (v. 11)

    Can I use the current keyword in a formula? Trying to calculate % of revenue for each account on the rows (periods and scenarios across the columns). I have accounts set up as Children of.... so formula row reference needs to change dynamically when

  • Mix B2B and A2A in integration scenario

    Hello XI experts, I'm trying to build an integration scenario in the repository that I want to import later on into the directory for automatic configuration. The scenario is HTTP -> XI -> RFC. On the sender side I would like to use a business servic

  • Upgrade JAX-WS stack inside WebLogic 10.3

    I have a question on upgrading the JAX-WS stack that is built inside WebLogic 10.3. WebLogic 10.3 JAX-WS RI's version is Oracle JAX-WS 2.1.3 internally and now that JAX-WS 2.2 is out, I would like to use it for my application development. Is there a

  • Installing iTunes 7.6 64-bit

    I have Windows XP Professional x64 Edition, i cracked the installer for iTunes 7.6 (64-Bit for Vista) so it would stop checking for Vista and then it let me install in on XP, as the only item in that installer that is Vista Specific is the CD burning