Well while you are going to stream than what message or error you can see. And after seeing your code I think all the codes are right but its your path problem from where you capture video or it may be your video format problem.
Hey I having the same problem as you suffered. But I have reinstalled its updated version. And my problem is solved. So I just saying to update it and is still you have that problem than you have to reformatted your system. Hopefully you can solved your problem.
Well as you say that you want to rn your script on the other Window if I am not wrong. Sometimes its also happens with me also. In Linux its taking the another extension for the file name and you have to change the extension for some of the files.
Well I don't know how you want it to start it up. But my advise you to for the radio station software, you can use program called TuneTracker Pro, that will allow you to completely automate the radio station including the broadcast, music selection.