I'm trying to write a small RTP / RTSP server on a microcontroller system (STM32F407). I use ffmpeg to display this stream on a PC. The problem is that ffmpeg doesn’t like my SDP file.

Displays error:

Invalid data found when processing input.

I give this SDP file to the client:

v=0 o=- 2525 1 IN IP4 192.168.0.56 s=stream t=0 0 m=video 1552 RTP/AVP 97 a=rtpmap:97 H264/9000 

The topic of video transmission over the network is new for me. Tell me, what am I missing?

  • Collect ffmpeg in debug and tried to look at the debugger? - user1056837
  • Now I try to do it. Not very good yet. I would be grateful for the link to the article on this topic. - Bogdan Chupis 6:39
  • plugged debager. From the results it became clear that when processing the response to the DESCRIBE, ffmpeg reads only the RTSP Header. The SDP file does not read, although I send it immediately after Header. (I see it in the sniffer [I use Ethereal]). - Bogdan Chupis

1 answer 1

Found a problem! It consisted of a syntax error in the Content-Length word in the RTSP response header. I sent a field with the heading Content-Lenght. Through this, the ffmpeg parser did not know how long my SDP is.