Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Record video using opencv

Hi,I'm trying to record a video using opencv VideoCapture camera= new VideoCapture(0); VideoWriter writer = new VideoWriter ("c:/new/test.avi" , VideoWriter.fourcc ( 'D' , 'I' , 'V' , 'X' ), 15 , new Size ( 1280 , 720 ), true ) ;
It works well with the webcam but not with Camera IP , the video is recorded but it can't be opened, any idea ? Thanks for your help :)

click to hide/show revision 2
retagged

updated 2017-04-03 08:58:35 -0600

berak gravatar image

Record video using opencv

Hi,I'm trying to record a video using opencv VideoCapture camera= new VideoCapture(0); VideoWriter writer = new VideoWriter ("c:/new/test.avi" , VideoWriter.fourcc ( 'D' , 'I' , 'V' , 'X' ), 15 , new Size ( 1280 , 720 ), true ) ;
It works well with the webcam but not with Camera IP , the video is recorded but it can't be opened, any idea ? Thanks for your help :)