Skip to content

WebRTC: counting video frames for stats instead of packets - #4635

Closed
artem-smorodin-dacast wants to merge 1 commit into
ossrs:developfrom
artem-smorodin-dacast:feature/webrtc-frames-count
Closed

WebRTC: counting video frames for stats instead of packets#4635
artem-smorodin-dacast wants to merge 1 commit into
ossrs:developfrom
artem-smorodin-dacast:feature/webrtc-frames-count

Conversation

@artem-smorodin-dacast

Copy link
Copy Markdown
Contributor

This PR allows counting webrtc video frames instead of RTP packets. This would be very useful, as the number of RTP packets is not a very useful metric on its own, especially due to NACK.

Technically, this is possible because the marker bit is set for the last packet of the frame.

The count is only done for the primary ssrc, ignoring RTX and FEC.

@winlinvip
winlinvip force-pushed the develop branch 2 times, most recently from 70f14fc to ebf8b71 Compare March 22, 2026 12:11
@winlinvip
winlinvip force-pushed the develop branch 3 times, most recently from 6ce415e to 6ee6f1c Compare May 17, 2026 16:09
@winlinvip

winlinvip commented Aug 12, 2026

Copy link
Copy Markdown
Member

Thank you for your idea, it's a value improvement. I appreciate your contribution. Now SRS is maintained by AI, so AI will implement this idea with comprehensive tests. See #4717

@winlinvip winlinvip closed this Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants