[FFmpeg-trac] #9258(ffmpeg:new): Missed packets when input multiple RTSP streams

FFmpeg trac at avcodec.org
Mon May 24 16:18:01 EEST 2021


#9258: Missed packets when input multiple RTSP streams
----------------------------------+--------------------------------------
             Reporter:  xiaofeng  |                     Type:  defect
               Status:  new       |                 Priority:  important
            Component:  ffmpeg    |                  Version:  git-master
             Keywords:  rtsp      |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+--------------------------------------
 Summary of the bug:

 When using FFmpeg to receive and decode multiple RTSP streams, FFmpeg will
 drop or miss packets.

 It works fine if I run multiple FFmpeg instances, one RTSP stream per
 instance.

 The hardware capabilities should be sufficient.

 How to reproduce:

 '''Windows is required'''

 Commands to reproduce under a PowerShell terminal:

 {{{

 $env:rtspUrl="rtsp://any_rtsp_stream"
 $env:rtspTransport="udp"

 .\ffmpeg.exe                                              `
      -rtsp_transport $env:rtspTransport  -i $env:rtspUrl  `
      -rtsp_transport $env:rtspTransport  -i $env:rtspUrl  `
      -rtsp_transport $env:rtspTransport  -i $env:rtspUrl  `
      -rtsp_transport $env:rtspTransport  -i $env:rtspUrl  `
      -filter_complex "[1:v]null;[2:v]null;[3:v]null" -map 0 -f null
 /dev/zero
  ... output
 ffmpeg version git-2021-05-17-11b489d5 Copyright (c) 2000-2021 the FFmpeg
 developers
   built with gcc 10.2.1 (GCC) 20210130
   configuration: --cross-prefix=i686-w64-mingw32-
 --prefix=/home/backup/opensource/mpv-winbuild-
 cmake/build/i686/install/mingw --arch=i686 --target-os=mingw32 --target-
 exec=wine --pkg-config-flags=--static --enable-cross-compile --enable-
 runtime-cpudetect --enable-debug --enable-gpl --enable-version3 --enable-
 nonfree --enable-postproc --enable-avisynth --enable-vapoursynth --enable-
 gmp --enable-libass --enable-libbluray --enable-libfreetype --enable-
 libfribidi --enable-libmodplug --enable-libopenmpt --enable-libmp3lame
 --enable-libopus --enable-libsoxr --enable-libspeex --enable-libvorbis
 --enable-libbs2b --enable-libvpx --enable-libwebp --enable-libx264
 --enable-libx265 --enable-libaom --enable-libdav1d --enable-libxvid
 --enable-libzimg --enable-libtls --enable-libxml2 --enable-libmysofa
 --enable-libssh --enable-libmfx --enable-cuda --enable-cuvid --enable-
 nvdec --enable-nvenc --enable-amf --disable-decoder=libaom_av1 --extra-
 cflags='-DMODPLUG_STATIC -gdwarf'
   libavutil      57.  0.100 / 57.  0.100
   libavcodec     59.  1.100 / 59.  1.100
   libavformat    59.  2.100 / 59.  2.100
   libavdevice    59.  0.100 / 59.  0.100
   libavfilter     8.  0.101 /  8.  0.101
   libswscale      6.  0.100 /  6.  0.100
   libswresample   4.  0.100 /  4.  0.100
   libpostproc    56.  0.100 / 56.  0.100
  ...
 [rtsp @ 066ee840] RTP: missed 34 packets
 [rtsp @ 066ee840] max delay reached. need to consume packet
 [rtsp @ 066ee840] RTP: missed 68 packets
 [rtsp @ 066ee840] max delay reached. need to consume packet
 [rtsp @ 066ee840] RTP: missed 11 packets
 [rtsp @ 066ee840] max delay reached. need to consume packet
 [rtsp @ 066ee840] RTP: missed 1 packets
 [rtsp @ 066ee840] max delay reached. need to consume packet
 [rtsp @ 066ee840] RTP: missed 221 packets
 [rtsp @ 066ee840] max delay reached. need to consume packet
 [rtsp @ 066ee840] RTP: missed 2 packets
 ...
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9258>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list