Live one-on-one system source experience will be affected by many factors, such as delay, caton, network, great are not synchronized, etc., in which great are not synchronized, although people can easily distinguish by naked eye, but if it is a timestamp caused great are not synchronized, players it is difficult to determine, so considering great sync problem, To be from the production end of the source code of a one-to-one broadcast system.

First, the cause of the unsynchronization of sound and painting

1. Long distance from the acquisition source: If the audio source is a certain distance from the microphone, the sound collection will be much slower than the picture collection, which will lead to the inconsistency of the audio and video timestamp, and then the situation of the audio and video synchronization.

2, acquisition equipment internal problems: live one-on-one system source collection equipment hardware, there will be some signal processing module, in the process of audio and video data processing will produce a certain delay, when the delay is not stable, audio and video data output the timestamp will there is a certain error, causing great are not synchronized.

3. Time stamp is not obtained during collection: in the stream media transmission of source code of one-to-one live broadcasting system, each link will lead to delay, and the acquisition of audio and video time stamp during collection is the stage with the smallest error. If it is not obtained during collection, the problem of audio and video dissynchronization is highly likely to occur.

4. Time stamp disorder: in the source code of one-to-one live broadcasting system, the master of the player is monotonically increasing. If the time stamp does not show the normal monotonically increasing, it will lead to the mismatch between sound and picture.

5, the performance of the player is poor: if the performance of the player is not good, there will be a timely situation when soft solution, audio data has been decoded but video data is not, so the picture can not keep up with the sound, and then the sound and painting is not synchronized.

Two, the solution of sound and painting synchronization

1. If it is the problem of the distance from the source of the collection, the user can be closer to the microphone when using the source code of the one-to-one live broadcasting system to reduce the time difference generated during the collection.

2. If it is an internal problem of the acquisition device, some jitter correction needs to be carried out according to the acquisition parameters, but this situation generally only occurs in a very small number of hardware and models.

3. If the timestamp is not obtained during the collection, it must be because of other factors in the source code of one-to-one live broadcasting system, such as audio and video algorithm processing module, buffer, network transmission and so on, that the collection timestamp is changed.

4, if the timestamp is out of whack, it is necessary to conduct monotonous linear increasing investigation in one-to-one live broadcast system source development to ensure the stability of the timestamp.

5. If the audio and picture are not synchronized due to the performance of the player, the soft solution should be replaced by the hard solution, and the code stream of audio and video content should be reduced according to the specific situation to ensure the user experience.

There are many reasons why one-to-one live broadcast system source sound and painting are not synchronized. In the development, it is necessary to analyze the specific situation and choose the appropriate and correct optimization method to ensure the synchronization of sound and painting during live broadcast. One-to-one live broadcast system source interactive is very high, people’s requirements for live broadcast quality is also relatively high, so the development of one-to-one live broadcast system source code is very challenging.

Disclaimer: This article is created by Yunbao Technology, please indicate the author’s name and link to the original text, otherwise it is regarded as infringement