Hi I try to capture a video stream and I cannot opent it using opencv. First I have try this command (from ffmpeg) with success
ffplay "http://192.168.0.16/videostream.cgi?loginuse=admin&loginpas=123456"
second this command using vlc with success :
vlc "http://192.168.0.16/videostream.cgi?loginuse=admin&loginpas=123456"
and with no success using opencv (with WITH_FFMPEG=true in cmake) new cv::VideoCapture("http://192.168.0.16/videostream.cgi?loginuse=admin&loginpas=123456");
In debugging I can see file cannot be opened at line 201 of cap_ffmpeg.cpp :
virtual bool open( const char* filename )
{
icvInitFFMPEG::Init();
close();
if( !icvCreateFileCapture_FFMPEG_p )
return false;
ffmpegCapture = icvCreateFileCapture_FFMPEG_p( filename ); // ffmpegCapture =0 with my stream
return ffmpegCapture != 0;
}
So where is my mistake? How can I open this stream? Thanks for yours answers