Hello sir, my name is Tom, I am streaming engineer with more then 6 years of experience.
I worked on projects such as IP TV platforms, social networks, and smart surveillance systems.
I see that you are in need of stream publish solution, I know that you are looking for script solution but I think it should be done programmatically, for better stability and functionality.
For this project I am also offering 6 month of technical support to make sure you have complete and functional solution.
Best regards, Tom.