Configuring Flash Media Live Encoder to launch at system startup



Imagine that you intend to run an encoding session continuously, but during the session the computer on which Flash Media Live Encoder is running crashes. As soon as that computer restarts, you’ll want Flash Media Live Encoder to restart and continue encoding in the same session. You can configure Flash Media Live Encoder to restart automatically at system startup by registering the encoding session. Any crash-related errors are noted in the log file when the encoding session restarts. For more information on log files, see Using the Encoding Log.

Note: The registration of encoding sessions with the operating system are stored in a file called OsLaunch.dat. Restricted users cannot edit this file if it was created by another user. For example, when a user registers an encoding session, that user creates the OsLaunch.dat file. A restricted user cannot then register or unregister an encoding session on the same computer because they do not have permissions to edit OsLaunch.dat.

Register an encoding session

  1. If the Flash Media Live Encoder Launcher is not already included in your Windows Scheduled Tasks, add it:

    1. In Windows, select Start > All Programs > Accessories > System Tools > Scheduled Tasks.

    2. In the Scheduled Tasks window, double-click Add Scheduled Task.

    3. In the Scheduled Task Wizard, click Next, and then browse to your Flash Media Live Encoder installation directory and open FMELauncher.exe.

    4. Select When My Computer Starts and click Next.

    5. Enter your user credentials, click Next, and then click Finish.

  2. From a command prompt in your Flash Media Live Encoder installation directory, start Flash Media Live Encoder using /r as the last option in the command. For example:

    FMLEcmd /p c:\Profiles\my_profile.xml /l c:\my_log.txt /r

    If authentication is required, use the /ap and /ab parameters and specify your user credentials.

    Any encoding sessions that are registered for relaunch are noted in the OsLaunch.dat file in Drive:\Documents and Settings\All Users\Application Data\Adobe\Flash Media Live Encoder 3. The Flash Media Live Encoder Launcher checks this file at system startup and launches the session that has a registered entry.

Show a list of all registered encoding sessions

 From a command prompt in your Flash Media Live Encoder installation directory, enter the following:
FMLEcmd /u

Unregister an encoding session

 From a command prompt in your Flash Media Live Encoder installation directory, enter the following:
FMLEcmd /u fmle_UID

If the session is streaming to a server, use the format fms_URL+stream_name for fmle_UID. For example, to unregister an encoding session that is running on the server fms.myserver.com with a Flash application named live, and the stream livestream, you would enter the following:

FMLEcmd /u rtmp://fms.myserver.com/live+livestream
Note: When using the /u option, the stream_name portion of fmle_UID cannot contain a plus sign (+), because + is used as a delimiter in fmle_UID.

If the session is being saved to a file but is not streaming to a server, use the FLV or F4V path and filename for fmle_UID. For example:

FMLEcmd /u "C:\Documents and Settings\abc\My Documents\My Videos\sample.flv"

The entry for the encoding session that you specify is removed from the OsLaunch.dat file in Drive:\Documents and Settings\All Users\Application Data\Adobe\Flash Media Live Encoder 3. At the next system startup, the encoding session does not restart.