How can i increase quality of my liveStreaming ? i...
# ask-ai
b
How can i increase quality of my liveStreaming ? is there any default setting for quality?
t
Thanks for reaching out, boris. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To increase the quality of your live streaming, you can adjust the default settings for both video and audio. Here are some suggestions: • Video Quality: Use higher resolution presets like h720 (1280x720) or configure custom settings with higher bitrates and framerates. For example:
Copy code
const room = new Room({
  videoCaptureDefaults: {
    resolution: {
      width: 1280,
      height: 720,
      frameRate: 30,
    },
  },
  publishDefaults: {
    videoEncoding: {
      maxBitrate: 1_500_000,
      maxFramerate: 30,
    },
  },
});
Audio Quality: Use hi-fi settings presets or configure maximum quality settings (up to 510kbps stereo). For example:
Copy code
const audioTrack = await createLocalAudioTrack({
  channelCount: 2,
  echoCancellation: false,
  noiseSuppression: false,
});
const audioPublication = await localParticipant.publishTrack(audioTrack, {
  audioBitrate: 510000,
  dtx: false,
  red: false,
});
Advanced Codecs: Consider using VP9 or AV1 with SVC (Scalable Video Coding) for better bitrate efficiency and quality. Let me know if you need further assistance with implementing these settings! Sources: Codecs and more | LiveKit Docs
b
can i increase it more ? what is minimum quality and maximum ?
t
Currently, the maximum quality settings for live streaming include a video resolution of up to 1280x720 (h720) with a maximum bitrate of 1,500,000 and a framerate of 30fps. For audio, the maximum quality is up to 510kbps stereo with hi-fi settings. Unfortunately, specific details about the minimum quality settings are not available at the moment. If you have specific requirements or need further assistance, feel free to let me know!