SDK video rendering test process

  1. Overview

When some friends see the title, they may have a question, "What is a video engine?" With the advancement of the Internet, there are more and more apps we are familiar with. For example, we often come into contact with Volcano Video, Douyin, Weishi and other very commonly used video software. This article uses our SDK video engine The rendering test is the starting point. It is about the method we use to render the video and the test process in the video rendering. The main test platforms are server, Android, IOS and other three platforms. The content includes data creation, material replacement, audio, Four parts including text. If there are any unclear points during the explanation, friends are also welcome to provide valuable comments.

  1. Test function module

2.1 Data creation

Before the test, we will prepare our test data in advance according to the content we want to test. During the test, we will view and compare based on the rendering and then through the data we created to see if the actual effect is consistent with our data.

After the data preparation is complete, add the template we want to test and bind it with the data we created, so that we can use our data to see the effect of the template rendering when rendering. (The effect is shown in the figure below, the left side is the template we generated, the video rendered according to the created data, and the right side is the video effect comparison template)

2.2 Material replacement

What is material replacement? Friends with relevant experience may know that when we add our material to our video, we will encounter various problems during the rendering process. For example, the added picture is not displayed, or the added video screen is played. Incompleteness, or incorrect format when uploading, etc., these problems will occur, then how can we test to ensure that the files we upload can be displayed normally, so during the testing process, we have to replace our materials with data created by ourselves , Such as pictures, videos, moving pictures and so on, the format includes MP4, jpg, png, gif, etc. How do we edit and replace our materials?

Note: Taking our current data as an example, at the crossed line is to add our material for comparison view (the left is our material link, the right is the content of the link)

2.3 Audio

The audio test is relatively not as simple as material replacement. We first upload a piece of our audio, put the audio link into our data, and then set the position of the audio in the video, the duration, and the volume. Adjust the time period of the interception in the video playback, whether the played sound appears at the set time point, and whether there are problems such as freezing or out of sync audio and video.

Note: This section is the audio we added, and the playback time has been set, etc.

Note: This is the rendered video. The place marked by the red box is after we set the audio time to test whether its effect is consistent with our data setting

  • 2.4 Text editing

The template rendering also contains an important part of our text, including font size, color, content modification, and text animation effects. Then we compare and view it based on the data in the test.

[Image upload failed...(image-3eaaac-1609123797184)]

After editing, we perform rendering to view the effect:

This is the rendered video exactly the same as the edited text on our data, and the effect is correct.

  1. end

To sum up, it is a simple explanation of our four sections. The process may be relatively simple and not so careful. Follow-up will continue to be updated and improved. I hope that there will be some help to our friends. Of course, our friends You can also put forward your valuable opinions and insights, we can communicate, and everyone can make progress together.

Guess you like

Origin blog.csdn.net/weixin_41191739/article/details/111838367