AVS3 video coding method and device based on redundant picture header, equipment and storage medium
By inserting redundant image headers into AVS3 video encoding and splitting them into packets with the original image headers, the problem of video quality degradation and decoding interruption caused by image header loss is solved, achieving robust decoding and error recovery in high packet loss environments.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- MALANSHAN AUDIO & VIDEO LABORATORY
- Filing Date
- 2026-03-16
- Publication Date
- 2026-06-05
Smart Images

Figure CN122160525A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of video coding technology, and in particular to an AVS3 video encoding and decoding method, apparatus, device, and storage medium based on redundant image headers. Background Technology
[0002] In existing AVS3 (Audio Video Coding Standard 3) video coding error mitigation technologies, especially those using patch-based error mitigation tools, the bitstream of each frame is organized into a format of "Picture Header followed by multiple independently coded Patches," i.e., [Picture Header] + [Patch0] + [Patch1] + ... + [PatchN]. The Picture Header contains global coding parameters for the current image, such as quantization parameters and a list of reference images, while each Patch is a block of the image that can be decoded independently. However, this structure has a significant drawback: the Picture Header is the foundation upon which the entire frame is decoded; if it is lost during network transmission, even if all subsequent Patch data is received completely, the decoder will be unable to decode the frame correctly due to the lack of necessary global parameters, resulting in the failure of the entire frame. In real-world network environments, packet loss is difficult to completely avoid, and the loss of the Picture Header directly leads to a severe degradation in video quality. Furthermore, in low-latency application scenarios, if a frame is lost and there are no other error-proofing measures, not only will the current frame be unable to be recovered, but the quality of subsequent frames will also deteriorate significantly due to the destruction of the reference relationship, resulting in obvious distortion. It may even cause the decoder to be unable to continue working normally and interrupt the decoding process.
[0003] Therefore, how to ensure that image header information is not lost during transmission is a problem that needs to be solved. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide an AVS3 video encoding and decoding method, apparatus, device, and storage medium based on redundant image headers, which can avoid the loss of image header information during transmission and achieve error recovery at the decoding end according to a multi-patch encoding scheme. The specific solution is as follows: In a first aspect, this application discloses an AVS3 video encoding / decoding method based on a redundant image header, applied to an encoder, comprising: The original encoded bitstream is obtained, and a redundant image header is added to the original encoding to obtain the processed encoded bitstream; the redundant image header is the same as the original image header of the original encoding; the original encoded bitstream is the encoded bitstream of the video sequence to be transmitted after AVS3 video encoding; The processed encoded bitstream is processed using a preset bitstream format to obtain a target bitstream, and the target bitstream is divided into several data packets using a preset data packetization method; the redundant image header and the original image header in the target bitstream are located in different data packets; The plurality of data packets are sent to a decoder to perform video decoding on the processed encoded bitstream corresponding to the plurality of data packets, so as to obtain the video sequence to be transmitted; wherein, during the video decoding operation, if the original image header in the processed encoded bitstream is lost, video decoding is performed based on the redundant image header in the processed encoded bitstream.
[0005] Optionally, the step of obtaining the original encoded bitstream and adding redundant image headers to the original encoding to obtain the processed encoded bitstream includes: Obtain the original encoded bitstream, and insert a complete redundant image header bitstream before each image block written into the original encoding to obtain the processed encoded bitstream.
[0006] Optionally, processing the processed encoded bitstream using a preset bitstream format to obtain the target bitstream includes: The preset bitstream format is determined based on the order of the original image header, the redundant image header, the header information of the image block, the encoded data of the image block, and the end marker of the image block; The pre-defined bitstream format is used to process the encoded bitstream to obtain the target bitstream.
[0007] Optionally, the step of using the decoder to perform video decoding on the processed encoded bitstream corresponding to the plurality of data packets to obtain the video sequence to be transmitted includes: The decoder acquires the plurality of data packets to obtain the target bitstream, and performs cyclic decoding on each image block in the processed encoded bitstream corresponding to the target bitstream to obtain the video sequence to be transmitted.
[0008] Optionally, if the original image header in the processed encoded bitstream is lost, then video decoding is performed based on the redundant image header in the processed encoded bitstream, including: If the original image header is lost in the processed encoded bitstream, the position of the redundant image header in the processed encoded bitstream is located based on the preset bitstream format, and the redundant image header is used for video decoding.
[0009] Optionally, the step of cyclically decoding each image block in the processed encoded bitstream corresponding to the target bitstream to obtain the video sequence to be propagated includes: Determine each image block in the processed encoded bitstream corresponding to the target bitstream; The original image header in each image block is parsed sequentially, the encoded data in the image block is decoded, and the end marker in the image block is processed to obtain the video sequence to be transmitted.
[0010] Optionally, the step of using the decoder to perform video decoding on the processed encoded bitstream corresponding to the plurality of data packets to obtain the video sequence to be transmitted includes: The decoder is used to perform video decoding on the processed encoded bitstream corresponding to the plurality of data packets to obtain a decoded video sequence; The decoded video sequence is subjected to post-frame processing to obtain the video sequence to be propagated; the post-frame processing includes error recovery processing.
[0011] Secondly, this application discloses an AVS3 video encoding / decoding device based on a redundant image header, applied to an encoder, comprising: An encoding processing module is used to acquire the original encoded bitstream and add a redundant image header to the original encoding to obtain a processed encoded bitstream; the redundant image header is the same as the original image header of the original encoding; the original encoded bitstream is the encoded bitstream of the video sequence to be transmitted after AVS3 video encoding; The encoding and packetization module is used to process the processed encoded bitstream using a preset bitstream format to obtain a target bitstream, and to divide the target bitstream into several data packets using a preset data packetization method; the redundant image header and the original image header in the target bitstream are located in different data packets; The encoding and parsing module is used to send the plurality of data packets to the decoder, so as to use the decoder to perform video decoding on the processed encoded bitstream corresponding to the plurality of data packets to obtain the video sequence to be transmitted; wherein, during the video decoding operation, if the original image header in the processed encoded bitstream is lost, video decoding is performed based on the redundant image header in the processed encoded bitstream.
[0012] Thirdly, this application discloses an electronic device, including: Memory, used to store computer programs; A processor is used to execute the computer program to implement the aforementioned AVS3 video encoding and decoding method based on redundant image heads.
[0013] Fourthly, this application discloses a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements the aforementioned AVS3 video encoding and decoding method based on redundant image headers.
[0014] As can be seen, in this invention, the original encoded bitstream is obtained, and a redundant image header is added to the original encoding to obtain a processed encoded bitstream; the redundant image header is the same as the original image header of the original encoding; the original encoded bitstream is the encoded bitstream of the video sequence to be transmitted after AVS3 video encoding; the processed encoded bitstream is processed using a preset bitstream format to obtain a target bitstream, and the target bitstream is divided into several data packets using a preset data packetization method; the redundant image header and the original image header in the target bitstream are located in different data packets; the several data packets are sent to a decoder, so that the decoder can perform video decoding on the processed encoded bitstream corresponding to the several data packets to obtain the video sequence to be transmitted; wherein, during the video decoding operation, if the original image header in the processed encoded bitstream is lost, video decoding is performed based on the redundant image header in the processed encoded bitstream. That is, by writing an additional redundant image header identical to the original image header before encoding each patch, the loss of image header information during transmission is avoided, and error recovery at the decoding end is achieved according to the multi-patch encoding scheme. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0016] Figure 1 This is a flowchart of an AVS3 video encoding and decoding method based on a redundant image header disclosed in this application; Figure 2 This application discloses a specific AVS3 video encoding and decoding method based on a redundant image header. Figure 3 This is a schematic diagram of the structure of an AVS3 video codec device based on a redundant image header disclosed in this application; Figure 4 This is a structural diagram of an electronic device disclosed in this application. Detailed Implementation
[0017] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0018] Existing AVS3 uses patch-based error correction technology, with a bitstream structure consisting of an image header followed by multiple independent patches. However, the image header contains global parameters; if these parameters are lost, decoding will fail even if the patch is complete, resulting in the loss of the entire frame. Network packet loss can severely degrade video quality, and in low-latency scenarios, it can even cause distortion of subsequent frames or decoding interruptions. Therefore, this application will specifically introduce an AVS3 video encoding and decoding technology based on redundant image headers, which can solve the above problems.
[0019] See Figure 1 As shown, this application discloses an AVS3 video encoding / decoding method based on a redundant image header, applied to an encoder, including: Step S11: Obtain the original encoded bitstream and add a redundant image header to the original encoding to obtain the processed encoded bitstream; the redundant image header is the same as the original image header of the original encoding.
[0020] In this embodiment, obtaining the original encoded bitstream and adding a redundant image header to the original encoding to obtain the processed encoded bitstream includes: obtaining the original encoded bitstream and inserting a complete redundant image header bitstream before each image block written into the original encoding to obtain the processed encoded bitstream. That is, the original frame format: [PH]+[Patch0]+[Patch1]+...+[PatchN] is improved to: [PH]+[Redundant_PH+Patch0]+[Redundant_PH+Patch1]+...+[Redundant_PH+PatchN]. Specifically, the encoder inserts an additional complete Picture Header bitstream before writing each Patch: / / Write redundant Picture Headers before the first Patch ret = enc_eco_pic_header(bs, pic_header, sqh); / / Write Patch0 header and data ret = enc_eco_patch_header(bs, sqh, pic_header, shext, patch_idx,patch); / / ... Patch0 data encoding... / / Write redundant Picture Headers before subsequent patches as well. ret = enc_eco_pic_header(bs, pic_header, sqh); / / Write Patch1 header and data ret = enc_eco_patch_header(bs, sqh, pic_header, shext, patch_idx,patch); / / ... Patch1 data encoding.
[0021] In other words, the original bitstream of the AVS3 video encoding to be transmitted is first obtained, and the image header and subsequent image blocks are parsed out. Then, before writing each image block, a complete redundant image header with the exact same content as the original image header is inserted, thereby generating the processed encoded bitstream. After this processing, each image block is preceded by a copy of the image header. Even if the original image header is lost, the decoder can still use the redundant headers before each block to decode independently, significantly enhancing the error resistance.
[0022] Step S12: Process the processed encoded bitstream using a preset bitstream format to obtain a target bitstream, and divide the target bitstream into several data packets using a preset data packetization method; the redundant image header and the original image header in the target bitstream are located in different data packets.
[0023] In this embodiment, processing the processed encoded bitstream using a preset bitstream format to obtain a target bitstream includes: determining a preset bitstream format based on the order of the original image header, the redundant image header, the header information of the image block, the encoded data of the image block, and the end marker of the image block; and processing the processed encoded bitstream using the preset bitstream format to obtain the target bitstream. The preset bitstream format is shown in Table 1 below: Table 1 Preset Bitstream Format Table
[0024] In this embodiment, the bitstream is divided into independent data packets, with redundant PH and Patch data in different packets. The format of the data packets is shown in Table 2 below: Table 2 Data Packet Format Table
[0025] In addition, the original image header and each redundant image header can be encapsulated into independent data packets (patchID set to -1), and the data of each patch can be split into multiple consecutive data packets according to the actual size (patchID set to the corresponding index). In this way, each patch's data packet group is associated with a redundant header packet containing global decoding parameters. This ensures that even if the original image header is lost during transmission, the receiving end, upon receiving the start packet of any patch, can obtain the complete decoding parameters from the immediately preceding redundant header, thereby independently recovering the patch and avoiding whole-frame decoding failure. This segmented redundancy packet strategy not only significantly improves error resilience with extremely low bitrate overhead but also reduces the risk of continuous packet loss by distributing key information, making it particularly suitable for low-latency video transmission in high-packet-loss network environments. It should be noted that data in the Picture Header also participates in packet loss and will not be skipped by the simulation program. In other words, during simulated or actual network transmission, the packet loss procedure strictly adheres to the set packet loss rate, randomly discarding all data packets, including the original image header packet (patchID=-1) and redundant image header packets inserted before each patch. These packets are not given any special protection or skipped due to containing critical decoding parameters. This realistic simulation of random packet loss behavior in a network fully verifies the effectiveness of the proposed redundant header insertion strategy: even if the original image header is lost during transmission, as long as any redundant header packet is not discarded, the receiving end can obtain the complete global decoding parameters from the corresponding patch when parsing it, thus independently recovering the patch. This ensures that the entire frame still possesses robust decoding capabilities under packet loss conditions, significantly improving error handling performance.
[0026] Step S13: Send the plurality of data packets to the decoder to perform video decoding on the processed encoded bitstream corresponding to the plurality of data packets, so as to obtain the video sequence to be transmitted; wherein, during the video decoding operation, if the original image header in the processed encoded bitstream is lost, video decoding is performed based on the redundant image header in the processed encoded bitstream.
[0027] In this embodiment, the step of using the decoder to perform video decoding on the processed encoded bitstream corresponding to the plurality of data packets to obtain the video sequence to be propagated includes: the decoder acquiring the plurality of data packets to obtain the target bitstream, and performing cyclic decoding on each image block in the processed encoded bitstream corresponding to the target bitstream to obtain the video sequence to be propagated.
[0028] The step of cyclically decoding each image block in the processed encoded bitstream corresponding to the target bitstream to obtain the video sequence to be propagated includes: determining each image block in the processed encoded bitstream corresponding to the target bitstream; sequentially parsing the original image header in each image block, decoding the encoded data in the image block, and processing the end marker in the image block to obtain the video sequence to be propagated. Specifically, the decoder parses normally when it encounters a PH (0xB3 / 0xB6). If a PH is lost, the first redundant PH is found according to the bitstream. This step only requires identifying and locating (0xB3 or 0xB6) to complete the PH decoding. If all PHs are lost, decoding fails; otherwise, the frame decoding context is initialized. Each patch needs to be cyclically decoded, i.e., parsing the Patch Header (0x00-0x8E), decoding the Patch data, and processing the Patch End (0x8F). Note that before decoding each patch, redundant PHs need to be skipped (the PH has already been obtained by the decoder and does not need to be decoded repeatedly).
[0029] In this embodiment, the step of performing video decoding based on the redundant image header in the processed encoded bitstream if the original image header in the processed encoded bitstream is lost includes: if the original image header in the processed encoded bitstream is lost, locating the position of the redundant image header in the processed encoded bitstream based on the preset bitstream format, and performing video decoding using the redundant image header. That is, at the decoding end, when the decoder encounters an image header (PH, start code 0xB3 or 0xB6), it normally parses and obtains the global decoding parameters. If the original PH is lost due to network packet loss, the decoder searches for the first redundant PH (also identified as 0xB3 or 0xB6) in the subsequent bitstream and completes parameter parsing accordingly; if all PHs (including redundant PHs) are lost, the current frame decoding fails. After successfully acquiring the PH (Profile Key), the frame decoding context is initialized, and then patch loop decoding begins. Before decoding each patch, any potentially inserted redundant PHs are skipped (since they have already been parsed, no reprocessing is needed). Then, the Patch Header (start code 0x00 to 0x8E), patch data, and Patch end code (0x8F) are parsed sequentially until all patches are decoded. This process ensures that even if the original PH is lost, the decoder can still correctly recover the entire frame as long as any redundant PH exists. After decoding the current frame, error recovery begins. If a PH is lost, the PH information is restored using the method described above. If a patch is lost, the patch error recovery tool is used for corresponding decoding recovery (this part is already in the code and is not part of this invention). Decoding of the current frame will only fail if both the PH and redundant PHs of a given frame are lost; otherwise, decoding will be successful.
[0030] In this embodiment, the step of using the decoder to perform video decoding on the processed encoded bitstream corresponding to the plurality of data packets to obtain the video sequence to be propagated includes: using the decoder to perform video decoding on the processed encoded bitstream corresponding to the plurality of data packets to obtain the decoded video sequence; performing post-frame processing on the decoded video sequence to obtain the video sequence to be propagated; the post-frame processing includes error recovery processing. Specifically, after decoding all patches, the post-frame processing stage is entered. First, error recovery processing is performed: for patch regions where data is missing or decoding fails due to network packet loss, the decoder uses the information of neighboring pixels that have been correctly decoded (such as spatial domain intra-frame prediction or temporal domain motion compensation) to hide errors, fill in the missing parts, and ensure the integrity of the entire frame image. Subsequently, deblocking filtering is performed on the reconstructed entire frame image, and adaptive smoothing processing is used to eliminate the boundary block effect introduced by block-based coding, thereby improving the subjective smoothness of the image. Finally, sample adaptive compensation (SAO) filtering is applied, and offset compensation is performed on the reconstructed samples according to pixel classification, further reducing ringing effects and distortion, and enhancing the fidelity of image edges and textures. After this series of post-processing operations, the final output is a decoded frame with optimized quality, providing a higher quality image for subsequent reference or display.
[0031] As can be seen, in this embodiment, as Figure 2 As shown, the original encoded bitstream is obtained, and a redundant image header is added to the original encoding to obtain a processed encoded bitstream; the redundant image header is the same as the original image header of the original encoding; the original encoded bitstream is the encoded bitstream of the video sequence to be transmitted after AVS3 video encoding; the processed encoded bitstream is processed using a preset bitstream format to obtain a target bitstream, and the target bitstream is divided into several data packets using a preset data packetization method; the redundant image header and the original image header in the target bitstream are located in different data packets; the several data packets are sent to a decoder to perform video decoding on the processed encoded bitstream corresponding to the several data packets to obtain the video sequence to be transmitted; wherein, during the video decoding operation, if the original image header in the processed encoded bitstream is lost, video decoding is performed based on the redundant image header in the processed encoded bitstream. That is, by writing an additional redundant image header identical to the original image header before encoding each patch, the loss of image header information during transmission is avoided, and error recovery at the decoding end is achieved according to the multi-patch encoding scheme.
[0032] refer to Figure 3 The present application also discloses an AVS3 video encoding / decoding device based on a redundant image header, applied to an encoder, comprising: The encoding processing module 11 is used to acquire the original encoded bitstream and add a redundant image header to the original encoding to obtain the processed encoded bitstream; the redundant image header is the same as the original image header of the original encoding; the original encoded bitstream is the encoded bitstream of the video sequence to be transmitted after AVS3 video encoding; The encoding and packetization module 12 is used to process the processed encoded bitstream using a preset bitstream format to obtain a target bitstream, and to divide the target bitstream into several data packets using a preset data packetization method; the redundant image header and the original image header in the target bitstream are located in different data packets; The encoding and parsing module 13 is used to send the plurality of data packets to the decoder, so as to use the decoder to perform video decoding on the processed encoded bitstream corresponding to the plurality of data packets to obtain the video sequence to be transmitted; wherein, during the video decoding operation, if the original image header in the processed encoded bitstream is lost, video decoding is performed based on the redundant image header in the processed encoded bitstream.
[0033] As can be seen, in this embodiment, by writing an additional redundant image header identical to the original image header before encoding each patch, the loss of image header information during transmission is avoided, and error recovery at the decoding end is achieved according to the multi-patch encoding scheme.
[0034] In some specific embodiments, the encoding processing module 11 can be used to obtain the original encoded bitstream and insert a complete redundant image header bitstream before each image block written into the original encoding to obtain the processed encoded bitstream.
[0035] In some specific embodiments, the encoding and packetization module 12 may specifically include: The bitstream format determination unit is used to determine a preset bitstream format based on the order of the original image header, the redundant image header, the header information of the image block, the encoded data of the image block, and the end marker of the image block; The target bitstream determination unit is used to process the processed encoded bitstream using the preset bitstream format to obtain the target bitstream.
[0036] In some specific embodiments, the encoding and parsing module 13 may specifically include: The encoding / decoding submodule is used by the decoder to acquire the plurality of data packets to obtain the target bitstream, and to perform cyclic decoding on each image block in the processed encoded bitstream corresponding to the target bitstream to obtain the video sequence to be transmitted.
[0037] In some specific embodiments, the encoding and parsing module 13 may specifically include: The decoding and recovery unit is used to locate the position of the redundant image header in the processed encoded bitstream based on the preset bitstream format if the original image header in the processed encoded bitstream is lost, and to perform video decoding using the redundant image header.
[0038] In some specific embodiments, the encoding / decoding submodule may specifically include: An image block determination unit is used to determine each image block in the processed encoded bitstream corresponding to the target bitstream; The image processing unit is used to sequentially parse the original image header in each image block, decode the encoded data in the image block, and process the end marker in the image block to obtain the video sequence to be transmitted.
[0039] In some specific embodiments, the encoding and parsing module 13 may specifically include: A video decoding unit is used to perform video decoding on the processed encoded bitstream corresponding to the plurality of data packets using the decoder, so as to obtain a decoded video sequence; A post-frame processing unit is used to perform post-frame processing on the decoded video sequence to obtain the video sequence to be propagated; the post-frame processing includes error recovery processing.
[0040] Furthermore, embodiments of this application also disclose an electronic device, Figure 4 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.
[0041] Figure 4 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the AVS3 video encoding / decoding method based on redundant image heads disclosed in any of the foregoing embodiments. Alternatively, the electronic device 20 in this embodiment may specifically be a computer.
[0042] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0043] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0044] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the AVS3 video encoding / decoding method based on redundant image headers executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include computer programs capable of performing other specific tasks.
[0045] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned disclosed AVS3 video encoding and decoding method based on redundant image headers. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.
[0046] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0047] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0048] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0049] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0050] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. An AVS3 video encoding / decoding method based on redundant image headers, characterized in that, Applied to encoders, including: The original encoded bitstream is obtained, and a redundant image header is added to the original encoding to obtain the processed encoded bitstream; the redundant image header is the same as the original image header of the original encoding; the original encoded bitstream is the encoded bitstream of the video sequence to be transmitted after AVS3 video encoding; The processed encoded bitstream is processed using a preset bitstream format to obtain a target bitstream, and the target bitstream is divided into several data packets using a preset data packetization method; the redundant image header and the original image header in the target bitstream are located in different data packets; The plurality of data packets are sent to a decoder to perform video decoding on the processed encoded bitstream corresponding to the plurality of data packets, so as to obtain the video sequence to be transmitted; wherein, during the video decoding operation, if the original image header in the processed encoded bitstream is lost, video decoding is performed based on the redundant image header in the processed encoded bitstream.
2. The AVS3 video encoding and decoding method based on redundant image headers according to claim 1, characterized in that, The process of obtaining the original encoded bitstream and adding redundant image headers to the original encoding to obtain the processed encoded bitstream includes: Obtain the original encoded bitstream, and insert a complete redundant image header bitstream before each image block written into the original encoding to obtain the processed encoded bitstream.
3. The AVS3 video encoding and decoding method based on redundant image headers according to claim 2, characterized in that, The step of processing the encoded bitstream using a preset bitstream format to obtain the target bitstream includes: The preset bitstream format is determined based on the order of the original image header, the redundant image header, the header information of the image block, the encoded data of the image block, and the end marker of the image block; The pre-defined bitstream format is used to process the encoded bitstream to obtain the target bitstream.
4. The AVS3 video encoding and decoding method based on redundant image headers according to claim 2, characterized in that, The step of using the decoder to perform video decoding on the processed encoded bitstream corresponding to the plurality of data packets to obtain the video sequence to be transmitted includes: The decoder acquires the plurality of data packets to obtain the target bitstream, and performs cyclic decoding on each image block in the processed encoded bitstream corresponding to the target bitstream to obtain the video sequence to be transmitted.
5. The AVS3 video encoding and decoding method based on redundant image headers according to claim 4, characterized in that, If the original image header is lost in the processed encoded bitstream, video decoding is performed based on the redundant image header in the processed encoded bitstream, including: If the original image header is lost in the processed encoded bitstream, the position of the redundant image header in the processed encoded bitstream is located based on the preset bitstream format, and the redundant image header is used for video decoding.
6. The AVS3 video encoding and decoding method based on redundant image headers according to claim 4, characterized in that, The step of cyclically decoding each image block in the processed encoded bitstream corresponding to the target bitstream to obtain the video sequence to be propagated includes: Determine each image block in the processed encoded bitstream corresponding to the target bitstream; The original image header in each image block is parsed sequentially, the encoded data in the image block is decoded, and the end marker in the image block is processed to obtain the video sequence to be transmitted.
7. The AVS3 video encoding and decoding method based on redundant image headers according to any one of claims 1 to 6, characterized in that, The step of using the decoder to perform video decoding on the processed encoded bitstream corresponding to the plurality of data packets to obtain the video sequence to be transmitted includes: The decoder is used to perform video decoding on the processed encoded bitstream corresponding to the plurality of data packets to obtain a decoded video sequence; The decoded video sequence is subjected to post-frame processing to obtain the video sequence to be propagated; the post-frame processing includes error recovery processing.
8. An AVS3 video encoding / decoding device based on a redundant image header, characterized in that, Applied to encoders, including: An encoding processing module is used to acquire the original encoded bitstream and add a redundant image header to the original encoding to obtain a processed encoded bitstream; the redundant image header is the same as the original image header of the original encoding; the original encoded bitstream is the encoded bitstream of the video sequence to be transmitted after AVS3 video encoding; The encoding and packetization module is used to process the processed encoded bitstream using a preset bitstream format to obtain a target bitstream, and to divide the target bitstream into several data packets using a preset data packetization method; the redundant image header and the original image header in the target bitstream are located in different data packets; The encoding and parsing module is used to send the plurality of data packets to the decoder, so as to use the decoder to perform video decoding on the processed encoded bitstream corresponding to the plurality of data packets to obtain the video sequence to be transmitted; wherein, during the video decoding operation, if the original image header in the processed encoded bitstream is lost, video decoding is performed based on the redundant image header in the processed encoded bitstream.
9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the AVS3 video encoding / decoding method based on redundant image heads as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, Used to store a computer program, which, when executed by a processor, implements the AVS3 video encoding and decoding method based on a redundant image head as described in any one of claims 1 to 7.