How to pragrammatically control Flash Encoder

Hello there,
I need to write a program which receives "START ENCODER",
"STOP ENCODER", "START ARCHIVING", "STOP ARCHIVING" commands from a
socket, here the "ENCODER" means the flash encoder, "ARCHIVING"
means saving the encodings to a file.
I have surfed the web for a while but still the only link
related is "
http://flex.sys-con.com/node/388456".
However the solution in this link is not enough for me. I also
searched the command-line controls of the Flash Media Live Encoder,
and seems it only has command -line controls to start and stop an
encoder. Using these two command-line controls, I can write a C#
program to fulfill "START ENCODER" and "STOP ENCODER" commands, but
have no idea how to fulfill the other two commands "START
ARCHIVING", "STOP ARCHIVING".
ActionScript came to my sight for many times, but seems I
cannot use it to develop the program I want. Flash Media Live
Encoder installs on Windows XP. I think I should use C# (or VB) on
.NET to implement the program.
Any idea about my question? Thanks a lot for your reply in
advance.
Helen

Hi fmeuser,
Thanks so much for your helpful reply! I still have further questions:
1. What's script to use to control the GUI mode encoder?  I tried the following "start_encoder.vbs":
     Set WshShell = WScript.CreateObject("WScript.Shell")
     WshShell.Run "C:\Program Files\Adobe\Flash Media Live Encoder 3\FlashMediaLiveEncoder.exe", 9
     'parameter: 0=hide, 7=minimized, 9=normal
     'Give FME time to load
     WScript.Sleep 5000 'milliseconds to wait
     WshShell.AppActivate "Adobe Flash Media Live Encoder"
     WshShell.SendKeys "%fo" 'Open a custom config
     WshShell.SendKeys "startup.xml"
     WshShell.SendKeys "{ENTER}" 'Start encoding
     WshShell.SendKeys "{ENTER}" 'Confirm
But when click on this file I got the error:
     Script: C:\Program Files\Adobe\Flash Media Live Encoder 3\start_encoder.vbs
     Line:   2
     Char:  1
     Error: The system cannot find the file specified.
     Code: 80070002
     Source: (null)
I realized that the startup.xml is under "Application Data\Adobe\Flash Media Live Encoder 3" directory. Should I move it to "C:\Program Files\Adobe\Flash Media Live Encoder 3\"?
2. How to write the stop the encoder if there are multiple encoders running? Suppose I have the following script "stop_encoder.vbs":
     WshShell.AppActivate "Adobe Flash Media Live Encoder"
     WshShell.SendKeys "%fx"
     WshShell.SendKeys "{ENTER}"
You can see it has nothing to indicate which encoder to stop.
3. Is there any other script to use to control the encoders? Where to get the reference on how to write them?
Thanks a lot!
helen

