Skip navigation
Ben Coombes
Currently Being Moderated

Scheduling FME to only broadcast at certain time of day?

Aug 5, 2009 9:40 AM

Hi Everyone.

 

Sorry for a typically noob question that is probably quite simple to work out! I am looking for a way to schedule FME to only broadcast live at a certain time of day. More specifically everyday from 11.30pm - 7.30am, but not outside of these times. The host computer runs all day and being connected to the host URL all day wouldn't be a problem, just only encoding and uploading at these times... Firstly is this even possible? Secondly I have little to zero programming knowledge so am looking for a simple way around this problem?

 

Any help would be really great

 

Regards, Ben.

 
Replies
  • Currently Being Moderated
    Aug 5, 2009 10:45 AM   in reply to Ben Coombes

    Hi,

     

    Do you have to be frame acurate with the start/stop times?  If not I could provide you with a simple application which would start and stop the FMLE at times of day you require.

     

    All you would need to do is create the Encoding profile via the FMLE Gui application.  Point my app at the FMLE install directory and the profile you created. set the start and stop time and enable it.  PC clock would need to be time synched to an accurate source of Time.

     

    Also you could make a couple of batch files: 1 to start the FME and one to stop the FME and schedule the running of these files in windows as a scheduled task.

     

    john.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2009 12:11 PM   in reply to Ben Coombes

    open window notbook

     

    paste in the following

     

     

    CD "C:\Program Files\Adobe\Flash Media Live Encoder 3"

    FMLEcmd.exe /p c:\Profiles\my_profile.xml

     

    note:  the quotes in the first line above should be included.

     

    save the file as "Start.bat"   minus quotes to the root of your C drive. Make sure wiindows does not apend .txt to the end of the filename.

     

     

    You have to create   c:\Profiles\my_profile.xml

     

    Create the folder "Profiles" in the root of your C drive

     

    Open FMLEGui application. Set up the encoding parameters FMS details etc and save the profile as "my_profile.xml" to the folder you just made.

     

     

    from the start button  look in Programs/Accesories  and find and start "Command Prompt"

     

    when cmd.exe starts: type  "cd /" minus quotes and press enter.

     

    The cmd.exe should now read:       C:\>

     

    type

     

    Start.bat  and press enter: you will observer the command line version of FMLE start and it will provide you information of the status.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 5, 2009 10:54 PM   in reply to Ben Coombes

    create two batch files. One for starting new fmle session and second to stop it using FMLE_UID. Place both the batch files in schedule tasks and configure them to start and stop on its own after desired time say at 11:30 PM and 7:340 AM.

     

    For eg: create one start.bat file and put following lines in it:

     

    "C:\Program Files\Adobe\Flash Media Live Encoder 3\FMLECmd.exe" /p "C:\Documents and Settings\neha\Application Data\Adobe\Flash Media Live Encoder 3\test.xml"

     

    Create another stop.bat file and put following lines in it:

    "C:\Program Files\Adobe\Flash Media Live Encoder 3\FMLECmd.exe" /s rtmp://localhost/live+livestream

     

    Now goto Windows "Schedule Tasks" from All programs->Accessories->System tools->Schedules Tasks" and create two tasks for each batch file and set the time as per your needs so that FMLECmd can start and stop on its own at 11:30 PM and 7:30 AM daily. You can also set these tasks to repeat themselves on their own using Advance properties of Scheduled tasks on daily basis at fixed times.

     

    Please let me know if this works for you.

     

    Thanks,

    Neha

     

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2013 4:03 PM   in reply to Ben Coombes

    I hate to resurect an old thread, but this is exactly what im trying to do. I need FMLE to broadcast at (12PM) and to stop at (12am) I am using this code all copied into my ....

     

    For eg: create one start.bat file and put following lines in it:

    "C:\Program Files (x86)\Adobe\Flash Media Live Encoder 3.2\FMLECmd.exe" /p "C:\Users\Missy\AppData\Roaming\Adobe\Flash Media Live Encoder 3.2\test.xml"

     

    Create another stop.bat file and put following lines in it:

    "C:\Program Files (x86)\Adobe\Flash Media Live Encoder 3.2\FMLECmd.exe" /s rtmp://localhost/live+livestream

     

     

    I am changing the TXT file to BAT and double clicking it after. I see a CMD window pop up for a few seconds then dissapear. The Start.Bat file is in my C:\Program Files (x86)\Adobe\Flash Media Live Encoder 3.2 folder. I am using windows7 (64bit). I guess im trying to verify this still works with 3.2 as I can see this was last posted in 09. Thank you for the help,

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 4, 2013 4:32 PM   in reply to Cody Pellerin

    I might have answered my own question.... After doing the above steps I realised if I run FMLEcmd.exe it open the previous saved streaming session I was in last. I set up win7 task manager to run FMLEcmd.exe at 12pm daily and to kill the task if its run longer than 12hours. Running the task starts it, I just need to make sure it will go off at 12AM now =)

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points