Video encoding method and apparatus, electronic device, and non-transitory computer-readable storage medium

By employing the concept of multi-hypothesis motion compensation, a temporal filtering method is used to search for multiple motion vectors in each frame and perform weighted prediction. This solves the problems of low prediction quality and low coding efficiency caused by single-hypothesis motion vectors in existing technologies, and significantly improves coding performance.

CN119402654BActive Publication Date: 2026-11-24BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411521146.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2026-11-24
Estimated Expiration
2044-10-29

AI Technical Summary

Technical Problem

Existing technologies, when using motion estimation compensation, only search for one motion vector per frame, resulting in low prediction quality, poor temporal filtering effect, and low coding efficiency, especially in complex scenes.

Method used

By employing the concept of multi-hypothesis motion compensation, multiple motion vectors are searched for each adjacent frame, and weighted prediction is performed using temporal filtering to improve the prediction accuracy of motion estimation and temporal filtering.

Benefits of technology

It significantly improves the prediction accuracy of motion estimation, motion compensation, and temporal filtering, enhances coding performance, especially achieving higher coding efficiency in complex scenarios, and reduces error propagation distortion caused by channel errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402654B_ABST
    Figure CN119402654B_ABST
Patent Text Reader

Abstract

This disclosure provides a video coding method, apparatus, electronic device, and non-transitory computer-readable storage medium. The video coding method includes: for each adjacent frame of a current frame, performing motion estimation on a current block in the current frame; searching for multiple motion vectors from adjacent frames; and performing motion compensation on the current block based on the multiple motion vectors searched from adjacent frames, thereby obtaining a motion compensation result for each adjacent frame; performing temporal filtering on the current block based on the motion compensation result for each adjacent frame in at least one adjacent frame; and encoding the current block based on the temporal filtering result. In this disclosure, each adjacent frame is no longer limited to only one motion compensation prediction, but can use multiple motion compensation predictions, that is, allowing each adjacent frame to correspond to multiple motion compensation results. This can significantly improve the prediction accuracy of motion compensation, thereby improving the filtering effect and coding performance of MCTF.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to video encoding / decoding and compression. More specifically, this disclosure relates to video coding methods and apparatuses, electronic devices, and non-transitory computer-readable storage media. Background Technology

[0002] Various electronic devices (such as digital televisions, laptops or desktop computers, tablets, digital cameras, digital recording devices, digital media players, video game consoles, smartphones, video conferencing equipment, video streaming devices, etc.) support digital video. Electronic devices send and receive, or otherwise transmit, digital video data via communication networks, and / or store digital video data on storage devices. Due to the limited bandwidth capacity of communication networks and the limited storage resources of storage devices, video data can be compressed using one or more video codec standards before it is transmitted or stored. For example, video codec standards include Universal Video Codec (VVC), Joint Explore Test Model (JEM), High Efficiency Video Codec (HEVC / H.265), Advanced Video Codec (AVC / H.264), Moving Picture Experts Group (MPEG) codec, etc. Video codecs typically employ prediction methods that utilize the inherent redundancy in video data (e.g., inter-frame prediction, intra-frame prediction, etc.). Video codecs aim to compress video data to a form using a lower bitrate while avoiding or minimizing degradation in video quality.

[0003] Motion Compensated Temporal Filter (MCTF) is an encoder-only video filtering technique that utilizes the temporal correlation of the video and inter-block reference relationships to perform temporal filtering on reference frames. This reduces temporal redundancy generated during video block referencing, thereby improving overall coding efficiency.

[0004] In related technologies, when using MCTF for temporal filtering, each frame employs the classic block-based motion compensation technique. This involves searching for only one motion compensation block per frame, and then performing bilateral weighted filtering on the current block along with multiple motion compensation blocks from all adjacent frames. However, using only a single hypothesis for compensation per frame can lead to low prediction quality, especially failing to meet the prediction requirements of some complex scenes, resulting in poor temporal filtering performance and low coding efficiency. Summary of the Invention

[0005] Examples of video coding methods, apparatuses, electronic devices, and nontransitory computer-readable storage media disclosed herein are provided.

[0006] According to a first aspect of this disclosure, a video coding method is provided, comprising: for each of at least one adjacent frame of a current frame, performing the following operations: performing motion estimation on a current block in the current frame; searching for a plurality of motion vectors from the adjacent frames; and performing motion compensation on the current block based on the plurality of motion vectors searched from the adjacent frames to obtain a motion compensation result, thereby obtaining a motion compensation result for each of the at least one adjacent frame; performing temporal filtering on the current block based on the motion compensation result for each of the at least one adjacent frame to obtain a temporal filtering result for the current block; and encoding the current block based on the temporal filtering result.

[0007] Optionally, the motion compensation of the current block based on the plurality of motion vectors searched from the adjacent frames includes: performing a weighted summation of the plurality of motion vectors searched from the adjacent frames to obtain a final motion vector; and performing motion compensation of the current block based on the final motion vector.

[0008] Optionally, the step of performing motion compensation on the current block based on the plurality of motion vectors searched from the adjacent frames includes: performing motion compensation on the current block based on the plurality of motion vectors searched from the adjacent frames respectively to obtain a plurality of motion compensation results; and performing a weighted summation of the plurality of motion compensation results to obtain a final motion compensation result; wherein, the step of performing temporal filtering on the current block based on the motion compensation result for each of the at least one adjacent frame includes: performing temporal filtering on the current block based on the final motion compensation result obtained for each of the at least one adjacent frame.

[0009] Optionally, the step of performing motion compensation on the current block based on the plurality of motion vectors searched from the adjacent frames includes: performing motion compensation on the current block based on the plurality of motion vectors searched from the adjacent frames respectively to obtain a plurality of motion compensation results; wherein, the step of performing temporal filtering on the current block based on the motion compensation results for each of the at least one adjacent frame includes: performing temporal filtering on the current block based on the plurality of motion compensation results obtained for each of the at least one adjacent frame.

[0010] Optionally, the step of searching for multiple motion vectors from adjacent frames includes: searching for multiple motion vector candidates from the adjacent frames using the same motion vector search method; and selecting a predetermined number of optimal motion vector candidates from the multiple motion vector candidates according to a predetermined rule, as the multiple motion vectors.

[0011] Optionally, the step of searching for multiple motion vectors from adjacent frames includes: searching for multiple motion vector candidates from the adjacent frames using different motion vector search methods to determine the multiple motion vectors.

[0012] Optionally, the step of searching for multiple motion vectors from adjacent frames includes: searching for a first motion vector candidate from the adjacent frames using a first motion vector search method, and searching for at least one second motion vector candidate from the adjacent frames using at least one second motion vector search method; selecting a predetermined number of optimal second motion vector candidates from the at least one second motion vector candidate according to a predetermined rule; and determining the first motion vector candidate and the predetermined number of optimal second motion vector candidates as the multiple motion vectors.

[0013] Optionally, the weights used for the weighted summation can be determined based on the prediction characteristics corresponding to each motion vector, or based on machine learning or deep learning methods.

[0014] Optionally, the weights used for the weighted summation can be determined based on the prediction characteristics corresponding to each motion compensation result, or based on machine learning or deep learning methods.

[0015] Optionally, the filter weights used for the time-domain filtering can be determined based on the prediction features corresponding to each motion compensation result.

[0016] According to a second aspect of this disclosure, a video encoding apparatus is provided, comprising: a motion estimation module and a motion compensation module, configured to perform the following operations for each of at least one of the adjacent frames of a current frame: performing motion estimation on a current block in the current frame, searching for a plurality of motion vectors from the adjacent frames, and performing motion compensation on the current block based on the plurality of motion vectors searched from the adjacent frames to obtain a motion compensation result, thereby obtaining a motion compensation result for each of the at least one of the adjacent frames; a temporal filtering module, configured to perform temporal filtering on the current block based on the motion compensation result for each of the at least one of the adjacent frames to obtain a temporal filtering result for the current block; and an encoding module, configured to encode the current block based on the temporal filtering result of the current block.

[0017] Optionally, the motion estimation module and the motion compensation module are configured to: perform a weighted summation of the plurality of motion vectors searched from the adjacent frames to obtain a final motion vector; and perform motion compensation on the current block based on the final motion vector.

[0018] Optionally, the motion estimation module and the motion compensation module are configured to: perform motion compensation on the current block based on the plurality of motion vectors searched from the adjacent frames respectively, to obtain a plurality of motion compensation results; perform a weighted summation of the plurality of motion compensation results to obtain a final motion compensation result; the temporal filtering module is configured to: perform temporal filtering on the current block based on the final motion compensation result obtained for each of the at least one adjacent frame.

