See here Using hardware capture