-
Notifications
You must be signed in to change notification settings - Fork 865
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
Troubles with statistics #245
Comments
Hi @ethouris , Regarding the difficulty to read the statistics, I suggest this patch of the file common/transmitmedia.cpp that makes it more human readable:
It makes both (source and logs) more readable. You agree? |
Hi @ethouris , Regarding the error in the printed statistics, I found that perhaps the problem is related to the declaration of the Perhaps the problem is related to this. I'll check it more. UPDATE: Don't worry about this! I see that in the "dev" branch this is deprecated. I search in another place. |
Hi @ethouris , I have found why the SENDER doesn't writes the stats! However, I'm still looking why the data printed it's wrong. I feel it's something related to signed/unsigned comparison and wrong types, and perhaps also the declaration of
I continue working. |
Whoa, slow down. :) There are several problems here. Well, these TRACEBSTATS and SRT_TRACEBSTATS is that there are two "competitive" API files, which are:
So, this TRACEBSTATS is defined this way because this is C++, so " you don't need no stinkun' " struct, as well as this declaration is under The SRT_ENABLE_BSTATS is some legacy thing, likely could be removed, just this kind of refactoring goes slowly. This is always set to 1, otherwise stransmit won't even compile. If you think you can fix anything around printing stats, you are welcome to do it. Just one small problem here about printing sender stats: Currently this is turned on with an option, and options are thought to be general for the whole applications, while stats obviously touch upon one of two media, so if you want to provide printing SRT stats also for sending, it would be better done with not following the option parameter, but rather by adding an extra URI parameter, so that it can be specified directly when defining SRT medium. How to do it - look for |
Hi @ethouris , I found the errors! 😄 My first patch it's in this PR #255. However, I still have a question: Where it's the counter for the UNCORRECTED PACKETS? That it's the finally lost (stolen) packets. This counter exists? |
There's no such thing as "uncorrected packets" in SRT. The only packets that are not delivered directly at normal sending process are retransmitted and dropped. Might be that the latter is what you need. Note that packets may be dropped in both sender and receiver due to:
Both sender and receiver have their own stats of dropped packets. Obviously, the packets that are notified as dropped by the sender are also dropped at the receiver side, but the sender might be sometimes unaware of that the packet was dropped by the receiver stating that the receiver acknowledges the packet that has been dropped. The sender notifies only those packets that have been resigned from further retransmitting. |
Hi @ethouris , And you know where it's the counter for the dopped packets in the receiver? Thank you for your comments! |
Fields named |
You need to fix it first |
I thought I already did! 😕 |
Ok, now it looks much better, but I don't understand what happened to checkers and AppVeyor... |
This is because I changed the "target" from "master" to "dev". Now the checkers don't restart. |
Yes I know, we must kick this thing somehow. Or, if not possible, I'll make a check by myself. |
If you prefer, I can delete the PR and create a new one. |
I close as all it's merged! 👍 |
Hi,
I'm running both versions of "stransmit", master 1.2.2 and dev 1.3.0. And the protocol seems to work right with a test streaming over the Internet.
However, the statistics do not seem to be working. Here the environment:
And all works right. The multicast in the
udp://@239.1.1.1:12345
address it's captured in the "sender" network and streamed without errors to the "receiver" network. Great! 😄However, I see a very strange STATISTICS in both ends...
RECEIVER:
SENDER:
It's this correct? Here some questions:
Please, help me to understand this.
Thank you!
The text was updated successfully, but these errors were encountered: