Check your path to mencoder and make sure that mencoder is installed correctly. The fact that the Array is empty is telling me that either mencoder is not installed on your host or you are pointing to the wrong location for mencoder.