Automating the Streaming ?

Area for discussing streaming over the Internet, especially as it relates to ATV
Forum rules
This forum is run by the BATC (British Amateur Television Club), it is service made freely available to all interested parties, please do not abuse this privilege.

Thank you
Post Reply
g0lgj
Posts: 21
Joined: Tue Aug 04, 2009 8:17 pm

Automating the Streaming ?

Post by g0lgj » Fri Aug 14, 2009 5:44 pm

Hi I am trying to get the Adobe Flash Media Live Encoder 3 to start and stop at certain times to preserve some bandwidth ! I think I can get it to run in Windows Scheduler but the Application requires you to hit start ! Anyone got around this ? Or is just a case of remembering to start and stop the Stream.

Mark G0LGJ streaming GB3TN

M0DTS
Posts: 684
Joined: Sun Feb 24, 2008 9:03 pm

Re: Automating the Streaming ?

Post by M0DTS » Mon Aug 17, 2009 10:30 pm

Hi Mark

I do it on KM by using the scheduler but i cant remember the exact settings...
I do remember making two batch files with the appropriate commands to start and stop the encoding process and then call either of them with the scheduler automatically.

Start.bat includes this:
c:\encoder\fmlecmd.exe /p c:\encoder\gb3km.xml

Stop.bat includes this:
c:\encoder\fmlecmd.exe /s rtmp://fms.batc.tv/live/streamname+streamname << put your stream name in here!

Remeber, i have the flash encoder installed to c:\encoder to get around the long filefolder name issues!

If i remember correctly you have to put the admin password in the sheduler somewhere to make it work properly.

73

Rob

g0lgj
Posts: 21
Joined: Tue Aug 04, 2009 8:17 pm

Re: Automating the Streaming ?

Post by g0lgj » Tue Aug 18, 2009 9:59 am

Hi Rob excellent thanks the FMLEcmd was the one.

Hopefully save a bit of bandwidth.

Mark

g8gtz
Posts: 1776
Joined: Wed Apr 07, 2010 6:26 pm

Re: Automating the Streaming ?

Post by g8gtz » Mon Jul 09, 2012 11:28 am

I have got a reliable set up running using old USB keyboard hardware and desktop shortcuts to turn the streaming on when the repeater Tx key line is keyed, just like a voice repeater turns the transmitter on when in use and thereby saving on bandwidth in those dead hours...

Do the following on your XP machine (use your own repeater name where gb3hv is used).

Set up the adobe flash encoder and then save your encoder profile in the programfiles/adobe/flashmediaencoder directory (must be in the flashmediaencoder directory and not the default) This should create something like gb3hv.xml

Use notepad to create a batch file called gb3hvstart.bat in the same adobe endcoer directory with the following lines:

FMLEcmd /p gb3hv.xml
end

Use notepad to create a batch file called gb3hvstop.bat in the same adobe endcoer directory with the following lines:

FMLEcmd.exe /s rtmp://fms.batc.tv/live/gb3hv+gb3hv

Now open the flashmediaencoder directory and right click on each batch file in turn and create 2 shortcuts - drag these shortcuts on to your desk top.

Test it - Double clicking on the start shortcut should start the streaming (a Dos window, not the adobe program) and double clicking on stop should stop it!

Take the small PCB out of a £5 USB key board - noting the multiway connectors that connect to the actual keyboard matrix. Plug in to a USB port on the PC - you can run more than one keyboard so no need to disconnect the main one - and be ready with some test wires as we now have to find the 2 lines for F9 and F10 which will be used to trigger the streaming.

Right click on one of the shortcuts you just created, click properties. Play around shorting wires on the PCB matrix input and you will see the key you have hit show up in the "shortcut key" window - if not, check things are OK by hitting a key on your main keyboard, it should show in the window.

Eventually, you will find the 2 matrix lines that hit F9 and the 2 that hit F10 and save the shortcut. We need to use a key in the range F9 to F12 as any other key is probably used and grabbed by other programs. During this process you will probably bring up help, run other programs and even close the machine down ;-)

Now wire 2 double pole relays, one to trigger each of the shortcuts with a 1 microfarad (or similar) in series with the keyboard line to simulate a key press and you have hardware control of the encoder...

It's not as difficult as it sounds and has worked reliably on GB3HV for the last 6 months...

Best 73

Noel - G8GTZ

g8ajn
Posts: 45
Joined: Sun Mar 16, 2008 1:59 pm

Re: Automating the Streaming ?

Post by g8ajn » Tue Jul 10, 2012 12:17 pm

You might also find FileStart useful, you can start by a trigger (e.g. incoming signal) or by timer and trigger up to three Windows programs with an optional delete of temp folder if using for WinTv or GB-PVR.
Download at http://www.g8ajn.tv
Dave G8AJN

Post Reply

Return to “Streaming”