Added command line version.
Fixed crash bug with some types of input and x264 encoding (improper swscale arguments, and calculating CVImageBuffer size incorrectly)