This application provides a multi-channel audio and video mixing method and
system. The method includes: the Storage Unit (SFU) acquiring audio and video
stream data and status parameters of each terminal device; determining the processed audio and video
stream data corresponding to each terminal device based on the status parameters and audio and video
stream data of each terminal device; the SFU generating multiple push messages based on the processed audio and video
stream data corresponding to each terminal device and sending them to the mixing engine; the mixing engine creating media stream pipelines corresponding to each terminal device based on each push message; pulling the processed audio and video
stream data corresponding to each terminal device from the SFU and inputting it into the media stream pipelines; mixing the processed audio and video
stream data based on each media stream pipeline and the integration unit in the mixing engine to generate mixed audio and video stream data and sending it to the SFU and each terminal device; the SFU recording and storing the mixed audio and video stream data, and each terminal device rendering the mixed audio and video stream data to improve the
mixing effect.