Laex / Delphi-OpenCV

Project Delphi-OpenCV. Translation of OpenCV library header files in Delphi
501 stars 226 forks source link

Can't connect to web camera with ErrorGetStream event #54

Closed MikeErmakov closed 8 years ago

MikeErmakov commented 8 years ago

Hi Trying to connect to public web camera I got an ErrorGetStream event. Delphi 10 Seattle Opencv version 2.4.13 URL http://149.166.151.12:80/axis-cgi/mjpg/video.cgi

Laex commented 8 years ago

URL http://149.166.151.12:80/axis-cgi/mjpg/video.cgi?dummy=param.mjpg See http://stackoverflow.com/questions/14204185/read-stream-from-specific-link/15487578#15487578

MikeErmakov commented 8 years ago

Не помогло. Ошибка идёт отсюда: ocv.comp.FFMSource sws_getCachedContext(nil, pCodecCtx^.Width, pCodecCtx^.Height, pCodecCtx^.pix_fmt, pCodecCtx^.Width, pCodecCtx^.Height, AV_PIX_FMT_BGR24, SWS_BILINEAR, nil, nil, nil) возвращает nil Дебаггер показывает, что pCodecCtx^.Width = 0, pCodecCtx^.Height = 352, pCodecCtx^.pix_fmt = AV_PIX_FMT_YUVJ420P

Вылечилось перезагрузкой всех dll и полной пересборкой библиотеки