avformat_find_stream_info:
[rtsp @ 00802280] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the ‘analyzeduration’ (0) and ‘probesize’ (5000000) options
解决方案:
AVDictionary* avdic = NULL;
av_dict_set(&avdic, "rtsp_transport", "tcp", 0); //以udp方式打开,如果以tcp方式打开将udp替换为tcp
udp不可以但是tcp可以正常获取码流