[FFmpeg-trac] #2294(undetermined:new): timeout option does not work for rtsp streaming

FFmpeg trac at avcodec.org
Fri Feb 22 07:00:50 CET 2013


#2294: timeout option does not work for rtsp streaming
-------------------------------------+-------------------------------------
             Reporter:  chinshou     |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 after setting timeout option, I can not playback the correct rtsp url

 C:\Conversion>ffplay -v 999 -timeout 10 rtsp://xxx.com:554/live
 .sdp
 ffplay version N-45279-g1a104bf Copyright (c) 2003-2012 the FFmpeg
 developers
   built on Oct 10 2012 19:19:16 with gcc 4.7.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-pthreads
 --enable-runt
 ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-
 libass -
 -enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb
 --enable-l
 ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-
 libopenj
 peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-
 libtheo
 ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc
 --enable-li
 bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
 --ena
 ble-zlib
   libavutil      51. 74.100 / 51. 74.100
   libavcodec     54. 65.100 / 54. 65.100
   libavformat    54. 31.100 / 54. 31.100
   libavdevice    54.  3.100 / 54.  3.100
   libavfilter     3. 19.102 /  3. 19.102
   libswscale      2.  1.101 /  2.  1.101
   libswresample   0. 16.100 /  0. 16.100
   libpostproc    52.  1.100 / 52.  1.100
 [rtsp @ 041030e0] Unable to open RTSP for listening
 rtsp://vpn.sincerasolutions.com:554/live.sdp: Unknown error

 if I remove the timeout option , it will playback correctly.

 but by default ffmpeg will hangup when the server down if without timeout
 option.

 for example executing following command to playback non-exists url will
 hangup the ffplay client.

 C:\Conversion>ffplay -v 999 rtsp://192.168.222.222/adfakf
 ffplay version N-45279-g1a104bf Copyright (c) 2003-2012 the FFmpeg
 developers
   built on Oct 10 2012 19:19:16 with gcc 4.7.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-pthreads
 --enable-runt
 ime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-
 libass -
 -enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb
 --enable-l
 ibfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-
 libopenj
 peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-
 libtheo
 ra --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc
 --enable-li
 bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid
 --ena
 ble-zlib
   libavutil      51. 74.100 / 51. 74.100
   libavcodec     54. 65.100 / 54. 65.100
   libavformat    54. 31.100 / 54. 31.100
   libavdevice    54.  3.100 / 54.  3.100
   libavfilter     3. 19.102 /  3. 19.102
   libswscale      2.  1.101 /  2.  1.101
   libswresample   0. 16.100 /  0. 16.100
   libpostproc    52.  1.100 / 52.  1.100

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


More information about the FFmpeg-trac mailing list