Video display method and device, terminal equipment and computer readable storage medium
By determining the current playback mode of the video and selecting a matching display parameter control table, the screen flickering problem during video playback is solved, ensuring the stability and effect of video playback in abnormal mode.
Patent Information
- Application Number
- CN202411273446.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-12-31
AI Technical Summary
The prior art is prone to flashing in video playback, especially in abnormal modes, because the display parameter adjustment is not synchronized with the image, resulting in the inability to effectively realize real-time picture enhancement.
By determining the current playback mode of the video and selecting the corresponding display parameter control table according to the mode, adjusting the display effect of the video, avoiding the use of a single display parameter control table in abnormal mode, ensuring that the display parameters match the local display capability, and preventing The screen flashes.
It effectively avoids the screen flickering problem caused by the display parameter adjustment and the image in abnormal playback mode, and improves the stability and display effect of video playback.
Smart Images

Figure CN119233029A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a video display method, apparatus, terminal device and computer-readable storage medium. Background Art
[0002] When playing a video, in order to improve the display effect of the video, a certain degree of image enhancement is usually performed based on the characteristics of the video itself. For example, the light and shadow of the video image is enhanced by using a method similar to HDR.
[0003] However, in the prior art, HDR still has some problems. For example, when HDR is used in some video images, the video will have a gray problem. The reason for this problem is that the system has poor calibration of the display parameters of the display, resulting in HDR being unable to effectively enhance the video image.
[0004] In addition, there are solutions in the prior art that use the cloud to calibrate video images, especially in the field of online video playback. When a user caches an online video for playback, the cloud can enhance the image of the user's cached video. For example: complex real-time analysis and processing such as scene recognition, pixel statistics, dynamic mapping, etc. Compared with HDR, this processing method can perform targeted optimization on the unique image of each video. However, such solutions often have problems with the matching of display parameter adjustments and images, and ultimately can only avoid the anomalies caused by mismatches by reducing the corresponding display parameter adjustment amplitude and frequency. Therefore, it is difficult to achieve a relatively ideal real-time adjustment effect, especially when users are playing videos in some abnormal modes, the screen is prone to display parameter adjustments being out of sync with the image, resulting in abnormal problems such as screen flickering. Summary of the invention
[0005] The present application provides a video display method, which can effectively avoid the problem of screen flickering when the video screen is enhanced.
[0006] In a first aspect, the present application provides a video display method, applied to a display device, the method comprising:
[0007] Get the target video;
[0008] Determine the current playback mode of the target video;
[0009] Determine a display parameter control table corresponding to the current playback mode;
[0010] According to the display parameter control table, the display effect of the target video is adjusted.
[0011] In some embodiments of the present application, determining the current playback mode of the target video includes:
[0012] Obtaining a current playback control instruction for the target video;
[0013] If the current playback control instruction indicates that the target video is controlled to be played at a target timing, determining that the current playback mode of the target video is a first current playback mode;
[0014] If the current playback control instruction indicates that the target video is controlled to be played at a timing other than the target timing, the current playback mode of the target video is determined to be the second current playback mode.
[0015] In some embodiments of the present application, the display parameter control table includes a first display parameter control table and a second display parameter control table;
[0016] The determining of the display parameter control table corresponding to the current playback mode includes:
[0017] If the current playback mode is the first current playback mode, determining that the display parameter control table corresponding to the current playback mode is the first display parameter control table;
[0018] If the current play mode is the second current play mode, it is determined that the display parameter control table corresponding to the current play mode is the second display parameter control table.
[0019] In some embodiments of the present application, determining the display parameter control table corresponding to the current playback mode includes:
[0020] Obtaining different initial recommended display parameter control tables and local display capability parameters set by the target server for each video frame of the target video;
[0021] According to the local display capability parameter, respectively detecting whether the display control parameter in each of the initial recommended display parameter control tables matches the local display capability parameter;
[0022] If there is at least one display control parameter in the initial recommended display parameter control table that does not match the local display capability parameter, the display control parameter in the unmatched initial recommended display parameter control table is corrected according to the local display capability parameter, and the corrected recommended display parameter control table and the matched initial recommended display parameter control table are determined as the target display parameter control table;
[0023] If the display control parameters in each of the initially recommended display parameter control tables match the local display capability parameters, determining each of the initially recommended display parameter control tables as the target display parameter control table;
[0024] According to the target display parameter control table, a display parameter control table corresponding to the current playback mode is determined.
[0025] In some embodiments of the present application, adjusting the display effect of the target video according to the display parameter control table includes:
[0026] Determining a target timestamp of a currently played video frame of the target video;
[0027] Determining the current display control parameters of the currently playing video frame according to the target timestamp and the display parameter control table;
[0028] According to the current display control parameter, the display effect of the currently played video frame of the display device is adjusted.
[0029] In some embodiments of the present application, the display parameter control table includes multiple time intervals and multiple groups of display control parameters, and one time interval corresponds to one group of display control parameters;
[0030] The determining, according to the target timestamp and the display parameter control table, the current display control parameter of the currently played video frame comprises:
[0031] Determine a corresponding target time interval where the target timestamp is located;
[0032] The target display control parameter group corresponding to the target time interval is determined as the current display control parameters of the currently playing video frame.
[0033] In some embodiments of the present application, adjusting the display effect of the currently played video frame of the display device according to the current display control parameter includes:
[0034] Get the video correction factor;
[0035] According to the video correction coefficient and the current display control parameter, the display effect of the currently played video frame of the display device is adjusted.
[0036] In a second aspect, the present application further provides a video display method, applied to a server, the method comprising:
[0037] Obtaining a display parameter control table acquisition request instruction sent by a display device;
[0038] According to the acquisition request instruction, the display parameter control table corresponding to the target video is sent to the display device, so that the display device adjusts the display effect of the target video according to the display parameter control table.
[0039] In a third aspect, the present application further provides a video display device, applied to a display device, the device comprising:
[0040] An acquisition module, used to acquire a target video;
[0041] A processing module, used to determine the current playback mode of the target video;
[0042] The processing module is further used to determine a display parameter control table corresponding to the current playback mode;
[0043] The processing module is further used to adjust the display effect of the target video according to the display parameter control table.
[0044] In a fourth aspect, the present application also provides a terminal device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps in any one of the video display methods.
[0045] In a fifth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the steps in any one of the video display methods.
[0046] The video display method provided by the present application can determine the current playback mode of the target video being played, and determine the corresponding display parameter control table that matches the target video in the current playback mode according to the current playback mode. Afterwards, the display effect is adjusted according to the display control parameters in the corresponding display parameter control table. This can avoid the target video using the display parameters in a single display parameter control table to control the display of the video in different playback modes, and prevent the display parameter adjustment from being out of sync with the image when the target video is played in some abnormal modes, thereby causing abnormal problems such as screen flickering. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0048] Figure 1 is a scene schematic diagram of a video display system provided in an embodiment of the present application;
[0049] Figure 2 This is a schematic diagram of an embodiment of a video display method in an embodiment of the present application;
[0050] Figure 3 is a schematic diagram of a functional module of a video display device in an embodiment of the present application;
[0051] Figure 4 It is a schematic diagram of the structure of the terminal device in the embodiment of the present application. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0053] In the description of the present application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the feature. In the description of the present application, "plurality" means two or more, unless otherwise clearly and specifically defined.
[0054] In this application, the word "exemplary" is used to mean "used as an example, illustration or description". Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. At the same time, it is to be understood that in the specific implementation of this application, when user information, user data and other related data are involved, when the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data shall comply with relevant laws, regulations and standards of relevant countries and regions.
[0055] In order to enable any person skilled in the art to implement and use the present application, the following description is provided. In the following description, details are listed for the purpose of explanation. It should be understood that those of ordinary skill in the art will recognize that the present application can be implemented without using these specific details. In other examples, known structures and processes will not be elaborated in detail to avoid unnecessary details that make the description of the present application obscure. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in the present application.
[0056] The present application provides a video display method, apparatus, device and storage medium, which are described in detail below.
[0057] See also Figure 1 , Figure 1Schematic diagram of a video display system provided in an embodiment of the present application. The video display system may include a terminal device 100 and a server 200. The server 200 may transmit data to the terminal device 100. Figure 1 The terminal device 100 in the embodiment can obtain the display parameter control table stored in the server 200 to execute the video display method in the present application.
[0058] In the embodiment of the present application, the terminal device 100 includes but is not limited to a desktop computer, a portable computer, a network server, a PDA (Personal Digital Assistant), a tablet computer, a wireless terminal device, an embedded device, etc.
[0059] In an embodiment of the present application, communication between the terminal device 100 and the server 200 can be achieved through any communication method, including but not limited to mobile communications based on the 3rd Generation Partnership Project (3GPP), Long Term Evolution (LTE), and Worldwide Interoperability for Microwave Access (WiMAX), or computer network communications based on the TCP / IP Protocol Suite (TCP / IP), User Datagram Protocol (UDP), etc.
[0060] It should be noted that Figure 1 The scene diagram of the video display system shown is only an example. The video display system and scene described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of the video display system and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
[0061] like Figure 2 As shown, Figure 2 This is a flow chart of an embodiment of a video display method in an embodiment of the present application. The video display method is applied to a display device, which may include the following steps 201 to 204:
[0062] 201. Obtain a target video.
[0063] In the embodiment of the present application, the target video can be any type of video, which is not limited in the specific embodiment of the present application. Among them, the method of obtaining the target video can be obtained by loading a local video or caching an online video, which is not limited in the embodiment of the present application.
[0064] 202. Determine a current playback mode of the target video.
[0065] In the embodiments of the present application, the current playback mode can be understood as different playback situations of the video. For example: a jump-type video playback mode such as dragging a video progress bar; or a double-speed playback mode for playing a video at double speed; or a normal playback mode for playing a video normally, etc. Among them, the current playback mode of the target video can be determined by an instruction to adjust the video playback mode when the user is watching the video. For example: if the video starts playing and the user does not operate the video, it is a normal playback mode; if the user plays the video at double speed, it is a double-speed playback mode; if the user adjusts the video progress bar, it is a jump-type playback mode, etc. Of course, you can also check the corresponding program code in the program that controls the playback of the current video to determine the playback mode of the current target video, and the specific embodiments of the present application are not limited.
[0066] 203. Determine a display parameter control table corresponding to the current play mode.
[0067] In order to ensure that the target video does not flicker or other abnormal situations when the image is enhanced by the corresponding display parameters, in the embodiment of the present application, the relevant debugging personnel can pre-set the display parameter control table corresponding to different playback modes and store it in the current local display device. Among them, each playback mode can correspond to a display parameter control table. After the current playback mode is determined according to the above steps, the display parameter control table corresponding to the current playback mode can be determined according to the corresponding relationship.
[0068] It should be noted that the display parameter control table includes various display control parameters of the local display device, such as brightness, contrast, etc., which can be any type of display control parameter, and the specific embodiment of the present application does not limit it.
[0069] In addition, for example, in normal playback mode, the rate of change of video frames is relatively slow. Therefore, the display control parameters in the display parameter control table corresponding to the normal playback mode can be appropriately set to relatively aggressive display control parameters. In this way, when the video frames are played at a normal rate of change, the relatively aggressive display control parameters will not cause the target video to flicker. Alternatively, in abnormal playback mode, that is, jump playback mode and double-speed playback mode, the rate of change of video frames is relatively fast, and the rate of change is sometimes fast and sometimes slow. If relatively aggressive display control parameters are still used, for example, when the brightness parameter is too high, it is easy to cause the video frame that needs to be darker to still maintain high brightness when the screen switches, resulting in flickering. Therefore, the display control parameters in the display control parameter table corresponding to the abnormal playback mode can be relatively conservative.
[0070] 204. Adjust the display effect of the target video according to the display parameter control table.
[0071] After determining the display parameter control table corresponding to the current playback mode according to the above steps, the display effect of the target video can be adjusted according to the display control parameters in the corresponding display parameter control table. Specifically, the corresponding parameters can be adjusted according to the parameters involved in the display control parameters.
[0072] The video display method provided by the present application can determine the current playback mode of the target video being played, and determine the corresponding display parameter control table that matches the target video in the current playback mode according to the current playback mode. Afterwards, the display effect can be adjusted according to the display control parameters in the corresponding display parameter control table. This can avoid the target video using the display parameters in a single display parameter control table to control the display of the video in different playback modes, and prevent the display parameter adjustment from being out of sync with the image when the target video is played in some abnormal modes, thereby causing abnormal problems such as screen flickering.
[0073] In order to better implement the embodiment of the present application, in one embodiment of the present application, determining the current playback mode of the target video includes:
[0074] Get the current playback control instruction for the target video; if the current playback control instruction indicates that the target video is controlled to be played at a target timing, determine that the current playback mode of the target video is the first current playback mode; if the current playback control instruction indicates that the target video is controlled to be played at a non-target timing, determine that the current playback mode of the target video is the second current playback mode.
[0075] The above embodiment provides a method for determining the current play mode of a target video according to a user's operation instruction or according to a running program. In the embodiment of the present application, a method for determining the current play mode of a target video is also provided.
[0076] As we all know, a video is composed of different video frames. The essence of video playback is to display video frames of different timings in order to achieve the effect of video playback. The program codes of different systems are different. Therefore, if the current playback mode of the target video is determined based on the program statements in the program code, it is also necessary to determine the characteristics of different programs in each system. This method is relatively complicated. Therefore, in order to simplify the complexity of determining the current playback mode, it can be determined based on the timing information corresponding to different video frames when the target video is played.
[0077] For example: Assume that the target video includes video frame A, video frame B, video frame C, and video frame D. Video frame A and video frame B are continuous in timing; video frame B and video frame C are continuous in timing; video frame C and video frame D are continuous in timing. If the target video starts to be played, the initial screen is video frame A, and according to the normal playback mode, the next video frame in timing is video frame B. If it is determined that the next video frame is video frame B, it can be determined that the current playback mode is normal mode, that is, the first current playback mode. Although the next video frame is B, the time it takes to switch from video frame A to video frame B is different from the time difference between the two video frames, it is a double-speed playback mode, and this is the second current playback mode. Alternatively, if the next video frame is not video frame B, but C or D, it is a jump playback mode, and this is also the second current playback mode.
[0078] In order to better implement the embodiment of the present application, in one embodiment of the present application, the display parameter control table includes a first display parameter control table and a second display parameter control table; determining the display parameter control table corresponding to the current playback mode includes:
[0079] If the current playback mode is the first current playback mode, the display parameter control table corresponding to the current playback mode is determined to be the first display parameter control table; if the current playback mode is the second current playback mode, the display parameter control table corresponding to the current playback mode is determined to be the second display parameter control table.
[0080] The above embodiment provides a solution for different display parameter control tables corresponding to multiple playback modes. However, after testing, in actual situations, the playback mode of the video can be determined as a normal playback mode and an abnormal playback mode. At this time, it can be seen that the abnormal playback mode includes a jump playback mode and a double-speed playback mode. The specific reason is that the flickering causes of the video in the jump playback mode and the double-speed playback mode are almost the same in actual situations. Therefore, after merging these two modes into an abnormal playback mode, only one display parameter control table can be corresponded, rather than two display parameter control tables. This can save a certain amount of storage space, especially in a display device such as a device without a large storage medium, where storage space is particularly important.
[0081] Therefore, based on the above embodiment, when setting the display parameter control table, the debugger only needs to set two display parameter control tables.
[0082] In order to better implement the embodiment of the present application, in one embodiment of the present application, determining a display parameter control table corresponding to the current playback mode includes:
[0083] Obtain different initial recommended display parameter control tables and local display capability parameters set by the target server for each video frame of the target video; according to the local display capability parameters, respectively detect whether the display control parameters in each initial recommended display parameter control table match the local display capability parameters; if there is at least one display control parameter in the initial recommended display parameter control table that does not match the local display capability parameters, correct the display control parameters in the unmatched initial recommended display parameter control table according to the local display capability parameters, and determine that the corrected recommended display parameter control table and the matching initial recommended display parameter control table are the target display parameter control tables; if the display control parameters in each initial recommended display parameter control table match the local display capability parameters, determine that each initial recommended display parameter control table is the target display parameter control table; according to the target display parameter control table, determine the display parameter control table corresponding to the current playback mode.
[0084] The above embodiment provides a way to set the display parameter control table locally. However, different videos have different light and shadow effects. Therefore, using a single display parameter control table to correspond to all videos in normal playback mode, or all videos in abnormal playback mode, can easily lead to the display effect of some videos still failing to meet expectations. Therefore, if a corresponding display parameter control table can be set for each video in different playback modes, the display effect during video playback will be better.
[0085] Therefore, in order to solve this problem, the embodiment of the present application provides a solution of setting a display parameter control table in a server. In this way, when a user plays an online video, the local device can cache all display parameter control tables corresponding to the target video while caching the video. Since in this embodiment, the display parameter control table is a parameter table uniquely adapted to the target video, the display effect of the target video will be better.
[0086] In addition, all the display parameter control tables corresponding to the target video stored in the server are display parameter control tables adapted for the target video according to the above description. However, as is known to all, the user group is huge, and the display capabilities of the display devices of different users are also different. Therefore, when the local display device obtains all the display parameter control tables corresponding to the target video from the server, the parameters in all the display parameter control tables can be compared with the display parameters of the local display device itself, so as to determine whether the local display device can meet the display requirements corresponding to the display parameter control tables in the server. Therefore, the parameters related to the display capability of the local display device itself can be set in the local display device, and when the local display device obtains all the display parameter control tables corresponding to the target video from the server, the display control parameters in the display parameter control table can be compared with the local display capability parameters. It should be noted that before the parameter adjustment is completed, the display parameter control table obtained from the server can be regarded as the initial recommended display parameter control table.
[0087] Specifically, assuming that there is a display control parameter of the type of brightness in the local display capability parameters and the display parameter control table, if the brightness parameter in the local display capability parameters is X, and the display parameter control table is Y, and Y is greater than X, it can be concluded that the local display device cannot adjust the brightness to Y. At this time, Y in the display parameter control table can be adjusted to X. Of course, the parameter adjustment for all display parameter control tables is the same. Then, after determining the corresponding display parameter control table according to the playback mode of the target video, since the display parameter control table is achievable by the local display device, the target video can be adjusted according to the display control parameters in the display parameter control table.
[0088] In order to better implement the embodiment of the present application, in one embodiment of the present application, adjusting the display effect of the target video according to the display parameter control table includes:
[0089] Determine a target timestamp of a currently played video frame of a target video; determine a current display control parameter of the currently played video frame according to the target timestamp and a display parameter control table; and adjust a display effect of the currently played video frame of a display device according to the current display control parameter.
[0090] The above embodiment provides a method based on a display parameter control table. However, in order to further improve the display effect of the video. When setting the display parameter control table, a set of corresponding display control parameters can be set for each video frame corresponding to each timestamp of the target video. When the display parameter control table corresponding to the current playback mode is obtained, the set of display control parameters for the current timestamp can be determined from the display parameter control table according to the timestamp of the video frame corresponding to the current playback progress. In this way, each video frame in the target video can be adjusted by means of a timestamp. Therefore, compared with adjusting the target video frame as a whole with only one set of display control parameters, each video frame can be adjusted to have a better overall display effect.
[0091] In order to better implement the embodiment of the present application, in one embodiment of the present application, the display parameter control table includes multiple time intervals and multiple groups of display control parameters, and one time interval corresponds to one group of display control parameters; according to the target timestamp and the display parameter control table, the current display control parameters of the currently played video frame are determined, including:
[0092] Determine the corresponding target time interval where the target timestamp is located; determine the target display control parameter group corresponding to the target time interval as the current display control parameter of the currently playing video frame.
[0093] In the above embodiment, a method is provided for adjusting the timestamp corresponding to each video frame in the target video. However, in actual situations, if the scene does not switch in a video, the degree of change of light and shadow in the video is small. For example: the current video includes a dim indoor scene and a bright outdoor scene. If the video viewing angle is in the indoor scene, the overall light and shadow effect is dim. Therefore, it is not necessary to set corresponding display control parameters for all video frames of the indoor scene. Instead, the display control parameters corresponding to the video frames of the indoor scene can be simplified. For example: assuming that all video frames corresponding to the indoor scene are 10 frames, according to the above embodiment, there should be 10 groups of display control parameters corresponding. If this is the embodiment, the 10 groups of display control parameters can be reduced to 5 groups, 3 groups, etc., so that the size of the display parameter control table is reduced, the storage space is further saved, and the display effect after the final adjustment is not affected. Therefore, in this embodiment, the 10 video frames are divided according to the timestamp interval, so that each timestamp interval corresponds to a group of display control parameter groups.
[0094] In addition, the embodiment of the present application also provides a specific display parameter control table, which can be specifically shown in the following table:
[0095]
[0096]
[0097] Table 1
[0098] index Display Control Parameter Group 1 <![CDATA[P a1 1,P a1 2,P a1 3,……,P a1 16]]> 2 <![CDATA[P a2 1,P a2 2,P a2 3,……,P a2 16]]> 3 <![CDATA[P a3 1,P a3 2,P a3 3,……,P a3 16]]> 4 <![CDATA[P a4 1,P a4 2,P a4 3,……,P a4 16]]> …… …… x <![CDATA[P ax 1,P ax 2,P ax 3,……,P ax 16]]>
[0099] Table 2
[0100] In the embodiment of the present application, Table 1 and Table 2 together constitute a display parameter control table. Therefore, when a video corresponds to multiple different display parameter control tables according to different playback modes, the other display parameter control tables are the same as the display parameter control table in the embodiment of the present application. Therefore, no further description will be given.
[0101] In addition, the number and types of display control parameters involved in the display control parameter group in Table 2 can be set according to actual conditions, and the embodiment of the present application does not limit this.
[0102] In order to better implement the embodiment of the present application, in one embodiment of the present application, adjusting the display effect of the currently played video frame of the display device according to the current display control parameter includes:
[0103] Obtain a video correction coefficient; and adjust the display effect of the currently playing video frame of the display device according to the video correction coefficient and the current display control parameter.
[0104] In the actual adjustment process, due to the influence of the external environment, for example, the ambient brightness of the user's current environment is different. Therefore, when the local display device enhances the display effect according to the current display control parameters, it can make appropriate adjustments according to the current ambient brightness. Therefore, this adjustment method can be understood as the video correction coefficient in the embodiment of the present application. For example: the video correction coefficient can be 0.95, 0.92, 0.90, etc., and can be set specifically according to actual conditions. After obtaining the current display control parameters corresponding to the timestamp, the display device can determine the current ambient brightness according to the light sensor installed on itself, thereby determining a video correction coefficient that matches the current ambient brightness. Then, the video correction coefficient is multiplied by the current display control parameter to obtain the actual display control parameter of the current timestamp.
[0105] In order to better implement the embodiments of the present application, in one embodiment of the present application, the present application further provides a video display method, which is applied to a server, and the method includes:
[0106] Obtain a display parameter control table acquisition request instruction sent by the display device; according to the acquisition request instruction, send the display parameter control table corresponding to the target video to the display device, so that the display device adjusts the display effect of the target video according to the display parameter control table.
[0107] In the embodiment of the present application, the server can be any type of server. In addition, the server and the display device can be connected to each other through a network. When the display device needs to obtain the display parameter control table of the target video cached by it, the server sends the corresponding display parameter control table to the local device.
[0108] In order to better implement the video display method in the embodiment of the present application, in addition to the video display method, the embodiment of the present application also provides a video display device, which is applied to a display device, such as Figure 3 As shown, the device 300 includes:
[0109] An acquisition module 301 is used to acquire a target video;
[0110] Processing module 302, used to determine the current playback mode of the target video;
[0111] The processing module 302 is also used to determine the display parameter control table corresponding to the current playback mode;
[0112] The processing module 302 is further used to adjust the display effect of the target video according to the display parameter control table.
[0113] The video display device provided by the present application can first obtain the target playback video through the acquisition module 301. Then, the current playback mode of the target video being played can be determined through the processing module 302, and the corresponding display parameter control table that matches the target video in the current playback mode can be determined according to the current playback mode. Afterwards, the display effect can be adjusted according to the display control parameters in the corresponding display parameter control table. In this way, it is possible to avoid the target video using the display parameters in a single display parameter control table to control the display of the video in different playback modes, and prevent the display parameter adjustment from being out of sync with the image when the target video is played in some abnormal modes, thereby causing abnormal problems such as screen flickering.
[0114] In some embodiments of the present application, the processing module 302 is specifically used to:
[0115] Get the current playback control instructions for the target video;
[0116] If the current playback control instruction indicates that the target video is controlled to be played at the target timing, then determining that the current playback mode of the target video is the first current playback mode;
[0117] If the current playback control instruction indicates that the target video is controlled to be played at a non-target timing, the current playback mode of the target video is determined to be the second current playback mode.
[0118] In some embodiments of the present application, the display parameter control table includes a first display parameter control table and a second display parameter control table, and the processing module 302 is further specifically used for:
[0119] If the current playback mode is the first current playback mode, determining that the display parameter control table corresponding to the current playback mode is the first display parameter control table;
[0120] If the current play mode is the second current play mode, it is determined that the display parameter control table corresponding to the current play mode is the second display parameter control table.
[0121] In some embodiments of the present application, the processing module 302 is further configured to:
[0122] Obtaining different initial recommended display parameter control tables and local display capability parameters set by the target server for each video frame of the target video;
[0123] According to the local display capability parameter, respectively detecting whether the display control parameters in each of the initial recommended display parameter control tables match the local display capability parameter;
[0124] If there is at least one display control parameter in the initial recommended display parameter control table that does not match the local display capability parameter, the display control parameter in the unmatched initial recommended display parameter control table is corrected according to the local display capability parameter, and the corrected recommended display parameter control table and the matched initial recommended display parameter control table are determined as the target display parameter control table;
[0125] If the display control parameters in each of the initial recommended display parameter control tables match the local display capability parameters, then determining each of the initial recommended display parameter control tables as the target display parameter control table;
[0126] According to the target display parameter control table, a display parameter control table corresponding to the current playback mode is determined.
[0127] In some embodiments of the present application, the processing module 302 is further configured to:
[0128] Determine a target timestamp of a currently playing video frame of a target video;
[0129] Determine the current display control parameters of the currently playing video frame according to the target timestamp and the display parameter control table;
[0130] According to the current display control parameters, the display effect of the currently playing video frame of the display device is adjusted.
[0131] In some embodiments of the present application, the display parameter control table includes multiple time intervals and multiple groups of display control parameters, one time interval corresponds to one group of display control parameters, and the processing module 302 is further used to:
[0132] Determine the corresponding target time interval where the target timestamp is located;
[0133] The target display control parameter group corresponding to the target time interval is determined as the current display control parameters of the currently playing video frame.
[0134] In some embodiments of the present application, the processing module 302 is further configured to:
[0135] Get the video correction factor;
[0136] According to the video correction coefficient and the current display control parameter, the display effect of the currently played video frame of the display device is adjusted.
[0137] The present application also provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any video display method in the present application. The terminal device integrates any video display method provided in the present application, such as Figure 4 As shown, it shows a schematic diagram of the structure of the terminal device involved in the embodiment of the present application, specifically:
[0138] The terminal device may include one or more processing core processors 401, one or more computer-readable storage media memories 402, a power supply 403, an input unit 404 and other components. Those skilled in the art will appreciate that Figure 4 The terminal device structure shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0139] The processor 401 is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, the processor 401 executes various functions of the terminal device and processes data, thereby monitoring the terminal device as a whole. Optionally, the processor 401 may include one or more processing cores; the processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. Preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0140] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0141] The terminal device also includes a power supply 403 for supplying power to each component. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, power consumption management and other functions through the power management system. The power supply 403 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0142] The terminal device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0143] Although not shown, the terminal device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the terminal device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby realizing various functions, such as:
[0144] Get the target video;
[0145] Determine the current playback mode of the target video;
[0146] Determine the display parameter control table corresponding to the current playback mode;
[0147] Adjust the display effect of the target video according to the display parameter control table.
[0148] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0149] To this end, the embodiment of the present application provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any video display method provided in the embodiment of the present application. For example, the computer program is loaded by the processor to execute the following steps:
[0150] Get the target video;
[0151] Determine the current playback mode of the target video;
[0152] Determine the display parameter control table corresponding to the current playback mode;
[0153] Adjust the display effect of the target video according to the display parameter control table.
[0154] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.
[0155] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.
[0156] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0157] The above is a detailed introduction to a video display method and device provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A video display method, characterized in that: Applied to a display device, the method comprises: Get the target video; Determine the current playback mode of the target video; Determine a display parameter control table corresponding to the current playback mode; According to the display parameter control table, the display effect of the target video is adjusted.
2. The video display method according to claim 1, characterized in that: The determining the current playback mode of the target video includes: Obtaining a current playback control instruction for the target video; If the current playback control instruction indicates that the target video is controlled to be played at a target timing, determining that the current playback mode of the target video is a first current playback mode; If the current playback control instruction indicates that the target video is controlled to be played at a timing other than the target timing, the current playback mode of the target video is determined to be the second current playback mode.
3. The video display method according to claim 2, characterized in that: The display parameter control table includes a first display parameter control table and a second display parameter control table; The determining of the display parameter control table corresponding to the current playback mode includes: If the current playback mode is the first current playback mode, determining that the display parameter control table corresponding to the current playback mode is the first display parameter control table; If the current play mode is the second current play mode, it is determined that the display parameter control table corresponding to the current play mode is the second display parameter control table.
4. The video display method according to claim 1, characterized in that: The determining of the display parameter control table corresponding to the current playback mode includes: Obtaining different initial recommended display parameter control tables and local display capability parameters set by the target server for each video frame of the target video; According to the local display capability parameter, respectively detecting whether the display control parameter in each of the initial recommended display parameter control tables matches the local display capability parameter; If there is at least one display control parameter in the initial recommended display parameter control table that does not match the local display capability parameter, the display control parameter in the unmatched initial recommended display parameter control table is corrected according to the local display capability parameter, and the corrected recommended display parameter control table and the matched initial recommended display parameter control table are determined as the target display parameter control table; If the display control parameters in each of the initially recommended display parameter control tables match the local display capability parameters, determining each of the initially recommended display parameter control tables as the target display parameter control table; According to the target display parameter control table, a display parameter control table corresponding to the current playback mode is determined.
5. The video display method according to claim 1, characterized in that: The step of adjusting the display effect of the target video according to the display parameter control table includes: Determining a target timestamp of a currently played video frame of the target video; Determining the current display control parameters of the currently playing video frame according to the target timestamp and the display parameter control table; According to the current display control parameter, the display effect of the currently played video frame of the display device is adjusted.
6. The video display method according to claim 5, characterized in that: The display parameter control table includes multiple time intervals and multiple groups of display control parameters, and one time interval corresponds to one group of display control parameters; The determining, according to the target timestamp and the display parameter control table, the current display control parameter of the currently played video frame comprises: Determine a corresponding target time interval where the target timestamp is located; The target display control parameter group corresponding to the target time interval is determined as the current display control parameters of the currently playing video frame.
7. The video display method according to claim 5, characterized in that: The adjusting the display effect of the currently played video frame of the display device according to the current display control parameter includes: Get the video correction factor; According to the video correction coefficient and the current display control parameter, the display effect of the currently played video frame of the display device is adjusted.
8. A video display method, characterized in that: Applied to a server, the method comprises: Obtaining a display parameter control table acquisition request instruction sent by a display device; According to the acquisition request instruction, the display parameter control table corresponding to the target video is sent to the display device, so that the display device adjusts the display effect of the target video according to the display parameter control table.
9. A video display device, characterized in that: Applied to a display device, the device comprises: An acquisition module, used to acquire a target video; A processing module, used to determine the current playback mode of the target video; The processing module is further used to determine a display parameter control table corresponding to the current playback mode; The processing module is further used to adjust the display effect of the target video according to the display parameter control table.
10. A terminal device, characterized in that: The terminal device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps in the video display method according to any one of claims 1 to 7.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps in the video display method according to any one of claims 1 to 7.
Citation Information
Cited By
Video display method and apparatus, and terminal device and computer-readable storage medium
WO2026056592A1
