added x265 interface and other stuff