Ninja Docs
Search
⌃K

&audiocodec

Lets you specify the audio codec
Viewer-Side Option! (&view, &scene, &room, &solo)

Options

Example: &audiocodec=opus
Value
Description
opus
default; selects audio codec opus
red
selects audio codec red*
pcmu
selects audio codec pcmu
pcma
selects audio codec pcma
isac
selects audio codec isac
g722
selects audio codec g722
pcm
selects audio codec pcm*

Details

&audiocodec on the viewer side can let you specify the audio codec; opus (default), pcmu, pcma, isac, g722, red and pcm.

red

&audiocodec=red is pretty much sending two opus streams, with one as a backup in case of packet loss; support in Chromium 97 and up, but the only way I can so far tell that it is working is to check if the audio bitrate has doubled.

pcm

&audiocodec=pcm now will support 48khz and 44.1khz mono playback (48khz default), and if &stereo is used, it changes to two-channel stereo 32khz.
The existing &samplerate=44100 option can lower the sample rate of this pcm mode (down to 8khz even), and hence the resulting audio bitrate. Since pcm is raw, &audiobitrate won't work, so expect 550 to 1200-kbps in just audio bitrates per viewer.
Last modified 4mo ago