[0019] Optionally, the motion estimation module and the motion compensation module are configured to: perform motion compensation on the current block based on the plurality of motion vectors searched from the adjacent frames respectively, to obtain a plurality of motion compensation results; the temporal filtering module is configured to: perform temporal filtering on the current block based on the plurality of motion compensation results obtained for each of the at least one adjacent frame.

[0020] Optionally, the motion estimation module and the motion compensation module are configured to: search for multiple motion vector candidates from the adjacent frames using the same motion vector search method; and select a predetermined number of optimal motion vector candidates from the multiple motion vector candidates according to a predetermined rule, as the multiple motion vectors.

[0021] Optionally, the motion estimation module and the motion compensation module are configured to: search for multiple motion vector candidates from the adjacent frames using different motion vector search methods to determine the multiple motion vectors.

[0022] Optionally, the motion estimation module and the motion compensation module are configured to: search for a first motion vector candidate from the adjacent frames using a first motion vector search method, and search for at least one second motion vector candidate from the adjacent frames using at least one second motion vector search method; select a predetermined number of optimal second motion vector candidates from the at least one second motion vector candidate according to a predetermined rule; and determine the first motion vector candidate and the predetermined number of optimal second motion vector candidates as the plurality of motion vectors.

[0023] Optionally, the weights used for the weighted summation can be determined based on the prediction characteristics corresponding to each motion vector, or based on machine learning or deep learning methods.

[0024] Optionally, the weights used for the weighted summation can be determined based on the prediction characteristics corresponding to each motion compensation result, or based on machine learning or deep learning methods.

[0025] Optionally, the filter weights used for the time-domain filtering can be determined based on the prediction features corresponding to each motion compensation result.

[0026] According to a third aspect of this disclosure, an apparatus for video encoding is provided, comprising: one or more processors; and a memory coupled to the one or more processors and configured to store instructions executable by the one or more processors, wherein the one or more processors, when executing the instructions, are configured to perform a video encoding method according to this disclosure.

[0027] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided for storing computer-executable instructions that, when executed by one or more computer processors, cause the one or more computer processors to perform a video coding method according to this disclosure.

[0028] According to a fifth aspect of this disclosure, a computer program product is provided having instructions for storing a bit stream, wherein the bit stream includes video data generated by a video encoding method according to this disclosure.

[0029] According to a sixth aspect of this disclosure, a computer program product is provided, comprising computer instructions, characterized in that the computer instructions, when executed by at least one processor, implement a video encoding method according to this disclosure.

[0030] According to a seventh aspect of this disclosure, a method for generating a bitstream is provided, comprising: generating a bitstream according to a video coding method of this disclosure.

[0031] The technical solutions provided by the embodiments of this disclosure have at least the following beneficial effects:

[0032] This disclosure proposes a coding temporal filtering method based on multi-hypothesis motion compensation (MCTF) using the concept of multi-hypothesis motion compensation. When performing MCTF, instead of searching for a single motion vector (MV) for each adjacent frame, multiple MVs are allowed to be searched. Based on these multiple MVs, multi-hypothesis weighted prediction temporal filtering is performed, such as multi-hypothesis motion estimation, multi-hypothesis motion compensation, and multi-hypothesis temporal filtering. This significantly improves the prediction accuracy of motion estimation, motion compensation, or temporal filtering, enhancing the filtering effect of MCTF. Especially in complex and high-dynamic scenarios, it achieves higher coding efficiency, significantly improves coding performance, and reduces error propagation distortion caused by channel errors.

[0033] It will be understood that the above general description and the following detailed description are merely examples and do not limit this disclosure. Attached Figure Description

[0034] The accompanying drawings, which are incorporated in and form part of this specification, illustrate examples according to this disclosure and, together with this description, serve to explain the principles of this disclosure.

[0035] Figure 1 This is a block diagram illustrating an exemplary system for encoding and decoding video blocks in parallel, according to some embodiments of the present disclosure.

[0036] Figure 2 This is a block diagram illustrating an exemplary video encoder according to some embodiments described in this application.

[0037] Figure 3 This is a block diagram illustrating an exemplary video decoder according to some embodiments of this application.

[0038] Figure 4 This is a flowchart illustrating a video encoding method according to an exemplary embodiment of the present disclosure.

[0039] Figure 5 This is a schematic diagram illustrating motion estimation and motion compensation according to exemplary embodiments of the present disclosure.

[0040] Figure 6 This is a schematic diagram illustrating multi-hypothesis weighted fusion in the motion estimation stage according to an exemplary embodiment of the present disclosure.

[0041] Figure 7 This is a schematic diagram illustrating multi-hypothesis weighted fusion during the motion compensation phase according to an exemplary embodiment of the present disclosure.

[0042] Figure 8 This is a schematic diagram illustrating multi-hypothesis weighted fusion in the time-domain filtering stage according to an exemplary embodiment of the present disclosure.

[0043] Figure 9 This is a block diagram illustrating a video encoding apparatus according to an exemplary embodiment of the present disclosure.

[0044] Figure 10 This is a diagram illustrating a computing environment coupled to a user interface according to some embodiments of the present disclosure. Detailed Implementation

[0045] Referring now to the detailed description, examples of which are illustrated in the accompanying drawings. Numerous non-limiting details are set forth in the following detailed description to aid in understanding the subject matter presented herein. However, various alternatives may be used without departing from the scope of the claims, and the subject matter may be practiced without these specific details. For example, the subject matter presented herein can be implemented on many types of electronic devices with digital video capabilities.

[0046] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this disclosure are used to distinguish objects and are not used to describe any specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in sequences other than those shown in the drawings or described in this disclosure.

[0047] Figure 1 This is a block diagram illustrating an exemplary system 10 for encoding and decoding video blocks in parallel, according to some embodiments of the present disclosure. Figure 1 As shown, system 10 includes a source device 12 that generates and encodes video data that will later be decoded by a target device 14. The source device 12 and target device 14 can include any electronic device from a wide variety of electronic devices, including cloud servers, server computers, desktop or laptop computers, tablet computers, smartphones, set-top boxes, digital televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, etc. In some embodiments, the source device 12 and target device 14 are equipped with wireless communication capabilities.

[0048] In some implementations, the target device 14 may receive the encoded video data to be decoded via link 16. Link 16 may include any type of communication medium or device capable of moving the encoded video data from the source device 12 to the target device 14.

[0049] In some other implementations, the encoded video data can be sent from the output interface 22 to the storage device 32. Subsequently, the target device 14 can access the encoded video data in the storage device 32 via the input interface 28.

[0050] like Figure 1 As shown, source device 12 includes a video source 18, a video encoder 20, and an output interface 22. Video source 18 may include sources or combinations of such sources, such as: a video capture device (e.g., a camera), a video archive containing previously captured video, a video feed interface for receiving video from a video content provider, and / or a computer graphics system for generating computer graphics data as source video.

[0051] The captured, pre-captured, or computer-generated video can be encoded by the video encoder 20. The encoded video data can be sent directly to the target device 14 via the output interface 22 of the source device 12. Alternatively, the encoded video data can be stored on the storage device 32 for later access by the target device 14 or other devices for decoding and / or playback.

[0052] Target device 14 includes an input interface 28, a video decoder 30, and a display device 34. Input interface 28 may include a receiver and / or a modem, and receives encoded video data via link 16. The encoded video data transmitted via link 16 or provided on storage device 32 may include various syntax elements generated by video encoder 20 for use by video decoder 30 when decoding the video data. Such syntax elements may be included within encoded video data transmitted on a communication medium, stored on a storage medium, or stored on a file server.

[0053] Video encoder 20 and video decoder 30 can operate according to proprietary or industry standards (e.g., VVC, HEVC, MPEG-4 Part 10, AVC) or extensions of such standards. It should be understood that this application is not limited to a specific video encoding / decoding standard and can be applied to other video encoding / decoding standards. It is generally understood that the video encoder 20 of source device 12 can be configured to encode video data according to any of these current or future standards. Similarly, it is also generally understood that the video decoder 30 of target device 14 can be configured to decode video data according to any of these current or future standards.

[0054] The video encoder 20 and video decoder 30 can be implemented as any circuit of a variety of suitable encoder and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), discrete logic devices, software, hardware, firmware, or any combination thereof. When partially implemented in software, the electronic device may store instructions for software in a suitable non-transitory computer-readable medium and use one or more processors to execute the instructions in hardware to perform the video encoding / decoding operations disclosed in this disclosure. Each of the video encoder 20 and video decoder 30 may be included in one or more encoders or decoders, and either encoder or decoder may be integrated as part of a combined encoder / decoder (CODEC) in the respective device.

[0055] Figure 2 This is a block diagram illustrating an exemplary video encoder 20 according to some embodiments described in this application. The video encoder 20 can perform intra-frame predictive coding and inter-frame predictive coding on video blocks within a video frame. Intra-frame predictive coding relies on spatial prediction to reduce or remove spatial redundancy in the video data within a given video frame or picture. Inter-frame predictive coding relies on temporal prediction to reduce or remove temporal redundancy in the video data within neighboring video frames or pictures of a video sequence. It should be noted that in the field of video encoding and decoding, the term "frame" can be used as a synonym for the terms "image" or "picture".

[0056] like Figure 2 As shown, the video encoder 20 includes a video data memory 40, a prediction processing unit 41, a decoded picture buffer (DPB) 64, an adder 50, a transform processing unit 52, a quantization unit 54, and an entropy coding unit 56. The prediction processing unit 41 further includes a motion estimation unit 42, a motion compensation unit 44, a segmentation unit 45, an intra-frame prediction processing unit 46, and an intra-frame block copying (BC) unit 48. In some embodiments, the video encoder 20 also includes an inverse quantization unit 58, an inverse transform processing unit 60, and an adder 62 for video block reconstruction. A loop filter 63, such as a deblocking filter, can be located between the adder 62 and the DPB 64 to filter block boundaries to remove block artifacts from the reconstructed video. In addition to the deblocking filter, another loop filter (e.g., a sample adaptive offset (SAO) filter, a cross-component sample adaptive offset (CCSAO) filter, and / or an adaptive loop filter (ALF)) can be used to filter the output of the adder 62. In some examples, the loop filter can be omitted, and the decoded video block can be directly provided to the DPB 64 by the adder 62. The video encoder 20 can take the form of a fixed or programmable hardware unit, or it can be distributed among one or more of the fixed or programmable hardware units described.

[0057] The video data storage device 40 can store video data encoded by the components of the video encoder 20. For example, it can store data from... Figure 1 The video source 18 shown obtains video data from the video data storage 40. The DPB 64 is a buffer that stores reference video data (e.g., reference frames or pictures) used by the video encoder 20 (e.g., in intra-frame or inter-frame predictive coding mode) when encoding the video data.

[0058] like Figure 2 As shown, after receiving video data, the segmentation unit 45 within the prediction processing unit 41 segments the video data into video blocks. This segmentation may also include segmenting the video frame into strips, tiles (e.g., sets of video blocks) or other larger coding units (CUs) according to a predefined splitting structure (e.g., a quadtree (QT) structure) associated with the video data. It should be noted that the term "block" or "video block" as used herein can be a portion of a frame or image, particularly a rectangular (square or non-square) portion. Referring to, for example, HEVC and VVC, a block or video block can be or corresponds to a coding tree unit (CTU), CU, prediction unit (PU), or transform unit (TU) and / or can be or corresponds to a corresponding block (e.g., coding tree block (CTB), coding block (CB), prediction block (PB), or transform block (TB)) and / or sub-block.

[0059] The prediction processing unit 41 can select one of several feasible predictive coding modes for the current video block based on error results (e.g., coding rate and distortion level), such as one or more inter-frame predictive coding modes among multiple intra-frame predictive coding modes. The prediction processing unit 41 can provide the resulting intra-frame or inter-frame predictive coding block to adder 50 to generate a residual block, and to adder 62 to reconstruct the coding block for subsequent use as part of a reference frame. The prediction processing unit 41 also provides syntax elements (e.g., motion vectors, intra-frame mode indicators, segmentation information, and other such syntax information) to entropy coding unit 56.

[0060] To select a suitable intra-predictive coding mode for the current video block, the intra-predictive processing unit 46 within the prediction processing unit 41 can perform intra-predictive coding of the current video block in relation to one or more neighboring blocks in the same frame as the current block to be encoded to provide spatial prediction. The motion estimation unit 42 and motion compensation unit 44 within the prediction processing unit 41 perform inter-predictive coding of the current video block in relation to one or more prediction blocks in one or more reference frames to provide temporal prediction. The video encoder 20 can perform multiple coding passes, for example, to select a suitable coding mode for each block of video data.

[0061] In some implementations, motion estimation unit 42 determines an inter-frame prediction mode for the current video frame by generating motion vectors based on a predetermined pattern within the video frame sequence. The motion vectors indicate the displacement of a video block within the current video frame relative to a prediction block within a reference video frame. Motion estimation performed by motion estimation unit 42 is the process of generating motion vectors that estimate the motion of video blocks. For example, the motion vectors may indicate the displacement of a video block within the current video frame or picture relative to a prediction block within a reference frame associated with the current block being encoded in the current frame. The predetermined pattern may designate video frames in the sequence as P-frames or B-frames. Intra-frame BC unit 48 may determine vectors (e.g., block vectors) for intra-frame BC coding in a similar manner to how motion estimation unit 42 determines motion vectors for inter-frame prediction, or the block vectors may be determined using motion estimation unit 42.

[0062] Regardless of whether the predicted block comes from the same frame predicted intra-frame or from different frames predicted inter-frame, the video encoder 20 can form a residual video block by subtracting the pixel values ​​of the predicted block from the pixel values ​​of the current video block being encoded. The pixel difference forming the residual video block can include both luma component difference and chroma component difference.

[0063] Intra-prediction processing unit 46 can encode the current block using various intra-prediction modes, for example, during individual encoding passes, and intra-prediction processing unit 46 (or, in some examples, mode selection unit) can select a suitable intra-prediction mode from the tested intra-prediction modes for use. Intra-prediction processing unit 46 can provide information indicating the intra-prediction mode selected for the block to entropy coding unit 56. Entropy coding unit 56 can encode the information indicating the selected intra-prediction mode into the bitstream.

[0064] After prediction processing unit 41 determines the prediction block for the current video block via inter-frame prediction or intra-frame prediction, adder 50 forms a residual video block by subtracting the prediction block from the current video block. The residual video data in the residual block may be included in one or more TUs and provided to transform processing unit 52. Transform processing unit 52 uses a transform (e.g., discrete cosine transform (DCT) or a conceptually similar transform) to transform the residual video data into residual transform coefficients.

[0065] The transform processing unit 52 can send the resulting transform coefficients to the quantization unit 54. The quantization unit 54 quantizes the transform coefficients to further reduce the bit rate. The quantization process can also reduce the bit depth associated with some or all of the coefficients. The degree of quantization can be modified by adjusting the quantization parameters. In some examples, the quantization unit 54 can subsequently perform a scan on the matrix including the quantized transform coefficients. Alternatively, the entropy coding unit 56 can perform the scan.

[0066] After quantization, the entropy coding unit 56 entropy codes the quantized transform coefficients into a video bitstream using, for example, context-adaptive variable-length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probabilistic interval segmented entropy (PIPE) coding, or another entropy coding method or technique. The encoded bitstream can then be sent to, for example,... Figure 1 The video decoder 30 shown, or archived in, for example Figure 1 The data is stored in storage device 32 for later transmission to or retrieval by video decoder 30. Entropy coding unit 56 can also entropy code the motion vectors and other syntax elements used for the current video frame being encoded.

[0067] The inverse quantization unit 58 and the inverse transform processing unit 60 apply inverse quantization and inverse transform, respectively, to reconstruct residual video blocks in the pixel domain for generating reference blocks to predict other video blocks. As noted above, the motion compensation unit 44 can generate motion-compensated prediction blocks from one or more reference blocks of frames stored in the DPB 64. The motion compensation unit 44 can also apply one or more interpolation filters to the prediction blocks to compute sub-integer pixel values ​​for use in motion estimation.

[0068] Adder 62 adds the reconstructed residual block to the motion-compensated prediction block generated by motion compensation unit 44 to generate a reference block for storage in DPB 64. The reference block can then be used as a prediction block by intra-frame BC unit 48, motion estimation unit 42, and motion compensation unit 44 for inter-frame prediction of another video block in subsequent video frames.

[0069] Figure 3 This is a block diagram illustrating an exemplary video decoder 30 according to some embodiments of this application. The video decoder 30 includes a video data memory 79, an entropy decoding unit 80, a prediction processing unit 81, an inverse quantization unit 86, an inverse transform processing unit 88, an adder 90, and a DPB 92. The prediction processing unit 81 further includes a motion compensation unit 82, an intra-frame prediction unit 84, and an intra-frame BC unit 85. The video decoder 30 can perform operations in conjunction with the above. Figure 2 The decoding process described for the video encoder 20 is essentially the inverse of the encoding process. For example, the motion compensation unit 82 can generate prediction data based on the motion vectors received from the entropy decoding unit 80, while the intra-frame prediction unit 84 can generate prediction data based on the intra-frame prediction mode indicator received from the entropy decoding unit 80.

[0070] In some examples, embodiments of this disclosure may be distributed across one or more units of the video decoder 30. For example, the intra-frame prediction (BC) unit 85 may perform embodiments of this application individually or in combination with other units of the video decoder 30 (e.g., motion compensation unit 82, intra-frame prediction unit 84, and entropy decoding unit 80). In some examples, the video decoder 30 may not include the intra-frame prediction (BC) unit 85, and the functionality of the intra-frame prediction (BC) unit 85 may be performed by other components of the prediction processing unit 81 (e.g., motion compensation unit 82).

[0071] Video data storage 79 can store video data, such as encoded video bitstreams, that will be decoded by other components of video decoder 30. The video data stored in video data storage 79 can be obtained, for example, from storage device 32, from a local video source (e.g., a camera), via wired or wireless network communication of video data, or by accessing a physical data storage medium (e.g., a flash drive or hard disk).

[0072] During the decoding process, the video decoder 30 receives a encoded video bitstream representing video blocks and associated syntax elements of encoded video frames. The entropy decoding unit 80 of the video decoder 30 performs entropy decoding on the bitstream to generate quantization coefficients, motion vectors or intra-prediction mode indicators, and other syntax elements. The entropy decoding unit 80 then forwards the motion vectors or intra-prediction mode indicators, and other syntax elements to the prediction processing unit 81.

[0073] When a video frame is encoded as an intra-predictive coded (I) frame or used as an intra-coded prediction block in other types of frames, the intra-prediction unit 84 of the prediction processing unit 81 can generate prediction data for the video block of the current video frame based on the intra-prediction mode transmitted by the signal and reference data from the previous decoded block of the current frame.

[0074] When a video frame is encoded as an inter-frame predictive coded (i.e., B or P) frame, the motion compensation unit 82 of the prediction processing unit 81 generates one or more prediction blocks for the current video frame based on motion vectors and other syntax elements received from the entropy decoding unit 80. Each of the prediction blocks can be generated from a reference frame within a reference frame list. The video decoder 30 can construct the reference frame list, i.e., list 0 and list 1, based on the reference frames stored in the DPB 92 using a default construction technique.

[0075] In some examples, when a video block is encoded according to the intra-frame BC mode described herein, the intra-frame BC unit 85 of the prediction processing unit 81 generates a prediction block for the current video block based on the block vector and other syntax elements received from the entropy decoding unit 80. The prediction block can be located within a reconstructed region of the same image as the current video block, as defined by the video encoder 20.

[0076] The motion compensation unit 82 and / or the intra-frame BC unit 85 determine the prediction information for the video block of the current video frame by parsing motion vectors and other syntax elements, and then use the prediction information to generate a prediction block for the current video block being decoded.

[0077] The motion compensation unit 82 can also perform interpolation using interpolation filters, such as those used by the video encoder 20 during encoding of video blocks, to calculate interpolated values ​​for sub-integer pixels of the reference block. In this case, the motion compensation unit 82 can determine the interpolation filters used by the video encoder 20 based on the received syntax elements and use these interpolation filters to generate the prediction block.

[0078] The dequantization unit 86 dequantizes the quantized transform coefficients provided in the bitstream and entropy-decoded by the entropy decoding unit 80 using the same quantization parameters calculated by the video encoder 20 for each video block in the video frame to determine the degree of quantization. The inverse transform processing unit 88 applies an inverse transform (e.g., inverse DCT, inverse integer transform, or a conceptually similar inverse transform process) to the transform coefficients in order to reconstruct the residual block in the pixel domain.

[0079] After the motion compensation unit 82 or the intra-frame BC unit 85 generates a prediction block for the current video block based on vectors and other syntax elements, the adder 90 reconstructs the decoded video block for the current video block by adding the residual block from the inverse transform processing unit 88 to the corresponding prediction block generated by the motion compensation unit 82 and the intra-frame BC unit 85. A loop filter 91 (e.g., a deblocking filter, SAO filter, CCSAO filter, and / or ALF) may be located between the adder 90 and the DPB 92 for further processing of the decoded video block. In some examples, the loop filter 91 may be omitted, and the decoded video block may be directly provided to the DPB 92 by the adder 90. The decoded video block in a given frame is then stored in the DPB 92, which stores reference frames for subsequent motion compensation of the next video block. The DPB 92 or a separate memory device may also store the decoded video for later presentation on a display device (e.g., ...). Figure 1 On the display device 34).

[0080] As mentioned earlier, Motion Compensated Temporal Filter (MCTF) is an encoder-only video filtering technique. This technique utilizes the temporal correlation of the video and uses inter-block reference relationships to perform temporal filtering on reference frames to reduce temporal redundancy information generated during video block referencing, thereby improving overall coding efficiency.

[0081] MCTF technology can be mainly decomposed into two parts: the "motion estimation and compensation part" and the "filtering part." In the "motion estimation and compensation part," MCTF first performs block-level motion estimation (ME). Specifically, the current image can be uniformly divided into multiple m×m blocks, for example, multiple 8×8 blocks, and a motion vector (MV) can be obtained for each block. Then, classic block-based motion compensation can be performed on each 8×8 block using the MV, and all 8×8 motion-compensated image blocks can be directly stitched together to obtain a motion frame. This motion compensation process can be performed on each adjacent frame of the current frame, resulting in multiple motion-compensated frames corresponding to multiple adjacent frames of the current frame. In the "filtering part," each block of the current frame and the multiple motion-compensated blocks corresponding to adjacent frames are weighted according to a certain ratio and subjected to bilateral filtering to generate the final temporal filtering result.

[0082] However, in related technologies, when using MCTF for temporal filtering, the classic block-based motion compensation technique is used for each frame. That is, only one motion compensation block is obtained for each frame, and then bilateral weighted filtering is performed on the current block along with the multiple motion compensation blocks corresponding to all adjacent frames. However, using only a single hypothesis compensation per frame may lead to low prediction quality, which results in poor temporal filtering effect and low coding efficiency.

[0083] To address the aforementioned problems in related technologies, this disclosure provides a video coding method, apparatus, electronic device, and non-transitory computer-readable storage medium. It proposes a coding temporal filtering method based on multi-hypothesis weighted prediction, employing the concept of multi-hypothesis motion compensation. When performing motion-compensated temporal filtering (MCTF), it allows searching for multiple motion vectors (MVs) for each adjacent frame, rather than just one. Based on these multiple MVs, multi-hypothesis weighted prediction temporal filtering is performed, such as multi-hypothesis motion estimation, multi-hypothesis motion compensation, and multi-hypothesis temporal filtering. This significantly improves the prediction accuracy of motion estimation, motion compensation, or temporal filtering, enhancing the filtering effect of MCTF. Especially in complex and high-dynamic scenarios, it achieves higher coding efficiency, significantly improves coding performance, and reduces error propagation distortion caused by channel errors.

[0084] Below, we will refer to Figures 4 to 10 This disclosure provides a detailed description of the video coding methods, apparatus, electronic devices, and non-transitory computer-readable storage media disclosed herein.

[0085] Figure 4 This is a flowchart illustrating a video encoding method according to an exemplary embodiment of the present disclosure.

[0086] Reference Figure 4 In step 401, for each of at least one neighboring frame of the current frame, the following operations can be performed: motion estimation is performed on the current block in the current frame to search for multiple motion vectors from the neighboring frames, and motion compensation is performed on the current block based on the multiple motion vectors searched from the neighboring frames to obtain motion compensation results, thereby obtaining motion compensation results for each of at least one neighboring frame. It should be noted that the number of motion compensation results corresponding to each neighboring frame can be the same or different, and this disclosure does not impose specific restrictions on this.

[0087] Existing MCTF technology can be mainly decomposed into two parts: the "motion estimation and compensation part" and the "filtering part".

[0088] Regarding the "motion estimation" part: assuming the current frame is I t That is, it is necessary to target the current frame I. t To perform filtering, several frames before and after the current frame are needed. For example, four frames before and after the current frame are filtered sequentially. t Perform block-level motion estimation. Assuming the number of adjacent frames N = 8, they can be denoted as: I t-4 I t-3 I t-2 I t-1 I t+1 I t+2 I t+3 I t+4 .like Figure 5 As shown, Figure 5 This is a schematic diagram illustrating motion estimation and motion compensation according to an exemplary embodiment of the present disclosure, current frame I y The first four frames are: I t-4 I y-3 I t-2 I y-1 Current frame I t The last four frames are: I t+1 I t+2 I t+3 I t+4 In this way, the current frame I can be searched. tFor each N×N (e.g., 8×8) block, the most similar block within each of the next 8 frames is represented by a motion vector MV. For example, to accelerate the motion estimation process, a pyramid motion estimation approach can be used. This involves first performing a fast estimation on the downsampled image, and then performing a raw resolution motion estimation (ME) based on the downsampled ME results. Specifically, for the raw resolution, an integer-pixel ME can be performed first, followed by a sub-pixel ME based on the integer-pixel results, ultimately obtaining an MV for each block.

[0089] Regarding the "motion compensation" part: For the current 8×8 block, in each adjacent frame, the corresponding MV found can be directly used for classic block-level motion compensation to obtain the motion-compensated image block corresponding to that adjacent frame. In this way, by performing motion compensation in each of the 8 adjacent frames, the 8 best-matching image blocks corresponding to the 8 adjacent frames can be obtained, that is, 8 motion-compensated blocks.

[0090] For the "filtering part", each block of the current frame and the multiple motion compensation blocks corresponding to the adjacent frames are weighted according to a certain ratio and subjected to bilateral filtering to generate the final temporal filtering result.

[0091] However, in the existing MCTF techniques, using only a single hypothesis compensation per frame may result in low prediction quality, leading to poor temporal filtering performance and low coding efficiency. To address this issue, this disclosure proposes a coding temporal filtering method based on multi-hypothesis motion compensation (MCTF). When performing MCTF, instead of searching for a single motion vector (MV) for each adjacent frame, multiple MVs are allowed to be searched. Based on these multiple MVs, multi-hypothesis weighted prediction temporal filtering is then performed.

[0092] The following section will introduce various implementation methods for searching multiple motion vectors (MVs) of the current frame's neighboring frames.

[0093] According to an exemplary embodiment of this disclosure, multiple motion vector candidates can be searched from adjacent frames using the same motion vector search method. Then, a predetermined number of optimal motion vector candidates can be selected from the multiple motion vector candidates according to predetermined rules, serving as the multiple motion vectors corresponding to the adjacent frame. The number of "multiple motion vector candidates" can be set based on actual conditions, for example, it can be set to 2, 3, 5, etc., and this disclosure does not impose specific limitations on it.

[0094] For example, several motion vector candidates with small distortion or rate distortion can be searched from adjacent frames using the same motion vector search method. Then, a predetermined number of optimal motion vector candidates can be selected from the searched motion vector candidates as multiple motion vectors corresponding to the adjacent frames.

[0095] In this way, by searching multiple motion vectors, a more comprehensive and accurate description of the motion characteristics of the current block can be ensured, avoiding the phenomenon that poor motion compensation results are caused by relying on only a single motion vector.

[0096] According to exemplary embodiments of this disclosure, multiple motion vector candidates can also be searched from adjacent frames using different motion vector search methods to determine the multiple motion vectors corresponding to the adjacent frames. For example, similar to the bidirectional prediction method in inter-frame prediction, other motion vectors can be searched based on the optimal motion vector (MV) to optimize the weighted prediction result of motion compensation; alternatively, multiple pyramid levels of MCTF can be used to search for the optimal MV; or, multiple MV candidates can be searched using overlapping block motion estimation (ME), and then several superior MV candidates can be selected from the searched MV candidates as the multiple motion vectors of adjacent frames, etc. This disclosure does not impose specific limitations on the motion vector search method; the foregoing embodiments are merely illustrative examples.

[0097] Since each motion vector search method has its own search focus, using multiple different motion vector search methods can obtain multiple motion vectors with different characteristics. This can ensure a more comprehensive representation of the motion features of the image patch to obtain better motion compensation effect, and further improve the temporal filtering effect and coding performance.

[0098] According to exemplary embodiments of this disclosure, a first motion vector candidate can also be searched from adjacent frames using a first motion vector search method, and at least one second motion vector candidate can be searched from adjacent frames using at least one second motion vector search method. Then, a predetermined number of optimal second motion vector candidates can be selected from the at least one second motion vector candidate according to predetermined rules. Next, the first motion vector candidate and the predetermined number of optimal second motion vector candidates can be determined as a plurality of motion vectors.

[0099] For example, a first motion vector search method can be used to search for an optimal motion vector candidate from adjacent frames. Furthermore, other motion vector search methods besides the first method can be used to obtain n suboptimal motion vector candidates for the adjacent frames. Next, the distortion (e.g., Error or SSIM) of each of these n suboptimal motion vector candidates can be calculated, and then the distortion difference between the distortion of each suboptimal motion vector candidate and the distortion of the aforementioned optimal motion vector candidate can be calculated. Then, a predetermined number of suboptimal motion vector candidates with smaller corresponding distortion differences can be selected from the n suboptimal motion vector candidates for retention. Specifically, when n=1, it is determined whether the distortion difference between this one suboptimal motion vector candidate and the aforementioned optimal motion vector candidate is less than a preset threshold. If the distortion difference corresponding to the suboptimal motion vector candidate is less than the preset threshold, the suboptimal motion vector candidate can be retained; otherwise, the suboptimal motion vector candidate can be discarded, meaning that only the aforementioned optimal motion vector candidate can be used for motion compensation.

[0100] In this way, by using a variety of different motion vector search methods, we can ensure a more complete and accurate representation of the motion features of image blocks to obtain better motion compensation effects, which can further improve the temporal filtering effect and coding performance.

[0101] It should be noted that, in order to accelerate the motion estimation process in this disclosure, a pyramid motion estimation method can be adopted. That is, a fast estimation can be performed on the downsampled image first, and then the original resolution motion estimation (ME) can be performed based on the downsampled motion estimation (ME) results. Specifically, for the original resolution, an integer-pixel ME can be performed first, and then a sub-pixel ME can be performed based on the integer-pixel results, ultimately obtaining multiple motion estimation (MV) values ​​corresponding to each adjacent frame.

[0102] In step 402, temporal filtering can be performed on the current block based on the motion compensation results for each of the at least one adjacent frame to obtain the temporal filtering result of the current block. For example, as mentioned above, assuming that the number of adjacent frames of the current frame is 8, temporal filtering can be performed on the current block based on multiple motion compensation blocks obtained from each of the 8 adjacent frames to obtain the temporal filtering block of the current block.

[0103] In step 403, the current block can be encoded based on the temporal filtering result of the current block.

[0104] The multi-hypothesis weighting technique proposed in this disclosure can be applied to any stage of MCTF. The following examples illustrate the implementation of the multi-hypothesis weighting technique proposed in this disclosure at various stages of MCTF (e.g., but not limited to, motion estimation, motion compensation, and temporal filtering).

[0105] Motion Estimation Based on Multiple Hypotheses

[0106] According to an exemplary embodiment of this disclosure, multiple motion vectors searched from adjacent frames can be weighted and summed to obtain a final motion vector. Then, motion compensation can be performed on the current block based on the final motion vector. Subsequently, temporal filtering can be performed on the current block based on the motion compensation result.

[0107] Figure 6 This is a schematic diagram illustrating the application of a multi-hypothesis weighting technique in the motion estimation stage according to an exemplary embodiment of the present disclosure. (Refer to...) Figure 6 Assuming the current frame has N neighboring frames, each neighboring frame can yield multiple motion vectors (MV). Then, for each neighboring frame, the multiple motion vectors found from that frame are weighted and summed to obtain the final motion vector for that neighboring frame. Thus, N neighboring frames can each obtain a one-to-one correspondence of N final motion vectors. Next, for each neighboring frame, motion compensation can be performed on the current block of the current frame based on the final motion vector of that neighboring frame, yielding the motion compensation result for that neighboring frame, i.e., the motion compensation block. Thus, N neighboring frames can each obtain a one-to-one correspondence of N motion compensation blocks. Finally, based on the N motion compensation blocks corresponding to the N neighboring frames, temporal filtering can be performed on the current block to obtain the temporal filtering result for the current block, i.e., the temporal filtering block.

[0108] Thus, in this disclosure, a multi-vector hypothesis motion compensation prediction algorithm can be used, that is, multi-hypothesis weighted fusion can be performed in the motion estimation stage, which can significantly improve the prediction accuracy of motion compensation, and thus improve the filtering effect of MCTF.

[0109] According to an exemplary embodiment of this disclosure, the weights used for weighted summation of motion vectors can be determined based on the prediction characteristics corresponding to each motion vector, or they can be determined based on machine learning or deep learning methods.

[0110] For example, the weight of a motion vector can be determined based on the distortion (e.g., error or structural similarity (SSIM)) of each motion vector among multiple motion vectors corresponding to the same adjacent frame. For instance, the smaller the distortion of a motion vector, the higher its weight can be.

[0111] Motion compensation based on multiple hypotheses

[0112] According to an exemplary embodiment of this disclosure, motion compensation can be performed on the current block based on multiple motion vectors searched from adjacent frames to obtain multiple motion compensation results, i.e., multiple motion compensation blocks. Then, the multiple motion compensation results can be weighted and summed to obtain a final motion compensation result, i.e., a final motion compensation block. Next, temporal filtering can be performed on the current block based on the final motion compensation result obtained for each of at least one adjacent frame. For example, as mentioned above, assuming the number of adjacent frames is 8, temporal filtering can be performed on the current block based on the final motion compensation block corresponding to each of the 8 adjacent frames.

[0113] Figure 7 This is a schematic diagram illustrating multi-hypothesis weighted fusion during the motion compensation phase according to an exemplary embodiment of the present disclosure. (Refer to...) Figure 7 Assuming the current frame has N neighboring frames, each neighboring frame can yield multiple motion vectors (MVs), resulting in multiple motion compensation blocks. Then, for each neighboring frame, the multiple motion compensation blocks are weighted and fused to obtain a unique final motion compensation block. By performing weighted fusion of motion compensation blocks on each of the N neighboring frames, N final motion compensation blocks corresponding to each of the N neighboring frames can be obtained. Next, the N final motion compensation blocks can be used to perform temporal filtering on the current block, resulting in the temporal filtering result, i.e., the temporal filtered block.

[0114] Specifically, firstly, motion compensation can be performed on multiple motion prediction values ​​(MVs) (denoted as M MVs) for each adjacent frame to obtain multiple motion compensation prediction results (MCPs) for that adjacent frame. m This involves multiple motion compensation blocks (MCPs). Then, weighted fusion can be performed on the multiple motion compensation results (MCPs) corresponding to each adjacent frame to obtain the final motion compensation result (MCP) for each adjacent frame.

[0115]

[0116] Among them, w m This represents the weighted weight of the m-th motion compensation block.

[0117] Next, in the subsequent temporal filtering stage, the final motion compensation results corresponding to each of the multiple adjacent frames of the current frame can be used to perform temporal filtering on the current block of the current frame to obtain the temporal filtering result of the current block.

[0118] Thus, in this disclosure, a multi-hypothesis motion compensation improvement algorithm can be used, that is, multi-hypothesis weighted fusion can be performed in the motion compensation stage, thereby generating a more accurate prediction block for each adjacent frame for subsequent temporal filtering. This can significantly improve the prediction accuracy of motion compensation, thereby enhancing the filtering effect of MCTF.

[0119] According to an exemplary embodiment of this disclosure, the weights used for weighted summation can be determined based on the prediction characteristics corresponding to each motion compensation result, or they can be determined based on machine learning or deep learning methods.

[0120] For example, the weight of a motion compensation block can be determined based on the distortion (e.g., error or SSIM) of each motion compensation block among multiple motion compensation blocks corresponding to the same adjacent frame. For instance, the smaller the distortion of a motion compensation block, the higher its weight can be.

[0121] Time-domain filtering based on multiple hypotheses

[0122] According to exemplary embodiments of this disclosure, motion compensation can also be performed on the current block based on multiple motion vectors searched from adjacent frames to obtain multiple motion compensation results, thus obtaining multiple motion-compensated blocks. Then, temporal filtering can be performed on the current block based on the multiple motion compensation results obtained for each of the at least one adjacent frame. For example, as described above, assuming the current frame has eight adjacent frames, temporal filtering can be performed on the current block based on the multiple motion-compensated blocks obtained for each of the eight adjacent frames.

[0123] Figure 8 This is a schematic diagram illustrating multi-hypothesis weighted fusion in the time-domain filtering stage according to an exemplary embodiment of the present disclosure. (Refer to...) Figure 8 Assuming the current frame has N adjacent frames, each adjacent frame can yield multiple motion vectors (MV), thus providing multiple motion compensation blocks. Then, in the temporal filtering stage, the multiple motion compensation blocks corresponding to each of the current frame's adjacent frames can be used to perform temporal filtering on the current block, obtaining the temporal filtering result of the current block, i.e., the temporal filtering block.

[0124] Specifically, for each adjacent frame, classical motion compensation can be performed using multiple motion prediction (MV) values ​​(denoted as M MVs) corresponding to that adjacent frame, resulting in multiple motion compensation prediction (MCP) results corresponding to each MV. mThis refers to multiple motion compensation blocks. Then, the multiple motion compensation blocks corresponding to each adjacent frame in multiple adjacent frames are used in the subsequent temporal filtering stage. For example, assuming the current frame has a total of 8 adjacent frames, and each adjacent frame corresponds to 2 motion compensation blocks, then the current block of the current frame can be temporally filtered based on 2 × 8 = 16 motion compensation blocks to obtain the temporal filtered block of the current block.

[0125] It should be noted that in the "temporal filtering section," related technologies only use N (or fewer than N) motion compensation prediction blocks corresponding to the N adjacent frames of the current frame for temporal filtering. However, in this disclosure, the number of motion compensation blocks corresponding to each adjacent frame can be expanded from one to multiple, thus enabling temporal filtering based on more than N motion compensation prediction blocks to obtain the final filtering result of the current block, i.e., the final filtered block.

[0126] Thus, in this disclosure, a multi-hypothesis temporal filtering improvement algorithm can be used, that is, for N adjacent frames, more than N motion compensation prediction blocks can be generated for temporal weighted filtering, that is, multi-hypothesis weighted fusion can be performed in the temporal filtering stage, which can significantly improve the prediction accuracy of motion compensation, and thus improve the filtering effect of MCTF.

[0127] According to an exemplary embodiment of this disclosure, the filter weights used for temporal filtering can be determined based on the prediction features corresponding to each motion compensation result.

[0128] For example, the weight of a motion compensation block can be determined based on the distortion (e.g., error or SSIM) of each motion compensation block among multiple motion compensation blocks corresponding to the same adjacent frame. For instance, the smaller the distortion of a motion compensation block, the higher its weight can be.

[0129] It should be noted that this disclosure proposes three multi-hypothesis weighted temporal filtering methods: "multi-hypothesis weighted fusion in the motion estimation stage," "multi-hypothesis weighted fusion in the motion compensation stage," and "multi-hypothesis weighted fusion in the temporal filtering stage." Furthermore, in addition to the above three stages, the multiple motion compensation results of each adjacent frame can also be multi-hypothesis weighted fusion in other stages of MCTF. This disclosure does not impose specific limitations on this; the aforementioned implementation methods are merely illustrative examples.

[0130] Figure 9 This is a block diagram illustrating a video encoding apparatus 900 according to an exemplary embodiment of the present disclosure.

[0131] Reference Figure 9The video encoding device 900 may include a motion estimation module 901, a motion compensation module 902, a temporal filtering module 903, and an encoding module 904.

[0132] For each of at least one adjacent frame of the current frame, the following operations can be performed: the motion estimation module 901 performs motion estimation on the current block in the current frame to search for multiple motion vectors from the adjacent frames, and the motion compensation module 902 performs motion compensation on the current block based on the multiple motion vectors searched from the adjacent frames to obtain motion compensation results, thereby obtaining motion compensation results for each of at least one adjacent frame.

[0133] According to an exemplary embodiment of this disclosure, the motion estimation module 901 can search for multiple motion vector candidates from adjacent frames using the same motion vector search method. Then, the motion estimation module 901 can select a predetermined number of optimal motion vector candidates from the multiple motion vector candidates according to predetermined rules, as the multiple motion vectors corresponding to the adjacent frame. The number of multiple motion vector candidates can be set based on actual conditions, for example, it can be set to 2, 3, 5, etc., and this disclosure does not impose specific limitations on it.

[0134] In this way, by searching multiple motion vectors, a more comprehensive and accurate description of the motion characteristics of the current block can be ensured, avoiding the phenomenon that poor motion compensation results are caused by relying on only a single motion vector.

[0135] According to an exemplary embodiment of this disclosure, the motion estimation module 901 can also search for multiple motion vector candidates from adjacent frames using different motion vector search methods to determine multiple motion vectors corresponding to the adjacent frames. Since each motion vector search method has its own search focus, using multiple different motion vector search methods can obtain multiple motion vectors with different characteristics, ensuring a more comprehensive and complete representation of the motion features of the image patch to achieve better motion compensation results, thereby further improving the temporal filtering effect and coding performance.

[0136] According to an exemplary embodiment of this disclosure, the motion estimation module 901 can further search for first motion vector candidates from adjacent frames using a first motion vector search method, and can search for at least one second motion vector candidate from adjacent frames using at least one second motion vector search method. Then, the motion estimation module 901 can select a predetermined number of optimal second motion vector candidates from the at least one second motion vector candidate according to a predetermined rule. Next, the motion estimation module 901 can determine the first motion vector candidate and the predetermined number of optimal second motion vector candidates as a plurality of motion vectors.

[0137] In this way, by using a variety of different motion vector search methods, we can ensure a more complete and accurate representation of the motion features of image blocks to obtain better motion compensation effects, which can further improve the temporal filtering effect and coding performance.

[0138] It should be noted that, in addition to the above-described method for searching motion vectors within adjacent frames, other methods can also be used in this disclosure. This disclosure does not impose any specific restrictions on these methods, and the aforementioned motion vector search methods are merely illustrative examples.

[0139] According to an exemplary embodiment of this disclosure, the motion compensation module 902 can perform a weighted summation of multiple motion vectors searched from adjacent frames to obtain a final motion vector. Then, the motion compensation module 902 can perform motion compensation on the current block based on the final motion vector.

[0140] Thus, in this disclosure, a multi-vector hypothesis motion compensation prediction algorithm can be used, that is, multi-hypothesis weighted fusion can be performed in the motion estimation stage, which can significantly improve the prediction accuracy of motion compensation, and thus improve the filtering effect of MCTF.

[0141] According to an exemplary embodiment of this disclosure, the weights used for weighted summation of motion vectors can be determined based on the prediction characteristics corresponding to each motion vector, or they can be determined based on machine learning or deep learning methods.

[0142] According to an exemplary embodiment of this disclosure, the motion compensation module 902 can perform motion compensation on the current block based on multiple motion vectors searched from adjacent frames, obtaining multiple motion compensation results, i.e., multiple motion compensation blocks. Then, the motion compensation module 902 can perform a weighted summation of the multiple motion compensation results to obtain a final motion compensation result, i.e., a final motion compensation block. Next, the temporal filtering module 903 can perform temporal filtering on the current block based on the final motion compensation result obtained for each of the at least one adjacent frame. For example, as mentioned above, assuming the number of adjacent frames is 8, temporal filtering can be performed on the current block based on the final motion compensation block corresponding to each of the 8 adjacent frames.

[0143] Thus, in this disclosure, a multi-hypothesis motion compensation improvement algorithm can be used, that is, multi-hypothesis weighted fusion can be performed in the motion compensation stage, thereby generating a more accurate prediction block for each adjacent frame for subsequent temporal filtering. This can significantly improve the prediction accuracy of motion compensation, thereby enhancing the filtering effect of MCTF.

[0144] According to an exemplary embodiment of this disclosure, the weights used for weighted summation can be determined based on the prediction characteristics corresponding to each motion compensation result, or they can be determined based on machine learning or deep learning methods.

[0145] According to an exemplary embodiment of this disclosure, the motion compensation module 902 can further perform motion compensation on the current block based on multiple motion vectors searched from adjacent frames, obtaining multiple motion compensation results, thus obtaining multiple motion-compensated blocks. Then, the temporal filtering module 903 can perform temporal filtering on the current block based on the multiple motion compensation results obtained for each of the at least one adjacent frame. For example, as described above, assuming the number of adjacent frames of the current frame is 8, temporal filtering can be performed on the current block based on the multiple motion-compensated blocks obtained for each of the 8 adjacent frames.

[0146] Thus, in this disclosure, a multi-hypothesis temporal filtering improvement algorithm can be used, that is, for N adjacent frames, more than N motion compensation prediction blocks can be generated for temporal weighted filtering, that is, multi-hypothesis weighted fusion can be performed in the temporal filtering stage, which can significantly improve the prediction accuracy of motion compensation, and thus improve the filtering effect of MCTF.

[0147] According to an exemplary embodiment of this disclosure, the filter weights used for temporal filtering can be determined based on the prediction features corresponding to each motion compensation result.

[0148] It should be noted that this disclosure proposes three multi-hypothesis weighted temporal filtering methods: "multi-hypothesis weighted fusion in the motion estimation stage," "multi-hypothesis weighted fusion in the motion compensation stage," and "multi-hypothesis weighted fusion in the temporal filtering stage." Furthermore, in addition to the above three stages, the multiple motion compensation results of each adjacent frame can also be multi-hypothesis weighted fusion in other stages of MCTF. This disclosure does not impose specific limitations on this; the aforementioned implementation methods are merely illustrative examples.

[0149] The temporal filtering module 903 can perform temporal filtering on the current block based on the motion compensation results for each of the at least one adjacent frame, to obtain the temporal filtering result of the current block. For example, as mentioned above, assuming that the number of adjacent frames of the current frame is 8, the temporal filtering module 903 can perform temporal filtering on the current block based on multiple motion compensation blocks obtained from each of the 8 adjacent frames, to obtain the temporal filtering block of the current block.

[0150] The encoding module 904 can encode the current block based on the temporal filtering result of the current block.

[0151] Figure 10A computing environment 1010 coupled to a user interface 1050 is shown. The computing environment 1010 may be part of a data processing server. The computing environment 1010 includes a processor 1020, a memory 1030, and an input / output (I / O) interface 1040.

[0152] Processor 1020 typically controls the overall operation of computing environment 1010, such as operations associated with display, data acquisition, data communication, and image processing. Processor 1020 may include one or more processors for executing instructions to perform all or some of the steps in the methods described above. Furthermore, processor 1020 may include one or more modules that facilitate interaction between processor 1020 and other components. The processor may be a central processing unit (CPU), microprocessor, microcontroller, graphics processing unit (GPU), etc.

[0153] Memory 1030 is configured to store various types of data to support the operation of computing environment 1010. Memory 1030 may include predefined software 1032. Examples of such data include instructions for any application or method operating on computing environment 1010, video datasets, image data, etc. Memory 1030 can be implemented using any type of volatile or non-volatile memory device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0154] I / O interface 1040 provides an interface between processor 1020 and peripheral interface modules (such as keyboard, click wheel, buttons, etc.). Buttons may include, but are not limited to, a home button, a start scan button, and a stop scan button. I / O interface 1040 can be coupled to encoders and decoders.

