ffmpeg rtsp error: Nicht übereinstimmender Transport in Serverantwort

880
Douglas

Ich verwende ffmpeg, um eine RTSP-Kamera zu lesen. Ich bekomme diese Fehler:
Nonmatching transport in server replyin C ++ und Invalid data found when processing input.
Ich kann dies in VLC unter Windows abspielen. Ich verwende Red Hat 6.9.
Die Kamera hat die Einstellung "RTP ES".

Der Code:

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; } 
0

1 Antwort auf die Frage

0
Douglas
source_name = "rtsp://192.168.1.108/WESCAM"; 

Einige Formatierungsprobleme mit meinem Beitrag hier ist der Code

// 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; }