Method, device and computer equipment for determining multi-channel video stream playback mode

By constructing a standard video and judging the playback level of the video playback device, the problem in the existing technology that it is difficult to accurately judge the playback capabilities of multi-channel video streams is solved, and the safe operation and stable playback of the video playback device are realized.

CN118509650BActive Publication Date: 2024-10-18E SURFING VISION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410954913.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-18
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

It is difficult to accurately judge the multi-channel video stream playback capability of a video playback device with the existing technology, leading to frequent crashes or TV box system crashes and inability to start when playing 4-square or above images.

Method used

By constructing a standard video and performing four-square and nine-square playback on different interfaces of the video playback device, the decoding frame loss rate of each window is determined respectively, and the playback level of the video playback device is judged according to the operating parameters of the computer processor, thereby adjusting the multi-channel The playback mode of the video stream.

Benefits of technology

Accurately determine the multi-channel video stream playback capabilities of video playback devices, avoid crashes and system restarts, and ensure the safe operation of video playback devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118509650B_ABST
    Figure CN118509650B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device and computer equipment for determining the playback mode of multiple video streams. It includes: constructing a standard video according to a target bit rate, a target frame rate, a target encoding method and a target video picture change amount; playing the standard video in a four-square grid on a first video playback interface to determine a four-square grid playback window, and playing the standard video in a nine-square grid on a second video playback interface to determine a nine-square grid playback window; determining the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-square grid playback window, and the decoding frame loss rate corresponding to each window in the nine-square grid playback window; adjusting the playback mode of multiple video streams according to the playback level of the video playback device. The above scheme can accurately judge the multi-channel video stream playback capability of the video playback device and ensure the operation safety of the video playback device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio and video technology, and in particular to a method, device and computer equipment for determining a multi-channel video stream playback mode. Background Art

[0002] The field of video surveillance requires the function of simultaneously and stably playing multi-grid images for a long time on set-top boxes or smart TVs, specifically 1 grid, 2 grids, 4 grids or 9 grids, etc., to achieve the purpose of monitoring the safety of the environment. The existing technical solutions for the function of simultaneously and stably playing multi-grid images for a long time are all based on the use of PC (Personal Computer) or a separate decoder, which is expensive and not conducive to expansion. If the multi-grid playback capability of the device is not tested, forcing the playback of 4 grids or more may cause frequent application crashes or even TV box system crashes and inability to start. Therefore, before playing multiple video streams, it is very important to test the multi-channel video stream playback capability of the video playback device.

[0003] The current TV (television) end playback device ecosystem and hardware are poor. The CPU (Central Processing Unit) and GPU (Graphics Processing Unit) hardware performance of mainstream TVs on the market are even more uneven. The CPUs they use range from 2-core A53 to 4-core A76, making it difficult to accurately determine the multi-channel video stream playback capability of a video playback device through some simple configuration parameters. Therefore, how to accurately determine the multi-channel video stream playback capability of a video playback device, so as to adjust the multi-channel video stream playback mode of the video playback device and ensure the operation safety of the video playback device is a problem that needs to be solved. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device and computer equipment for determining the multi-channel video stream playback mode that can accurately judge the multi-channel video stream playback capability of a video playback device, thereby adjusting the multi-channel video stream playback mode of the video playback device to ensure the safe operation of the video playback device.

[0005] In a first aspect, the present application provides a method for determining a multi-channel video stream playback mode, the method comprising:

[0006] Construct a standard video according to a target bit rate, a target frame rate, a target encoding method, and a target video picture change amount;

[0007] Play the standard video in a four-grid format on the first video playback interface to determine a four-grid playback window, and play the standard video in a nine-grid format on the second video playback interface to determine a nine-grid playback window;

[0008] Determining the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-grid playback window, and the decoding frame loss rate corresponding to each window in the nine-grid playback window;

[0009] The playback mode of the multiple video streams is adjusted according to the playback level of the video playback device.

[0010] In one embodiment, determining the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-grid playback window, and the decoding frame loss rate corresponding to each window in the nine-grid playback window includes:

[0011] Determining available memory of the computer processor and the number of cores of the computer processor according to operating parameters of the computer processor of the video playback device;

[0012] If the available memory of the computer processor is greater than or equal to the memory threshold, and the number of cores of the computer processor is greater than the number threshold, determining the decoding frame loss rate corresponding to each window in the four-grid playback window based on the timestamp corresponding to the maximum changed picture corresponding to each window in the four-grid playback window;

[0013] Determine the decoding frame loss rate corresponding to each window in the nine-grid playback window based on the timestamp corresponding to the maximum changed picture corresponding to each window in the nine-grid playback window;

[0014] The playback level of the video playback device is determined according to the decoding frame loss rate corresponding to each window in the four-grid playback window and the decoding frame loss rate corresponding to each window in the nine-grid playback window.

[0015] In one embodiment, determining the playback level of the video playback device according to the decoding frame loss rate corresponding to each window in the four-grid playback window and the decoding frame loss rate corresponding to each window in the nine-grid playback window includes:

[0016] Determine, according to the decoding frame loss rate corresponding to each window in the four-grid playback window, the number of first windows of the first target window whose decoding frame loss rate in the four-grid playback window is less than a first preset probability;

[0017] determining whether the first number of windows is greater than or equal to three;

[0018] If so, determining the number of second windows whose decoding frame loss rate in the nine-grid playback window is less than the second target window with a first preset probability according to the decoding frame loss rate corresponding to each window in the nine-grid playback window;

[0019] If the number of the second windows is less than eight, it is determined that the playback level of the video playback device is level five.

[0020] In one of the embodiments, after determining the number of second windows whose decoding frame loss rate in the nine-grid playback window is less than the second target window with a first preset probability according to the decoding frame loss rate corresponding to each window in the nine-grid playback window, the method further includes:

[0021] If the number of the second windows is greater than or equal to eight, determining the number of third windows of the third target window whose decoding frame loss rate in the second target window is less than a second preset probability; the second preset probability is less than the first preset probability;

[0022] determining whether the third number of windows is greater than or equal to eight;

[0023] If yes, determining that the playback level of the video playback device is level seven;

[0024] If not, it is determined that the playback level of the video playback device is level six.

[0025] In one embodiment, after determining whether the number of the first windows is greater than or equal to three, the method further includes:

[0026] If not, determining the fourth window quantity of the fourth target window whose decoding frame loss rate in the four-grid playback window is less than the third preset probability; the third preset probability is greater than the first preset probability;

[0027] determining whether the fourth number of windows is greater than or equal to three;

[0028] If yes, determining that the playback level of the video playback device is level four;

[0029] If not, it is determined that the playback level of the video playback device is level three.

[0030] In one embodiment, after determining the available memory of the computer processor and the number of cores of the computer processor according to the operating parameters of the computer processor of the video playback device, the method further includes:

[0031] If the available memory of the computer processor is less than the memory threshold, and the number of cores of the computer processor is less than the number threshold, it is determined that the playback level of the video playback device is level one.

[0032] In one embodiment, after determining the available memory of the computer processor and the number of cores of the computer processor according to the operating parameters of the computer processor of the video playback device, the method further includes:

[0033] If the available memory of the computer processor is greater than or equal to the memory threshold, and the number of cores of the computer processor is less than the number threshold, it is determined that the playback level of the video playback device is level two.

[0034] In a second aspect, the present application further provides a device for determining a multi-channel video stream playback mode, the device comprising:

[0035] A standard video construction module is used to construct a standard video according to a target bit rate, a target frame rate, a target encoding method and a target video picture change amount;

[0036] A playback window determination module, used to play the standard video in a four-grid on the first video playback interface, determine the four-grid playback window, and play the standard video in a nine-grid on the second video playback interface, determine the nine-grid playback window;

[0037] a playback level determination module, configured to determine the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-grid playback window, and the decoding frame loss rate corresponding to each window in the nine-grid playback window;

[0038] The play mode determination module is used to adjust the play mode of the multiple video streams according to the play level of the video play device.

[0039] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:

[0040] Construct a standard video according to the target bit rate, target frame rate, target encoding method and target video picture change amount;

[0041] Play the standard video in a four-grid format on the first video playback interface to determine a four-grid playback window, and play the standard video in a nine-grid format on the second video playback interface to determine a nine-grid playback window;

[0042] Determining the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-grid playback window, and the decoding frame loss rate corresponding to each window in the nine-grid playback window;

[0043] The playback mode of the multiple video streams is adjusted according to the playback level of the video playback device.

[0044] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0045] Construct a standard video according to a target bit rate, a target frame rate, a target encoding method, and a target video picture change amount;

[0046] Play the standard video in a four-grid format on the first video playback interface to determine a four-grid playback window, and play the standard video in a nine-grid format on the second video playback interface to determine a nine-grid playback window;

[0047] Determining the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-grid playback window, and the decoding frame loss rate corresponding to each window in the nine-grid playback window;

[0048] The playback mode of the multiple video streams is adjusted according to the playback level of the video playback device.

[0049] The above-mentioned method, device and computer equipment for determining the playback mode of multiple video streams construct a standard video according to the target bit rate, target frame rate, target encoding method and target video picture change amount; play the standard video in a four-square grid on the first video playback interface to determine the four-square grid playback window, and play the standard video in a nine-square grid on the second video playback interface to determine the nine-square grid playback window; determine the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-square grid playback window, and the decoding frame loss rate corresponding to each window in the nine-square grid playback window; adjust the playback mode of multiple video streams according to the playback level of the video playback device. The problem that it is difficult to accurately judge the multi-channel video stream playback capability of a video playback device through some simple configuration parameters is solved. The above scheme determines the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the playback status of the standard video in the four-grid playback window, and the playback status in the nine-grid window, and adjusts the playback mode of the multiple video streams according to the playback level of the video playback device. It can accurately judge the multiple video stream playback capability of the video playback device, thereby adjusting the multiple video stream playback mode of the video playback device to ensure the safe operation of the video playback device. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A diagram of an application environment of a method for determining a multi-channel video stream playback mode in an embodiment;

[0051] Figure 2 A schematic diagram of a flow chart of a method for determining a multi-channel video stream playback mode in an embodiment;

[0052] Figure 3 A schematic flow chart of a method for determining a multi-channel video stream playback mode in another embodiment;

[0053] Figure 4 A schematic flow chart of a method for determining a multi-channel video stream playback mode in another embodiment;

[0054] Figure 5 It is a structural block diagram of a device for determining a multi-channel video stream playback mode in one embodiment;

[0055] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0057] The method for determining the playback mode of multiple video streams provided in the embodiment of the present application can be applied to the following examples: Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The server 104 constructs a standard video according to the target bit rate, target frame rate, target encoding method and target video picture change amount; plays the standard video in a four-square grid on the first video playback interface to determine the four-square grid playback window, and plays the standard video in a nine-square grid on the second video playback interface to determine the nine-square grid playback window; according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-square grid playback window, and the decoding frame loss rate corresponding to each window in the nine-square grid playback window, determine the playback level of the video playback device; adjust the playback mode of the multi-channel video stream according to the playback level of the video playback device, and send the determined playback mode of the multi-channel video stream to the terminal 102 through the communication network. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0058] In one embodiment, Figure 2 As shown, a method for determining a multi-channel video stream playback mode is provided. This embodiment takes the method applied to a terminal as an example for explanation. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0059] S210: construct a standard video according to a target bit rate, a target frame rate, a target encoding method, and a target video picture change amount.

[0060] For example, the target bit rate is 200 kb / s, the target frame rate is 25 fps, the target encoding method is H265 encoding, and the target video picture change is the change of a classroom with 40 students. Based on the target bit rate, target frame rate, target encoding method, and target video picture change, a 1-minute video is recorded as a standard video to be provided for use in subsequent processes.

[0061] S220, playing the standard video in a four-grid format on the first video playback interface, determining a four-grid playback window, and playing the standard video in a nine-grid format on the second video playback interface, determining a nine-grid playback window.

[0062] The first video playback interface and the second video playback interface are playback interfaces corresponding to the same video playback device. The first video playback interface and the second video playback interface can be simulated and implemented by programming a video playback interface of an activity that is invisible to the playback process.

[0063] Specifically, in the activity programming video playback interface where the playback process is not visible, the standard video is played in a four-grid format to determine the four-grid playback window, and in the activity programming video playback interface where the playback process is not visible, the standard video is played in a nine-grid format to determine the nine-grid playback window.

[0064] S230, determining the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-grid playback window, and the decoding frame loss rate corresponding to each window in the nine-grid playback window.

[0065] It should be noted that the playback level of video playback devices is divided into level 1 to level 7. Among them, the playback level of the video playback device is level 1, which means that the video playback device can only stably play one video stream with long-term soft decoding. The playback level of the video playback device is level 2, which means that the video playback device can stably play two video streams with long-term soft decoding, but it is difficult. Long-term playback will cause the system to kill the application process or cause the system to restart. However, changing one of the video streams to hard decoding can play stably for a long time. The playback level of the video playback device is level 3, which means that the video playback device can stably play two video streams with long-term soft decoding, but it is difficult to play four-square grids. Long-term four-square grid playback will cause the system to kill the process or cause the system to restart. The playback level of the video playback device is level 4, which means that the video playback device can stably play four video streams with long-term soft decoding, but it is difficult to play the application process or cause the system to restart. However, changing one of the video streams to hard decoding can play stably for a long time. The playback level of the video playback device is level 5, which means that the video playback device can stably play four video streams with long-term soft decoding, but it is difficult to play the nine-square grid. Long-term playback of the nine-square grid will cause the system to kill the process or cause the system to restart. If the video playback device's playback level is level 6, it means that the video playback device can play nine video streams stably and for a long time with software decoding, but it is difficult. Long-term playback will cause the system to kill the application process or cause the system to restart. However, changing one of the video streams to hard decoding can play stably and for a long time. If the video playback device's playback level is level 7, it means that the video playback device can play nine video streams stably and for a long time with software decoding.

[0066] According to the multi-grid requirements of the business in the actual scenario, the business requirements and the hardware capabilities of the device are combined to obtain a playback level classification, and then directly applied to the requirements according to the playback level. It can provide reasonable functions to users according to the playback level results to avoid the phenomenon of crashing or restarting the video playback device. When selecting a video playback device, you can also select a video playback device that meets the business needs through playback level detection. If it is detected that the playback level of the video playback device is level five, only the highest four-grid video playback function is provided. Or when it is necessary to provide users with a batch of devices that can play nine-grids, you can first perform a test when selecting the device, and then select a batch of video playback devices with a playback level of seven to provide to users, so as to avoid selecting a video playback device whose surface hardware parameters meet the playback requirements but whose actual playback level does not meet the playback requirements.

[0067] The computer processor operating parameters of the video playback device include available memory of the computer processor and the number of cores of the computer processor.

[0068] S240: Adjust the playback mode of the multiple video streams according to the playback level of the video playback device.

[0069] Specifically, the correspondence between the playback level of the video playback device and the playback mode of the multiple video streams can be pre-set, and after the playback level of the video playback device is determined, the playback mode of the multiple video streams can be adjusted according to the playback level of the video playback device and the correspondence between the playback level of the video playback device and the playback mode of the multiple video streams.

[0070] For example, if the playback level of the video playback device is level four, the playback mode of the multiple video streams is adjusted to decode and play one of the video streams in the four-grid by a hard decoding method.

[0071] In the above-mentioned method for determining the playback mode of multiple video streams, a standard video is constructed according to the target bit rate, target frame rate, target encoding method and target video picture change amount; the standard video is played in a four-square grid on the first video playback interface to determine the four-square grid playback window, and the standard video is played in a nine-square grid on the second video playback interface to determine the nine-square grid playback window; the playback level of the video playback device is determined according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-square grid playback window, and the decoding frame loss rate corresponding to each window in the nine-square grid playback window; the playback mode of the multiple video streams is adjusted according to the playback level of the video playback device. The problem that it is difficult to accurately judge the multiple video stream playback capability of a video playback device through some simple configuration parameters is solved. The above-mentioned scheme determines the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the playback status of the standard video in the four-square grid playback window, and the playback status in the nine-square grid window, and adjusts the playback mode of the multiple video streams according to the playback level of the video playback device, which can accurately judge the multiple video stream playback capability of the video playback device, thereby adjusting the multiple video stream playback mode of the video playback device to ensure the operation safety of the video playback device.

[0072] In one embodiment, Figure 3 As shown, according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-grid playback window, and the decoding frame loss rate corresponding to each window in the nine-grid playback window, the playback level of the video playback device is determined, including:

[0073] S310: Determine the available memory of the computer processor and the number of cores of the computer processor according to the operating parameters of the computer processor of the video playback device.

[0074] It should be noted that the playback level of the video playback device can be preliminarily determined by the available memory of the computer processor of the video playback device and the number of cores of the computer processor.

[0075] S320: If the available memory of the computer processor is greater than or equal to the memory threshold, and the number of cores of the computer processor is greater than the number threshold, determine the decoding frame loss rate corresponding to each window in the four-grid playback window based on the timestamp corresponding to the maximum changed picture corresponding to each window in the four-grid playback window.

[0076] The memory threshold and the quantity threshold can be set according to actual needs. For example, the memory threshold can be 150M, and the quantity threshold can be two.

[0077] Exemplarily, if the available memory of the computer processor is greater than or equal to 150M, and the number of cores of the computer processor is greater than two, then based on the timestamp corresponding to the maximum change picture corresponding to each window in the four-grid playback window, the video picture corresponding to the timestamp corresponding to the maximum change picture corresponding to each four-grid playback window is collected, and the decoding frame loss rate of the video picture corresponding to the timestamp corresponding to the maximum change picture corresponding to each four-grid playback window is used as the decoding frame loss rate corresponding to each window in the four-grid playback window.

[0078] S330: Determine a decoding frame loss rate corresponding to each window in the nine-grid playback window based on a timestamp corresponding to a maximum changed picture corresponding to each window in the nine-grid playback window.

[0079] Specifically, based on the timestamp corresponding to the maximum change picture corresponding to each window in the nine-grid playback window, the video pictures corresponding to the timestamp corresponding to the maximum change picture corresponding to each nine-grid playback window are collected, and the decoding frame loss rate of the video pictures corresponding to the timestamp corresponding to the maximum change picture corresponding to each nine-grid playback window is used as the decoding frame loss rate corresponding to each window in the nine-grid playback window.

[0080] S340: Determine the playback level of the video playback device according to the decoding frame loss rate corresponding to each window in the four-grid playback window and the decoding frame loss rate corresponding to each window in the nine-grid playback window.

[0081] The above scheme determines the decoding frame loss rate corresponding to each window in the four-grid playback window according to the timestamp corresponding to the maximum change picture corresponding to each window in the four-grid playback window, and determines the decoding frame loss rate corresponding to each window in the nine-grid playback window according to the timestamp corresponding to the maximum change picture corresponding to each window in the nine-grid playback window. This enables the obtained decoding frame loss rate to have the ability to characterize the maximum frame loss rate of the video played in each grid, thereby improving the reliability of the playback level of the video playback device determined subsequently, and at the same time improving the efficiency of determining the decoding frame loss rate of the video played in each grid. At the same time, the above-mentioned method for determining the playback level of the video playback device is not affected by external network factors, user usage habits, and bit rate changes caused by picture changes, and can accurately derive the playback level of the video playback device based on the most specific situation.

