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

Takes more upstream bandwidth when restreaming single source #3

Open
barlowd55 opened this issue Jul 6, 2022 · 2 comments
Open

Takes more upstream bandwidth when restreaming single source #3

barlowd55 opened this issue Jul 6, 2022 · 2 comments

Comments

@barlowd55
Copy link

I am using your code for restreaming sources to clients.

I just noticed a bug in the app. When I am restreaming a single source to more than 1 client, the app consumes the same upstream bandwidth for each client.

For example:

1 source, 1 client: 1 upstream bandwidth, 1 downstream bandwidth
1 source, 2 client: 2 upstream bandwidth, 2 downstream bandwidth

while, the downstream bandwidth is understandable, the upstream bandwidth should only be consumed once for restreaming a single source, that is, 1 channel restream > to n users.

The weird part is that the source only shows a single connection from the restreaming app, while the nload shows that every client is consuming the same upstream and downstream bandwidth.

Let me know if you can fix this issue. Happy to donate.

@shaunschembri
Copy link
Owner

Thanks for opening the issue.

This was tested using a single client stream a single service and currently its not possible to re-utlize the same stream to multiple clients if the same stream is requested more then once. Definitaly and improvment that can me made but might require some redesign as the code was always inteaded to support a single client.

@barlowd55
Copy link
Author

Thanks for the reply and I appreciate your application. I understood the reason behind the current implementation, but I cannot seem to figure out how the source only detects as a single connection even though it is using multiple connections for each clients.
Maybe it is possible to download the source first to the local hard disk before restreaming.

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