[FFmpeg-trac] #129(avformat:new): RTSP stream support broken for some RTSP servers

FFmpeg trac at avcodec.org
Wed Apr 27 13:32:26 CEST 2011


#129: RTSP stream support broken for some RTSP servers
-----------------------+-----------------------
 Reporter:  grzesiekb  |        Type:  defect
   Status:  new        |    Priority:  critical
Component:  avformat   |     Version:  git
 Keywords:             |  Blocked By:
 Blocking:             |  Reproduced:  0
 Analyzed:  1          |
-----------------------+-----------------------
 Hello.

 We are developing video analysis software, and using FFMPEG as back-end
 library.
 Few months ago everything was working fine - we are using IP Cameras,
 gathering data via RTSP stream.

 Few days ago we started next stage of development and it suddenly turned
 out that something is wrong - connection with remote IP camera couldn't be
 handled properly.

 After few days of tracking this problem we found it in FFMPEG (commit
 229e2631be528c595650a7568c1d4df8af9c4944):

 {{{

 commit 229e2631be528c595650a7568c1d4df8af9c4944
 Author: Martin Storsjö <martin at martin.st>
 Date:   Wed Mar 30 23:35:28 2011 +0300

     rtsp: Use GET_PARAMETER for keep-alive for generic RTSP servers

     According to the RFC, GET_PARAMETER should be used for
     this, and according to a report from Tim Ouellette,
     OPTIONS doesn't work for keeping the connection alive for some
     servers. Also, live555 uses GET_PARAMETER for this purpose.

     Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

 }}}

 This change breaks RTSP support for some servers (tested on few IP
 cameras).

 In our application connection is lost after approximately 30 seconds
 (probably depending on rtsp server implementation).

 strace:

 {{{
 recvfrom(3, 0x7fffdcf8513f, 1, 0, 0, 0) = -1 ECONNRESET (Connection reset
 by peer)
 }}}


 In my opinion something is wrong there, because live555 + vlc is working
 without problems.

 This problem is also present in 0.6.90-rc0.

 Latest working version is da3534b01e00502b202ed3f51ffde12866e5111d.
 I hope this will help other people who have same problem with rtsp stream
 handling.


 Anyway - thanks for great work with FFMPEG !

 Regards,
  Grzegorz Bizon
  ntsn.pl software development
  [http://ntsn.pl/en]

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/129>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list