title: FFMPEG API: How to connect to RTSP stream using av_open_input_file?
body: <p>I'm trying to connect to some RTSP stream using av_open_input_file() like this:</p>
  
  <p><code>AVFormatContext* ic;
  avcodec_register_all();
  av_register_all();
  av_open_input_file(&amp;ic, "rtsp://login:password@xxx.xxx.xxx.xxx/videoinput_1/mjpeg/media.stm", NULL, 4096, NULL);</code></p>
  
  <p>It always returns 'file not found'. The same url, though, I can see in, say, VLC player. Do I do something wrong in my code? </p>
  
  <p>I'm using FFMPEG 0.6, shall I use the latest instead?</p>