Nov 052011
 

Here’s the live streaming laser kitties
http://www.ustream.tv/channel/raging-computer


Live broadcasting by Ustream

They stream live for 15 minutes at the top of every hour. How does such magic happen automatically?

I’m a fan of video, even bigger fan of live streaming video. I’m not a fan of the bandwidth it requires. Whenever possible, I let someone else handle the server end and get their ad revenue in return.

When I wanted to run a live stream from the cat laser, I remembered I have a ustream.tv account. I googled ustream third party encoder and discovered they have a help page that spells it all out!

http://helpcenter.ustream.tv/category/category/broadcasting-using-adobe-flash-media-encoder-fmle-tricaster-inlet-spinnaker-or-oth

Even better, Adobe offers a free flash media live encoder!

http://www.adobe.com/products/flashmediaserver/flashmediaencoder/

Even better, it can be run from command line!

http://help.adobe.com/en_US/FlashMediaLiveEncoder/3.0/Using/WS5b3ccc516d4fbf351e63e3d11c104babd5-7ffc.html

Advertisement:

How does it all fit together?
Configure flash encoder profile.
Download and install flash encoder.
Download the XML profile for flash encoder.
Open the XML profile, make any changes you want and save as a new profile. (This is where you should remove “offline” from the end of your stream name.)

Win 7 Flash Encoder Profile Location
C:Users******AppDataRoamingAdobeFlash Media Live Encoder 3.2

Win XP Flash Encoder Profile Location
C:Documents and Settings******Application DataAdobeFlash Media Live Encoder 3.2

32 bit Program Location
C:Program FilesAdobeFlash Media Live Encoder 3.2FMLECmd.exe

64 bit Program Location
C:Program Files (x86)AdobeFlash Media Live Encoder 3.2FMLECmd.exe

For example, to start broadcasting on my 64 bit Windows 7 laptop:
"C:Program Files (x86)AdobeFlash Media Live Encoder 3.2FMLECmd.exe" /p "C:Users******AppDataRoamingAdobeFlash Media Live Encoder 3.2ustream.xml"

To stop broadcasting requires getting the session name
"C:Program Files (x86)AdobeFlash Media Live Encoder 3.2FMLECmd.exe" /s

And this is the result
Sat Nov 05 2011 13:38:05 : All running FMLE sessions are:
rtmp://#.######.fme.ustream.tv/ustreamVideo/#######################################

So, my command to stop broadcasting on my 64 bit Windows 7 laptop is
"C:Program Files (x86)AdobeFlash Media Live Encoder 3.2FMLECmd.exe" /s rtmp://#.######.fme.ustream.tv/ustreamVideo/#######################################

That’s great, but how is this useful? Automating / Idiot proofing!

For me, the best option is launching this with a scheduled task, have a timer run for 15 mintues then run the stop broadcast and exit.

Since I have a single user computer with autologin, I’m using an autoit script compiled into an exe. I can now run either from scheduled task or run manually.

http://www.autoitscript.com/site/

auto-broadcast.au3 (for my 32 bit Windows XP desktop)
Run("""C:Program FilesAdobeFlash Media Live Encoder 3.2FMLECmd.exe"" /p ""C:Documents and Settings******Application DataAdobeFlash Media Live Encoder 3.2raging-ustream.xml""")
Sleep(900000) ;fifteen minutes
Run("""C:Program FilesAdobeFlash Media Live Encoder 3.2FMLECmd.exe"" /s rtmp://#.######.fme.ustream.tv/ustreamVideo/#######################################")

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)