我正在使用ffmpeg讀取rtsp相機。 「在C++和‘服務器響應非匹配運輸中發現無效數據處理輸入’相機已設置。‘RTP ES’時,下面的代碼ffmpeg rtsp錯誤:服務器應答中的非匹配傳輸
source_name = "rtsp://192.168.1.108/WESCAM";
// Open the initial context variables that are needed
format_ctx = avformat_alloc_context();
codec_ctx = NULL;
// Register everything
av_register_all();
avformat_network_init();
//open RTSP camera or h264 file
if (avformat_open_input(&format_ctx, source_name, NULL, NULL) != 0)
{
return EXIT_FAILURE;
}
我可以使用上面顯示的RTSP地址,我使用的是RedHat 6.9玩這個VLC – Douglas