Right I have been fiddling with the script for a few hours and when I disable the remove temp files options it does give me a file sequence and a sound file which I can use,kind of.
So the problem seems to be in encoding section, some parameters maybe changed in the new mencoder version I guess.
If someone with the know-how can have a look at these it will be a great help.
Thanks a lot.