Video and deployement problems [closed]
Hello,
I develop an application on my computer using Opencv. The application read Images and videos on windows 10 with Opencv 3.2.0 . On my computer both work properly.
I try to deploy the application on my other computer. So I take my exe file and the dll from Opencv and I put all this file on my computer. There is no Opencv install on it. When I try to execute my program, the images are readable but the video crash with that error:
opencv error assertion failed (scn == 3 scn == 4) in cvtcolor
Where that error could come?
obviously, your application never checks, if the capture was opened, if an image was read, etc.
lesson to learn, no ?
Yes I checked on the other computer is not readable , the videocapture are not opened. But what I don't understand is the path to the video is correct, so why the video are not open? Is there a codec problem on my computer? How can I check where the problem comes? In fact my question is not why there is a crash( it is obvious, opencv can't read the video) but more why Opencv can't read the video.
on windows opencv_ffmpeg.dll is doing all the work, so make sure, you don't forget that.(also, 64/32bit)
Yes It was the problem. Thank you @berak