H.Mohseni
H.Mohseni

Reputation: 27

Opus decode parameters

According to RFC7587, in an RTP packet with following parameters, what is the Opus sampling rate? 48000 or 16000?

what does rtpmap mean?

m=audio 54312 RTP/AVP 101
a=rtpmap:101 opus/48000/2
a=fmtp:101 maxplaybackrate=16000;

Upvotes: 0

Views: 993

Answers (1)

mail2subhajit
mail2subhajit

Reputation: 1150

The RTP sampling frequency is 48k , for timestamp calculation.

Audio Sampling frequency of the Audio decoder Playback/Render - 16K

maxplaybackrate: a hint about the maximum output sampling rate that the receiver is capable of rendering in Hz. The decoder MUST be capable of decoding any audio bandwidth, but, due to hardware limitations, only signals up to the specified sampling rate can be played back. Sending signals with higher audio bandwidth results in higher than necessary network usage and encoding complexity, so an encoder SHOULD NOT encode frequencies above the audio bandwidth specified by maxplaybackrate. This parameter can take any value between 8000 and 48000, although commonly the value will match one of the Opus bandwidths (Table 1). By default, the receiver is assumed to have no limitations, i.e., 48000.

Upvotes: 1

Related Questions