Methods, devices, electronic equipment and storage media for playing dynamic high-quality video.

By receiving switching instructions and target video information, the video quality strategy is dynamically adjusted, which solves the problem that existing technologies cannot meet users' personalized needs and improves users' video viewing experience.

CN115776590BActive Publication Date: 2025-11-14BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111045132.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-07
Publication Date
2025-11-14
Estimated Expiration
2041-09-07

AI Technical Summary

Technical Problem

In existing technologies, video quality settings based on the network speed-bitrate mapping relationship cannot meet the personalized needs of users under different network conditions, thus affecting the user's video viewing experience.

Method used

By receiving switching instructions, the system determines the image quality selection strategy based on the video information of the target video, and dynamically adjusts the video quality level according to the current network conditions to meet the user's personalized needs.

Benefits of technology

It enables automatic selection of video quality based on user preferences under different network conditions, thereby improving the user's viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115776590B_ABST
    Figure CN115776590B_ABST
Patent Text Reader

Abstract

This disclosure provides a method, apparatus, electronic device, and storage medium for playing dynamic quality video. The method receives a switching instruction for a video stream, which switches the target video being played in the video stream. Based on the switching instruction and the video information of the target video corresponding to the switching instruction, a quality selection strategy is determined. This quality selection strategy characterizes the quality level of the video to be played in the video stream under different network conditions. Based on the quality selection strategy and the current network conditions, a target quality level is determined, and the video to be played in the video stream is played based on the target quality level. The video quality selection strategy determined by the switching instruction enables automatic selection of video quality to meet user needs, rather than relying solely on network speed as the sole influencing factor, thus satisfying users' personalized quality requirements and improving their viewing experience when watching videos in a video stream.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and storage medium for playing dynamic high-quality video. Background Technology

[0002] Feed streaming, also known as information streaming, is a technology that pushes information to users based on recommendations and personalized data. Feed-based video playback is widely used in short video and other video applications. In this scenario, different users have varying requirements for video playback quality due to different network conditions, device types, and user habits.

[0003] In existing technologies, the video quality settings for videos played in a feed stream are usually determined based on network conditions. For example, the video quality at different network speeds is determined by a "network speed-bitrate mapping model" that represents the relationship between network speed and video bitrate. However, since users have different needs for video quality, setting the video quality through a uniform "network speed-bitrate mapping model" cannot meet the personalized quality needs of users under different network conditions, thus affecting the user's video viewing experience. Summary of the Invention

[0004] This disclosure provides a method, apparatus, electronic device, and storage medium for playing dynamic high-quality video, overcoming the limitations of existing technologies in meeting users' personalized image quality needs under different network conditions.

[0005] In a first aspect, embodiments of this disclosure provide a method for playing dynamic quality video, including:

[0006] The system receives a switching instruction for a video information stream, the switching instruction being used to switch the target video being played in the video information stream; based on the switching instruction and the video information of the target video corresponding to the switching instruction, a quality selection strategy is determined, the quality selection strategy being used to characterize the quality level when playing the video to be played in the video information stream under different network conditions; based on the quality selection strategy and the current network conditions, a target quality level is determined, and the video to be played in the video information stream is played based on the target quality level.

[0007] Secondly, embodiments of this disclosure provide a dynamic image quality video playback device, including:

[0008] A receiving module is used to receive a switching instruction for a video information stream, the switching instruction being used to switch the target video being played in the video information stream;

[0009] The determining module is used to determine a picture quality selection strategy based on the switching instruction and the video information of the target video corresponding to the switching instruction. The picture quality selection strategy is used to characterize the picture quality level when playing the video to be played in the video information stream under different network conditions.

[0010] The playback module is used to determine the target image quality level based on the image quality selection strategy and the current network conditions, and to play the video to be played in the video information stream based on the target image quality level.

[0011] Thirdly, embodiments of this disclosure provide an electronic device, including:

[0012] A processor, and a memory communicatively connected to the processor;

[0013] The memory stores computer-executed instructions;

[0014] The processor executes computer execution instructions stored in the memory to implement the dynamic image quality video playback method described in the first aspect and various possible designs of the first aspect.

[0015] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the dynamic image quality video playback method described in the first aspect and various possible designs of the first aspect.

[0016] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the dynamic image quality video playback method described in the first aspect and various possible designs of the first aspect.

[0017] This embodiment provides a dynamic video quality playback method, apparatus, electronic device, and storage medium. The method receives a switching instruction for a video information stream, which is used to switch the target video being played in the video information stream. Based on the switching instruction and the video information of the target video corresponding to the switching instruction, a quality selection strategy is determined. This quality selection strategy characterizes the quality level when playing the video to be played in the video information stream under different network conditions. Based on the quality selection strategy and the current network conditions, a target quality level is determined, and the video to be played in the video information stream is played based on the target quality level. Since the user's switching instruction for the video information stream reflects the user's demand for video quality, the video quality selection strategy determined by the switching instruction can automatically select the video quality to meet the user's needs, rather than relying solely on network speed as the sole influencing factor. This satisfies the user's personalized quality needs under different network speed conditions and improves the user's viewing experience when watching videos in the video information stream. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 An application scenario diagram of the dynamic image quality video playback method provided in the embodiments of this disclosure;

[0020] Figure 2 A schematic diagram illustrating automatic image quality settings for a video application, provided as an embodiment of this disclosure;

[0021] Figure 3 Flowchart of the dynamic image quality video playback method provided in the embodiments of this disclosure Figure 1 ;

[0022] Figure 4 A schematic diagram illustrating a high-quality image strategy and a high-smoothness image strategy provided in an embodiment of this disclosure;

[0023] Figure 5 A schematic diagram illustrating a strategy for determining image quality selection based on the buffer duration of a target video, provided in an embodiment of this disclosure;

[0024] Figure 6 A schematic diagram illustrating another image quality selection strategy based on the buffer duration of the target video, provided in an embodiment of this disclosure;

