Making Video Analytics Applications Efficient And Affordable