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

4K码率是不是被限制了? #245

Open
qiuzi opened this issue Sep 8, 2024 · 8 comments
Open

4K码率是不是被限制了? #245

qiuzi opened this issue Sep 8, 2024 · 8 comments

Comments

@qiuzi
Copy link

qiuzi commented Sep 8, 2024

image
画面很模糊 I9 4090
image

@lipku
Copy link
Owner

lipku commented Sep 9, 2024

用的rtcpush吗,用新的代码webrtc看看

@qiuzi
Copy link
Author

qiuzi commented Sep 9, 2024

用的rtcpush吗,用新的代码webrtc看看
image

webrtc效果好些 但码率不能稳定在4M,达不到8M要求

@lipku
Copy link
Owner

lipku commented Sep 9, 2024

要改aiortc,里面有最大码率限制

@qiuzi
Copy link
Author

qiuzi commented Sep 9, 2024

要改aiortc,里面有最大码率限制

具体是哪个文件 我修改试试

@fjesikfjdskl
Copy link

你好,请问解决了吗

@qiuzi
Copy link
Author

qiuzi commented Oct 11, 2024

你好,请问解决了吗

没有

@lipku
Copy link
Owner

lipku commented Oct 18, 2024

h264.py
MAX_BITRATE = 3000000 # 3 Mbps

@qiuzi
Copy link
Author

qiuzi commented Oct 18, 2024

你好,请问解决了吗
修改h264.py文件
/root/miniconda3/envs/nerfstream/lib/python3.10/site-packages/aiortc/codecs/h264.py
大致这个文件,修改默认码率和最大最小码率
要是项目里能直接调节就跟好了
DEFAULT_BITRATE = 5000000 # 1 Mbps
MIN_BITRATE = 5000000 # 500 kbps
MAX_BITRATE = 7000000 # 3 Mbps

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

3 participants