[0025] Figure 7Flowchart of the dynamic image quality video playback method provided in the embodiments of this disclosure Figure 2 ;

[0026] Figure 8 This is a structural block diagram of the dynamic image quality video playback device provided in the embodiments of this disclosure;

[0027] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;

[0028] Figure 10 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0029] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0030] The application scenarios of the embodiments of this disclosure are explained below:

[0031] Figure 1 This diagram illustrates an application scenario of the dynamic quality video playback method provided in this embodiment. The dynamic quality video playback method provided in this embodiment can be applied to video playback scenarios based on video information streams. More specifically, for example... Figure 1 As shown, the execution subject of the method provided in this embodiment can be a terminal device, such as a smartphone. The terminal device runs a video application (APP) based on feed technology, playing videos as a video feed. When a user watches a target video in the video feed (shown as video a in the figure), they can switch between videos by swiping upwards on the terminal device's touchscreen (shown as swiping upwards in the figure), and then play the video following the target video in the video feed (shown as video b in the figure). Simultaneously, the terminal device communicates with a server. When the target video is played in the video application on the terminal device, the terminal device accesses the server to load the video data of the target video for playback, or preloads the videos to be played in the video feed. During this process, the videos loaded (or preloaded) by the terminal device correspond to multiple quality levels. The higher the quality, the higher the video resolution and frame rate (i.e., the higher the bitrate), and correspondingly, the more data traffic and bandwidth the terminal device consumes when loading the video from the server.

