SRT Playback not playing properly

I am streaming using SRT and when using ffplay, or media input in OBS, the playback keeps freezing, not maintaining the frame rate properly and after 5 or 10 seconds the playback stops and don’t reconnects at all.

ffplay command:

$ ffplay -analyzeduration 1 -fflags -nobuffer -probesize 32 -sync ext 'srt://live.cloudflare.com:778?passphrase=057...511e&streamid=playc3e...11e'

Passphase and streamid was intentionally modified.

This is the ouput of ffplay after spots the playback:

ffplay version 6.1.1 Copyright (c) 2003-2023 the FFmpeg developers
  built with Apple clang version 15.0.0 (clang-1500.3.9.4)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.1.1_6 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopenvino --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   4. 12.100 /  4. 12.100
  libpostproc    57.  3.100 / 57.  3.100
[mpegts @ 0x15af66b40] Stream #1: not enough frames to estimate rate; consider increasing probesize
[mpegts @ 0x15af66b40] Could not find codec parameters for stream 1 (Video: h264 ([27][0][0][0] / 0x001B), none): unspecified size
Consider increasing the value for the 'analyzeduration' (1) and 'probesize' (32) options
Input #0, mpegts, from 'srt://live.cloudflare.com:778?passphrase=057...511e&streamid=playc3e...11e':
  Duration: N/A, start: 17213.125000, bitrate: 144 kb/s
  Program 1
  Stream #0:0[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 144 kb/s
  Stream #0:1[0x100]: Video: h264 ([27][0][0][0] / 0x001B), none, 90k tbr, 90k tbn
[h264 @ 0x15af78ca0] Invalid level prefixq=    0KB sq=    0B f=0/0
[h264 @ 0x15af78ca0] error while decoding MB 95 11
[h264 @ 0x15af78ca0] concealing 6794 DC, 6794 AC, 6794 MV errors in P frame

Is there any way to playback the SRT Playback properly?

And another thing that was not clear to me is that sometimes when I start the streaming using SRT I can playback the SRT Playback and RTMPS Playback properly and sometimes the RTMPS Playback don’t work. Is this intentional? There is any way to force the RTMPS Playback to be always working when using SRT streaming?

@JaimeC @kkipp can anyone help me with this?

@zaid @cloonan can you help me?