New communication dynamic display method based on adaptive special effect element library
By adaptively adjusting the special effect display parameters, the problem of low video special effect display efficiency on different terminal devices is solved, and efficient and smooth video special effect display on different performance terminals is achieved, improving the user experience.
Patent Information
- Application Number
- CN202510779397.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-12
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2045-06-12
AI Technical Summary
The prior art fails to adaptively adjust the special effect display parameters according to the actual display process of detection, resulting in inefficient video special effect display on different terminal devices and affecting user experience.
By obtaining the video information to be displayed, the initial parameters of the special effect element are determined, the display video is constructed and output, and the video quality is determined based on the video smooth reference value, and the frame rate fluctuation parameters, rendering magnification, special effect particle generation interval or terminal network bandwidth are adjusted to meet the needs of terminals with different performance performance.
Improve the efficiency and compatibility of video special effects display, ensuring smooth display of video special effects on different performance terminals, and improving user experience.
Smart Images

Figure CN120343337A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of communication display, and in particular to a new communication dynamic display method based on an adaptive special effect element library. Background Art
[0002] In order to enhance the attractiveness and ornamental value of videos, various special effect elements are often added to videos. Video dynamic display has become a very important information transmission method. Users can select and apply in a special effect element library storing special effect elements according to different display requirements.
[0003] However, due to the large performance differences of different terminal devices, when outputting special effect animations with the same parameters, it is easy to experience stuttering on terminals with lower performance. This stuttering not only affects the user's viewing experience but also reduces the display efficiency of the special effects, making it impossible to guarantee the display quality of video information.
[0004] Chinese Patent Publication No.: CN103200177A, discloses a game special effect animation display method, including: downloading animation data and special effect processing data from a server, the special effect processing data including at least one special effect processing package for processing specific sequence frames to obtain animation sequence frames; obtaining a special effect instruction from the server, the special effect instruction indicating a special effect processing package; calling the special effect processing package indicated by the special effect instruction to obtain the corresponding special effect animation sequence frames; displaying the special effect animation sequence frames; thus, the following problems exist in the prior art: it does not consider adaptively adjusting special effect display parameters according to the detected screen conditions during the actual display process, affecting the display efficiency. Summary of the Invention
[0005] Therefore, the present invention provides a new communication dynamic display method based on an adaptive special effect element library to overcome the problem in the prior art that it does not consider adaptively adjusting special effect display parameters according to the detected screen conditions during the actual display process, affecting the display efficiency.
[0006] To achieve the above object, the present invention provides a new communication dynamic display method based on an adaptive special effect element library, including: S1, obtaining video information to be displayed; S2, determining initial parameters of each special effect element based on the obtained display requirements; S3, constructing and outputting a display video; S4, determining a video smoothness reference value based on the frame rates at several detected time nodes; S5, determining whether the output display video is qualified based on the video smoothness reference value, including: Determine that the displayed video of the output is abnormal, and adjust the generation parameters of the displayed video based on the frame rate fluctuation parameter, including adjusting the rendering magnification of the displayed video to the corresponding value, adjusting the time interval for generating special effect particles to the corresponding value, or adjusting the network bandwidth of other running programs on the terminal to the corresponding value; Or, determine that the displayed video of the output is qualified, and complete the output of the displayed video.
[0007] Further, in step S4, the process of determining the video smooth reference value includes: When outputting the displayed video, detect the frame rate of the screen, calculate the average value of the frame rates at each detection time node within the preset analysis duration, and obtain the video smooth reference value.
[0008] Further, in step S5, the process of determining whether the displayed video of the output is qualified based on the video smooth reference value includes: If the video smooth reference value is less than or equal to the first preset smooth reference value, determine that the displayed video of the output is abnormal, and adjust the generation parameters of the displayed video based on the frame rate fluctuation parameter; If the video smooth reference value is less than or equal to the second preset smooth reference value and greater than the first preset smooth reference value, determine whether the displayed video of the output is qualified based on the smooth change parameter; If the video smooth reference value is greater than the second preset smooth reference value, determine that the displayed video of the output is qualified; The process of determining whether the displayed video of the output is qualified based on the smooth change parameter includes: Calculate the average value of several historical video smooth reference values of the obtained single terminal to obtain the historical average smooth reference value; Calculate the ratio of the current video smooth reference value to the historical average smooth reference value to obtain the smooth change parameter; If the smooth change parameter is less than or equal to the preset change parameter, determine that the displayed video of the output is abnormal, and adjust the generation parameters of the displayed video based on the frame rate fluctuation parameter; If the smooth change parameter is greater than the preset change parameter, correct the second preset smooth reference value based on the historical maximum average smooth reference value.
[0009] Further, correct the second preset smooth reference value based on the historical maximum average smooth reference value, where The increase range of the second preset smooth reference value is inversely proportional to the historical maximum average smooth reference value.
[0010] Further, the process of determining that the displayed video of the output is abnormal and adjusting the generation parameters of the displayed video based on the frame rate fluctuation parameter includes: Calculate the variance of the frame rates at each detection time node within the preset analysis duration obtained, to obtain the frame rate fluctuation parameter; If the frame rate fluctuation parameter is less than or equal to the first preset frame rate fluctuation parameter, the rendering magnification of the displayed video is adjusted to the corresponding value based on the frame rate fluctuation parameter; If the frame rate fluctuation parameter is less than or equal to the second preset frame rate fluctuation parameter and greater than the first preset frame rate fluctuation parameter, the generation parameters of the displayed video are adjusted based on the abnormal interval reference value; If the frame rate fluctuation parameter is greater than the second preset frame rate fluctuation parameter, the network bandwidth of other running programs on the terminal is adjusted to the corresponding value based on the video smoothness reference value.
[0011] Further, the rendering magnification of the displayed video is adjusted to the corresponding value based on the frame rate fluctuation parameter, where The reduction amplitude of the rendering magnification is inversely proportional to the frame rate fluctuation parameter.
[0012] Further, adjusting the generation parameters of the displayed video based on the abnormal interval reference value includes: Drawing a frame rate time-domain curve based on the frame rates at each detection time node within the preset analysis duration obtained, identifying the time intervals between the valley values in the frame rate time-domain curve, calculating the average value of each time interval, and obtaining the abnormal interval reference value; If the abnormal interval reference value is less than or equal to the preset abnormal interval reference value, the rendering magnification of the displayed video is adjusted to the corresponding value based on the frame rate fluctuation parameter; If the abnormal interval reference value is greater than the preset abnormal interval reference value, the time interval for generating special effect particles is adjusted to the corresponding value based on the ratio of the number of valley values to the total number of each detection time node.
[0013] Further, the time interval for generating special effect particles is adjusted to the corresponding value based on the ratio of the number of valley values to the total number of each detection time node, where The ratio of the number of valley values to the total number of each detection time node is denoted as the quantity ratio; The increase amplitude of the time interval for generating special effect particles is directly proportional to the quantity ratio.
[0014] Further, the network bandwidth of other running programs on the terminal is adjusted to the corresponding value based on the video smoothness reference value, where The reduction amplitude of the network bandwidth of other running programs is inversely proportional to the video smoothness reference value.
[0015] Compared with the prior art, the beneficial effects of the present invention are as follows. Specifically, video information to be displayed is obtained; initial parameters of each special effect element are determined; a display video is constructed and output; based on a video smoothness reference value, it is determined whether the output display video is qualified, and when it is determined that the output display video is abnormal, the generation parameters of the display video are adjusted based on the frame rate fluctuation parameter to be applicable to video special effect displays on different performance terminals, and according to the detected actual screen situation during the display process, the special effect display parameters are adaptively adjusted, improving the display efficiency.
[0016] Further, when outputting the display video, the frame rate of the terminal within a preset analysis duration is detected in real time, and the average value of the frame rates detected at each time point within the preset analysis duration is selected to determine the video smoothness reference value. The video smoothness reference value characterizes the comprehensive smoothness of the picture. When the video smoothness reference value is less than or equal to the first preset smoothness reference value, the frame rate is low, resulting in obvious frame freezing of the picture, affecting the user's viewing experience. In this case, the constructed video is not applicable to the performance of the current user terminal. At this time, the generation parameters of the display video for the current terminal are adjusted based on the frame rate fluctuation parameter to adjust the subsequent video construction parameters of the terminal, making the generation parameters of the display video adapt to the current terminal, further improving the special effect display efficiency.
[0017] Further, when the video smoothness reference value is less than or equal to the second preset smoothness reference value and greater than the first preset smoothness reference value, the historical average smoothness reference value during the output of the historical special effects of the current terminal is obtained to determine the smoothness change parameter. The smoothness change parameter characterizes the difference between the current video display and the historical video display; when the smoothness change parameter is greater than the preset change parameter, at this time, the frame rates of each historical time and the frame rate of the current video display are close, and a single terminal is already close to its performance limit in this case. In this case, the judgment standard for determining whether the output display video is qualified is adjusted according to the actual situation of the terminal, making the judgment standard more in line with the actual performance of the current terminal; improving the compatibility and applicability of the special effect display, and further improving the special effect display efficiency.
[0018] Further, the generation parameters of the display video are adjusted based on the frame rate fluctuation parameter. The frame rate fluctuation parameter characterizes the frame freezing situation during the display of the video. When the frame rate fluctuation parameter is less than or equal to the first preset frame rate fluctuation parameter, the frame rate is relatively stable, but the overall is low. In this case, due to the too high rendering magnification, the terminal cannot process in time, affecting the video display effect. At this time, the rendering magnification of the special effects for the subsequent video construction of the current terminal is adjusted. When the frame rate fluctuation parameter is greater than the second preset frame rate fluctuation parameter, the frame rate fluctuates violently. In this case, it is caused by unstable network and untimely data transmission. In this case, the network bandwidth of other running programs of the terminal is reduced to ensure the smooth display of the video currently browsed by the user, further improving the special effect display efficiency.
[0019] Further, when the frame rate fluctuation parameter is less than or equal to the second preset frame rate fluctuation parameter and greater than the first preset frame rate fluctuation parameter, the abnormal interval reference value is further analyzed at this time to adjust the generation parameters of the displayed video. The abnormal interval reference value characterizes the fluctuation law of the frame rate. When the frame rate fluctuation parameter is less than or equal to the first preset frame rate fluctuation parameter, the time interval between each trough value is small at this time, and the frame rate drops frequently. In this case, due to abnormalities in the special effect rendering process, the high-frequency frame rate drops. At this time, the rendering parameters are adjusted to ensure smooth video display. When the abnormal interval reference value is greater than the preset abnormal interval reference value, the abnormal interval is large in this case, and the frequency of frame rate drop is relatively low, but the drop amplitude is large. This is caused by too many special effect particles, resulting in the terminal failing to process them in time. In this case, the number of particles will be reduced. While improving the efficiency of special effect display, ensure that video information can be accurately and timely transmitted to users. Description of the Drawings
[0020] Figure 1 It is a flowchart of the steps of the new communication dynamic display method based on the adaptive special effect element library according to the embodiment of the present invention; Figure 2 It is a logical decision diagram for determining whether the displayed video output based on the video smooth reference value is qualified according to the embodiment of the present invention. Detailed Embodiments
[0021] In order to make the purpose and advantages of the present invention clearer, the present invention will be further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0022] The preferred embodiments of the present invention will be described below with reference to the drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present invention and do not limit the protection scope of the present invention.
[0023] It should be noted that in the description of the present invention, the terms indicating directions or positional relationships such as "upper", "lower", "left", "right", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings. This is only for convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention.
[0024] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and defined, the terms "installation", "connection", and "coupling" should be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or an integral connection; it may be a mechanical connection or an electrical connection; it may be directly connected or indirectly connected through an intermediate medium, and it may be the communication inside two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.
[0025] Please refer to Figure 1 and Figure 2 shown, which are respectively the step flow chart of the new communication dynamic display method based on the adaptive special effect element library and the logical decision diagram for determining whether the output display video is qualified based on the video smooth reference value in the embodiments of the present invention. A new communication dynamic display method based on the adaptive special effect element library in the embodiments of the present invention includes: S1. Obtain the video information to be displayed; S2. Determine the initial parameters of each special effect element based on the obtained display requirements; S3. Construct and output the display video; S4. Determine the video smooth reference value based on the frame rates at several detected time nodes; S5. Determine whether the output display video is qualified based on the video smooth reference value, including: Determine that the output display video is abnormal, and adjust the generation parameters of the display video based on the frame rate fluctuation parameter, including adjusting the rendering magnification of the display video to the corresponding value, adjusting the time interval for generating special effect particles to the corresponding value, or adjusting the network bandwidth of other running programs on the terminal to the corresponding value; Or, determine that the output display video is qualified and complete the output of the display video.
[0026] Specifically, obtaining the video information to be displayed; determining the initial parameters of each special effect element; constructing and outputting the display video; determining whether the output display video is qualified based on the video smooth reference value, and when determining that the output display video is abnormal, adjusting the generation parameters of the display video based on the frame rate fluctuation parameter to be applicable to the video special effect display of different performance terminals, and adaptively adjusting the special effect display parameters according to the detected picture situation in the actual display process, improving the display efficiency.
[0027] Specifically, the video information to be displayed includes the resolution, duration, and frame rate of the video to be displayed.
[0028] Specifically, in the step S2, determining the initial parameters of each special effect element based on the obtained display requirements includes selecting the corresponding special effect element from the special effect element library according to the user's display requirements, and determining the appearance time point, end time point, special effect particle order of magnitude, and number of special effect key frames of each special effect element.
[0029] Specifically, in the step S3, the constructed display video includes the main content of the video and the added special effect elements. The construction and display of the display video are carried out immediately to ensure that the user can view the video with the added special effect elements in real time.
[0030] Specifically, the specific process of constructing the display video includes integrating the main content of the video with the determined special effect elements, adding the corresponding special effect elements to the corresponding positions of the video according to the appearance time point and end time point of each special effect element, and determining the rendering data of the special effects.
[0031] Specifically, in the step S4, the process of determining the video smooth reference value includes: When outputting the display video, detecting the frame rate of the picture, calculating the average value of the frame rates at each detection time node within the preset analysis duration, and obtaining the video smooth reference value.
[0032] Specifically, the specific method for detecting the frame rate is not limited. When outputting the display video, the frame rate of the picture can be obtained in real time through the frame rate detection interface of the user terminal. This is an existing technology and will not be elaborated here.
[0033] Specifically, the selection method of the detection time node is not limited. It can be several randomly selected time nodes within the preset analysis duration, or several time nodes with the same time interval. This will not be elaborated here.
[0034] Specifically, in the step S5, determining whether the output display video is qualified based on the video smooth reference value includes: If the video smooth reference value is less than or equal to the first preset smooth reference value, it is determined that the output display video is abnormal, and the generation parameters of the display video are adjusted based on the frame rate fluctuation parameter; If the video smooth reference value is less than or equal to the second preset smooth reference value and greater than the first preset smooth reference value, it is determined whether the output display video is qualified based on the smooth change parameter; If the video smooth reference value is greater than the second preset smooth reference value, it is determined that the output display video is qualified.
[0035] Specifically, the first preset smooth reference value C1 is selected within the range of [26fps, 33fps], and the second preset smooth reference value C2 is selected within the range of [58fps, 63fps].
[0036] Specifically, for the selection of the preset smooth reference value, those skilled in the art can determine it according to the specific special effect application scenario. It can be understood that the higher the requirement for the smoothness of the picture in the scenario, the higher the selected value of the preset smooth reference value. In this embodiment, preferably, for ordinary movies, animations and videos, the first preset smooth reference value is 26fps, and the second preset smooth reference value is 58fps; for game special effect videos, the first preset smooth reference value is 33fps, and the second preset smooth reference value is 63fps. It can be understood that the selection of the preset smooth reference value comprehensively meets the user's demand for a smooth picture in the corresponding usage scenario, and it is only necessary to achieve a visual effect that conforms to the requirements of the corresponding scenario for the picture, which will not be elaborated here.
[0037] Specifically, when outputting and displaying a video, the frame rate of the terminal is detected in real time during the preset analysis duration, and the average value of the frame rates detected at each time point within the preset analysis duration is selected to determine the video smooth reference value. The video smooth reference value characterizes the comprehensive smoothness of the picture. When the video smooth reference value is less than or equal to the first preset smooth reference value, the low frame rate causes obvious stuttering of the picture, affecting the user's viewing experience. In this case, the generated video is not suitable for the performance of the current user terminal. At this time, the generation parameters of the display video for the current terminal are adjusted based on the frame rate fluctuation parameter, so as to adjust the subsequent video construction parameters of the terminal, making the generation parameters of the display video adapt to the current terminal, and further improving the special effect display efficiency.
[0038] Specifically, determining whether the output display video is qualified based on the smooth change parameter includes: Calculating the average value of several historical video smooth reference values of a single terminal obtained to obtain the historical average smooth reference value; Calculating the ratio of the current video smooth reference value to the historical average smooth reference value to obtain the smooth change parameter; If the smooth change parameter is less than or equal to the preset change parameter, it is determined that the output display video is abnormal, and the generation parameters of the display video are adjusted based on the frame rate fluctuation parameter; If the smooth change parameter is greater than the preset change parameter, the second preset smooth reference value is corrected based on the historical maximum average smooth reference value.
[0039] Specifically, when the video smooth reference value is less than or equal to the second preset smooth reference value and greater than the first preset smooth reference value, obtain the historical average smooth reference value during the output of the historical special effects by the current terminal to determine the smooth change parameter, and the smooth change parameter characterizes the difference between the current video display and the historical video display; when the smooth change parameter is greater than the preset change parameter, at this time, the frame rates of each historical time and the frame rate of the current video display are close, and a single terminal is already close to its performance limit in the current situation. In this case, adjust the determination criterion for determining whether the displayed video for output is qualified according to the actual situation of the terminal, so that the determination criterion is more in line with the actual performance of the current terminal; improve the compatibility and applicability of the special effects display, and further improve the special effects display efficiency.
[0040] Specifically, the preset change parameter is selected within the range of [0.8, 0.9].
[0041] Specifically, the historical maximum average smooth reference value is the maximum value among a number of historical video smooth reference values obtained.
[0042] Specifically, the number of video smooth reference values used to determine the smooth change parameter obtained from the historical data is not limited. It can be understood that in order to determine the specific situation of the current user's terminal, the number of selected historical video smooth reference values should not be less than 20.
[0043] Specifically, correct the second preset smooth reference value based on the historical maximum average smooth reference value, where The increase amplitude of the second preset smooth reference value is inversely proportional to the historical maximum average smooth reference value.
[0044] In this embodiment, optionally, Compare the historical maximum average smooth reference value with the first preset historical comparison value and the second preset historical comparison value; If the historical maximum average smooth reference value is less than or equal to the first preset historical comparison value, adjust the second preset smooth reference value to 0.75 times the initial second preset smooth reference value; If the historical maximum average smooth reference value is less than or equal to the second preset historical comparison value and greater than the first preset historical comparison value, adjust the second preset smooth reference value to 0.83 times the initial second preset smooth reference value; If the historical maximum average smooth reference value is greater than the second preset historical comparison value, adjust the second preset smooth reference value to 0.89 times the initial second preset smooth reference value; The first preset historical comparison value is taken as 45fps, and the second preset historical comparison value is taken as 51fps.
[0045] Specifically, the selection of the first preset historical comparison value and the second preset historical comparison value, and the determination of each data for correcting the second preset smooth reference value are all determined based on experimental data obtained using a large number of terminal devices and device performance analysis. It can be understood that those skilled in the art can adjust each value according to specific circumstances, as long as the purpose of making the determination criteria more in line with the actual performance of the currently used device can be achieved, and this will not be elaborated here.
[0046] Specifically, after completing the adjustment of the second preset smooth reference value, it is determined again based on the video smooth reference value whether the output display video is qualified. That is, when the video smooth reference value is less than or equal to the adjusted second preset smooth reference value, it is determined that the output display video is abnormal, and the generation parameters of the display video are adjusted based on the frame rate fluctuation parameter; when the video smooth reference value is greater than the adjusted second preset smooth reference value, it is determined that the output display video is qualified.
[0047] Specifically, the process of determining that the output display video is abnormal and adjusting the generation parameters of the display video based on the frame rate fluctuation parameter includes: Calculating the variance of the frame rates at each detection time node within the preset analysis duration to obtain the frame rate fluctuation parameter; If the frame rate fluctuation parameter is less than or equal to the first preset frame rate fluctuation parameter, the rendering magnification of the display video is adjusted to the corresponding value based on the frame rate fluctuation parameter; If the frame rate fluctuation parameter is less than or equal to the second preset frame rate fluctuation parameter and greater than the first preset frame rate fluctuation parameter, the generation parameters of the display video are adjusted based on the abnormal interval reference value; If the frame rate fluctuation parameter is greater than the second preset frame rate fluctuation parameter, the network bandwidth of each other running program of the terminal is adjusted to the corresponding value based on the video smooth reference value.
[0048] Specifically, adjusting the generation parameters of the display video based on the frame rate fluctuation parameter, the frame rate fluctuation parameter characterizes the stuttering situation during the display of the video. When the frame rate fluctuation parameter is less than or equal to the first preset frame rate fluctuation parameter, the frame rate is relatively stable at this time, but the overall is low. In this case, due to the too high rendering magnification, the terminal cannot process it in time, affecting the video display effect. At this time, the rendering magnification of the special effects for the subsequent video construction of the current terminal is adjusted. When the frame rate fluctuation parameter is greater than the second preset frame rate fluctuation parameter, the frame rate fluctuates violently at this time. In this case, it is caused by unstable network and untimely data transmission. In this case, the network bandwidth of each other running program of the terminal is reduced to ensure the smooth display of the video currently browsed by the user, and further improve the special effect display efficiency.
[0049] Specifically, the first preset frame rate fluctuation parameter B1 is selected within the range of [8, 11], and the second preset frame rate fluctuation parameter B2 is selected within the range of [25, 30].
[0050] Specifically, those skilled in the art can adjust the selection of the preset frame rate fluctuation parameter according to the specific performance of the device. The higher the performance of the device, the larger the value of the preset frame rate fluctuation parameter. This will not be elaborated here.
[0051] Specifically, based on the frame rate fluctuation parameter, the rendering magnification of the display video is adjusted to the corresponding value, where The reduction amplitude of the rendering magnification is inversely proportional to the frame rate fluctuation parameter.
[0052] In this embodiment, optionally, Compare the frame rate fluctuation parameter with the first preset fluctuation comparison threshold and the second preset fluctuation comparison threshold; If the frame rate fluctuation parameter is less than or equal to the first preset fluctuation comparison threshold, then adjust the rendering magnification of the display video to 0.71 times the initial rendering magnification; If the frame rate fluctuation parameter is less than or equal to the second preset fluctuation comparison threshold and greater than the first preset fluctuation comparison threshold, then adjust the rendering magnification of the display video to 0.81 times the initial rendering magnification; If the frame rate fluctuation parameter is greater than the second preset fluctuation comparison threshold, then adjust the rendering magnification of the display video to 0.92 times the initial rendering magnification; The first preset fluctuation comparison threshold is taken as 0.58B1, and the second preset fluctuation comparison threshold is taken as 0.76B1.
[0053] Specifically, adjust the generation parameters of the display video based on the abnormal interval reference value, including: Based on the frame rates at each detection time node within the preset analysis duration obtained, draw a frame rate time-domain curve, identify the time intervals between the valley values in the frame rate time-domain curve, calculate the average value of each time interval, and obtain the abnormal interval reference value; If the abnormal interval reference value is less than or equal to the preset abnormal interval reference value, then adjust the rendering magnification of the display video to the corresponding value based on the frame rate fluctuation parameter; If the abnormal interval reference value is greater than the preset abnormal interval reference value, then adjust the time interval for generating special effect particles to the corresponding value based on the ratio of the number of valley values to the total number of each detection time node.
[0054] Specifically, there is no limitation on the specific method for adjusting the generation rate of special effect particles. The time interval parameter for controlling particle generation in the special effect generation code can be adjusted to reduce the total number of particles. This will not be elaborated here.
[0055] Specifically, adjust the time interval for generating special effect particles to the corresponding value based on the ratio of the number of valley values to the total number of each detection time node, where Record the ratio of the number of valley values to the total number of each detection time node as the quantity ratio; The increase amplitude of the time interval for generating special effect particles is proportional to the quantity ratio.
[0056] In this embodiment, optionally, Compare the quantity ratio with a first preset quantity ratio and a second preset quantity ratio; If the quantity ratio is less than or equal to the first preset quantity ratio, adjust the time interval for generating special effect particles to 1.11 times the initial time interval; If the quantity ratio is less than or equal to the second preset quantity ratio and greater than the first preset quantity ratio, adjust the time interval for generating special effect particles to 1.17 times the initial time interval; If the quantity ratio is greater than the second preset quantity ratio, adjust the time interval for generating special effect particles to 1.25 times the initial time interval; The first preset quantity ratio is taken as 0.2, and the second preset quantity ratio is taken as 0.45.
[0057] Specifically, based on the video smoothness reference value, adjust the network bandwidth of other running programs on the terminal to corresponding values, where The reduction amplitude of the network bandwidth of other running programs is inversely proportional to the video smoothness reference value.
[0058] In this embodiment, optionally, Compare the video smoothness reference value with a first preset smoothness comparison threshold and a second preset smoothness comparison threshold; If the video smoothness reference value is less than or equal to the first preset smoothness comparison threshold, adjust the network bandwidth of other running programs to 0.78 times the corresponding initial bandwidth; If the video smoothness reference value is less than or equal to the second preset smoothness comparison threshold and greater than the first preset smoothness comparison threshold, adjust the network bandwidth of other running programs to 0.82 times the corresponding initial bandwidth; If the video smoothness reference value is greater than the second preset smoothness comparison threshold, adjust the network bandwidth of other running programs to 0.96 times the corresponding initial bandwidth; The first preset smoothness comparison threshold is taken as 0.3C1, and the second preset smoothness comparison threshold is taken as 0.6C1.
[0059] Specifically, when the frame rate fluctuation parameter is less than or equal to the second preset frame rate fluctuation parameter and greater than the first preset frame rate fluctuation parameter, the abnormal interval reference value is further analyzed at this time to adjust the generation parameters of the display video. The abnormal interval reference value characterizes the fluctuation law of the frame rate. When the frame rate fluctuation parameter is less than or equal to the first preset frame rate fluctuation parameter, the time interval between each valley value is small at this time, and the frame rate drops frequently. In this case, due to abnormalities in the special effect rendering process, the high-frequency frame rate drops. At this time, the rendering parameters are adjusted to ensure smooth video display. When the abnormal interval reference value is greater than the preset abnormal interval reference value, the abnormal interval is large in this case, and the frequency of frame rate drop is relatively low, but the drop amplitude is large. This is caused by the excessive number of special effect particles, resulting in the terminal being unable to process in time. In this case, the number of particles will be reduced. While improving the efficiency of special effect display, ensure that video information can be accurately and timely transmitted to users.
[0060] Specifically, this solution can be applied to various scenarios that require video special effect display on terminals with different performances, including but not limited to online video platforms. When playing a video with special effects, the special effect display is automatically adjusted according to the performance of the user's terminal to ensure the user's viewing experience. During the live game process, special effects are added to the game screen, and at the same time, it is optimized according to the performance of the audience's terminal to avoid lag. When displaying video advertisements, animations and other content in mobile applications, ensure that special effects can be smoothly displayed on mobile phones with different configurations, which will not be elaborated here.
[0061] So far, the technical solution of the present invention has been described in combination with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or replacements to the relevant technical features, and the technical solutions after these changes or replacements will fall within the protection scope of the present invention.
[0062] The above are only the preferred embodiments of the present invention and are not used to limit the present invention; for those skilled in the art, the present invention can have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A new communication dynamic display method based on an adaptive special effect element library, characterized in that, Including: S1. Obtain the video information to be displayed; S2. Determine the initial parameters of each special effect element based on the obtained display requirements; S3. Construct and output the display video; S4. Determine the video smooth reference value based on the frame rates at several detected time nodes; S5. Determine whether the output display video is qualified based on the video smooth reference value, including: Determine that the output display video is abnormal, and adjust the generation parameters of the display video based on the frame rate fluctuation parameter, including adjusting the rendering magnification of the display video to the corresponding value, adjusting the time interval for generating special effect particles to the corresponding value, or adjusting the network bandwidth of other running programs on the terminal to the corresponding value; Or, determine that the output display video is qualified and complete the output of the display video.
2. The new communication dynamic display method based on the adaptive special effect element library according to claim 1, wherein, In the said S4, the process of determining the video smooth reference value includes: Detect the frame rate of the screen when outputting the display video, calculate the average value of the frame rates at each detected time node within the preset analysis duration, and obtain the video smooth reference value.
3. The new communication dynamic display method based on the adaptive special effect element library according to claim 2, wherein In the said S5, the process of determining whether the output display video is qualified based on the video smooth reference value includes: If the video smooth reference value is less than or equal to the first preset smooth reference value, determine that the output display video is abnormal, and adjust the generation parameters of the display video based on the frame rate fluctuation parameter; If the video smooth reference value is less than or equal to the second preset smooth reference value and greater than the first preset smooth reference value, determine whether the output display video is qualified based on the smooth change parameter; If the video smooth reference value is greater than the second preset smooth reference value, determine that the output display video is qualified; The process of determining whether the output display video is qualified based on the smooth change parameter includes: Calculate the average value of several historical video smooth reference values of the obtained single terminal to obtain the historical average smooth reference value; Calculate the ratio of the current video smooth reference value to the historical average smooth reference value to obtain the smooth change parameter; If the smooth change parameter is less than or equal to the preset change parameter, determine that the output display video is abnormal, and adjust the generation parameters of the display video based on the frame rate fluctuation parameter; If the smooth change parameter is greater than the preset change parameter, correct the second preset smooth reference value based on the historical maximum average smooth reference value.
4. The new communication dynamic display method based on the adaptive special effect element library according to claim 3, wherein Correct the second preset smooth reference value based on the historical maximum average smooth reference value, where The increase amplitude of the second preset smooth reference value is inversely proportional to the historical maximum average smooth reference value.
5. The new communication dynamic display method based on the adaptive special effect element library according to claim 4, characterized in that, The process of determining that the output display video is abnormal and adjusting the generation parameters of the display video based on the frame rate fluctuation parameter includes: Calculate the variance of the frame rates at each detected time node within the preset analysis duration to obtain the frame rate fluctuation parameter; If the frame rate fluctuation parameter is less than or equal to the first preset frame rate fluctuation parameter, adjust the rendering magnification of the display video to the corresponding value based on the frame rate fluctuation parameter; If the frame rate fluctuation parameter is less than or equal to the second preset frame rate fluctuation parameter and greater than the first preset frame rate fluctuation parameter, adjust the generation parameters of the display video based on the abnormal interval reference value; If the frame rate fluctuation parameter is greater than the second preset frame rate fluctuation parameter, adjust the network bandwidth of other running programs on the terminal to the corresponding value based on the video smooth reference value.
6. The new communication dynamic display method based on the adaptive special effect element library according to claim 5, wherein Adjust the rendering magnification of the display video to the corresponding value based on the frame rate fluctuation parameter, where The reduction amplitude of the rendering magnification is inversely proportional to the frame rate fluctuation parameter.
7. The new communication dynamic display method based on the adaptive special effect element library according to claim 6, wherein Adjust the generation parameters of the display video based on the abnormal interval reference value, including: Draw a frame rate time-domain curve based on the frame rates at each detection time node within the preset analysis duration obtained, identify the time intervals between the valley values in the frame rate time-domain curve, calculate the average value of each time interval to obtain the abnormal interval reference value; If the abnormal interval reference value is less than or equal to the preset abnormal interval reference value, adjust the rendering magnification of the display video to the corresponding value based on the frame rate fluctuation parameter; If the abnormal interval reference value is greater than the preset abnormal interval reference value, adjust the time interval for generating special effect particles to the corresponding value based on the ratio of the number of valley values to the total number of detection time nodes.
8. The new communication dynamic display method based on the adaptive special effect element library according to claim 7, characterized in that, Adjust the time interval for generating special effect particles to the corresponding value based on the ratio of the number of valley values to the total number of detection time nodes, where The ratio of the number of valley values to the total number of detection time nodes is denoted as the quantity ratio; The increase amplitude of the time interval for generating special effect particles is proportional to the quantity ratio.
9. The new communication dynamic display method based on the adaptive special effect element library according to claim 8, characterized in that, Adjust the network bandwidth of other running programs on the terminal to the corresponding value based on the video smoothness reference value, where The reduction amplitude of the network bandwidth of other running programs is inversely proportional to the video smoothness reference value.
Citation Information
Patent Citations
Animated show method of game special effects
CN103200177A
Special-effect display method and device
CN107823881A
Particle rendering method and device, electronic equipment and storage medium
CN107978014A
Special display effect adjusting method and device
CN109568951A
Image display optimization method and device for dynamically adjusting LOD Scale
CN113192169A