[0032] In one implementation of existing technology, the image quality settings for videos played in a video stream are usually determined based on network quality, that is, the video quality is determined by a "network speed-bitrate mapping model" that represents the mapping relationship between network quality and image quality level. Figure 2 This is a schematic diagram illustrating an embodiment of the present disclosure of automatically setting image quality for a video application, such as... Figure 2 As shown, when network conditions are good, video applications play videos at a higher resolution, for example... Figure 2 The video application displays the "Ultra HD" resolution; however, when network conditions are poor (as shown in the image, the terminal device's communication signal switches from 5G to 3G), the video application plays the video at a lower resolution, for example... Figure 2 The "standard definition" setting prioritizes smooth video playback and reduces stuttering, but may also cause a decrease in video resolution.

[0033] In another implementation in the existing technology, the video application is based on a video resolution that is fixed by the user. For example, the user manually sets the video resolution to the "overdue" level, so that the video is always played at the "overdue" resolution regardless of the network conditions, prioritizing the clarity of the video and improving the picture quality, but at the same time, it may cause video stuttering.

[0034] Therefore, the video viewing experience is actually determined by two factors: video bitrate (video resolution, video frame rate) and video smoothness. Different users place different levels of importance on these two factors. For example, some users prioritize video bitrate and are less sensitive to video stuttering; while others prioritize video smoothness, are sensitive to video stuttering, and are less sensitive to video bitrate. These represent at least two different image quality selection strategies used to determine video quality under different network conditions. Different users will choose different image quality selection strategies based on their individual needs.

[0035] For the reasons mentioned above, existing technologies that determine video quality solely based on network conditions cannot implement the different quality selection strategies mentioned above. They can only determine a fixed video quality through a single strategy, such as the "network speed-bitrate mapping relationship," which cannot satisfy users' different quality selection preferences under a given network speed condition, thus affecting the user's video viewing experience.

[0036] Therefore, there is an urgent need for a solution that can automatically predict a user's image quality selection strategy (image quality preference) and play videos in the video stream based on this strategy, in order to meet the personalized image quality needs of different users under different network conditions. To address this, this disclosure provides a dynamic image quality video playback method to solve the above-mentioned problems.

[0037] Figure 3 Flowchart of the dynamic image quality video playback method provided in the embodiments of this disclosure Figure 1 ,refer to Figure 3 As shown, the method of this embodiment can be applied in a terminal device. This dynamic image quality video playback method includes:

[0038] Step S101: Receive a switching instruction for the video information stream. The switching instruction is used to switch the target video being played in the video information stream.

[0039] For example, the video information stream is generated based on recommendation information and represents a set of videos that the terminal device is currently playing and videos that are to be played. The video information stream is represented by multiple videos that can be played continuously on the terminal device side. The video currently being played by the terminal device is the target video in the video information stream, and the videos played after the target video are the videos to be played in the video information stream.

[0040] Furthermore, the terminal device has a touchscreen. During the playback of a video stream via the touchscreen, when a user performs a switching operation through the touchscreen, the terminal device receives the corresponding switching instruction and responds, thereby switching to the currently playing video, i.e., the target video, to play the next (or previous) video in the video stream. For example, a user's switching operation via the touchscreen may include swiping up or down on the touchscreen, or clicking the "Next" virtual button on the touchscreen.

[0041] Step S102: Based on the switching instruction and the video information of the target video corresponding to the switching instruction, determine the image quality selection strategy. The image quality selection strategy is used to characterize the image quality level when playing the video to be played in the video information stream under different network conditions.

[0042] For example, after obtaining the switching instruction corresponding to the switching operation, the switching instruction is used to instruct the terminal device to switch the target video currently being played on the terminal device. Based on the switching instruction and the video information of the target video, a picture quality selection strategy representing the user's picture quality preference can be determined. The video information of the target video refers to information representing the playback status of the target video. More specifically, for example, the duration of video buffering during playback, the playback duration of the target video before triggering the switching instruction, etc. While watching the video, the user will perform a switching operation according to the playback status of the target video, such as whether video buffering (i.e., stuttering) occurs. For users sensitive to stuttering, they will quickly switch videos when stuttering occurs; conversely, for users not sensitive to stuttering, they will not quickly switch videos. Therefore, based on the video information of the target video, the stuttering status of the video can be determined, thereby determining the current network conditions. Based on the user's response, i.e., the switching instruction, the preferred picture quality level of the user under the current network conditions can be determined, i.e., the picture quality selection strategy. Specifically, for example, when the network conditions are normal, choose the high quality setting, and when the network conditions are poor, choose the low quality setting; or, when the network conditions are normal, choose the high quality setting, and when the network conditions are normal again, still choose the high quality setting; or, when the network conditions are normal, directly choose the low quality setting, etc.

[0043] In one possible implementation, the image quality selection strategy includes a high-quality strategy or a high-smoothness strategy. The high-quality strategy instructs the terminal device to play the video in the video stream at a first quality level under a first network condition. The high-smoothness strategy instructs the terminal device to play the video in the video stream at a second quality level under the same network condition. The bitrate corresponding to the first quality level is greater than the bitrate corresponding to the second quality level. Specifically, the first network condition includes one or more download speeds, and the terminal device is in the first network condition, i.e., at one or more download speeds. The high-quality strategy can be a mapping curve representing the "download speed - quality level" relationship; while the high-smoothness strategy can be another mapping curve representing the "download speed - quality level" relationship. Under different network conditions, the high-quality strategy and the high-smoothness strategy correspond to different quality levels. Figure 4 This is a schematic diagram illustrating a high-quality image strategy and a high-smoothness image strategy provided in an embodiment of this disclosure, such as... Figure 4As shown, for example, at download speeds of 100kbps, 500kbps, and 1000kbps, the high-quality strategy corresponds to quality levels of "B", "C", and "C", respectively, while the high-smoothness strategy corresponds to quality levels of "A", "A", and "A". For example, "C" can correspond to "Ultra-HD", "B" to "HD", and "A" to "Standard Definition".

[0044] It is evident that, compared to the second quality level, the first quality level corresponds to high-bitrate video, while the second quality level corresponds to low-bitrate video. Based on the switching command and the video information of the target video corresponding to the switching command, the quality selection strategy of the user executing the switching operation can be predicted. This quality selection strategy, determined by the user's operation behavior, matches the user's quality preferences. Therefore, loading and playing the video to be played in the video stream based on this quality selection strategy can meet the user's quality requirements.

[0045] The implementation of step S102 is described below using a specific embodiment:

[0046] For example, the video information includes buffer duration, which characterizes the duration of video buffering during playback of the target video. Determining the image quality selection strategy includes:

[0047] Get the first playback duration of the target video before the switching command is triggered; if the buffer duration of the target video is greater than the buffer duration threshold, and the first playback duration is less than the playback duration threshold, the image quality selection strategy is the high smoothness strategy; if the first playback duration is greater than the playback duration threshold, the image quality selection strategy is the high image quality strategy.

[0048] When the buffering duration of the target video exceeds the buffering duration threshold, it indicates that there is an issue of excessive buffering time (i.e., stuttering) during the playback of the target video. In this case, if the first playback duration is less than the playback duration threshold, it means that the user switched to the target video within a short period after the stuttering occurred, indicating that the user is sensitive to stuttering. Therefore, the predicted image quality selection strategy is a high-smoothness strategy. Conversely, if the first playback duration exceeds the playback duration threshold, it means that the user switched to the target video after a longer period after the stuttering occurred, or did not switch to the target video at all, indicating that the user is not sensitive to stuttering. Therefore, the predicted image quality selection strategy is a high-quality strategy.

[0049] Furthermore, in one possible implementation, the video information also includes resolution and / or frame rate.

[0050] When the buffering time of the target video is less than the buffering time threshold, the resolution and / or frame rate of the target video are obtained. If the resolution of the target video is greater than the preset resolution threshold and / or the frame rate of the target video is greater than the preset frame rate threshold, the image quality selection strategy is a high image quality strategy; if the resolution of the target video is less than the preset resolution threshold and / or the frame rate of the target video is less than the preset frame rate threshold, the image quality selection strategy is a high smoothness strategy.

[0051] For example, resolution is a parameter that characterizes the clarity of a video; the higher the resolution, the clearer the video. Frame rate, on the other hand, is a parameter that characterizes the smoothness of a video; the higher the frame rate, the more video frames are composed per unit of time, and therefore, the smoother the video. At the same time, higher video resolution and frame rate mean a higher video bitrate, which means more bandwidth and data are consumed when loading the video.

[0052] If the buffering time of the target video is less than the buffering time threshold, it means that the target video has not experienced significant stuttering. If the resolution of the target video is greater than the preset resolution threshold, and / or the frame rate of the target video is greater than the preset frame rate threshold, it means that the user has set the resolution and / or frame rate of the video playback to a higher level through preset parameters. In other words, it means that the user prefers to play the video in a high-quality, high-bitrate manner. In this case, the quality selection strategy is the high-quality strategy.

[0053] In this embodiment, when the buffering time of the target video is less than the buffering time threshold, the image quality selection strategy is predicted by obtaining parameters such as the resolution and frame rate of the target video, which further improves the accuracy of judging the user's image quality preference and increases the coverage of application scenarios.

[0054] In one possible implementation, under a network condition corresponding to the high-quality strategy, the first quality level includes at least two sub-quality levels. That is, under a given network condition, the high-quality strategy corresponds to two or more sub-quality levels, such as "Ultra-HD" and "High-Definition." In another possible implementation, when determining the target quality level based on the quality selection strategy and the current network conditions, one of the multiple sub-quality levels is randomly selected. In another possible implementation, the target sub-quality level is determined based on the resolution and / or frame rate of the target video. For example, the quality adjustment levels include four types: "Blu-ray," "Ultra-HD," "High-Definition," and "Standard Definition." "Blu-ray," "Ultra-HD," and "High-Definition" are three sub-quality levels in the first quality level. The resolution of the target video is obtained, and based on that resolution, the level closest to it, such as "Ultra-HD," is selected as the target sub-quality level in the first quality level. In subsequent steps, this target sub-quality level is used as the target quality level to load and play the video to be played in the video stream.

[0055] In this embodiment, by obtaining the resolution and / or frame rate of the target video, a target sub-level that matches the target video is determined from the first quality level which includes multiple sub-levels, thereby further improving the accuracy of the quality level judgment, improving the matching degree with the user's quality preferences, and improving the user's viewing experience.

[0056] The buffer duration threshold, playback duration threshold, resolution threshold, and frame rate threshold can be set according to specific needs, and no specific limitations are set here.

[0057] Figure 5 This is a schematic diagram illustrating a strategy for determining image quality selection based on the buffer duration of a target video, as provided in an embodiment of this disclosure. Figure 5 As shown, the target video plays along the playback direction. After the terminal device receives a switching instruction for the target video, it obtains the total buffering time of the target video. Specifically, before receiving the switching instruction, the target video is buffered three times, corresponding to the three sub-buffers A1, A2, and A3 respectively. The total buffering time is the sum of the durations corresponding to A1, A2, and A3. The total buffering time is compared with a buffering time threshold to determine whether the target video is stuttering. Specifically, if the total buffering time is greater than the buffering time threshold, the target video is determined to be stuttering; if the total buffering time is less than or equal to the buffering time threshold, the target video is determined to be non-stuttering. Then, for both stuttering and non-stuttering cases, a corresponding image quality selection strategy is determined based on the first playback duration of the target video and the resolution of the target video.

[0058] In this embodiment, based on the total buffering time of the target video, the overall stuttering situation of the target video is determined. Based on this, and based on the user's reaction to the overall stuttering situation (switching command), the video quality selection strategy is determined. This realizes the prediction of the user's quality preference, avoiding the problem of increased operation steps caused by the user's manual settings, which affects the user's video viewing experience.

[0059] In another possible implementation, the terminal device can also determine the video quality selection strategy based on the user's reaction (switching command) when the target video experiences a stutter. Figure 6 A schematic diagram illustrating another image quality selection strategy based on the buffer duration of the target video provided in this disclosure embodiment, as shown below. Figure 6As shown, after the terminal device receives a switching instruction for the target video, it acquires the start time, end time (if any), and trigger time of the video buffer (C in the figure) during the target video playback process. There are two possibilities: if the trigger time occurs after the end time, then an end time exists; if the trigger time occurs before the end time, then an end time does not exist. Furthermore, if the interval between the start time and the trigger time (interval a in the figure) is less than a first duration threshold, the image quality selection strategy is a high-smoothness strategy; if the interval between the start time and the end time (interval b in the figure) is greater than a second duration threshold, the image quality selection strategy is a high-quality strategy.

[0060] In this embodiment, if the interval between the start time and the trigger time is less than a first duration threshold, it indicates that the user switched videos quickly when buffering occurred, suggesting the user is sensitive to buffering. Therefore, the image quality selection strategy is set to a high-smoothness strategy. The high-smoothness strategy corresponds to a lower image quality level under different network conditions, thus effectively improving video smoothness. If the interval between the start time and the end time is greater than a second duration threshold, it indicates that the user waited for the entire video buffering process, and this process was relatively long. It suggests the user is not sensitive to buffering and prefers high-quality videos. Therefore, the image quality selection strategy is set to a high-quality strategy. The high-quality strategy corresponds to a higher image quality level under different network conditions, thus effectively improving video quality and clarity. By determining the user's image quality selection strategy based on their reaction to video buffering, the accuracy of predicting user preferences can be further improved, enhancing the user's viewing experience.

[0061] It should be noted that, Figure 5 and Figure 6 The corresponding methods for determining the image quality selection strategy can be used individually or in combination. When used in combination, the priority of the two methods can be determined based on the preset configuration or network conditions, which will not be elaborated here.

[0062] Step S103: Determine the target image quality level based on the image quality selection strategy and the current network conditions, and play the video to be played in the video information stream based on the target image quality level.

[0063] For example, after determining the image quality selection strategy, the applicable image quality level under different network conditions is determined. For instance, the corresponding image quality levels for download speeds below 100kbps, 100kbps-500kbps, and 500kbps-2 Mbps are "Standard Definition," "High Definition," and "Ultra-High Definition," respectively. Then, the terminal device tests the current network download speed and, based on the image quality selection strategy, determines the corresponding template image quality level. For example, if the current download speed is 300kbps, the target image quality level can be determined as "High Definition" based on the aforementioned image quality selection strategy. Furthermore, based on this target image quality level, the video to be played in the subsequent video stream is preloaded and played, ensuring that the image quality of the video to be played matches the user's desired image quality preferences, thereby achieving the user's ideal viewing experience. The matching of the corresponding data file on the server side according to the image quality level, as well as the data loading and playback process, are existing technologies known to those skilled in the art and will not be elaborated here.

[0064] In this embodiment, a switching instruction for the video stream is received, which is used to switch the target video being played in the video stream. Based on the switching instruction and the video information of the target video corresponding to the switching instruction, a quality selection strategy is determined. This quality selection strategy characterizes the quality level of the video to be played in the video stream under different network conditions. Based on the quality selection strategy and the current network conditions, a target quality level is determined, and the video to be played in the video stream is played based on the target quality level. Since the user's switching instruction for the video stream reflects the user's demand for video quality, the video quality selection strategy determined by the switching instruction can automatically select the video quality that meets the user's needs, rather than relying solely on network speed as the sole influencing factor. This satisfies the user's personalized quality needs under different network speed conditions and improves the user's viewing experience when watching videos in the video stream.

[0065] Figure 7 Flowchart of the dynamic image quality video playback method provided in the embodiments of this disclosure Figure 2 In this embodiment, Figure 3 Based on the illustrated embodiment, an additional step is added to determine the image quality selection strategy based on the video content information of the target video. The video information includes video content information and buffering duration. The video content information characterizes the video category, and the buffering duration characterizes the duration of video buffering during playback. The image quality selection strategy includes at least two content sub-strategies, which characterize the image quality level of the video corresponding to the video category under different network conditions. This dynamic image quality video playback method includes:

[0066] Step S201: Receive a switching instruction for the video information stream. The switching instruction is used to switch the target video being played in the video information stream.

[0067] Step S202: Determine the target video category based on the video content information of the target video.

[0068] For example, video content information is information that characterizes the category of the target video's content, such as "instructional video," "funny video," or "news video." Video content information may include video category identifiers; different video category identifiers correspond to different video categories. When a terminal device receives a switching instruction for a video information stream, it obtains the video content information of the target video pre-stored locally or on a server, thereby determining the target category corresponding to the target video.

[0069] Step S203: Determine the content sub-strategy corresponding to the target video category based on the first playback duration and buffering duration of the target video.

[0070] Different users have different preferences for video quality across different video types. Specifically, for videos that emphasize expressiveness, such as "movie clips" and "creative videos," users tend to prefer high-definition viewing. Conversely, for content-focused videos, such as "news videos" and "funny videos," users prioritize smoothness and are less sensitive to clarity. This preference for different video types is personalized, meaning it varies among users. Therefore, determining corresponding content sub-strategies for different video types can further improve the matching degree of user preferences.

[0071] Specifically, the first playback duration of the target video refers to the playback duration of the target video before the switching command is triggered, which is also the duration the user watches the target video. The first playback duration reflects the user's preference for video stuttering. If the buffering time of the target video is longer than the preset duration, a longer first playback duration indicates that the user is not sensitive to stuttering of this type of video; conversely, a shorter first playback duration indicates that the user is sensitive to stuttering of this type of video.

[0072] Therefore, based on the first playback duration and buffer duration of the target video, the implementation method of the content sub-strategy corresponding to the target video category is determined. For example, if the buffer duration of the target video is greater than the buffer duration threshold, and the first playback duration is less than the playback duration threshold, then the content sub-strategy corresponding to the target video category is determined to be a high-smoothness strategy; if the first playback duration is greater than the playback duration threshold, then the content sub-strategy corresponding to the target video category is determined to be a high-quality strategy.

[0073] Furthermore, exemplarily, the target video may include multiple videos, each corresponding to a video content information. Correspondingly, the switching instructions also include multiple instructions, each corresponding one-to-one with each target video. Specifically, the user performs multiple switching operations via the touchscreen of the terminal device to switch the currently playing target video in the video stream. The terminal device, based on the target video corresponding to each switching operation, obtains the video content information of each target video, namely the first playback duration and buffering duration. Using the first playback duration and buffering duration, it determines the content sub-strategy corresponding to the target video category of each target video, thereby generating a picture quality selection strategy.

[0074] Step S204: Obtain the video to be played from the video information stream and determine the video category to be played.

[0075] Step S205: Determine the target content sub-strategy in the image quality selection strategy according to the category of the video to be played.

[0076] Step S206: Determine the target image quality level based on the target content sub-policy and the current network conditions, and play the video to be played in the video information stream based on the target image quality level.

[0077] Furthermore, after determining the image quality selection strategy, which includes multiple content sub-strategies, the system acquires the video to be played from the video stream and determines its category. Based on the video category, the corresponding content sub-strategy, i.e., the target content sub-strategy, is selected. Then, based on the mapping relationship between the network conditions represented by the target content sub-strategy and the target image quality level, the target image quality level matched under the current network conditions is determined, and subsequent video playback is performed using this target image quality level. This achieves dynamic image quality settings for specific video types, specific image quality selection strategies, and specific network conditions, improving the matching degree between video image quality and user image quality preferences.

[0078] The dynamic image quality video playback method provided in this embodiment is... Figure 3 The technical solution implemented based on the illustrated embodiment, that is, in Figure 3 Based on the illustrated embodiment, a video category dimension is added to determine the image quality selection strategy. Therefore, in the step of determining the image quality selection strategy in this embodiment, after determining the video type of the target video, the implementation method and technical effects of determining the image quality selection strategy based on the target video of a specific video type are similar to those described above. Figure 3 The steps for determining the image quality selection strategy in the illustrated embodiment are similar and can be referred to. Figure 3 The descriptions in the illustrated embodiments will not be repeated here.

[0079] In this embodiment, by repeatedly acquiring switching commands and the video information of the target video corresponding to the switching commands, a quality selection strategy is constructed to characterize the quality level when playing videos of different video categories under different network conditions. This allows for processing based on different quality selection strategies when playing videos of different video categories, achieving dynamic quality settings for different types of videos. Since the dynamic quality settings for different types of videos are determined by user operations, they can match the user's quality preferences, thus further improving the matching degree between video quality and user quality preferences and enhancing the user's viewing experience.

[0080] In this embodiment, the implementation of step S201 is the same as that in this disclosure. Figure 3 The implementation of step S101 in the illustrated embodiment is the same, and will not be described in detail here.

[0081] Corresponding to the dynamic video playback method in the above embodiments, Figure 8 This is a structural block diagram of a dynamic video playback device provided in an embodiment of this disclosure. For ease of explanation, only the parts relevant to the embodiments of this disclosure are shown. (Refer to...) Figure 8 The dynamic video playback device 3 includes:

[0082] The receiving module 31 is used to receive a switching instruction for the video information stream, which is used to switch the target video being played in the video information stream.

[0083] The determination module 32 is used to determine the image quality selection strategy based on the switching instruction and the video information of the target video corresponding to the switching instruction. The image quality selection strategy is used to characterize the image quality level when playing the video to be played in the video information stream under different network conditions.

[0084] The playback module 33 is used to determine the target image quality level based on the image quality selection strategy and the current network conditions, and to play the video to be played in the video information stream based on the target image quality level.

[0085] In one embodiment of this disclosure, the image quality selection strategy includes a high image quality strategy or a high smoothness strategy. The high image quality strategy is used to instruct the terminal device to play the video to be played in the video information stream at a first image quality level under the first network conditions. The high smoothness strategy is used to instruct the terminal device to play the video to be played in the video information stream at a second image quality level under the first network conditions. The bitrate corresponding to the first image quality level is greater than the bitrate corresponding to the second image quality level.

[0086] In one embodiment of this disclosure, the video information includes buffer duration, which is used to characterize the duration of video buffering during playback of the target video; the determining module 32 is specifically used to: obtain the first playback duration of the target video before the switching instruction is triggered; when the buffer duration of the target video is greater than the buffer duration threshold, if the first playback duration is less than the playback duration threshold, the image quality selection strategy is a high smoothness strategy, and if the first playback duration is greater than the playback duration threshold, the image quality selection strategy is a high image quality strategy.

[0087] In one embodiment of this disclosure, the video information further includes resolution and / or frame rate. The determining module 32 is further configured to: obtain the resolution and / or frame rate of the target video when the buffer duration of the target video is less than the buffer duration threshold; and if the resolution of the target video is greater than a preset resolution threshold and / or the frame rate of the target video is greater than a preset frame rate threshold, then the image quality selection strategy is a high image quality strategy.

[0088] In one embodiment of this disclosure, the first image quality level includes at least two sub-image quality levels; when the playback module 33 determines the target image quality level based on the image quality selection strategy and the current network conditions, it is specifically used to: if the image quality selection strategy is a high image quality strategy, then determine at least two sub-image quality levels based on the current network conditions; and determine the target sub-image quality level based on the resolution and / or frame rate of the target video, and the at least two sub-image quality levels.

[0089] In one embodiment of this disclosure, when determining the image quality selection strategy based on the switching instruction and the video information of the target video corresponding to the switching instruction, the determining module 32 is specifically used to: obtain the start time of video buffering of the target video during the playback of the target video; obtain the trigger time when the switching instruction is triggered; if the interval between the start time and the trigger time is less than a first duration threshold, then the image quality selection strategy is a high smoothness strategy.

[0090] In one embodiment of this disclosure, the determining module 32 is further configured to: obtain the end time of video buffering of the target video during the playback of the target video; if the interval between the start time and the end time is greater than the second duration threshold, then the image quality selection strategy is a high image quality strategy.

[0091] In one embodiment of this disclosure, the video information includes video content information and buffering duration. The video content information is used to characterize the video category of the video, and the buffering duration is used to characterize the duration of video buffering during playback of the target video. The image quality selection strategy includes at least two content sub-strategies, which are used to characterize the image quality level of the video to be played when playing the video corresponding to the video category under different network conditions. The determination module 32 is specifically used to: determine the target video category of the target video based on the video content information of the target video; and determine the content sub-strategy corresponding to the target video category based on the first playback duration and buffering duration of the target video.

[0092] In one embodiment of this disclosure, when the playback module 33 determines the target image quality level based on the image quality selection strategy and the current network conditions, it is specifically used to: obtain the video to be played in the video information stream and determine the video category to be played; determine the target content sub-strategy in the image quality selection strategy based on the video category to be played; and determine the target image quality level based on the target content sub-strategy and the current network conditions.

[0093] The receiving module 31, the determining module 32, and the playback module 33 are connected sequentially. The dynamic image quality video playback device 3 provided in this embodiment can execute the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0094] The apparatus provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effects are similar, and will not be described again here.

[0095] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, such as... Figure 9 As shown, the electronic device 4 includes:

[0096] Processor 41, and memory 42 communicatively connected to processor 41;

[0097] Memory 42 stores instructions executed by the computer;

[0098] The processor 41 executes computer execution instructions stored in the memory 42 to achieve, for example, Figures 3-7 The method for playing dynamic quality video in the illustrated embodiment.

[0099] Optionally, the processor 41 and the memory 42 are connected via a bus 43.

[0100] For relevant instructions, please refer to the corresponding text. Figures 3-7 The relevant descriptions and effects of the steps in the corresponding embodiments are understood, and will not be elaborated on here.

[0101] refer to Figure 10 The diagram illustrates a structural schematic of an electronic device 900 suitable for implementing embodiments of the present disclosure. The electronic device 900 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 10 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0102] like Figure 10 As shown, the electronic device 900 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. The RAM 903 also stores various programs and data required for the operation of the electronic device 900. The processing unit 901, ROM 902, and RAM 903 are interconnected via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0103] Typically, the following devices can be connected to I / O interface 905: input devices 906 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 907 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 908 including, for example, magnetic tapes, hard disks, etc.; and communication devices 909. Communication device 909 allows electronic device 900 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 10 An electronic device 900 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0104] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by a processing device 901, it performs the functions defined in the methods of embodiments of this disclosure.

[0105] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0106] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0107] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.

[0108] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0109] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0110] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0111] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.

[0112] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0113] In a first aspect, according to one or more embodiments of this disclosure, a method for playing dynamic quality video is provided, comprising:

[0114] The system receives a switching instruction for a video information stream, the switching instruction being used to switch the target video being played in the video information stream; based on the switching instruction and the video information of the target video corresponding to the switching instruction, a quality selection strategy is determined, the quality selection strategy being used to characterize the quality level when playing the video to be played in the video information stream under different network conditions; based on the quality selection strategy and the current network conditions, a target quality level is determined, and the video to be played in the video information stream is played based on the target quality level.

[0115] According to one or more embodiments of this disclosure, the image quality selection strategy includes a high image quality strategy or a high smoothness strategy. The high image quality strategy is used to instruct the terminal device to play the video to be played in the video information stream at a first image quality level under a first network condition. The high smoothness strategy is used to instruct the terminal device to play the video to be played in the video information stream at a second image quality level under the first network condition. The bitrate corresponding to the first image quality level is greater than the bitrate corresponding to the second image quality level.

[0116] According to one or more embodiments of this disclosure, the video information includes a buffer duration, which characterizes the duration of video buffering during playback of the target video; determining a picture quality selection strategy based on the switching instruction and the video information of the target video corresponding to the switching instruction includes: obtaining a first playback duration of the target video before the switching instruction is triggered; when the buffer duration of the target video is greater than a buffer duration threshold, if the first playback duration is less than the playback duration threshold, the picture quality selection strategy is a high smoothness strategy, and if the first playback duration is greater than the playback duration threshold, the picture quality selection strategy is a high picture quality strategy.

[0117] According to one or more embodiments of this disclosure, the video information further includes resolution and / or frame rate, and the method further includes: when the buffer duration of the target video is less than a buffer duration threshold, obtaining the resolution and / or frame rate of the target video; if the resolution of the target video is greater than a preset resolution threshold, and / or the frame rate of the target video is greater than a preset frame rate threshold, then the image quality selection strategy is a high image quality strategy.

[0118] According to one or more embodiments of this disclosure, the first image quality level includes at least two sub-image quality levels; determining the target image quality level according to the image quality selection strategy and the current network conditions includes: if the image quality selection strategy is a high image quality strategy, then determining at least two sub-image quality levels according to the current network conditions; determining the target sub-image quality level according to the resolution and / or frame rate of the target video, and the at least two sub-image quality levels.

[0119] According to one or more embodiments of this disclosure, a picture quality selection strategy is determined based on the switching instruction and the video information of the target video corresponding to the switching instruction, including: obtaining the start time of video buffering of the target video during playback; obtaining the trigger time when the switching instruction is triggered; if the interval between the start time and the trigger time is less than a first duration threshold, then the picture quality selection strategy is a high smoothness strategy.

[0120] According to one or more embodiments of this disclosure, the method further includes: obtaining the end time of video buffering of the target video during playback; if the interval between the start time and the end time is greater than a second duration threshold, then the image quality selection strategy is a high image quality strategy.

[0121] According to one or more embodiments of this disclosure, the video information includes video content information and buffering duration, wherein the video content information is used to characterize the video category of the video, and the buffering duration is used to characterize the duration of video buffering during playback of the target video; the image quality selection strategy includes at least two content sub-strategies, wherein the content sub-strategies are used to characterize the image quality level when playing the video to be played corresponding to the video category under different network conditions; determining the image quality selection strategy according to the switching instruction and the video information of the target video corresponding to the switching instruction includes: determining the target video category of the target video according to the video content information of the target video; and determining the content sub-strategy corresponding to the target video category according to the first playback duration of the target video and the buffering duration.

[0122] According to one or more embodiments of this disclosure, determining a target image quality level based on the image quality selection strategy and current network conditions includes: acquiring a video to be played in the video information stream and determining the video category to be played; determining a target content sub-strategy corresponding to the image quality selection strategy based on the video category to be played; and determining the target image quality level based on the target content sub-strategy and current network conditions.

[0123] Secondly, according to one or more embodiments of this disclosure, a dynamic image quality video playback device is provided, comprising:

[0124] A receiving module is used to receive a switching instruction for a video information stream, the switching instruction being used to switch the target video being played in the video information stream;

[0125] The determining module is used to determine a picture quality selection strategy based on the switching instruction and the video information of the target video corresponding to the switching instruction. The picture quality selection strategy is used to characterize the picture quality level when playing the video to be played in the video information stream under different network conditions.

[0126] The playback module is used to determine the target image quality level based on the image quality selection strategy and the current network conditions, and to play the video to be played in the video information stream based on the target image quality level.

[0127] According to one or more embodiments of this disclosure, the image quality selection strategy includes a high image quality strategy or a high smoothness strategy. The high image quality strategy is used to instruct the terminal device to play the video to be played in the video information stream at a first image quality level under a first network condition. The high smoothness strategy is used to instruct the terminal device to play the video to be played in the video information stream at a second image quality level under the first network condition. The bitrate corresponding to the first image quality level is greater than the bitrate corresponding to the second image quality level.

[0128] According to one or more embodiments of this disclosure, the video information includes a buffer duration, which is used to characterize the duration of video buffering during playback of the target video; the determining module is specifically used to: obtain a first playback duration of the target video before the switching instruction is triggered; when the buffer duration of the target video is greater than a buffer duration threshold, if the first playback duration is less than the playback duration threshold, the image quality selection strategy is a high smoothness strategy, and if the first playback duration is greater than the playback duration threshold, the image quality selection strategy is a high image quality strategy.

[0129] According to one or more embodiments of this disclosure, the video information further includes resolution and / or frame rate, and the determining module is further configured to: obtain the resolution and / or frame rate of the target video when the buffer duration of the target video is less than a buffer duration threshold; if the resolution of the target video is greater than a preset resolution threshold, and / or the frame rate of the target video is greater than a preset frame rate threshold, then the image quality selection strategy is a high image quality strategy.

[0130] According to one or more embodiments of this disclosure, the first image quality level includes at least two sub-image quality levels; when the playback module determines the target image quality level based on the image quality selection strategy and the current network conditions, it is specifically configured to: if the image quality selection strategy is a high image quality strategy, then determine at least two sub-image quality levels based on the current network conditions; and determine the target sub-image quality level based on the resolution and / or frame rate of the target video, and the at least two sub-image quality levels.

[0131] According to one or more embodiments of this disclosure, when the determining module determines the image quality selection strategy based on the switching instruction and the video information of the target video corresponding to the switching instruction, it is specifically used to: obtain the start time of video buffering of the target video during the playback of the target video; obtain the trigger time when the switching instruction is triggered; if the interval between the start time and the trigger time is less than a first duration threshold, then the image quality selection strategy is a high smoothness strategy.

[0132] According to one or more embodiments of this disclosure, the determining module is further configured to: obtain the end time of video buffering of the target video during playback; if the interval between the start time and the end time is greater than a second duration threshold, then the image quality selection strategy is a high-quality strategy.

[0133] According to one or more embodiments of this disclosure, the video information includes video content information and buffering duration, wherein the video content information is used to characterize the video category of the video, and the buffering duration is used to characterize the duration of video buffering during playback of the target video; the image quality selection strategy includes at least two content sub-strategies, wherein the content sub-strategies are used to characterize the image quality level when playing the video to be played corresponding to the video category under different network conditions; the determining module is specifically used to: determine the target video category of the target video based on the video content information of the target video; and determine the content sub-strategy corresponding to the target video category based on the first playback duration of the target video and the buffering duration.

[0134] According to one or more embodiments of this disclosure, when the playback module determines the target image quality level based on the image quality selection strategy and the current network conditions, it is specifically configured to: acquire the video to be played in the video information stream and determine the video category to be played; determine the target content sub-strategy corresponding to the image quality selection strategy based on the video category to be played; and determine the target image quality level based on the target content sub-strategy and the current network conditions.

[0135] Thirdly, according to one or more embodiments of the present disclosure, an electronic device is provided, including: a processor, and a memory communicatively connected to the processor;

[0136] The memory stores computer-executed instructions;

[0137] The processor executes computer execution instructions stored in the memory to implement the dynamic image quality video playback method described in the first aspect and various possible designs of the first aspect.

[0138] Fourthly, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein computer-executable instructions are stored therein, and when a processor executes the computer-executable instructions, the dynamic image quality video playback method described in the first aspect and various possible designs of the first aspect is implemented.

[0139] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the dynamic image quality video playback method described in the first aspect and various possible designs of the first aspect.

[0140] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0141] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0142] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A method for playing dynamic quality video, characterized in that, include: Receive a switching instruction for a video information stream, the switching instruction being used to switch the target video being played in the video information stream; Based on the switching instruction and the video information of the target video corresponding to the switching instruction, a picture quality selection strategy is determined. The picture quality selection strategy is used to characterize the picture quality level when playing the video to be played in the video information stream under different network conditions. Based on the image quality selection strategy and the current network conditions, determine the target image quality level, and play the video to be played in the video information stream based on the target image quality level; The video information includes buffer duration, which is used to characterize the duration of video buffering during the playback of the target video; The image quality selection strategy includes a high image quality strategy or a high smoothness strategy. Based on the switching instruction and the video information of the target video corresponding to the switching instruction, the image quality selection strategy is determined, including: Obtain the first playback duration of the target video before the switching instruction is triggered; When the buffer duration of the target video is greater than the buffer duration threshold, if the first playback duration is less than the playback duration threshold, the image quality selection strategy is a high smoothness strategy; if the first playback duration is greater than the playback duration threshold, the image quality selection strategy is a high image quality strategy.

2. The method according to claim 1, characterized in that, The high-quality strategy is used to instruct the terminal device to play the video to be played in the video information stream at a first quality level under the first network condition, and the high-smoothness strategy is used to instruct the terminal device to play the video to be played in the video information stream at a second quality level under the first network condition, wherein the bitrate corresponding to the first quality level is greater than the bitrate corresponding to the second quality level.

3. The method according to claim 1, characterized in that, The video information also includes resolution and / or frame rate, and the method further includes: When the buffer duration of the target video is less than the buffer duration threshold, the resolution and / or frame rate of the target video are obtained. If the resolution of the target video is greater than a preset resolution threshold, and / or the frame rate of the target video is greater than a preset frame rate threshold, then the image quality selection strategy is a high-quality strategy.

4. The method according to claim 2, characterized in that, The first image quality level includes at least two sub-image quality levels; determining the target image quality level based on the image quality selection strategy and current network conditions includes: If the image quality selection strategy is a high image quality strategy, then at least two sub-image quality levels are determined based on the current network conditions. The target sub-quality level is determined based on the resolution and / or frame rate of the target video, and the at least two sub-quality levels.

5. The method according to claim 1, characterized in that, Based on the switching instruction and the video information of the target video corresponding to the switching instruction, a picture quality selection strategy is determined, including: Obtain the start time of video buffering of the target video during playback; Obtain the trigger time when the switching instruction is triggered; If the interval between the start time and the trigger time is less than the first duration threshold, then the image quality selection strategy is a high smoothness strategy.

6. The method according to claim 5, characterized in that, The method further includes: Obtain the end time of video buffering of the target video during playback; If the interval between the start time and the end time is greater than the second duration threshold, then the image quality selection strategy is a high image quality strategy.

7. The method according to claim 1, characterized in that, The video information includes video content information and buffering duration. The video content information is used to characterize the video category of the video, and the buffering duration is used to characterize the duration of video buffering during the playback of the target video. The image quality selection strategy includes at least two content sub-strategies, which are used to characterize the image quality level when playing the video to be played corresponding to the video category under different network conditions. Based on the switching instruction and the video information of the target video corresponding to the switching instruction, a picture quality selection strategy is determined, including: Based on the video content information of the target video, determine the target video category; Based on the first playback duration of the target video and the buffering duration, determine the content sub-strategy corresponding to the target video category.

8. The method according to claim 7, characterized in that, Based on the image quality selection strategy and current network conditions, determine the target image quality level, including: Obtain the video to be played from the video information stream and determine the video category to be played; Based on the category of the video to be played, determine the corresponding target content sub-strategy in the image quality selection strategy; The target image quality level is determined based on the target content sub-policy and the current network conditions.

9. A dynamic image quality video playback device, characterized in that, include: A receiving module is used to receive a switching instruction for a video information stream, the switching instruction being used to switch the target video being played in the video information stream; The determining module is used to determine a picture quality selection strategy based on the switching instruction and the video information of the target video corresponding to the switching instruction. The picture quality selection strategy is used to characterize the picture quality level when playing the video to be played in the video information stream under different network conditions. The playback module is used to determine the target image quality level based on the image quality selection strategy and the current network conditions, and to play the video to be played in the video information stream based on the target image quality level. The video information includes buffer duration, which is used to characterize the duration of video buffering during playback of the target video; the image quality selection strategy includes a high image quality strategy or a high smoothness strategy. The determining module is specifically used to: obtain the first playback duration of the target video before the switching instruction is triggered; when the buffer duration of the target video is greater than the buffer duration threshold, if the first playback duration is less than the playback duration threshold, the image quality selection strategy is a high smoothness strategy, and if the first playback duration is greater than the playback duration threshold, the image quality selection strategy is a high image quality strategy.

10. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by the processor, implement the dynamic image quality video playback method as described in any one of claims 1 to 8.

12. A computer program product comprising a computer program that, when executed by a processor, implements the dynamic image quality video playback method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Video definition selection method and device based on network anomaly prediction

    CN112954464A