Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PktRecvLoss is increasing even with good network conditions #91

Open
TranscodingAddict opened this issue Jan 20, 2025 · 0 comments
Open
Assignees

Comments

@TranscodingAddict
Copy link

Hi,

i have a very simple setup with, on one side, the contrib/server basic implementation of gosrt and on the other side a simple FFmpeg caller.

On the server side I run:

./server -addr 0.0.0.0:19213 -app 0

On sthe client side I run:

ffmpeg -stream_loop -1 -re -i input.ts -map 0 -c copy -copyts -latency 500 -srt_streamid "publish:0/0" -f mpegts "srt://SERVER_IP:19213"

Everything starts correctly, but if i stop FFmpeg after a while and look at stats, I can see that the connection was not so good and packets are dropped:

&{MsTimeStamp:59464 Accumulated:{PktSent:0 PktRecv:55494 PktSentUnique:0 PktRecvUnique:55317 PktSendLoss:0 **PktRecvLoss:357** PktRetrans:0 PktRecvRetrans:503 PktSentACK:3642 PktRecvACK:0 PktSentNAK:52 PktRecvNAK:0....

If I use srt-live-transmit to compare, the result is much better:

srt-live-transmit -statsout stats.log -stats-report-frequency:10000 srt://19213 file://con > /dev/null

======= SRT STATS: sid=663284501
PACKETS     SENT:           0  RECEIVED:         10048
LOST PKT    SENT:           0  RECEIVED:             0
REXMIT      SENT:           0  RECEIVED:             0
DROP PKT    SENT:           0  RECEIVED:             0

Is there anything I am doing wrong? Any chance you could help me identify the issue ?
FYI, ping between the 2 servers is pretty good: icmp_seq=1 ttl=49 time=20.9 ms

Thanks in advance!

@ioppermann ioppermann self-assigned this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants