-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
WebRTC: Audio is corrupt when using FFmpeg native opus codec. When converting audio AAC to opus using FFmpeg's built-in opus encoding, there is a crackling sound. #3140
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
Comments
winlinvip
added a commit
that referenced
this issue
Jan 6, 2023
Specify using the built-in opus in FFmpeg, with the option: --ffmpeg-opus=on|off Whether enable the FFmpeg native opus codec. Default: off After changing the opus library, you need to delete FFmpeg and recompile it. rm -rf objs
./configure --ffmpeg-opus=on
make
|
winlinvip
added a commit
that referenced
this issue
Jan 6, 2023
winlinvip
added a commit
that referenced
this issue
Jan 6, 2023
Is it possible to fix it by upgrading FFmpeg to 5.1? |
Test FFmpeg last release 5.1.3, the problem already solved. SRS will update FFmpeg from 4.x to 5.1.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Compile FFmpeg
--enable-decoder=opus --enable-encoder=opus
--enable-libopus
SRS Config (Configuration)
Replay (Reproduction)
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)
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: