aiortc / aiortc

WebRTC and ORTC implementation for Python using asyncio
BSD 3-Clause "New" or "Revised" License
4.18k stars 759 forks source link

Low Video Quality with VideoStream-cli using VPX Codec - Bitrate Limit at 1Mbps #1159

Open matinfazel opened 1 week ago

matinfazel commented 1 week ago

Description: I am currently using the videostream-cli method to send a video, and I'm experiencing lower video quality on the receiver side. Specifically, I am using the VPX codec (VP8/VP9), and the maximum bitrate I achieve is around 1 Mbps, while the original video has a bitrate of 3 Mbps.

I am looking for a way to increase the bitrate to match the original video quality. Should I manipulate the bandwidth estimator in aiortc, or is there another approach I should follow to improve the bitrate performance?

Any guidance on this would be appreciated.

openzeka-birol-kuyumcu commented 3 days ago

https://github.com/aiortc/aiortc/blob/a9449820f745e63316b57914b2f1fa7c07f54d9a/src/aiortc/codecs/vpx.py#L17 change this

matinfazel commented 21 hours ago

Thanks for your reply, I have changed this line and other bitrate parameters, and nothing happened. Do you know wether is there any thing that I can change for fixing this?