fixed x264 probem and add log