1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Use FFmpeg to transcode aac to opus

This commit is contained in:
winlin 2020-10-22 17:07:50 +08:00
parent 97880f6bb7
commit d5a0ad3dd8
3 changed files with 208 additions and 128 deletions

View file

@ -558,7 +558,7 @@ SrsRtcFromRtmpBridger::SrsRtcFromRtmpBridger(SrsRtcStream* source)
req = NULL;
source_ = source;
format = new SrsRtmpFormat();
codec = new SrsAudioRecode(kAudioChannel, kAudioSamplerate);
codec = new SrsAudioRecode(SrsAudioCodecIdAAC, SrsAudioCodecIdOpus, kAudioChannel, kAudioSamplerate);
discard_aac = false;
discard_bframe = false;
merge_nalus = false;