Don't assume the encoder has crashed when the exit code is -1, since x264 will return -1 when it could not open the input file.
Updated README file.