In OpenCV I am using the following function to create a CvCapture from a file:
CvCapture * data = cvCreateFileCapture(filename);
this works fine for video files with .avi extension. When I use a an internet camera using rtsp protocol I get the following error:
warning: Error opening file (../../modules/highgui/src/cap_ffmpeg_impl.hpp:477)
Obviously there is something wrong with the codecs. Anybody knows how to solve it? Would rather need step by step instructions since I am a newbie with OpenCV.