This if for mac osx mountain lion 10.9.1 and my browser is safari

I FOUND THE FOLLOWING CODE TO RUN IN TERMINAL TO STREAM GAMEPLAY FROM MY PVR TO TWITCH/YOUTUBE:

ffmpeg -f mpegts -i 'udp://127.0.0.1:1234?fifo_size=1000000&... -vcodec libx264 -s 1280x720 -g:v 40 -qscale:v 2 -threads 4 -preset medium -b:v 1136k -minrate 1300k -maxrate 1300k -bufsize 8000k -r 30 -acodec libmp3lame -ar 44100 -b:a 64k -f flv "rtmp://live.justin.tv/app/live_XXXXXXX_...

I WANT TO HAVE A PROGRAM EITHER AS A LOCAL HTML PAGE OR SOMETHING THAT I CAN CLICK ON AS AN ICOD AND IT WILL OPEN A PAGE ASKING ME TO CHOOSE THE FOLLOWING:

STREAMING TO YOUTUBE OR TWITCH. THIS PIECE OF CODE HERE CHANGES IF ON TWITCH OR YOUTUBE:"rtmp://live.justin.tv/app/live_...

I WANT A DROP DOWN MENUE THAT SAYS TWITCH, YOUTUBE AND YOU CHOOSE WHICH ONE.

I WANT A MENUE WHICH ASKS YOU TO ENTER THE FPS. THAT WOULD CHANGE THE FOLLOWING CODE: -r 30 SO YOU JUST ENTER THE NIMBER AND IT CHANGES.

I ALSO WANT A WAY TO HAVE A MENUE THAT ASKS YOU O ENTER THE PORT AND THE IP ADRESS. THIS IS BECAUSE THIS METHOD OF LIVE STREAMING IS STREAMED OVER A UDP SO I WOULD LIKE TO BE ABLE TO CHANGE THE IP ADRESS OF THE STREAM. I WOUD LIKE TO BE ABLE TO ENTER THE PORT AND THE IP ADRESS AND IT WOULD CHANGE THIS CODE: udp://127.0.0.1:1234 CORRESPONDINGLY.

BASICALLY I WANT AN OPTION TO CHANGE ALL THESE THINGS:

-i ‘udp://127.0.0.1:1234
Sets the UDP stream from HD-PVR Capture as the input file for the encoding.

-s 1280×720
The resolution of the encoded output format. I chose 720p because it made the most sense to me. Change this if you need to.

qscale:v 2
Sets the quality scale. :v means that this is only used for video and not audio. 1 is best, 31 is worst.

-preset medium
There are many presets for the encoder from ultrafast, fast and medium to slow and very slow.

-b:v 1136k -minrate 1300k -maxrate 1300k
Sets the encoding bitrate to 1136 kbytes with a maximum and minimum bitrate of 1300 kbytes including audio.

-r 30
Sets the frame rate to 30 frames per second.

“rtmp://live.justin.tv/app/live_XX”
Sets the output format to Real Time Messaging Protocol with the server address of twitch.tv or justin.tv. live_XXXX_XXXXXXXXXX has the be replace with your personal Twitch.tv API Key.


FOR INFORMATION ON HOW IT ALL WORK, LOOK AT THIS WEBSITE: http://marctv.de/blog/tutorial-hd-pv...mac-os-ffmpeg/

THE LAST THING IT THAT WHEN ALL THE INFORMATION IS ENTERED, THE CODE NEEDS TO BE RUN IN TERMINAL. I HAVE STREAMED TO TWITCH USING THIS METHOD BUT IT GETS TIRESOME CHANGING EVERYTHING. IT WOULD BE REALLY USEFUL IF THE FORM WOULD OPEN IN MY WEB BROWSER BUT IF IT IS EASIER IN FLASH OR SOMETHING IIKE THAT JUST PLEASE TELL BE THE STEPS OR WRITE SOME CODE WHICH CAN BE EDITED FOR THE OTHER THINGS.

THANKS FOR ANYONES HELP BECAUSE THIS IS PROBABLY GOING TO BE REALLY COMPLICATED!!