I\'m trying to connect to some RTSP stream using av_open_input_file() like this:
AVFormatContext* ic; avcodec_register_all(); av_register_all(); av_open_input_file
Turned out I did not enable network support when building FFMPEG.
The following options worked for me:
--enable-network --enable-protocol=tcp --enable-demuxer=rtsp --enable-decoder=h264