Opened 5 years ago
Last modified 5 years ago
#9258 new defect
Missed packets when input multiple RTSP streams
| Reported by: | xiaofeng | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | undetermined |
| Version: | git-master | Keywords: | rtsp |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
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
...
Attachments (2)
Change History (5)
follow-up: 3 comment:1 by , 5 years ago
| Priority: | important → normal |
|---|
comment:2 by , 5 years ago
| Component: | ffmpeg → undetermined |
|---|
comment:3 by , 5 years ago
Replying to Carl Eugen Hoyos:
Please provide the command line you tested together with the complete, uncut console output to make this a valid ticket.
Log files generated with the -report option has been attached.
Note:
See TracTickets
for help on using tickets.



Please provide the command line you tested together with the complete, uncut console output to make this a valid ticket.