[FFmpeg-user] RTSP Input/Output error (invalid data found)
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.
> 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);
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.
More information about the ffmpeg-user