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

WebRTC: The bitrate of transcoding AAC to Opus is too low. The audio quality is severely compromised. We hope the minimum bitrate can be 192Kbps, or provide an option to configure it. #3448

Closed
fairy-ju opened this issue Mar 6, 2023 · 1 comment · Fixed by #3515
Assignees
Labels
Feature It's a new feature. TransByAI Translated by AI/GPT. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.

Comments

@fairy-ju
Copy link

fairy-ju commented Mar 6, 2023

Description

Please description your issue here
In the process of rtmp/srt-WebRTC with AAC-opus, the opus bitrate is too low, it seems to be only 64Kbps, causing severe audio quality loss. I hope the minimum can be 192Kbps. The bandwidth occupied by audio is negligible compared to video, so it's fine to increase it a bit. Alternatively, it would be great to have a configurable option to adjust it ourselves. If this suggestion can be adopted, I would be extremely grateful.

  1. SRS Version: 5.0

  2. SRS Config:

listen              1935;
max_connections     1000;
daemon              off;
srs_log_tank        console;
http_api {
    enabled         on;
    listen          1985;
}
http_server {
    enabled         on;
    listen          8080;
    dir             ./objs/nginx/html;
}
srt_server {
    enabled on;
    listen 10080;
    maxbw 1000000000;
    connect_timeout 4000;
    peerlatency 0;
    recvlatency 0;
}
rtc_server {
    enabled on;
    # Listen at udp://8000
    listen 8000;
    #candidate $CANDIDATE;

candidate *; # Support any IP, which means letting the server choose by itself, first selecting public IP, then selecting private IP
use_auto_detect_network_ip on; # If this feature is disabled, it will not automatically select IP
ip_family ipv4; # When automatically selecting IP, choose IPv4 or IPv6 address
api_as_candidates on; # Whether to enable this feature. If the API is a separate server, this feature can be disabled
resolve_api_domain on; # If the API is a domain name, whether to resolve the domain name to an IP address. Note that Firefox does not support domain names, so it is generally recommended to enable this
keep_api_domain on; # Whether to keep the domain name of the API. Clients that support domain name resolution can resolve the IP address themselves to avoid server-side resolution

}
vhost __defaultVhost__ {
    srt {
        enabled     on;
    }
    rtc {
        enabled     on;
        rtmp_to_rtc on;
        rtc_to_rtmp on;
    }
    http_remux {
        enabled     on;
        mount       [vhost]/[app]/[stream].flv;
    }
}

Expect

Please describe your expectation.

TRANS_BY_GPT3

@xiaozhihong
Copy link
Collaborator

agree!

@winlinvip winlinvip changed the title rtmp-WebRTC过程中,opus码率给的太小了,好像才64Kbps,音质损伤严重,希望最低能192Kbps,音频相对于视频占用的带宽微乎其微,给高点没什么的,或者开放个config可以自己配置也好 WebRTC: The bitrate of transcoding AAC to Opus is too low. rtmp-WebRTC过程中,opus码率给的太小了,好像才64Kbps,音质损伤严重,希望最低能192Kbps,音频相对于视频占用的带宽微乎其微,给高点没什么的,或者开放个config可以自己配置也好 Mar 9, 2023
@winlinvip winlinvip changed the title WebRTC: The bitrate of transcoding AAC to Opus is too low. rtmp-WebRTC过程中,opus码率给的太小了,好像才64Kbps,音质损伤严重,希望最低能192Kbps,音频相对于视频占用的带宽微乎其微,给高点没什么的,或者开放个config可以自己配置也好 WebRTC: The bitrate of transcoding AAC to Opus is too low. 转Opus码率给的太小了,音质损伤严重,希望最低能192Kbps,或者开放config Mar 9, 2023
@winlinvip winlinvip added Feature It's a new feature. WebRTC WebRTC, RTC2RTMP or RTMP2RTC. labels Mar 9, 2023
@winlinvip winlinvip changed the title WebRTC: The bitrate of transcoding AAC to Opus is too low. 转Opus码率给的太小了,音质损伤严重,希望最低能192Kbps,或者开放config WebRTC: The bitrate of transcoding AAC to Opus is too low. The audio quality is severely compromised. We hope the minimum bitrate can be 192Kbps, or provide an option to configure it. Jul 29, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature It's a new feature. TransByAI Translated by AI/GPT. WebRTC WebRTC, RTC2RTMP or RTMP2RTC.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants