Video playback method, device, electronic device and storage medium
The conflict between transmission and enhancement in panoramic video transmission is solved by dynamically deciding video processing strategies through the offset penalty framework, improving user viewing quality and achieving higher video resolution and smooth playback.
Patent Information
- Application Number
- CN202310090381.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-19
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2043-01-19
AI Technical Summary
Existing tile-based panoramic video transmission methods cannot effectively resolve the conflict between video transmission and enhancement, resulting in lower user viewing quality.
Through the offset penalty framework, the video processing strategy of the video segment to be transmitted is dynamically determined, including the download strategy and the enhancement strategy. The cost relationship between downloading and enhancement is weighed, and the relevant parameters of the current client are obtained to determine the offset penalty value, and then the video processing is decided. Strategy to increase the video resolution and play the target video segment within the current viewport.
It improves the user's viewing quality by dynamically adjusting the video processing strategy to maximize quality gains and resolve the conflict between transmission and enhancement.
Smart Images

Figure CN116112740B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of video processing technology, and in particular to a video playing method, device, electronic equipment and storage medium. Background Art
[0002] In recent years, panoramic videos (immersive videos, 360-degree videos) have become increasingly popular among users and video websites because of their ability to provide users with an immersive viewing experience.
[0003] At present, due to the limited viewing area of panoramic videos, a tile-based transmission method is proposed for panoramic videos. This method divides each frame of the video into smaller non-overlapping rectangular areas, called tiles. Each tile can be transmitted and encoded and decoded independently. The client can only select and download the tiles in the user's viewing area to ensure the user's quality of experience. At the same time, it can also greatly save bandwidth and reduce the resource consumption of mobile terminals.
[0004] The existing tile-based panoramic video transmission method only makes download decisions, or simply uses computing resources to decouple downloading and enhancing tiles. However, in the tile-based panoramic video transmission process, since the start time of each video segment is strictly clear, this means that there is a conflict between video transmission and enhancement. The existing technology cannot make the optimal download and enhancement strategy for tile decisions based on the conflicting relationship between transmission and enhancement, resulting in low user viewing quality. Summary of the invention
[0005] The present invention provides a video playing method, device, electronic equipment and storage medium to improve the viewing quality of users.
[0006] According to one aspect of the present invention, a video playback method is provided, comprising:
[0007] During video playback, current client-related parameters are obtained, an offset penalty value corresponding to the video segment to be transmitted is determined based on an offset penalty framework and the current client-related parameters, and a video processing strategy for the video segment to be transmitted is determined based on the offset penalty value; wherein the video processing strategy includes a download strategy and an enhancement strategy;
[0008] Performing download processing on the video segment to be transmitted based on the download strategy to obtain a downloaded video segment with a first resolution; performing enhancement processing on the downloaded video with the first resolution based on the enhancement strategy to obtain a target video segment with a second resolution, wherein the second resolution is greater than the first resolution;
[0009] The target video segment is played in the current viewing area.
[0010] According to another aspect of the present invention, there is provided a video playback device, comprising:
[0011] A video processing strategy determination module is used to obtain current client-related parameters during video playback, determine an offset penalty value corresponding to the video segment to be transmitted based on an offset penalty framework and the current client-related parameters, and determine a video processing strategy for the video segment to be transmitted based on the offset penalty value; wherein the video processing strategy includes a download strategy and an enhancement strategy;
[0012] A video processing module, configured to perform download processing on the video segment to be transmitted based on the download strategy to obtain a downloaded video segment with a first resolution; perform enhancement processing on the downloaded video with the first resolution based on the enhancement strategy to obtain a target video segment with a second resolution, wherein the second resolution is greater than the first resolution;
[0013] The video playing module is used to play the target video segment in the current viewing area.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the video playback method described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the video playback method described in any embodiment of the present invention when executed.
[0019] The technical solution of the embodiment of the present invention dynamically decides the video processing strategy of the video segment to be transmitted through the offset penalty framework, and then downloads the video segment to be transmitted based on the download strategy to obtain a downloaded video segment with a first resolution, and enhances the downloaded video segment with the first resolution based on the enhancement strategy to obtain a target video segment with a second resolution, and plays the target video in the current viewing area; the cost relationship between downloading and enhancement is weighed to achieve the maximum quality benefit, thereby improving the viewing quality of users.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a video playback method provided by Embodiment 1 of the present invention;
[0023] Figure 2 is a schematic diagram of playing a video segment to be transmitted provided in Embodiment 1 of the present invention;
[0024] Figure 3 is a flow chart of a method for enhancing video quality assessment provided by Embodiment 1 of the present invention;
[0025] Figure 4 is a structural schematic diagram of a video playback device provided by Embodiment 2 of the present invention;
[0026] Figure 5 It is a structural schematic diagram of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment 1
[0030] Figure 1 1 is a flowchart of a video playback method provided by the first embodiment of the present invention. This embodiment is applicable to the case of adaptive downloading and enhancement based on panoramic video tiles. The method can be executed by a video playback device. The video playback device can be implemented in the form of hardware and / or software. The video playback device can be configured in the client. Figure 1 As shown, the method includes:
[0031] S110. During video playback, obtain current client-related parameters, determine an offset penalty value corresponding to the video segment to be transmitted based on an offset penalty framework and the current client-related parameters, and determine a video processing strategy for the video segment to be transmitted based on the offset penalty value; wherein the video processing strategy includes a download strategy and an enhancement strategy.
[0032] Among them, the current client-related parameters refer to the relevant parameters of the client when the video segment to be transmitted is transmitted. Specifically, the current client-related parameters include but are not limited to the current network bandwidth and current buffer size of the client when the video segment to be transmitted is transmitted, which are not limited here.
[0033] The offset penalty framework includes a Lyapunov function and a quality of experience (Quality of Experience, QoE) model. Specifically, a Lyapunov queue is established on the playback queue of the client, and a penalty offset framework is established based on the Lyapunov function and the QoE model.
[0034] In this embodiment, during the process of the current client playing the panoramic video, the current client-related parameters are obtained, specifically, the current network bandwidth and the current buffer size of the client are measured and recorded; the offset penalty value corresponding to the video segment to be transmitted is determined based on the offset penalty framework and the current client-related parameters, and the video processing strategy of the video segment to be transmitted is determined by minimizing the offset penalty value; wherein the video processing strategy includes a download strategy and an enhancement strategy, specifically, the download strategy is the resolution at which the video segment to be transmitted should be downloaded, and the enhancement strategy is the resolution to which the video segment to be transmitted should be enhanced.
[0035] In some embodiments, the server divides the panoramic video into video segments to be transmitted with different resolutions, and cuts each video segment to be transmitted into non-overlapping basic tiles of equal size, wherein the lengths of each video segment to be transmitted are the same; that is, the video segment to be transmitted is composed of the basic tiles of the video segment to be transmitted, and the video segment to be transmitted is transmitted between the server and the client based on the tiles.
[0036] On the basis of the above embodiment, optionally, the offset penalty value corresponding to the video segment to be transmitted based on the offset penalty framework and the current client-related parameters includes: determining the buffer offset corresponding to the video segment to be transmitted based on the current client-related parameters and the Lyapunov function; determining the penalty item corresponding to the video segment to be transmitted based on the experience quality model; determining the offset penalty value corresponding to the video segment to be transmitted based on the buffer offset and the penalty item.
[0037] Specifically, a Lyapunov queue is established on the client buffer, a Lyapunov function is defined according to the current buffer size, and then the buffer offset corresponding to the video segment to be transmitted is obtained according to the defined Lyapunov function; illustratively, the Lyapunov function can be defined as:
[0038]
[0039] Then, the buffer offset corresponding to the video segment to be transmitted can be defined as:
[0040]
[0041] Among them, C i Indicates the buffer size (i.e., current buffer size) when the client is downloading the video segment i to be transmitted.
[0042] In this embodiment, the factors affecting the QoE model include video quality, intra-frame quality fluctuation, and inter-frame quality difference. Specifically, the video quality is the video quality after the video segment to be transmitted is enhanced. Exemplarily, the video quality after the video segment to be transmitted is enhanced can be defined as:
[0043]
[0044] Among them, U i represents the video quality after the enhancement of the i-th video segment, r i,j represents the download resolution of the jth tile in the i-th video segment to be transmitted, represents the enhanced resolution of the jth tile in the i-th video segment to be transmitted, Indicates that the jth tile of the i-th video segment has a resolution of r i,j Enhanced to The quality after i,j Indicates the weight of the jth tile when the i-th video segment to be transmitted is played.
[0045] In this embodiment, the quality fluctuation within a frame is mainly caused by the quality difference between different blocks in the viewing area. For example, the quality fluctuation within a frame can be defined as
[0046]
[0047] in, Indicates the inter-frame quality fluctuation, P threadhold Indicates the probability threshold of whether the tile appears in the viewport. The meanings of the remaining characters are the same as those in the above formula and will not be repeated here.
[0048] In some embodiments, P can be dynamically adjusted according to the accuracy of the viewport prediction algorithm. threshold If the viewport prediction algorithm has poor performance, reduce P threshold The value of increases the predicted user viewing area, otherwise increases P threshold The value of .
[0049] In this embodiment, the inter-frame quality difference is mainly caused by the quality difference between two adjacent video segments. Exemplarily, the inter-frame quality difference can be defined as:
[0050]
[0051] in, Indicates the quality difference between frames, U i represents the quality of the i-th video segment to be transmitted after enhancement, U i-1 The enhanced quality of the i-1th video segment to be transmitted.
[0052] Based on the above embodiment, optionally, determining the penalty item corresponding to the video segment to be transmitted based on the experience quality model includes: determining the penalty item corresponding to the video segment to be transmitted based on the enhanced video quality, intra-frame quality fluctuation and inter-frame quality difference of the video segment to be transmitted.
[0053] In this embodiment, the calculation formula of the QoE model is defined according to the enhanced video quality after the video segment to be transmitted is enhanced, the intra-frame quality fluctuation and the inter-frame quality difference, and the QoE corresponding to the video segment to be transmitted is used as the penalty item corresponding to the video segment to be transmitted.
[0054] Exemplarily, the calculation formula of the QoE model can be defined as:
[0055]
[0056] The optimization goal of QoE is:
[0057]
[0058] In addition, the above QoE optimization objectives must meet the following constraints:
[0059]
[0060] Among them, α and β represent weight coefficients, G i represents the enhanced delay of the i-th video segment to be transmitted, D i represents the download delay of the i-th video segment to be transmitted, M represents the number of video segments to be transmitted, N represents the number of basic blocks in the video segments to be transmitted, and the meanings of the remaining characters are the same as those in the above formula and are not repeated here.
[0061] In this embodiment, the weighted sum of the buffer offset and the penalty term is used as the offset penalty value corresponding to the video segment to be transmitted; illustratively, the offset penalty value can be expressed as: ΔL(C i )-γ*Q i , where ΔL(C i ) represents the buffer offset corresponding to the video segment i to be transmitted, Q i represents the penalty term corresponding to the video segment i to be transmitted, and γ is the Lyapunov parameter, which is used to weigh the fluctuation degree of the video QoE and the Lyapunov queue.
[0062] In some embodiments, the enhanced delay of the video segment to be transmitted is related to the reasoning complexity of the super-resolution model used to enhance the tiles in the video segment to be transmitted, wherein the factors affecting the reasoning complexity of the super-resolution model include the model input and output size, the number of tiles to be inferred, and the number of threads used to infer the tiles. Therefore, the enhanced delay can be obtained by constructing an analytical model of the super-resolution model; exemplarily, the analytical model of the super-resolution can be constructed as;
[0063]
[0064] Among them, G represents the number of tiles. number, the input and output of the super-resolution model are r1 and r2 respectively, and the number of threads used to enhance the tiles is thread number The enhancement time of G represents the complexity of enhancing the quality of a single image block when the number of input and output pixels of the super-resolution model is r1 and r2 respectively. (2) (tile number ) indicates the number of tiles is tile number When enhancing the complexity of the tile quality, G (3) (thread number ) indicates the number of threads used to enhance the tile. number Increase the complexity of the tiles.
[0065] Correspondingly, the calculation formula for the enhanced delay of the video segment to be transmitted can be defined as:
[0066]
[0067] Among them, G i represents the enhanced delay of the i-th video segment to be transmitted, To indicate r i,j and The indicator function of whether they are equal, if they are not equal, its value is 1, otherwise it is 0; N ′ Indicates the number of tiles that need to be enhanced The meanings of the remaining characters are the same as those in the above formula and will not be repeated here.
[0068] In some embodiments, the download delay of the video segment to be transmitted may be determined based on the download resolution of the tiles in the video segment to be transmitted and the current network bandwidth; illustratively, the calculation formula for the download delay of the video segment to be transmitted is:
[0069]
[0070] Among them, D i represents the download delay of the i-th video segment to be transmitted, f(r i,j ) represents the mapping function between the download resolution and size of the tile, B i represents the network bandwidth (i.e., the current network bandwidth) when downloading the video segment i to be transmitted, m represents the size of the super-resolution model, and is updated regularly; the meanings of the remaining characters are the same as those in the above formula and will not be repeated here.
[0071] It should be noted that the pre-trained super-resolution model is stored in the server. When downloading the video segment to be transmitted, the corresponding super-resolution model needs to be downloaded to enhance the downloaded image blocks. Therefore, the super-resolution model is a micro model to reduce the pressure on bandwidth.
[0072] In some embodiments, Figure 2 is a schematic diagram of playing a video segment to be transmitted provided by the first embodiment of the present invention, such as Figure 2 As shown, the video segment to be transmitted needs to go through download delay and enhancement delay before playing. Since the playing time of the video segment to be transmitted is fixed, there is a competitive relationship between downloading and enhancing the video segment to be transmitted. Downloading a higher resolution video will leave less space for enhancement. The buffer size of the next video segment to be transmitted can be determined according to the current buffer size, download delay and enhancement delay; illustratively, the calculation formula of the buffer size of the next video segment to be transmitted is:
[0073] C i+1 =max(C i -D i -G i ,0)+L
[0074] Among them, C i is the buffer size when the mobile client starts downloading the video segment i to be transmitted, D i With G i are the download delay and enhancement delay of the i-th video segment respectively, and L is the length of the i-th video segment to be transmitted.
[0075] It is understandable that when the buffer is exhausted, the video playback will be paused, thus affecting the smoothness of the video playback. The pause time of the video segment i to be transmitted during playback can be calculated as max(D i +G i -C i ,0).
[0076] On the basis of the above embodiments, optionally, the quality assessment method of the enhanced video includes: determining a baseline video and a baseline video resolution; comparing the baseline video resolution with the resolution of the enhanced video, and if the resolution of the enhanced video is different from the baseline video resolution, interpolating the enhanced video based on a preset interpolation algorithm to obtain a target enhanced video with the same resolution as the baseline video; and assessing the quality of the target enhanced video based on objective evaluation indicators and the baseline video to obtain enhanced video quality.
[0077] Among them, the benchmark video is a reference video selected for evaluating the enhanced video, and correspondingly, the benchmark video resolution is the resolution of the benchmark video. In this embodiment, a benchmark video is selected, specifically, the video with the highest resolution in the optional resolution set can be selected as the benchmark video, and the resolution of the benchmark video is the benchmark video resolution; the benchmark video resolution is compared with the resolution of the enhanced video, and if the resolution of the enhanced video is different from the benchmark video resolution, the enhanced video is interpolated based on a preset interpolation algorithm to obtain an enhanced video with the same resolution as the benchmark video; with the benchmark video as a reference, the quality of the interpolated target enhanced video is evaluated based on objective evaluation indicators to obtain the enhanced video quality; wherein, the preset interpolation algorithm includes but is not limited to the nearest neighbor interpolation method, bilinear interpolation method, cubic interpolation method, etc., which are not limited here; the objective evaluation indicators include but are not limited to peak signal-to-noise ratio, structural similarity, average structural similarity, etc., which are not limited here.
[0078] For example, Figure 3 is a flowchart of a method for enhancing video quality assessment provided by Embodiment 1 of the present invention. Figure 3 As shown, the video with the highest resolution in the optional resolution set is selected as the reference video, and it is determined whether the enhanced video resolution is the same as the reference video resolution. If the enhanced video resolution is different from the reference video resolution, a preset interpolation algorithm is used to interpolate the enhanced video to a resolution that is the same as the reference video resolution. Then, with the reference video as a reference, an objective evaluation index is used to evaluate the quality of the interpolated enhanced video to obtain the enhanced video quality. If the enhanced video resolution is the same as the reference video resolution, an objective evaluation index is used to evaluate the quality of the enhanced video with reference to obtain the enhanced video quality.
[0079] On the basis of the above embodiment, optionally, determining the video processing strategy for the video segment to be transmitted based on the offset penalty value includes: minimizing the offset penalty value to obtain a minimum offset penalty value; and when the minimum offset penalty value satisfies a preset video processing strategy determination condition, using the video processing strategy corresponding to the minimum offset penalty value as the video processing strategy for the video segment to be transmitted.
[0080] In this embodiment, the offset penalty value is minimized, that is, the weighted sum of the buffer offset and the penalty term is minimized to obtain the minimum offset penalty value; illustratively, the minimum offset penalty value can be expressed as: Minimum: ΔL(C i )-γ*Q i ; When the minimum offset penalty value meets the preset video processing strategy determination condition, the download resolution and enhanced resolution of the tile in the video segment to be transmitted corresponding to the minimum offset penalty value are used as the video processing strategy for the video segment to be transmitted.
[0081] Exemplarily, the preset video processing strategy determination condition may be:
[0082]
[0083] Among them, Λ represents The upper boundary of QoE * is the average value of the optimal QoE. The meanings of the other characters are the same as those in the above formula and are not repeated here.
[0084] S120. Perform download processing on the video segment to be transmitted based on the download strategy to obtain a downloaded video segment with a first resolution; perform enhancement processing on the downloaded video segment with the first resolution based on the enhancement strategy to obtain a target video segment with a second resolution; the second resolution is greater than the first resolution.
[0085] The first resolution refers to the download resolution of the video segment to be transmitted, and correspondingly, the second resolution refers to the resolution of the video segment to be transmitted after being enhanced. In this embodiment, the download resolution is determined based on the download strategy, and the video segment to be transmitted is downloaded based on the download resolution to obtain a downloaded video segment with a first resolution; the enhanced resolution is determined based on the enhancement strategy, and the downloaded video segment is enhanced to enhance the downloaded video segment with the first resolution to a target video segment with a second resolution; wherein the second resolution is greater than the first resolution, that is, the enhanced resolution is greater than the download resolution.
[0086] On the basis of the above embodiment, optionally, the video segment to be transmitted is composed of basic tiles of the video segment to be transmitted; accordingly, the download processing of the video segment to be transmitted based on the download strategy to obtain a downloaded video of the first resolution includes: download processing of each basic tile of the video segment to be transmitted based on the download strategy to obtain a downloaded video segment of the first resolution; the downloaded video segment includes downloaded tiles of the first resolution.
[0087] In this embodiment, the video segment to be transmitted is composed of basic blocks obtained by segmenting the video segment to be transmitted. When downloading the video segment to be transmitted, the corresponding basic blocks in the video segment to be transmitted are downloaded according to the download resolution of each block in the download strategy to obtain a downloaded video segment with a first resolution, and the downloaded video segment includes the downloaded blocks with the first resolution.
[0088] Based on the above embodiment, optionally, the downloaded video of the first resolution is enhanced based on the enhancement strategy to obtain a target video of the second resolution, including: based on the enhancement strategy and a pre-trained super-resolution model, the downloaded tiles of the first resolution are enhanced to obtain a target video segment of the second resolution.
[0089] In this embodiment, the downloaded image blocks in the downloaded video segment are input into the corresponding pre-trained super-resolution model for enhancement processing to obtain enhanced image blocks of the second resolution; the target video segment of the second resolution is determined according to the enhanced image blocks of the second resolution; wherein the pre-trained super-resolution model is stored in the server, and is trained by the server using the low-resolution basic image blocks after segmentation as the input of the super-resolution model and the corresponding high-resolution basic image blocks as training labels.
[0090] In some embodiments, the tiles may be classified according to their weights, and tiles of the same category are assigned the same download resolution and enhanced resolution to reduce the search space of the algorithm.
[0091] S130: Play the target video segment in the current viewing area.
[0092] In this embodiment, after the video segment to be transmitted is processed based on the video processing strategy to obtain the target video segment, the target video segment is played in the current viewing area of the client.
[0093] In some embodiments, if the current video playback is stuck and the cause of the stuck is the confirmation of the tiles in the viewing area, the confirmed tiles are downloaded at the lowest resolution; if the current video playback is stuck and the cause of the stuck is the untimely tile enhancement, the video enhancement is stopped and the downloaded video is played directly.
[0094] The technical solution of this embodiment dynamically decides the video processing strategy of the video segment to be transmitted through the offset penalty framework, and then downloads the video segment to be transmitted based on the download strategy to obtain a downloaded video segment of a first resolution, enhances the downloaded video segment of the first resolution based on the enhancement strategy to obtain a target video segment of a second resolution, and plays the target video in the current viewing area; weighs the cost relationship between downloading and enhancement to achieve the maximum quality benefit, thereby improving the user's viewing quality.
[0095] Embodiment 2
[0096] Figure 4 FIG. 1 is a schematic diagram of the structure of a video playback device provided by Embodiment 2 of the present invention. Figure 4 As shown, the device comprises:
[0097] The video processing strategy determination module 410 is used to obtain the current client-related parameters during the video playback process, determine the offset penalty value corresponding to the video segment to be transmitted based on the offset penalty framework and the current client-related parameters, and determine the video processing strategy of the video segment to be transmitted based on the offset penalty value; wherein the video processing strategy includes a download strategy and an enhancement strategy;
[0098] The video processing module 420 is used to perform download processing on the video segment to be transmitted based on the download strategy to obtain a downloaded video segment with a first resolution; perform enhancement processing on the downloaded video with the first resolution based on the enhancement strategy to obtain a target video segment with a second resolution, wherein the second resolution is greater than the first resolution;
[0099] The video playing module 430 is used to play the target video segment in the current viewing area.
[0100] The technical solution of this embodiment dynamically decides the video processing strategy of the video segment to be transmitted through the offset penalty framework, and then downloads the video segment to be transmitted based on the download strategy to obtain a downloaded video segment of a first resolution, enhances the downloaded video segment of the first resolution based on the enhancement strategy to obtain a target video segment of a second resolution, and plays the target video in the current viewing area; weighs the cost relationship between downloading and enhancement to achieve the maximum quality benefit, thereby improving the user's viewing quality.
[0101] Based on the above embodiment, optionally, the offset penalty framework includes a Lyapunov function and an experience quality model; the video processing strategy determination module 410 includes an offset penalty value determination unit, which is used to determine the buffer offset corresponding to the video segment to be transmitted based on the current client-related parameters and the Lyapunov function; determine the penalty item corresponding to the video segment to be transmitted based on the experience quality model; and determine the offset penalty value corresponding to the video segment to be transmitted based on the buffer offset and the penalty item.
[0102] Based on the above embodiment, optionally, the offset penalty value determination unit includes a penalty item determination subunit, which is specifically used to determine the penalty item corresponding to the video segment to be transmitted based on the enhanced video quality, inter-frame quality fluctuation and inter-frame quality difference of the video segment to be transmitted.
[0103] On the basis of the above embodiment, optionally, the device also includes an enhanced video quality assessment module, which is used to determine a baseline video and a baseline video resolution; compare the baseline video resolution with the resolution of the enhanced video, and if the resolution of the enhanced video is different from the baseline video resolution, interpolate the enhanced video based on a preset interpolation algorithm to obtain a target enhanced video with the same resolution as the baseline video; and evaluate the quality of the target enhanced video based on objective evaluation indicators and the baseline video to obtain enhanced video quality.
[0104] Based on the above embodiment, optionally, the video processing strategy determination module 410 also includes a video processing strategy determination unit, which is used to minimize the offset penalty value to obtain a minimum offset penalty value; when the minimum offset penalty value meets a preset video processing strategy determination condition, the video processing strategy corresponding to the minimum offset penalty value is used as the video processing strategy for the video segment to be transmitted.
[0105] Based on the above embodiment, optionally, the video segment to be transmitted is composed of basic tiles of the video segment to be transmitted; the video processing module 420 includes a video download unit, which is used to download the basic tiles of the video segment to be transmitted based on the download strategy to obtain a downloaded video segment of a first resolution; the downloaded video segment includes downloaded tiles of the first resolution.
[0106] Based on the above embodiment, optionally, the video processing module 420 includes a video enhancement unit, which is used to enhance the downloaded image blocks of the first resolution based on the enhancement strategy and a pre-trained super-resolution model to obtain a target video segment of the second resolution.
[0107] The video playback device provided in the embodiment of the present invention can execute the video playback method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0108] Embodiment 3
[0109] Figure 5 1 is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0110] like Figure 5As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0111] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0112] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a video playback method.
[0113] In some embodiments, the video playback method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the video playback method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the video playback method in any other appropriate manner (e.g., by means of firmware).
[0114] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0115] The computer program for implementing the video playback method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or the block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, partially on the machine as an independent software package and partially on a remote machine, or completely on a remote machine or server.
[0116] Embodiment 4
[0117] Embodiment 4 of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to execute a video playback method, the method comprising:
[0118] During video playback, current client-related parameters are obtained, an offset penalty value corresponding to the video segment to be transmitted is determined based on an offset penalty framework and the current client-related parameters, and a video processing strategy for the video segment to be transmitted is determined based on the offset penalty value; wherein the video processing strategy includes a download strategy and an enhancement strategy; based on the download strategy, the video segment to be transmitted is downloaded to obtain a downloaded video segment of a first resolution; based on the enhancement strategy, the downloaded video segment of the first resolution is enhanced to obtain a target video segment of a second resolution, wherein the second resolution is greater than the first resolution; and the target video segment is played in the current viewing area.
[0119] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0120] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0121] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0122] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0123] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0124] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A video playback method, It is characterized in that include: During video playback, current client-related parameters are obtained, an offset penalty value corresponding to the video segment to be transmitted is determined based on an offset penalty framework and the current client-related parameters, and a video processing strategy for the video segment to be transmitted is determined based on the offset penalty value; wherein the video processing strategy includes a download strategy and an enhancement strategy; Performing download processing on the video segment to be transmitted based on the download strategy to obtain a downloaded video segment with a first resolution; performing enhancement processing on the downloaded video segment with the first resolution based on the enhancement strategy to obtain a target video segment with a second resolution, wherein the second resolution is greater than the first resolution; Play the target video segment in the current viewing area; The offset penalty framework includes a Lyapunov function and an experience quality model; and determining the offset penalty value corresponding to the video segment to be transmitted based on the offset penalty framework and the current client-related parameters includes: Determine a buffer offset corresponding to the video segment to be transmitted based on the current client-related parameters and the Lyapunov function; Determining a penalty item corresponding to the to-be-transmitted video segment based on the experience quality model; Determine an offset penalty value corresponding to the to-be-transmitted video segment based on the buffer offset and the penalty item; The determining, based on the experience quality model, a penalty item corresponding to the to-be-transmitted video segment includes: A penalty item corresponding to the video segment to be transmitted is determined based on the enhanced video quality, inter-frame quality fluctuation, and inter-frame quality difference of the video segment to be transmitted.
2. The method according to claim 1, It is characterized in that The enhanced video quality assessment method comprises: Determine a reference video and a reference video resolution; Comparing the reference video resolution with the enhanced video resolution, if the enhanced video resolution is different from the reference video resolution, interpolating the enhanced video based on a preset interpolation algorithm to obtain a target enhanced video with the same resolution as the reference video; The quality of the target enhanced video is evaluated based on the objective evaluation index and the reference video to obtain the enhanced video quality.
3. The method according to claim 1, It is characterized in that The determining the video processing strategy of the to-be-transmitted video segment based on the offset penalty value includes: Minimizing the offset penalty value to obtain a minimum offset penalty value; In a case where the minimum offset penalty value satisfies a preset video processing strategy determination condition, the video processing strategy corresponding to the minimum offset penalty value is used as the video processing strategy for the video segment to be transmitted.
4. The method according to claim 1, It is characterized in that The video segment to be transmitted is composed of basic blocks of the video segment to be transmitted; Accordingly, the downloading process of the video segment to be transmitted based on the download strategy to obtain the downloaded video segment with the first resolution includes: Performing download processing on the basic blocks of the video segment to be transmitted based on the download strategy to obtain a downloaded video segment with a first resolution; The downloaded video segment includes downloaded tiles of a first resolution.
5. The method according to claim 4, It is characterized in that The step of performing enhancement processing on the downloaded video segment of the first resolution based on the enhancement strategy to obtain a target video segment of the second resolution includes: The downloaded image blocks of the first resolution are enhanced based on the enhancement strategy and the pre-trained super-resolution model to obtain target video segments of the second resolution.
6. A video playback device, It is characterized in that include; A video processing strategy determination module is used to obtain current client-related parameters during video playback, determine an offset penalty value corresponding to the video segment to be transmitted based on an offset penalty framework and the current client-related parameters, and determine a video processing strategy for the video segment to be transmitted based on the offset penalty value; wherein the video processing strategy includes a download strategy and an enhancement strategy; A video processing module, configured to perform download processing on the video segment to be transmitted based on the download strategy to obtain a downloaded video segment with a first resolution; perform enhancement processing on the downloaded video with the first resolution based on the enhancement strategy to obtain a target video segment with a second resolution, wherein the second resolution is greater than the first resolution; and a video playing module, configured to play the target video segment in a current viewing area; The offset penalty framework includes a Lyapunov function and an experience quality model; the video processing strategy determination module includes an offset penalty value determination unit, which is used to determine the buffer offset corresponding to the video segment to be transmitted based on the current client-related parameters and the Lyapunov function; determine the penalty item corresponding to the video segment to be transmitted based on the experience quality model; determine the offset penalty value corresponding to the video segment to be transmitted based on the buffer offset and the penalty item; The offset penalty value determination unit includes a penalty item determination subunit, which is specifically used to determine the penalty item corresponding to the video segment to be transmitted based on the enhanced video quality, inter-frame quality fluctuation and inter-frame quality difference of the video segment to be transmitted.
7. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the video playback method according to any one of claims 1 to 5.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the video playback method according to any one of claims 1 to 5 when executed.
