First time here? Check out the FAQ!
Thanks, it worked! It might be important to mention that in addition to your answer opencv2/video.hpp should be include