[FFmpeg-trac] #7609(avformat:reopened): rw_timeout dont work in RTSP

FFmpeg trac at avcodec.org
Wed May 13 22:17:00 EEST 2020


#7609: rw_timeout dont work in RTSP
-------------------------------------+------------------------------------
             Reporter:  jidckii      |                    Owner:
                 Type:  defect       |                   Status:  reopened
             Priority:  normal       |                Component:  avformat
              Version:  unspecified  |               Resolution:
             Keywords:  rtsp         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+------------------------------------
Changes (by midicase):

 * component:  undetermined => avformat


Comment:

 I was having the same issue.   RTSP has its own timeout handling, not sure
 how it interacts with rw_timeout.  I "fixed" my RTSP by modifying the
 define:

 /* Timeout values for socket poll, in ms,
  * and read_packet(), in seconds  */
 #define POLL_TIMEOUT_MS 100
 #define READ_PACKET_TIMEOUT_S 10
 #define MAX_TIMEOUTS READ_PACKET_TIMEOUT_S * 1000 / POLL_TIMEOUT_MS


 The math in the code is off somehow since the timeout is actually 2 times
 the READ_PACKET_TIMEOUT_S.  I didn't dig any further.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7609#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list