[FFmpeg-user] RTSP Input/Output error (invalid data found)

Andrey Utkin andrey.krieger.utkin at gmail.com
Tue Feb 4 20:49:39 CET 2014

2014-02-03 Roquene <roquene at googlemail.com>:
> Am 03.02.2014 21:50, schrieb Andrey Utkin:
>> 2014-02-03 Roquene <roquene at googlemail.com>:
>>> so looks like that "Cseq" is the problem.
>>> but have no idea how to fix that.
>> Could you somehow post traffic log in other way? Your paste is
>> incomplete, it lacks replies.
> hello
> i add the logs as .pcab to this mail.
> if you need more informationen, please ask.

I think your server expects CSeq to be second line in request, not any
next one. This is not enforced/guaranteed in RTSP RFC, although
everywhere in examples inside RFC it is so.
What is server software?

You can prove my idea by editing libavformat/rtsp.c near line 1223:
swap lines to have

    av_strlcatf(buf, sizeof(buf), "CSeq: %d\r\n", rt->seq);
    if (headers)
        av_strlcat(buf, headers, sizeof(buf));

If that's some inhouse-developed server, you should fix it. If that's
some common software, we should consider changing ffmpeg code.

Andrey Utkin

More information about the ffmpeg-user mailing list