[0082] In one embodiment, Figure 4 As shown, according to the decoding frame loss rate corresponding to each window in the four-grid playback window and the decoding frame loss rate corresponding to each window in the nine-grid playback window, the playback level of the video playback device is determined, including:

[0083] S410: Determine, according to the decoding frame loss rate corresponding to each window in the four-grid playback window, the number of first windows whose decoding frame loss rate in the four-grid playback window is less than the first target window with a first preset probability.

[0084] The first preset probability may be set according to actual needs, for example, the first preset probability may be 5%.

[0085] Exemplarily, according to the decoding frame loss rate corresponding to each window in the four-grid playback window, the first window number of the first target window whose decoding frame loss rate is less than 5% in the four-grid playback window is determined.

[0086] S420: Determine whether the number of first windows is greater than or equal to three.

[0087] S430: If yes, determine the number of second windows in the nine-grid playback window whose decoding frame loss rate is less than the second target window of the first preset probability according to the decoding frame loss rate corresponding to each window in the nine-grid playback window.

[0088] Specifically, if the number of first windows is greater than or equal to three, the playback level of the video playback device is temporarily set to level five, and further based on the decoding frame loss rate corresponding to each window in the nine-grid playback window, the number of second windows of the second target window with a decoding frame loss rate less than 5% in the nine-grid playback window is determined.

[0089] S440: If the number of second windows is less than eight, determine that the playback level of the video playback device is level five.

[0090] Specifically, if the number of second windows is less than eight, it is determined that the playback level of the video playback device is level five.

[0091] The above scheme provides a method for judging the playback level of a video playback device based on the decoding frame loss rate in the four-grid playback window and the decoding frame loss rate corresponding to each window in the nine-grid playback window, which can improve the reliability of the playback level of the video playback device.

[0092] In one embodiment, after determining the number of second windows in the nine-grid playback window whose decoding frame loss rate is less than the second target window of the first preset probability according to the decoding frame loss rate corresponding to each window in the nine-grid playback window, the method further includes:

[0093] If the number of second windows is greater than or equal to eight, determine the number of third windows of the third target window whose decoding frame loss rate in the second target window is less than the second preset probability; the second preset probability is less than the first preset probability; determine whether the number of third windows is greater than or equal to eight; if so, determine that the playback level of the video playback device is level seven; if not, determine that the playback level of the video playback device is level six.

[0094] The second preset probability can be set according to actual needs, for example, it can be 1%.

[0095] Exemplarily, if the number of second windows is greater than or equal to eight, the number of third windows of the third target window whose decoding frame loss rate in the second target window is less than 1% is determined. If the number of third windows is greater than or equal to eight, the playback level of the video playback device is determined to be level seven, otherwise, the playback level of the video playback device is determined to be level six.

[0096] The above scheme provides a seven-level playback level for video playback devices and a method for determining the playback level for a six-level video playback device, which can improve the reliability of the playback level of the video playback device.

[0097] In one embodiment, after determining whether the number of first windows is greater than or equal to three, the method further includes:

[0098] If not, determine the number of fourth windows of the fourth target window whose decoding frame loss rate in the four-grid playback window is less than the third preset probability; the third preset probability is greater than the first preset probability; determine whether the number of fourth windows is greater than or equal to three; if so, determine that the playback level of the video playback device is level four; if not, determine that the playback level of the video playback device is level three.

[0099] The third preset probability may be set according to actual needs, for example, the third preset probability may be 10%.

[0100] Specifically, if the number of first windows is less than three, the number of fourth windows of the fourth target window with a decoding frame loss rate less than 10% in the four-grid playback window is further determined. If the number of fourth windows is greater than or equal to three, the playback level of the video playback device is determined to be level four; otherwise, the playback level of the video playback device is determined to be level three.

[0101] The above scheme provides a method for determining the playback level of a third-level video playback device and a fourth-level video playback device, which can improve the reliability of the playback level of the video playback device.

[0102] In one embodiment, after determining the available memory of the computer processor and the number of cores of the computer processor according to the operating parameters of the computer processor of the video playback device, the method further includes:

[0103] If the available memory of the computer processor is less than the memory threshold, and the number of cores of the computer processor is less than the number threshold, the playback level of the video playback device is determined to be level one.

[0104] Exemplarily, if the available memory of the computer processor is less than 150M and the number of cores of the computer processor is less than two, it is determined that the playback level of the video playback device is level one.

[0105] The above scheme provides a method for determining the playback level of a primary video playback device, further improving the reliability of the playback level of the video playback device.

[0106] In one embodiment, after determining the available memory of the computer processor and the number of cores of the computer processor according to the operating parameters of the computer processor of the video playback device, the method further includes:

[0107] If the available memory of the computer processor is greater than or equal to the memory threshold, and the number of cores of the computer processor is less than the number threshold, it is determined that the playback level of the video playback device is level two.

[0108] Exemplarily, if the available memory of the computer processor is greater than or equal to 150M, and the number of cores of the computer processor is less than two, it is determined that the playback level of the video playback device is level two.

[0109] The above solution provides a method for determining the playback level of a secondary video playback device, further improving the reliability of the playback level of the video playback device.

[0110] Exemplarily, based on the above embodiment, the method for determining the playback mode of multiple video streams includes:

[0111] Based on the target bit rate, target frame rate, target encoding method and target video screen change, a 1-minute video is recorded as a standard video for use in subsequent processes.

[0112] According to the computer processor operating parameters of the video playback device, the available memory of the computer processor and the number of cores of the computer processor are determined. If the available memory of the computer processor is less than 150M and the number of cores of the computer processor is less than two, the video playback level of the video playback device is determined to be level 1. If the available memory of the computer processor is greater than or equal to 150M and the number of cores of the computer processor is less than two, the video playback level of the video playback device is determined to be level 2.

[0113] If the available memory of the computer processor is less than 150M, and the number of cores of the computer processor is less than two, the playback level of the video playback device is determined to be level 1. If the available memory of the computer processor is greater than or equal to the memory threshold, and the number of cores of the computer processor is less than the number threshold, the playback level of the video playback device is determined to be level 2.

[0114] If the available memory of the computer processor is greater than or equal to 150M, and the number of cores of the computer processor is greater than two, then the standard video is played in a four-grid format in the activity programming video playback interface that is invisible to the playback process, and a time point with more picture changes is selected from the four-grid playback window to collect the decoding frame loss rate of each grid in the four-grid playback window. According to the decoding frame loss rate corresponding to each window in the four-grid playback window, determine the number of first windows of the first target window with a decoding frame loss rate of less than 5% in the four-grid playback window. Determine whether the number of first windows is greater than or equal to three. If the number of first windows is greater than or equal to three, the playback level of the video playback device is temporarily determined to be level five, and further according to the decoding frame loss rate corresponding to each window in the nine-grid playback window, determine the number of second windows of the second target window with a decoding frame loss rate of less than 5% in the nine-grid playback window. If the number of second windows is less than eight, determine that the playback level of the video playback device is level five.

[0115] If the number of the first windows is less than three, the number of the fourth windows of the fourth target window with a decoding frame loss rate less than 10% in the four-grid playback window is further determined. If the number of the fourth windows is greater than or equal to three, the playback level of the video playback device is determined to be level four; otherwise, the playback level of the video playback device is determined to be level three.

[0116] If the number of second windows is greater than or equal to eight, the number of third windows of the third target window whose decoding frame loss rate in the second target window is less than 1% is determined. If the number of third windows is greater than or equal to eight, the playback level of the video playback device is determined to be level seven, otherwise, the playback level of the video playback device is determined to be level six.

[0117] In the above-mentioned method for determining the playback mode of multiple video streams, in the above-mentioned method for determining the playback mode of multiple video streams, a standard video is constructed according to a target bit rate, a target frame rate, a target encoding method and a target video screen change amount; the standard video is played in a four-square grid on the first video playback interface to determine the four-square grid playback window, and the standard video is played in a nine-square grid on the second video playback interface to determine the nine-square grid playback window; the playback level of the video playback device is determined according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-square grid playback window, and the decoding frame loss rate corresponding to each window in the nine-square grid playback window; the playback mode of the multiple video streams is adjusted according to the playback level of the video playback device. The problem that it is difficult to accurately judge the multiple video stream playback capability of a video playback device through some simple configuration parameters is solved. The above scheme determines the playback level of the video playback device based on the computer processor operating parameters of the video playback device, the playback status of the standard video in the four-grid playback window, and the playback status in the nine-grid window, and adjusts the playback mode of the multiple video streams according to the playback level of the video playback device. It can accurately judge the multiple video stream playback capability of the video playback device, thereby adjusting the multiple video stream playback mode of the video playback device to ensure the safe operation of the video playback device.

[0118] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0119] Based on the same inventive concept, the embodiment of the present application also provides a device for determining the playback mode of multiple video streams for implementing the method for determining the playback mode of multiple video streams involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the method above, so the specific limitations in the embodiments of one or more devices for determining the playback mode of multiple video streams provided below can refer to the limitations of the method for determining the playback mode of multiple video streams above, and will not be repeated here.

[0120] In one embodiment, Figure 5 As shown, a device for determining a playback mode of a multi-channel video stream is provided, comprising: a standard video construction module 501, a playback window determination module 502, a playback level determination module 503, and a playback mode determination module 504, wherein:

[0121] A standard video construction module 501 is used to construct a standard video according to a target bit rate, a target frame rate, a target encoding method and a target video picture change amount;

[0122] The play window determination module 502 is used to play the standard video in a four-grid on the first video play interface, determine the four-grid play window, and play the standard video in a nine-grid on the second video play interface, determine the nine-grid play window;

[0123] The playback level determination module 503 is used to determine the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-grid playback window, and the decoding frame loss rate corresponding to each window in the nine-grid playback window;

[0124] The play mode determination module 504 is used to adjust the play mode of multiple video streams according to the play level of the video play device.

[0125] Exemplarily, the playback level determination module 503 is specifically used for:

[0126] Determine available memory of the computer processor and the number of cores of the computer processor according to the computer processor operating parameters of the video playback device;

[0127] If the available memory of the computer processor is greater than or equal to the memory threshold, and the number of cores of the computer processor is greater than the number threshold, then determining the decoding frame loss rate corresponding to each window in the four-grid playback window based on the timestamp corresponding to the maximum changed picture corresponding to each window in the four-grid playback window;

[0128] Determine the decoding frame loss rate corresponding to each window in the nine-grid playback window based on the timestamp corresponding to the maximum changed picture corresponding to each window in the nine-grid playback window;

[0129] The playback level of the video playback device is determined according to the decoding frame loss rate corresponding to each window in the four-grid playback window and the decoding frame loss rate corresponding to each window in the nine-grid playback window.

[0130] Exemplarily, the playback level determination module 503 is further specifically configured to:

[0131] Determine, according to the decoding frame loss rate corresponding to each window in the four-grid playback window, the number of first windows of the first target window whose decoding frame loss rate in the four-grid playback window is less than the first preset probability;

[0132] determining whether the first window quantity is greater than or equal to three;

[0133] If yes, determining the number of second windows whose decoding frame loss rate in the nine-grid playback window is less than the second target window with a first preset probability according to the decoding frame loss rate corresponding to each window in the nine-grid playback window;

[0134] If the number of second windows is less than eight, it is determined that the playback level of the video playback device is level five.

[0135] Exemplarily, the playback level determination module 503 is further specifically configured to:

[0136] If the number of second windows is greater than or equal to eight, determining the number of third windows of third target windows whose decoding frame loss rate in the second target window is less than a second preset probability; the second preset probability is less than the first preset probability;

[0137] determining whether the third window quantity is greater than or equal to eight;

[0138] If so, determining that the playback level of the video playback device is level seven;

[0139] If not, it is determined that the playback level of the video playback device is level six.

[0140] Exemplarily, the playback level determination module 503 is further specifically configured to:

[0141] If the number of first windows is less than three, determining the number of fourth windows whose decoding frame loss rate in the four-grid playback window is less than the fourth target window with a third preset probability; the third preset probability is greater than the first preset probability;

[0142] determining whether the fourth window quantity is greater than or equal to three;

[0143] If so, determining that the playback level of the video playback device is level four;

[0144] If not, it is determined that the playback level of the video playback device is level three.

[0145] Exemplarily, the playback level determination module 503 is further specifically configured to:

[0146] If the available memory of the computer processor is less than the memory threshold, and the number of cores of the computer processor is less than the number threshold, the playback level of the video playback device is determined to be level one.

[0147] Exemplarily, the playback level determination module 503 is further specifically configured to:

[0148] If the available memory of the computer processor is greater than or equal to the memory threshold, and the number of cores of the computer processor is less than the number threshold, it is determined that the playback level of the video playback device is level two.

[0149] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for determining a multi-channel video stream playback mode is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0150] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0151] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0152] Step 1: construct a standard video according to a target bit rate, a target frame rate, a target encoding method, and a target video picture change amount;

[0153] Step 2: Play the standard video in a four-grid format on the first video playback interface to determine the four-grid playback window, and play the standard video in a nine-grid format on the second video playback interface to determine the nine-grid playback window;

[0154] Step 3, determining the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-grid playback window, and the decoding frame loss rate corresponding to each window in the nine-grid playback window;

[0155] Step 4: Adjust the playback mode of multiple video streams according to the playback level of the video playback device.

[0156] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0157] Step 1: construct a standard video according to a target bit rate, a target frame rate, a target encoding method, and a target video picture change amount;

[0158] Step 2: Play the standard video in a four-grid format on the first video playback interface to determine the four-grid playback window, and play the standard video in a nine-grid format on the second video playback interface to determine the nine-grid playback window;

[0159] Step 3, determining the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-grid playback window, and the decoding frame loss rate corresponding to each window in the nine-grid playback window;

[0160] Step 4: Adjust the playback mode of multiple video streams according to the playback level of the video playback device.

[0161] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0162] Step 1: construct a standard video according to a target bit rate, a target frame rate, a target encoding method, and a target video picture change amount;

[0163] Step 2: Play the standard video in a four-grid format on the first video playback interface to determine the four-grid playback window, and play the standard video in a nine-grid format on the second video playback interface to determine the nine-grid playback window;

[0164] Step 3, determining the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-grid playback window, and the decoding frame loss rate corresponding to each window in the nine-grid playback window;

[0165] Step 4: Adjust the playback mode of multiple video streams according to the playback level of the video playback device.

[0166] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0167] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0168] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0169] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for determining a multi-channel video stream playback mode, It is characterized in that include: Construct a standard video according to a target bit rate, a target frame rate, a target encoding method, and a target video picture change amount; Play the standard video in a four-grid format on the first video playback interface to determine a four-grid playback window, and play the standard video in a nine-grid format on the second video playback interface to determine a nine-grid playback window; Determining the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-grid playback window, and the decoding frame loss rate corresponding to each window in the nine-grid playback window; The playback mode of the video playback device corresponding to the multiple video streams is adjusted according to the playback level.

2. The method according to claim 1, It is characterized in that Determining the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-grid playback window, and the decoding frame loss rate corresponding to each window in the nine-grid playback window, including: Determining available memory of the computer processor and the number of cores of the computer processor according to operating parameters of the computer processor of the video playback device; If the available memory of the computer processor is greater than or equal to the memory threshold, and the number of cores of the computer processor is greater than the number threshold, determining the decoding frame loss rate corresponding to each window in the four-grid playback window based on the timestamp corresponding to the maximum changed picture of the standard video in the four-grid playback window; Determine the decoding frame loss rate corresponding to each window in the nine-grid playback window based on the timestamp corresponding to the maximum changed picture of the standard video in the nine-grid playback window; The playback level of the video playback device is determined according to the decoding frame loss rate corresponding to each window in the four-grid playback window and the decoding frame loss rate corresponding to each window in the nine-grid playback window.

3. The method according to claim 2, It is characterized in that Determining the playback level of the video playback device according to the decoding frame loss rate corresponding to each window in the four-grid playback window and the decoding frame loss rate corresponding to each window in the nine-grid playback window includes: Determine, according to the decoding frame loss rate corresponding to each window in the four-grid playback window, the number of first windows of the first target window whose decoding frame loss rate in the four-grid playback window is less than a first preset probability; determining whether the first number of windows is greater than or equal to three; If so, determining the number of second windows whose decoding frame loss rate in the nine-grid playback window is less than the second target window with a first preset probability according to the decoding frame loss rate corresponding to each window in the nine-grid playback window; If the number of the second windows is less than eight, it is determined that the playback level of the video playback device is level five.

4. The method according to claim 3, It is characterized in that After determining the number of second windows whose decoding frame loss rates in the nine-grid playback window are less than the second target window with a first preset probability according to the decoding frame loss rates corresponding to the windows in the nine-grid playback window, the method further includes: If the number of the second windows is greater than or equal to eight, determining the number of third windows of the third target window whose decoding frame loss rate in the second target window is less than a second preset probability; the second preset probability is less than the first preset probability; determining whether the third number of windows is greater than or equal to eight; If yes, determining that the playback level of the video playback device is level seven; If not, it is determined that the playback level of the video playback device is level six.

5. The method according to claim 3, It is characterized in that After determining whether the number of the first windows is greater than or equal to three, the method further includes: If not, determining the fourth window quantity of the fourth target window whose decoding frame loss rate in the four-grid playback window is less than the third preset probability; the third preset probability is greater than the first preset probability; determining whether the fourth number of windows is greater than or equal to three; If yes, determining that the playback level of the video playback device is level four; If not, it is determined that the playback level of the video playback device is level three.

6. The method according to claim 2, It is characterized in that After determining the available memory of the computer processor and the number of cores of the computer processor according to the operating parameters of the computer processor of the video playback device, the method further includes: If the available memory of the computer processor is less than the memory threshold, and the number of cores of the computer processor is less than the number threshold, it is determined that the playback level of the video playback device is level one.

7. The method according to claim 2, It is characterized in that After determining the available memory of the computer processor and the number of cores of the computer processor according to the operating parameters of the computer processor of the video playback device, the method further includes: If the available memory of the computer processor is greater than or equal to the memory threshold, and the number of cores of the computer processor is less than the number threshold, it is determined that the playback level of the video playback device is level two.

8. A device for determining a playback mode of multiple video streams, It is characterized in that The multi-channel video stream playback mode determination device comprises: A standard video construction module is used to construct a standard video according to a target bit rate, a target frame rate, a target encoding method and a target video picture change amount; A playback window determination module, used to play the standard video in a four-grid on the first video playback interface, determine the four-grid playback window, and play the standard video in a nine-grid on the second video playback interface, determine the nine-grid playback window; a playback level determination module, configured to determine the playback level of the video playback device according to the computer processor operating parameters of the video playback device, the decoding frame loss rate corresponding to each window in the four-grid playback window, and the decoding frame loss rate corresponding to each window in the nine-grid playback window; The play mode determination module is used to adjust the play mode of the multiple video streams according to the play level of the video play device.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Multi-window video playing-based playing quality adjusting method and device

    CN105828158A

  • Decoder resource allocation method and device

    CN107396125A