Description
If you use the built-in opus in FFmpeg, there will definitely be a loud noise, and this can be reproduced.
Patch Commit ID: 8d61c2a
SRS Version: develop v5.0.36
-
Compile FFmpeg
- Use FFmpeg's built-in opus:
--enable-decoder=opus --enable-encoder=opus
- Use libopus library:
--enable-libopus
-
SRS Config (Configuration)
listen 1935;
max_connections 1000;
daemon off;
srs_log_tank console;
http_server {
enabled on;
listen 8080;
dir ./objs/nginx/html;
}
http_api {
enabled on;
listen 1985;
}
rtc_server {
enabled on;
listen 8000; # UDP port
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
#candidate $CANDIDATE;
candidate 10.254.44.205;
}
vhost __defaultVhost__ {
rtc {
enabled on;
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
rtmp_to_rtc on;
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
rtc_to_rtmp on;
}
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
}
}
Replay (Reproduction)
Please describe the steps to reproduce the bug. (重现Bug的步骤)
-
RTMP streaming:
ffmpeg -stream_loop -1 -re -i 264_aac_basline_48k.mp4 -c copy -f flv "rtmp://127.0.0.1/live/livestream"
-
RTC playback, open the player https://127.0.0.1/players/rtc_player.html, and play:
https://127.0.0.1/players/rtc_player.html
Expect (Expected Behavior)
RTC playback works normally.
TRANS_BY_GPT3