Similar Messages

  • How do I control flash object with captivate play head?

    Hi All,
    I am a learner to the captivate.
    I am having problem with animation-audio synching with captivate paly head.  When I inserted an animation to the slid, It does not synch with the play head. So I lose the control of pause, next. I tried out synch to project option but it didn’t work out.
    Can anybody help me in this. Should I write any script in animation or any widget is there…
    I am using flash6 and captivate 5.5.
    Thanks,
    Arundhati.

    Hello,
    Nothing to do with button becoming inactive, really, but with the way the Effects are scripted. Will try to answer your question about the buttons however.
    I'll try to explain the functionality of a button.  A button typically has a pausing point that is visible on the timeline, right? The portion before the pausing point is the 'active' portion, which will mean that the user can click on the button and this will have results. When you click on a button, the action attached as Success action is triggered, in this example the Text Caption is set to visible. But at the same time the playhead is released and moves beyond the pausing point into the Inactive portion, which means that it cannot be clicked again.
    Two possible solutions:
    use a rollover caption instead of your click/text captions work flow.
    Create a small advanced action BtShow1 and BtShow2 for each of the buttons, again I have screenshots ready but they are not accepted, bummer.... Will try to write the statements:
    Show Text_1      for the first button, shows the correct Caption
    Hide Text_2       hides the other caption that could have been shown by the other button
    Assign rdcmndGotoFrame with rdinfoCurrentFrame            this expression puts back the playhead directly before the pausing point so that button remains active
    You can duplicate this action to create Btn2, and you only have to reverse the ID's of the Text Captions
    When you attach those actions to the buttons, you can click as many times as you want. You tell that you have searched the forums? Bit strange because I have been explaining this so many times, and blogged about this kind of micro-navigation (frame by frame):
    Micro-navigation in Adobe Captivate
    Lilybiri
    PS: when updating, I can insert one image, will try to add the other one, in a second update perhaps

  • How to control Flash Player 10 with Javascript?

    Are there any turotials or examples of controlling Flash Player 10 from a web page with javascript?  I want the player to pop up when I mouseover a thumbnail image and play a short relevant flv file.  When the mouse moves away from the thumbnail the player should disappear.   I imagine I'm going to have something like
    <img src="thumbnail.jpg" onmouseover="javascript:  [call flv player with .flv name and parameters to autoplay with no controls )">
    but I don't know what the javascript code should be and I don't know how to embed the flv player in my HTML so the javascript code can call it. 
    Thanks for any help.
    Steve

    it would be nice if someone can suggest a solution.because i ve the same problem.
    Jon

  • How to control Flash Player playback using JavaScript?

    I have a local file-based web page (HTML file) containing an embedded YouTube video.
    Now I want to write some JavaScript to control the Player's playback parameters, like volume, mute, play, stop etc., using JavaScript in the file. However, I don't seem to be able to access any of these function.
    Can someone please enlighten me on what I need to do to be able to control Flash Player from JavaScript?

    I'm not acquainted with Flash too much, I'm afraid... Both paged didn't give any example I could leverage.
    I'm searching for something equivalent to something like this:
    document.getElementById("MyMoviePlayer").mute();

  • How to Edit a flash file

    Hi all,
    I have a flash file, which I took from my website and want to
    modify some of the contents and links in the flash file. I
    installed "Macromedia Flash 8" and open the flash file; after
    opening all I can see in the menu bar of my flash is "File, View,
    Debug and Control" and could not find any control or tool to edit
    the file and surprisingly rest of the other macromedia toolbar
    icons are disabled. I need to know from where to start - How to
    modify my flash file.
    Your help is highly appreciated.
    Thanks in advance
    AP

    quote:
    Originally posted by:
    Purplehaze
    Also the file I am having trouble with is from a Template
    that I got from my Host it is suppose to be made to be edited I
    have both the files. I would still need the decompiler?
    I do not know what files you have, 'fraid I cannot answer
    this
    My Friend
    I think you need to check out some of the books, online
    tutorials, course etc pertaining to Flash. Build up your knowledge
    a little at a time and you will surprise yourself at what you can
    achieve, you would also probaby build your own web apps and not
    rely on templates.
    There are many good folk on here that would help you with
    your projects - go out and explore it - it's exciting - good luck

  • How can I control the volume in a Appletv movie from my remote control App. In my IPad ?.

    How can I control the volume in a Apple Tv movie from my remote control App. In my IPad ?.

    There is not now, nor has there ever been a version of flash for any iOS device.
    Adobe has abandoned mobile flash, so there never will be.
    Browsers like iswifter or photon may work for you, but don't hold your breath.
    Check app store for an app of whatever game you want.

  • How do I get Flash to recognize my TextInput from class?

    Hi -
    I'm trying to write a class for a standard input form. I've
    got a movieclip in the library and have linked it to this class.
    (class included below.)
    This movieclip contains several text inputs which I have
    declared in my class file. I can get their ._x and ._y values, but
    I can't assign to the .text value of the TextInput. Nor can I read
    this value when I set it in the parameters tab in flash. It just
    comes up as undefined.
    It's as though flash does not recognize the instance that was
    placed on the stage in the authoring environement as a TextInput. I
    can trace out the instance, but Flash does not treat it as a
    TextInput because I can not assign a string to the .text property.
    If I instantiate the TextInput in my class file and then
    position it on the stage - I can assign to it. But this is not as
    practical because I can not lay things out visually in Flash. How
    do I get Flash to recognize my TextInput instance on the stage from
    a class file?
    Thanks in advance!
    import mx.controls.TextInput;
    import mini.slide.*;
    class mini.slide.InfoCollect extends Slide{
    var first:TextInput;
    var testInput:TextInput;
    var last:TextInput;
    var email:TextInput;
    var address:TextInput;
    var city:TextInput;
    var zip:TextInput;
    var phone:TextInput;
    function InfoCollect(){
    trace("InfoCollect created");
    this.first = new TextInput();
    this.first.text = "testing";
    trace("this.first = " + this.first.text);
    }

    Since you are putting the assignment and trace statements in
    the Constructor function, it is possible that the textInput boxes
    have not all yet loaded. So, when you are trying to assign values
    to them, they are not present on the stage.
    Put your code in an onLoad function. That way you can insure
    that all components have loaded before you assign values to them.
    The onLoad function will be called when the "onLoad" event is
    triggered after all of your movieclip has loaded.
    function onLoad() {
    ---your code here---
    }

  • How can I control the size of the af:InputText?

    Hi,
    How can I control the size of the 'af:InputText' on the UI, without using columns & rows attributes. Even though I am using width & height attributes, the changes are not getting reflected in the UI.
    Thanks,
    Rajesh.

    Hi,
    It is inside a 'af:PanelBox'. So, the parent container also determines the size of the child? Here I need a create a 'pidgin chat window' kind of an interface with a fixed size top-level container, inside which I willl put all my components. The code looks something like this:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1" partialTriggers="it1">
    <af:messages id="m4"/>
    <af:form id="f1" partialTriggers="it1">
    <af:panelBox text="" id="pb1" background="dark" type="stretch"
    titleHalign="start" ramp="highlight"
    inlineStyle="width:350pt; height:500pt; margin:0.5pt; padding:0.5pt; border-width:0.5pt; "
    partialTriggers="it1">
    <af:spacer height="15pt" id="s1"/>
    <af:inputText id="ot1"
    columns="82" rows="25" wrap="hard"
    partialTriggers="it1"
    value="#{ChatClientBean.chatLog}"
    binding="#{ChatClientBean.outputChatTextBox}"
    visible="false">
    </af:inputText>
    <af:spacer height="27pt"/>
    <af:inputText id="it1" inlineStyle="width:200pt; height:100pt;"
    valueChangeListener="#{sessionScope.ChatClientBean.sendMessage}"
    autoSubmit="true" partialTriggers="it1"
    binding="#{ChatClientBean.inputChatText}"/>
    </af:panelBox>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Thanks,
    Rajesh.

  • Controlling the encoding of a PDF printed with a virtual printer?

    Hi all.
    In another thread,  I was told that I cannot change the encoding of fonts with Adobe Reader. How about with Acrobat? 
    In an existing business process, users print PDFs to a virtual printer from Acrobat Reader. The resulting PDF somtimes contain CID fonts with encoding Identity-H.
    Not all PDF viewers do this, some keep the encoding of the original pdf (same virtual printer used).
    Can I control the encoding of the resulting PDF by printing from Acrobat (or any other Adobe product)?
    All comments appreciated,
    /Martin

    Thanks for answering!
    1) I realize it seems strange, but the virtual printer is embedded in one of our products. The product uses Windows printing as a point of integration in order to enable almost any windows program (including PDF readers) to send data to our server. In effect, we use pdf as our data protocol over the wire. It's a long story...
    2) The virtual printer embedded in our product is NovaPDF.
    3) I wish it wasn't an issue, but the library we use to extract text (PDFNet) does not seem to handle it very well. However, I am simultaneously looking for a solution in that end too.
    The problem only occurs very rarely, for specific PDFs only. PDFs created by the library iText seem to be particularly problematic.

  • Help:How to publish a Flash with full screen HTML

    Please, guys, be kind enough to teach me how to publish a
    Flash with full screen size in HTML. I have tried to search the
    board, but so far no luck.
    Originally, I want my .SWF to keep changing its background.
    The solution I got was placing colored stage-sized rectangles on
    the bottom layer. Then I don't want the viewers to see the HTML
    area where I cannot seem to control smooth color changes.
    So, after I construct a Flash file with backdrop-color
    changing by the method I mentioned above, how do I publish it with
    full screen mode in HTML, as you can see
    here? Help!
    Thanks in advance, guys.

    Here's an AS2 and a AS3 version I got from David Stiller
    2 small details you have to add 1 in publish settings set Dimensions to percent 100 100
    and in the html set <style>body {margin: 0; padding: 0}</style>
    // AS2
    import flash.display.BitmapData;
    Stage.align = "TL";
    Stage.scaleMode = "noScale";
    var tile:BitmapData = BitmapData.loadBitmap("tile");
    function fillBG():Void {
      beginBitmapFill(tile);
      moveTo(0, 0);
      lineTo(Stage.width, 0);
      lineTo(Stage.width, Stage.height);
      lineTo(0, Stage.height);
      lineTo(0, 0);
      endFill();
    fillBG();
    var listener:Object = new Object();
    listener.onResize = fillBG;
    Stage.addListener(listener);
    // AS3
    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    var bmp:Tile = new Tile(50, 50);
    var tile:BitmapData = new BitmapData(50, 50);
    tile.draw(bmp);
    function fillBG(evt:Event = null):void {
      graphics.beginBitmapFill(tile);
      graphics.moveTo(0, 0);
      graphics.lineTo(stage.stageWidth, 0);
      graphics.lineTo(stage.stageWidth, stage.stageHeight);
      graphics.lineTo(0, stage.stageHeight);
      graphics.lineTo(0, 0);
      graphics.endFill();
    fillBG();
    stage.addEventListener(Event.RESIZE, fillBG);
    David Stiller
    Co-author, ActionScript 3.0 Quick Reference Guide
    http://tinyurl.com/dpsAS3QuickReferenceGuide
    "Luck is the residue of good design."

  • How to get the Vimeo encoding in Final Cut Studio / Final Cut Pro (for web)

    I have some films I would like to "display" on the web. It seems that vimeo.com has a great way of encoding films for the web.
    http://www.vimeo.com/
    Anyone who knows how to do the same encoding within Final Cut? Or are there other ways for web which will work also for windows user (to watch the video without downloading extra plugins?
    I love how the videos starts almost instantly in hd on Vimeo! Al right it skips a bit, but then again it is hd on the web.....

    This is sort of a workaround for what you're trying to achieve:
    Here's a Ken Stone article on encoding for Vimeo.
    So...what a lot of folks are doing these days, is uploading to Vimeo (or similar service). Then back on your own website simply "embed" the Vimeo movie. You can control the size & control colors of the embed. When you're on the Vimeo page for a particular video, you'll see the "Embed" link on the right of the video. Click that and it will expose the code you need to copy into your own website.

  • How do I get Flash Player unblocked

    how do I get Flash player to work?

    Hi ..
    From your Safari menu bar click Safari > Preferences then select the Security tab.
    Click Website Settings to the right of:   Internet plug-ins
    Select Adobe Flash on the left then make a select on the right from the:  When visiting other websites  pop up menu then click Done.
    That way you have control over Flash content on websites that require the Flash plug-in.

  • Controlling flash in html.

    Here is my problem hopefully someone can help me.
    I need my swf to load a new level on a specific webpage url.
    There are a few ways I can think of doing this. (I am not a
    coder at all so bare with me)
    (a) inside flash a code that says this. If on www.webpage.com
    load swf on level 1000.
    (b) in html, I have no idea how to control flash, could move
    it to another frame. that would work. :)
    and I'm sure there is something I don't know. Please guys I
    am really stuck and need to figure this out.
    Any help is much appreciated. Thanks !

    Sounds to me like you need this:
    [quote]LOL, Adobe is definately paranoid... I can't write
    l-o-c-a-t-i-o-n in a post... so just remove the "-" in
    l-o-c-a-t-i-o-n below
    uh... maybe I'm completely wrong, but how about using
    ExternalInterface.call to access a Javascript function
    In HTML:
    <script type="text/javascript">
    function getLocation(){
    return(document.l-o-c-a-t-i-o-n.href);
    </script>
    From what I read you need to allow script access explicitly
    for this to work.
    <param name="allowScriptAccess" value="always" />
    In AS:
    import flash.external.*;
    String(ExternalInterface.call("getLocation"));[/quote]

  • How do I stop Flash assets being transcoded?

    Now that there's no DL between Premiere CC and Encore CS6 how do I get Flash assets into Encore without them being retranscoded?
    I can get Encore to not transcode DVD and Blu-ray assets that I've created and exported from Premiere, but not Flash ones.
    Obviously I don't want to recompress a compressed F4V file.
    If there's no way of telling Encore not to transcode it, what's the best format for exporting 1280 x 720 assets from Premiere CC that originated in a 1920x1080i sequence?
    Thanks!
    Mark

    Hi Stan,
    I've tried my best to see if I can get Encore not to transcode a flash file, but I think that, since there's no flash preset (unlike the DVD and Blu-ray presets), I just can't fool it.
    However, here's my workaround: I output the flash file any old way: using the DVD or Blu-ray assets, whatever. And then in the output directory it creates I can replace its created assets (in the sources folder) with my own simply by renaming and replacing my own encoded assets with the ones Encore created for me. There's a visible quality improvement doing it this way, and no unnecessary re-encoding.
    Of course this is all a bit old-hat anyhow as we'll be doing it the HTML5 way with some Edge program or another any minute now! But for the moment....
    Thanks for your help and suggestions!
    Cheers
    Mark

  • Control Flash from HTML (k)

    I have a button in HTML that I want to use to control the
    flash on the
    page it sits on.
    When the button is rolled over, I want to pass a variable to
    the Flash
    movie so that something happens.
    How can I do this in Dreamweaver?
    -Kirk

    It's a stupid way of doing it, but I got it to work using the
    FSCommand.
    I send the user to a frame in the Flash movie. That frame has
    the
    variable set to the "On" state. I then have them go to
    another frame for
    the "Off" state.
    -Kirk
    W. Kirk Lutz wrote:
    > I know that it would be easier. But I have a very tall
    flash file of a
    > floorplan. I have a legend for the floorplan that I want
    to float in a
    > layer so that when someone scrolls down the page, the
    legend follows. I
    > Can make a scroller in flash, but would prefer to try
    and control Flash
    > via HTML.
    >
    > I know you can pass a variable in HTML to flash, but if
    it has to reload
    > the page each time the user will be throwing their
    machine out the window.
    >
    > Any way to control Flash?
    >
    > I've tried to send the user to a frame in Flash via the
    FSCommand, but
    > it doesn't seem to work. I have two scenes in my flash
    file. A loading
    > scene and the main scene. The FSCommand jumps me to the
    frame in the
    > loading Scene.
    >
    > -Kirk
    >
    >
    > -->dan mode wrote:
    >> It would be much easier to do the rollover button in
    Flash.
    >> Otherwise, you need a server side language that
    would populate a
    >> variable in the embedded swf code.
    >>
    >>

Maybe you are looking for