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

[Feat]: Frame drops #85

Open
talhatsk opened this issue Jun 3, 2024 · 5 comments
Open

[Feat]: Frame drops #85

talhatsk opened this issue Jun 3, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@talhatsk
Copy link

talhatsk commented Jun 3, 2024

Version

2.0.0

Environment that reproduces the issue

Use case description

Hi, is there any method or callback that can tell us the frame drops in our stream?

Proposed solution

there should be a callback function that tells us the frame drop after some interval of time

Alternative solutions

No response

@talhatsk talhatsk added the enhancement New feature or request label Jun 3, 2024
@ThibaultBee
Copy link
Member

Hi,

There isn't such APIs.
To understand the need, I have to understand:

  • Why do you need it? (how do you plan to use it?)
  • What is a frame? (video/audio/network packet)

@xoraingroup
Copy link

We would also like to have frame drops in some callback due to the reason, that some times when we stream to a specific RTMP server, the stream seems pixelated and stuttering.

Having this option can enable us to adjust bitrate dynamically for high latency and poor internet connection users.

Frame drops are audio video frames. If its not possible, then a packet drops will suffice as well.

@talhatsk
Copy link
Author

talhatsk commented Jun 4, 2024

Hi,

There isn't such APIs. To understand the need, I have to understand:

  • Why do you need it? (how do you plan to use it?)
  • What is a frame? (video/audio/network packet)

yes i second @xoraingroup , the need is to change the bitrate when the users have high latency due to poor connection. to give them a seem less and fine streaming experience.

@ThibaultBee
Copy link
Member

Ok, so you want to know if the connection is reliatable or not. That made more senses for RTMP than a callback with frame drops as RTMP is based on TCP.
I would rather add a small optional mechanism (maybe customizable with custom algorithm) to reduce bitrate when sender internal buffer are too large.
But it is a complicated topic.

@xoraingroup
Copy link

Yes thats true, TCP connection do resend packets, but as observed in OBS, it drops frames at source may be due to wrong time stamps???

Basically, an optional parameter with max and min bitrate would be ideal, in which it should automatically reduce bitrate to the min level if there is too much retransmission of packets due to latency, bad network etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants