10. Media Quality

Audio Quality

If you experience any problem with the audio quality, you may want to try the steps below:

  1. Follow the guide: Test the sound device using pjsystest.
  2. Identify the sound problem and troubleshoot it using the steps described in: Checking for sound problems.

It is probably easier to do the testing using lower level API such as PJSUA since we already have a built-in pjsua sample app located in pjsip-apps/bin to do the testing. However, you can also do the testing in your application using PJSUA2 API such as local audio loopback, recording to WAV file as explained in the Media chapter previously.

Video Quality

For video quality problems, the steps are as follows:

  1. For lack of video, check account’s AccountVideoConfig, especially the fields autoShowIncoming and autoTransmitOutgoing. More about the video API is explained in Video Users Guide.
  2. Check local video preview using PJSUA API as described in Video Users Guide-Video Preview API.
  3. Since video requires a larger bandwidth, we need to check for network impairments as described in Checking Network Impairments. The document is for troubleshooting audio problem but it applies for video as well.
  4. Check the CPU utilization. If the CPU utilization is too high, you can try a different (less CPU-intensive) video codec or reduce the resolution/fps. A general guide on how to reduce CPU utilization can be found here: FAQ-CPU utilization.

Table Of Contents

Previous topic

9. PJSUA2 Sample Applications

Next topic

11. Network Problems

This Page