sipsorcery-org / SIPSorceryMedia.FFmpeg

GNU Lesser General Public License v2.1
31 stars 24 forks source link

Enhance Audio Source encoding #27

Closed ChristopheI closed 2 years ago

ChristopheI commented 2 years ago

Enhance Audio Source encoding:

Tested with this Audio Codecs: PCMU (G711), PCMA (G711), G722, G729 and Opus

More details: FFmpegAudioDecoder: clockrate must be set to init it FFmpegAudioSource, FFmpegMicrophoneSource, FFmpegFileSource: frame size can be set for Audio encoding purpose FFmpegAudioSource: use frame size for encoding and set correct duration when using OnAudioSourceEncodedSample Helper: remove unnecessary code