SRT srtsink with srtsrc fails locally with ":No room to store incoming packet"
I have communicated this elsewhere. I've been trying to do a test mpeg-ts send and receive locally, for testing ingesting into wowza remotely later. I am doing this test until OBS has SRT encoding support, as my UDP test via ffmpeg remotely barely functioned.
However the local transmission on the same machine fails as if there is not enough buffer to receive it. Using ffmpeg as a sender works, but delivering to a remote Wowza with too high bitrate produced the same errors.
Sender in a vmware or windows client. This chopmydata is required to work like pktsize in ffmpeg.
gst-launch-1.0 filesrc location=sintel_lang.ts ! tsparse set-timestamps=1 smoothing-latency=40000000 ! chopmydata step-size=188 min-size=188 max-size=1316 ! srtsink uri=srt://192.168.4.43:8088
12:18:07.499950/mpegtsparse2-0:*E: SRT.d: SND-DROPPED 29 packets - lost delaying for 1024ms
12:18:07.508915/mpegtsparse2-0:*E: SRT.d: SND-DROPPED 23 packets - lost delaying for 1024ms
12:18:07.517874/mpegtsparse2-0:*E: SRT.d: SND-DROPPED 24 packets - lost delaying for 1023ms
12:18:07.526882/mpegtsparse2-0:*E: SRT.d: SND-DROPPED 26 packets - lost delaying for 1023ms
12:18:07.536077/mpegtsparse2-0:*E: SRT.d: SND-DROPPED 22 packets - lost delaying for 1023ms
12:18:07.545959/mpegtsparse2-0:*E: SRT.d: SND-DROPPED 26 packets - lost delaying for 1024ms
12:18:07.554756/mpegtsparse2-0:*E: SRT.d: SND-DROPPED 25 packets - lost delaying for 1024ms
12:18:07.563901/mpegtsparse2-0:*E: SRT.d: SND-DROPPED 22 packets - lost delaying for 1024ms
12:18:07.572710/mpegtsparse2-0:*E: SRT.d: SND-DROPPED 33 packets - lost delaying for 1023ms
12:18:07.581747/mpegtsparse2-0:*E: SRT.d: SND-DROPPED 22 packets - lost delaying for 1023ms
12:18:07.590694/mpegtsparse2-0:*E: SRT.d: SND-DROPPED 33 packets - lost delaying for 1023ms
12:18:07.600530/mpegtsparse2-0:*E: SRT.d: SND-DROPPED 18 packets - lost delaying for 1024ms
Receiver client on windows
gst-launch-1.0 -v srtsrc uri="srt://:8088" ! decodebin ! videoconvert ! autovideosink
994379595 rcv-remain=2691
12:18:10.406079*E: SRT.c: %849110327:No room to store incoming packet: offset=6901 avail=5503 ack.seq=994372726 pkt.seq=994379627 rcv-remain=2688
12:18:10.406567*E: SRT.c: %849110327:No room to store incoming packet: offset=6902 avail=5503 ack.seq=994372726 pkt.seq=994379628 rcv-remain=2688
12:18:10.415093*E: SRT.c: %849110327:No room to store incoming packet: offset=6923 avail=5503 ack.seq=994372726 pkt.seq=994379649 rcv-remain=2688
12:18:10.415430*E: SRT.c: %849110327:No room to store incoming packet: offset=6924 avail=5503 ack.seq=994372726 pkt.seq=994379650 rcv-remain=2688
12:18:10.424044*E: SRT.c: %849110327:No room to store incoming packet: offset=6956 avail=5503 ack.seq=994372726 pkt.seq=994379682 rcv-remain=2688
12:18:10.424442*E: SRT.c: %849110327:No room to store incoming packet: offset=6957 avail=5503 ack.seq=994372726 pkt.seq=994379683 rcv-remain=2688
handling interrupt.
Ffmpeg sender OK
ffmpeg -fflags +genpts -re -i sintel_lang_2000k.mp4 -acodec copy -vcodec copy -map 0:v:0 -map 0:a:0 -map 0:a:2 -strict -2 -y -f mpegts 'srt://192.168.4.43:8088?pkt_size=1316&mode=caller'
Reference here.
https://github.com/Haivision/srt/issues/659#issuecomment-517934242