Learning feature descriptors for videos