Ask Your Question
0

Record video using opencv

asked 2017-04-03 08:52:44 -0600

SJ2 gravatar image

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

berak gravatar image

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 :)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-04-03 08:57:44 -0600

berak gravatar image

please make sure, you have the opencv_ffmpeg320.dll on the PATH or next to your app

edit flag offensive delete link more

Comments

the videocapture works well with the ip camera , only the recording doesn't work :(

SJ2 gravatar imageSJ2 ( 2017-04-03 09:16:20 -0600 )edit

ps:the video can't be opened in windows media player

SJ2 gravatar imageSJ2 ( 2017-04-03 09:24:33 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-04-03 08:52:44 -0600

Seen: 621 times

Last updated: Apr 03 '17