ossrs / srs

SRS is a simple, high-efficiency, real-time video server supporting RTMP, WebRTC, HLS, HTTP-FLV, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
24.79k stars 5.28k forks source link

RTC: Fix FFmpeg opus audio noisy issue. v5.0.195 v6.0.95 #3845

Closed xiaozhihong closed 8 months ago

xiaozhihong commented 8 months ago

Follow the example in FFmpeg's doc, before calling the API avcodec_send_frame, always use av_frame_alloc to create a new frame.


Co-authored-by: Haibo Chen 495810242@qq.com

xiaozhihong commented 8 months ago

Please apply the PR, remove obj dir, and use --ffmpeg-opus=on to configure, ensuring the audio play is not noisy.

winlinvip commented 8 months ago

The default configuration for version 6.0 is --ffmpeg-opus=on, while for version 5.0, it's --ffmpeg-opus=off. Please handle this when merging.

TRANS_BY_GPT4