[0155] In an embodiment, a non-transitory computer-readable storage medium is also provided, including, for example, a plurality of programs in memory 1030 and / or a bitstream generated by the above-described encoding method or a bitstream to be decoded by the above-described decoding method. The plurality of programs can be executed by processor 1020 in computing environment 1010 to perform the above-described methods. In one example, the plurality of programs can be executed by processor 1020 in computing environment 1010 to (e.g., from...) Figure 2The video encoder 20 in the computing environment 1010 receives a bitstream or data stream including encoded video information (e.g., video blocks representing encoded video frames, and / or one or more associated syntax elements, etc.), and can also be executed by the processor 1020 in the computing environment 1010 to perform the above-described decoding method based on the received bitstream or data stream. In another example, the plurality of programs can be executed by the processor 1020 in the computing environment 1010 to perform the above-described encoding method to encode video information (e.g., video blocks representing video frames, and / or one or more associated syntax elements, etc.) into a bitstream or data stream, and can also be executed by the processor 1020 in the computing environment 1010 to (e.g., to...) Figure 3 The video decoder 30 in the middle sends the bitstream or data stream. Alternatively, a non-transitory computer-readable storage medium may store data generated by the encoder (e.g., Figure 2 The video encoder 20 in the video is generated using, for example, the encoding method described above, for use by the decoder (e.g., Figure 3 The video decoder 30 in the video decoder uses a bitstream or data stream that includes encoded video information (e.g., video blocks representing encoded video frames, and / or one or more associated syntax elements, etc.) when decoding video data. Non-transitory computer-readable storage media can be, for example, ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage devices, etc.

[0156] In one embodiment, a bitstream generated by the above-described encoding method or a bitstream to be decoded by the above-described decoding method is provided. In another embodiment, a bitstream comprising encoded video information generated by the above-described encoding method or encoded video information to be decoded by the above-described decoding method is provided.

[0157] In one embodiment, a computing device is also provided, comprising: one or more processors (e.g., processor 1020); and a non-transitory computer-readable storage medium or memory 1030 therein storing a plurality of programs executable by the one or more processors, wherein the one or more processors are configured to perform the methods described above when executing the plurality of programs.

[0158] In one embodiment, a computer program product having instructions for storing or transmitting a bitstream is also provided, the bitstream including encoded video information generated by the encoding method described above or encoded video information to be decoded by the decoding method described above. In another embodiment, a computer program product including, for example, a plurality of programs in a memory 1030 is also provided, the plurality of programs being executable by a processor 1020 in a computing environment 1010 to perform the methods described above. For example, the computer program product may include a non-transitory computer-readable storage medium.

[0159] In an embodiment, the computing environment 1010 may be implemented by one or more ASICs, DSPs, digital signal processing devices (DSPDs), programmable logic devices (PLDs), FPGAs, GPUs, controllers, microcontrollers, microprocessors, or other electronic components for performing the methods described above.

[0160] In one embodiment, a method for storing a bitstream is also provided, comprising: storing the bitstream on a digital storage medium, wherein the bitstream includes encoded video information generated by the above-described encoding method or encoded video information to be decoded by the above-described decoding method.

[0161] In one embodiment, a method for transmitting a bitstream generated by the encoder described above is also provided. In another embodiment, a method for receiving a bitstream to be decoded by the decoder described above is also provided.

[0162] The description in this disclosure has been presented for illustrative purposes and is not intended to be exhaustive or limited to this disclosure. Many modifications, variations, and alternative embodiments will be apparent to those skilled in the art from the teachings presented in the foregoing description and the associated drawings.

[0163] Unless otherwise specifically stated, the order of steps in the method according to this disclosure is intended to be illustrative only, and the steps of the method according to this disclosure are not limited to the specific order described above, but may be changed according to actual circumstances. Furthermore, at least one step in the method according to this disclosure may be adjusted, combined, or omitted as needed.

[0164] The examples chosen and described are intended to explain the principles of this disclosure and to enable others skilled in the art to understand the various embodiments of this disclosure, and preferably to utilize the basic principles and various embodiments with various modifications suitable for the intended particular purpose. Therefore, it will be understood that the scope of this disclosure is not limited to the specific examples of the disclosed embodiments, and that modifications and other embodiments are intended to be included within the scope of this disclosure.

Claims

1. A video encoding method, characterized in that, include: For each of at least one neighboring frame of the current frame, perform the following operations: perform motion estimation on the current block in the current frame and search for multiple motion vectors from the neighboring frames; Based on the plurality of motion vectors searched from each of the at least one adjacent frame, a multi-hypothesis-based temporal filtering process is performed to obtain the temporal filtering result of the current block; The current block is encoded based on the temporal filtering result of the current block; The time-domain filtering process based on multiple hypotheses includes one of the following processes: motion estimation process based on multiple hypotheses, motion compensation process based on multiple hypotheses, and filtering process based on multiple hypotheses. The motion estimation process based on multiple hypotheses includes: For each of the at least one adjacent frames, a weighted sum of multiple motion vectors searched from the corresponding adjacent frames is performed to obtain a weighted motion vector, and motion compensation is performed on the current block based on the weighted motion vector to obtain a motion compensation result; Based on the motion compensation results for each of the at least one adjacent frame, temporal filtering is performed on the current block to obtain the temporal filtering result of the current block. The motion compensation process based on multiple hypotheses includes: For each of the at least one adjacent frames, motion compensation is performed on the current block based on multiple motion vectors searched from the corresponding adjacent frames to obtain multiple motion compensation results. The multiple motion compensation results are then weighted and summed to obtain a weighted motion compensation result. Based on the weighted motion compensation results for each of the at least one adjacent frame, temporal filtering is performed on the current block to obtain the temporal filtering result of the current block. The multi-hypothesis-based filtering process includes: For each of the at least one adjacent frames, motion compensation is performed on the current block based on multiple motion vectors searched from the corresponding adjacent frames, resulting in multiple motion compensation results; Based on the multiple motion compensation results obtained for each of the at least one adjacent frame, a weighted filter is applied to the current block to obtain the temporal filtering result of the current block. The step of searching for multiple motion vectors from adjacent frames includes: The optimal first motion vector candidate is searched from the adjacent frames using a first motion vector search method, and at least one second motion vector candidate is searched from the adjacent frames using at least one second motion vector search method. A predetermined number of optimal second motion vector candidates are selected from the at least one second motion vector candidate according to a predetermined rule. The first motion vector candidate and the predetermined number of optimal second motion vector candidates are determined as the plurality of motion vectors. The step of selecting a predetermined number of optimal second motion vector candidates from the at least one second motion vector candidate according to a predetermined rule includes: Calculate the distortion difference between the distortion of each of the at least one second motion vector candidate and the distortion of the first motion vector candidate; When at least one second motion vector candidate is a plurality of second motion vector candidates, a predetermined number of second motion vector candidates with the smallest distortion difference are selected from the plurality of second motion vector candidates as the predetermined number of optimal second motion vector candidates; When at least one second motion vector candidate is a second motion vector candidate, in response to the distortion difference between the distortion of the second motion vector candidate and the distortion of the first motion vector candidate being less than a preset threshold, the second motion vector candidate is selected as the predetermined number of optimal second motion vector candidates.

2. The video encoding method according to claim 1, characterized in that, The weights used in the weighted summation in the multi-hypothesis-based motion estimation process are determined based on the prediction characteristics corresponding to each motion vector, or based on machine learning or deep learning methods.

3. The video encoding method according to claim 1, characterized in that, The weights used for the weighted summation in the motion compensation process based on multiple hypotheses can be determined based on the prediction characteristics corresponding to each motion compensation result, or based on machine learning or deep learning methods.

4. The video encoding method according to claim 1, characterized in that, The weights used in the weighted filtering process based on multiple hypotheses are determined according to the predicted features corresponding to each motion compensation result.

5. A video encoding device, characterized in that, include: The motion estimation module and the motion compensation module are configured to perform the following operations for each of at least one of the neighboring frames of the current frame: perform motion estimation on the current block in the current frame and search for multiple motion vectors from the neighboring frames; The temporal filtering module is configured to perform a multi-hypothesis-based temporal filtering process based on the plurality of motion vectors searched from each of the at least one adjacent frame to obtain the temporal filtering result of the current block; The encoding module is configured to encode the current block based on the temporal filtering result of the current block; The time-domain filtering process based on multiple hypotheses includes one of the following processes: motion estimation process based on multiple hypotheses, motion compensation process based on multiple hypotheses, and filtering process based on multiple hypotheses. The motion estimation process based on multiple hypotheses includes: For each of the at least one adjacent frames, a weighted sum of multiple motion vectors searched from the corresponding adjacent frames is performed to obtain a weighted motion vector, and motion compensation is performed on the current block based on the weighted motion vector to obtain a motion compensation result; Based on the motion compensation results for each of the at least one adjacent frame, temporal filtering is performed on the current block to obtain the temporal filtering result of the current block. The motion compensation process based on multiple hypotheses includes: For each of the at least one adjacent frames, motion compensation is performed on the current block based on multiple motion vectors searched from the corresponding adjacent frames to obtain multiple motion compensation results. The multiple motion compensation results are then weighted and summed to obtain a weighted motion compensation result. Based on the weighted motion compensation results for each of the at least one adjacent frame, temporal filtering is performed on the current block to obtain the temporal filtering result of the current block. The multi-hypothesis-based filtering process includes: For each of the at least one adjacent frames, motion compensation is performed on the current block based on multiple motion vectors searched from the corresponding adjacent frames, resulting in multiple motion compensation results; Based on the multiple motion compensation results obtained for each of the at least one adjacent frame, a weighted filter is applied to the current block to obtain the temporal filtering result of the current block. The motion estimation module is configured as follows: The optimal first motion vector candidate is searched from the adjacent frames using a first motion vector search method, and at least one second motion vector candidate is searched from the adjacent frames using at least one second motion vector search method. A predetermined number of optimal second motion vector candidates are selected from the at least one second motion vector candidate according to a predetermined rule. The first motion vector candidate and the predetermined number of optimal second motion vector candidates are determined as the plurality of motion vectors. The motion estimation module is configured as follows: Calculate the distortion difference between the distortion of each of the at least one second motion vector candidate and the distortion of the first motion vector candidate; When at least one second motion vector candidate is a plurality of second motion vector candidates, a predetermined number of second motion vector candidates with the smallest distortion difference are selected from the plurality of second motion vector candidates as the predetermined number of optimal second motion vector candidates; When at least one second motion vector candidate is a second motion vector candidate, in response to the distortion difference between the distortion of the second motion vector candidate and the distortion of the first motion vector candidate being less than a preset threshold, the second motion vector candidate is selected as the predetermined number of optimal second motion vector candidates.

6. An apparatus for video encoding, comprising: One or more processors; as well as A memory, coupled to the one or more processors and configured to store instructions executable by the one or more processors. The one or more processors are configured to perform the video encoding method according to any one of claims 1-4 when executing the instructions.

7. A non-transitory computer-readable storage medium for storing computer-executable instructions, which, when executed by one or more computer processors, cause the one or more computer processors to perform the video encoding method according to any one of claims 1-4.

8. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by at least one processor, they implement the video encoding method according to any one of claims 1 to 4.

9. A method for storing a bit stream, comprising: The video encoding method according to any one of claims 1 to 4 generates a bitstream; Store the bit stream.

Citation Information

Patent Citations

  • Method and device for video processing and medium

    CN117242479A