fix compilation
don't hang it the codec couldn't be opened
change sws algorithm to gauss
implement speed control mode of x264-obe