what do you mean error to video?
Anyway every error 126 I see is when someone has entered a wrong path to mogrify or trailing slashes
Is the path to mogrify correct? If so, are you running in safe mode? What happens if you copy the command to a command line and execute it?