CN111385579A - Video compression method, device, equipment and storage medium - Google Patents

Video compression method, device, equipment and storage medium Download PDF

Info

Publication number
CN111385579A
CN111385579A CN202010273536.6A CN202010273536A CN111385579A CN 111385579 A CN111385579 A CN 111385579A CN 202010273536 A CN202010273536 A CN 202010273536A CN 111385579 A CN111385579 A CN 111385579A
Authority
CN
China
Prior art keywords
video
pixel
conversion relation
target video
relation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010273536.6A
Other languages
Chinese (zh)
Other versions
CN111385579B (en
Inventor
刘晓娟
翟海昌
颜乐驹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bigo Technology Singapore Pte Ltd
Original Assignee
Guangzhou Baiguoyuan Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Baiguoyuan Information Technology Co Ltd filed Critical Guangzhou Baiguoyuan Information Technology Co Ltd
Priority to CN202010273536.6A priority Critical patent/CN111385579B/en
Publication of CN111385579A publication Critical patent/CN111385579A/en
Application granted granted Critical
Publication of CN111385579B publication Critical patent/CN111385579B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/136Incoming video signal characteristics or properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/182Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/186Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component

Abstract

The invention discloses a video compression method, a video compression device, video compression equipment and a storage medium. Wherein, the method comprises the following steps: acquiring content color characteristics of a target video; determining a pixel conversion relation according to the content color feature and a preset conversion relation table; and after the target video is processed according to the pixel conversion relation, sending the target video and the pixel conversion relation. The embodiment of the invention determines the pixel conversion relation according to the content color characteristics of the target video, improves the adaptation degree of the video processing process, reduces the visual redundancy of video data, can improve the coding compression ratio of the target video and enhances the transmission efficiency of the video data.

Description

Video compression method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computer application, in particular to a video compression method, a video compression device, video compression equipment and a storage medium.
Background
The relation between the input voltage and the output brightness of the early CRT display screen is not a linear relation, but a power exponential relation, and the approximate corresponding relation is output ═ pow (input, Gamma), that is, the Gamma characteristic of the display. However, because human eyes have different sensitivity degrees to different brightness, the sensitivity to dark parts is higher than that to bright parts, and the characteristics of the human eyes are limited in storage space and human eyes, a dark part area of a video can be represented by a numerical value with higher precision, the bright parts cannot be sensed by the human eyes even if the precision is slightly reduced, the fixed Gamma transformation cannot be well adapted to videos with different contents, a large amount of visual redundancy still exists after the videos are subjected to compression coding, and the compression ratio of video data is lower.
Disclosure of Invention
The invention provides a video compression method, a device, equipment and a storage medium, which are used for determining coding compression parameters according to video contents, improving the proportional compression of video data and reducing the visual redundancy of videos.
In a first aspect, an embodiment of the present invention provides a video compression method, where the method includes:
acquiring content color characteristics of a target video;
determining a pixel conversion relation according to the content color feature and a preset conversion relation table;
and after the target video is processed according to the pixel conversion relation, sending the target video and the pixel conversion relation.
In a second aspect, an embodiment of the present invention provides a video compression method, where the method includes:
acquiring video coding data and pixel conversion relation;
and processing the decoded video coding data according to the pixel conversion relation.
In a third aspect, an embodiment of the present invention provides a video compression apparatus, including:
the characteristic acquisition module is used for acquiring the content color characteristics of the target video;
the relation determining module is used for determining pixel conversion relation according to the content color characteristics and a preset conversion relation table;
and the coding sending module is used for sending the target video and the pixel conversion relation after the target video is processed according to the pixel conversion relation.
In a fourth aspect, an embodiment of the present invention provides a video compression apparatus, including:
the information acquisition module is used for acquiring video coding data and pixel conversion relation;
and the video processing module is used for processing the decoded video coding data according to the pixel conversion relation.
In a fifth aspect, an embodiment of the present invention provides an apparatus, where the apparatus includes:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of video compression as in any one of the embodiments of the invention.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a video compression method according to any embodiment of the present invention.
According to the embodiment of the invention, the content color characteristics of the target video are determined, the pixel conversion relation is determined according to different content color characteristics, the target video is processed according to the pixel conversion relation and is transmitted together with the pixel conversion relation after being coded, different pixel conversion relations are determined for different target videos, the visual redundancy of the videos is reduced, the compression ratio of video data is improved, the transmission efficiency of the video data is improved, and the user video watching experience degree is enhanced.
Drawings
Fig. 1 is a flowchart of a video compression method according to an embodiment of the present invention;
fig. 2 is a flowchart of a video compression method according to a second embodiment of the present invention;
FIG. 3 is an exemplary diagram of a color feature of content according to a second embodiment of the present invention;
fig. 4 is a flowchart of a video compression method according to a third embodiment of the present invention;
fig. 5 is a flowchart of a video compression method according to a fourth embodiment of the present invention;
fig. 6 is an exemplary diagram of a video compression method according to a fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a video compression apparatus according to a fifth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a video compression apparatus according to a sixth embodiment of the present invention;
fig. 9 is a schematic structural diagram of an apparatus provided in the seventh embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be noted that, for convenience of description, only a part of the structures related to the present invention, not all of the structures, are shown in the drawings, and furthermore, embodiments of the present invention and features of the embodiments may be combined with each other without conflict.
Because of the limitation of the physiological characteristics of the human visual system and the auditory system, the image information of the video is slightly transformed, so that the human cannot detect the change, the video is still considered to be intact after the change signals are ignored, and the data beyond the human visual range in the video becomes visual redundancy. Further, human eyes have different sensitivities to different luminances, for example, the sensitivity to dark pixels is higher than the sensitivity to bright pixels. At present, the commonly used video coding standards H26X series, MPEG series, VPX series, and the like, all directly process the pixels of the video, and the processing parameters of the pixels are fixed values in the processing process, however, the discrimination of the human eyes on the pixels with different brightness in the video is not fully considered, so that the visual redundancy of the processed video is still high.
Example one
Fig. 1 is a flowchart of a video compression method according to an embodiment of the present invention, where the video compression method is applicable to a situation of performing encoding compression during video transmission, and the method may be executed by a video encoding and compressing apparatus, where the apparatus may be implemented in a hardware and/or software manner, and may be generally integrated at an encoding end, referring to fig. 1, where the video compression method according to the embodiment of the present invention specifically includes the following steps:
and step 101, acquiring the content color characteristics of the target video.
The target video may be a video that needs to be encoded, and the target video may reduce the visual redundancy data in the video data after the encoding. The content color feature may be data representing an image color feature in the target video, for example, the image color feature may be an average pixel value and a pixel value distribution of the target video, and the like.
Specifically, the pixel points of the target video may be processed to obtain the content color feature related to the content color, for example, the target video may be converted into a YUV format, the Y component of the target video may be extracted, the pixel values of the pixel points in the Y component may be counted, and the average value of the pixel values may be determined as the content color feature.
And 102, determining a pixel conversion relation according to the content color feature and a preset conversion relation table.
The preset conversion relation table may be a data table in which content color features and pixel conversion relations are stored in an associated manner, different content color features may correspond to different pixel conversion relations, and the corresponding relation between the content color features and the pixel conversion relations in the preset conversion relation table may be determined through multiple experiments, for example, a pixel value conversion may be performed on videos with different content color features, a corresponding compression ratio may be determined after conversion, a pixel value conversion relation corresponding to the compression ratio having the largest value may be selected, and the conversion relation and the corresponding content color features may be stored in the preset conversion relation table in an associated manner.
In the embodiment of the invention, the pixel conversion relation corresponding to the content color characteristic is searched in the preset conversion relation table, and the searched pixel conversion relation is used for processing the target video. It is understood that the pixel conversion relationship is a relationship that changes pixel values of pixels in the target video, for example, all of the pixel values 1, 2, 3, 4, and 5 are converted into the pixel value 3, the pixel conversion relationship may be a corresponding relationship that transforms a plurality of pixel values into another pixel value, and the pixel conversion relationship specifically includes a first order relationship, an exponential relationship, a power-exponent relationship, a piecewise function relationship, and the like.
And 103, sending the target video and the pixel conversion relation after processing the target video according to the pixel conversion relation.
Specifically, the pixel values of the pixel points of the target video are converted through the pixel conversion relation, and the visual redundancy of the target video is reduced under the condition that the pixel value distribution state of the target video is not changed. And processing the target video based on the pixel conversion relation, then coding and compressing the target video, and sending the coded and compressed target video and the corresponding pixel conversion relation to a decoding end.
According to the technical scheme of the embodiment of the invention, the content color characteristics of the target video are obtained, the pixel conversion relation is determined based on the content color characteristics and the preset conversion relation table, the target video processed according to the pixel conversion relation is coded and compressed, the target video and the corresponding pixel conversion relation are sent, the brightness conversion is carried out according to the content of the target video, the adaptation degree of the brightness conversion is improved, the visual redundancy in the video image is reduced, the coding compression ratio of the target video is improved, and the transmission efficiency of the video data can be enhanced.
Further, on the basis of the foregoing embodiment of the present invention, the method for extracting a content color feature includes at least one of a color set, a color matrix, a color aggregation vector, a color correlation diagram, and a color histogram.
In the embodiment of the present invention, the content color feature of the target video may be extracted by a plurality of methods, specifically including a color set, a color matrix, a color aggregation direction, a color correlation diagram, a color histogram, and the like, and the distribution of each pixel value in the target video is determined by the above-mentioned method, and the distribution is used as the content color feature of the target video.
Further, on the basis of the above embodiment of the present invention, the preset transformation relation table is determined by counting the encoding compression rates of the threshold number of experimental videos under different pixel transformation relations.
The experimental videos are image videos with different video contents, the threshold number is the minimum number of the selected experimental videos when the preset conversion relation table is established, and the more the number of the selected experimental videos is, the more accurate the corresponding relation between the content color characteristics and the pixel conversion relation in the preset conversion relation table is. The encoding compression ratio is the data scale proportion of the experimental video before and after encoding compression, and the smaller the value of the encoding compression ratio is, the higher the compression degree of the experimental video can be.
Specifically, the preset conversion relationship table stores the content color features and the pixel conversion relationships in an associated manner, and different content color features may correspond to different pixel conversion relationships. The corresponding relationship between the content color features and the pixel transformation relationships in the preset transformation relationship table may be determined through experiments, for example, an experimental video with the same content color features may be processed according to different pixel transformation relationships, and may be encoded and compressed after the processing, and the pixel transformation relationship with the smallest encoding compression rate may be selected to correspond to the content color features, and different content color features and corresponding pixel transformation relationships may be obtained by processing a large number of experimental videos, and the content color features and the pixel transformation relationships may be stored in the preset transformation relationship table.
Example two
Fig. 2 is a flowchart of a video compression method according to a second embodiment of the present invention, which is embodied on the basis of the second embodiment of the present invention, in which the ratio of the statistical pixel values is used as the content color feature, and accordingly, referring to fig. 2, the method according to the second embodiment of the present invention specifically includes the following steps:
step 201, extracting the pixel value of each pixel point in the target video.
The pixel points can be points of video images forming the target video, the pixel points can be components of the target video, the whole target video is represented by information such as positions, colors and brightness of the pixel points, the pixel values can be average brightness information or average reflection density information of the video images in the target video corresponding to the pixel points in the target video, and the pixel values are specifically composed of three color vector matrixes.
Specifically, a target video is collected and converted into a YUV format, a Y component in the YUV format target video can be extracted, and a pixel value of each pixel point is obtained in the Y component.
Step 202, determining the number of pixel points corresponding to each pixel value.
In the implementation of the present invention, the number of the pixel points corresponding to each pixel value is counted, for example, a hash function corresponding to each pixel value may be created in a hash manner, the pixel value of each pixel point of the target video is input into the hash function, and the number of the pixel points corresponding to each pixel value is counted according to the hash result.
And 203, taking the proportion of each pixel point in the target video in the number as the content color characteristic of the target video.
Specifically, for each pixel value, the ratio of the number of corresponding pixel points to the number of all pixel points in the target video is determined, and the ratio of the corresponding pixel values is used as the content color feature of the target video. For example, fig. 3 is an exemplary diagram of a content color feature according to a second embodiment of the present invention, and referring to fig. 3, the content color feature is embodied by using a color histogram of a target video, a video image original image of the target video may be shown on the left side of fig. 3, a color histogram of the video image original image may be shown on the right side of fig. 3, an abscissa in the color histogram represents a type of a pixel value in the target video, the range is 0 to 255, and the ordinate is a percentage of a total number of pixels of the video image original image occupied by each pixel value.
And 204, searching a relation identification number corresponding to the content color characteristic in the preset conversion relation table.
Specifically, the corresponding relationship identification number may be found in the preset conversion relationship table through the content color feature. The relationship identification number may be a unique identification number of the pixel conversion relationship, the relationship identification number may be stored in association with the content color feature in the preset conversion relationship table, the relationship identification number stored in association may be found through the content color feature, and the relationship identification number may specifically be a character string composed of numbers, letters, and/or special symbols.
And step 205, searching the pixel conversion relation corresponding to the relation identification number.
In the embodiment of the present invention, the pixel conversion relationship may be pre-stored in the device. The pixel conversion relation may be located in the preset conversion relation table, or may be stored in different storage spaces separately from the preset conversion relation table. The number of the pixel conversion relations can be multiple, the corresponding pixel conversion relations are found through the relation identification numbers, and the pixel conversion relations are used for converting pixel values of pixel points in the target video.
And step 206, converting the pixel points in the target video from the initial pixel values to the target pixel values according to the pixel conversion relation.
The initial pixel value may be a pixel value of a pixel point in a target video in an initial state, the target pixel value may be a pixel value after conversion according to a pixel conversion relationship, and a numerical relationship between the initial pixel value and the target pixel value is specifically expressed as a pixel conversion relationship.
Specifically, the pixel values of the pixels in the target video are transformed according to the pixel transformation relationship, so that the pixels in the target video are transformed from the initial pixel values to the target pixel values.
And step 207, performing compression coding on the processed target video to generate video coded data.
The video coded data may be a target video subjected to coding compression processing, and the data amount of the video coded data may be smaller than that of the target video when the video coded data is transmitted.
Specifically, the target video may be subjected to encoding and compression processing, and the process of the encoding and compression processing may be specifically realized by encoding standards such as H264, H265, MPEG, and vpx, and the target video after encoding and compression is used as video encoded data.
And step 208, sending the video coding data and the relation identification number of the pixel conversion relation to a decoding end.
Specifically, the decoding end may be an equipment end for decrypting and restoring the video encoded data, and the decoding end and the encoding end may be located at the same equipment end or at different equipment ends. When the target video is transmitted, the corresponding video encoding data may be sent to the decoding end, and the pixel conversion relationship may also be sent together, and it can be understood that the video encoding data and the pixel transcoding relationship may be sent through the same transmission channel, or may be sent through different transmission channels. For example, the pixel transcoding relationship may be written into an encoding protocol, the pixel transcoding relationship may be written into the video encoding data during the encoding process of the target video, and the video encoding data may be directly sent to the decoding end.
According to the embodiment of the invention, the pixel values of all the pixel points in the target video are extracted, the number of the pixel points corresponding to all the pixel values is determined, the proportion of the pixel points corresponding to all the pixel values in the target video is used as the content color feature, the corresponding relationship identification is searched in the preset conversion relationship table through the content color feature, the pixel conversion relationship is determined by the relationship identification and the target video is processed, the target video is encoded and compressed to generate the video encoding data after processing, and the video encoding data and the pixel conversion relationship are sent to the decoding end, so that the high-quality display of the video content is realized, the adaptation degree of the processing parameters of different content videos is improved, the visual redundancy of the video data is reduced, the compression proportion of the video is improved, and the transmission cost of the video data is reduced.
EXAMPLE III
Fig. 4 is a flowchart of a video compression method according to a third embodiment of the present invention, where the video compression method according to the third embodiment of the present invention is applicable to a situation of performing encoding compression during video transmission, and the method may be executed by a video encoding and compressing apparatus, and the apparatus may be implemented in a hardware and/or software manner, and may be generally integrated at a decoding end, referring to fig. 4, where the video compression method according to the third embodiment of the present invention specifically includes the following steps:
step 301, acquiring video coding data and pixel conversion relation.
The video coded data can be data generated after video is compressed and coded, the video coded data can be realized by compressing video through coding standards such as H264, H265, MPEG, vpx and the like, and the visual redundancy of the video coded data can be far smaller than that of the original video. The pixel conversion relationship is a relationship in which the pixel value of a pixel is changed, and for example, all of the pixel values 1, 2, 3, 4, and 5 may be converted into the pixel value 3.
Specifically, the video encoding data and the pixel conversion relationship sent by the encoding end may be monitored and received by a transmission channel, it may be understood that the video encoding data and the pixel conversion relationship may be transmitted through the same transmission channel, or may be transmitted through different transmission channels, and the pixel transcoding relationship may be located in the video encoding data, for example, a storage step of the pixel conversion relationship may be added in an encoding protocol at a compression encoding stage of a video, and the pixel conversion relationship may be directly stored in the video encoding data.
Step 302, processing the decoded video encoding data according to the pixel conversion relationship.
In the embodiment of the present invention, the video encoding data may be decoded to restore the video encoding data to the original video, and the process of restoring the video encoding data may be the reverse of the compression encoding process, for example, when the video compression encoding process uses the H264 encoding rule, the H264 decoding rule may be used in the restoration process of the video encoding data. After the video coding data is restored into the video, pixel points in the video are re-converted according to the pixel conversion relationship, for example, pixel values lower than the threshold brightness are restored from the current pixel values to the initial pixel values according to the pixel conversion relationship.
According to the embodiment of the invention, the video coding data and the pixel conversion relation are obtained, and the decoded video coding data is processed according to the pixel conversion relation, so that the adaptation of the pixel conversion relation and the video content is realized, the coding compression ratio of the video image is improved, the visual redundancy of the video image is reduced, and the transmission efficiency of the video can be improved.
Example four
Fig. 5 is a flowchart of a video compression method according to a fourth embodiment of the present invention, which is embodied based on the foregoing embodiment of the present invention, and the embodiment of the present invention uses a relationship identification number to replace a pixel conversion relationship for transmission, and uses the relationship identification number to search a stored pixel conversion relationship to obtain a pixel conversion relationship, where referring to fig. 5, the method according to the embodiment of the present invention specifically includes the following steps:
step 401, receiving video coding data and a relationship identification number sent by a coding end.
The relationship identification number can be the only identification number of the pixel conversion relationship, and the transmission overhead of the video data transmission process can be reduced by replacing the pixel conversion relationship with the relationship identification number. The encoding end may be a device end for encoding data of video data, and it can be understood that the encoding end and the decoding end may be at the same device end or at different device ends.
Specifically, the encoding end may be monitored, for example, a communication channel or a transmission bus of the encoding end is monitored, and the video encoding data and the relationship identification number sent by the encoding end are obtained. In the embodiment of the invention, the relationship identification number can be merged into the video coding data in advance, and the video coding data and the relationship identification number are transmitted together by taking the video coding data as a carrier.
And step 402, searching a pixel conversion relation corresponding to the relation identification number.
Specifically, the pixel conversion relationship may be preset and stored in the decoding end, and the corresponding pixel conversion relationship may be found according to the relationship identification number, and it may be understood that the pixel conversion relationship of the decoding end may be the same as the pixel conversion relationship of the encoding end, or may be different from the pixel conversion relationship of the encoding end, for example, the pixel conversion relationship corresponding to the relationship identification number in the encoding end may convert the pixel values 1, 2, 3, and 4 into the pixel value 3, and the pixel conversion relationship corresponding to the relationship identification number in the decoding end may convert the pixel value 3 into 2, 3, or 4.
And 403, decoding the video coding data according to a preset decoding rule to generate an initial video.
The preset decoding rule may be a rule for restoring video encoded data to a video, and the preset decoding rule may correspond to an encoding rule used by the encoding end.
Specifically, a decoding rule may be preset to restore the video encoded data to the initial video, and when restoring the video data, if the relationship identification number is located in the video encoded data, the relationship identification number is removed, and then the remaining video encoded data is decoded according to the decryption rule to generate the initial video.
And 404, restoring the pixel points in the initial video from the target pixel values to the initial pixel values according to the pixel conversion relation.
The target pixel value may be a pixel value of each pixel point in the initial video, and the initial pixel value may be a pixel value obtained by converting the target pixel value through a pixel conversion relationship.
In the embodiment of the invention, the pixel points in the initial video are restored from the target pixel values to the initial pixel values through the pixel conversion relationship, so that the visual redundancy of the initial video can be improved, and the improvement of the definition of the video image is realized.
According to the embodiment of the invention, the video coding data and the relation identification number sent by the coding end are received, the corresponding pixel conversion relation is searched through the relation identification number, the video coding data are processed according to the preset decoding rule to generate the initial video, the pixel value of the initial video is converted through the pixel conversion relation, the high-efficiency transmission of the video is realized, the visual redundancy in the transmission process is reduced, the video image is restored according to the pixel conversion relation, the definition of the video is improved, and the experience degree of the user watching the video can be enhanced.
For example, fig. 6 is an exemplary diagram of a video compression method according to a fourth embodiment of the present invention, and referring to fig. 6, different content may be sensed by using a certain video detection algorithm for video pixels, a content color feature may be generated, and then pixel transformation may be performed on pixel values of the video pixels according to the content color feature, and then the video pixels are sent to an encoder for encoding and compression. The decoding end can decompress the received video coding data and then perform inverse pixel conversion to obtain video pixels with high visual redundancy, so that the definition of video display is improved.
EXAMPLE five
Fig. 7 is a schematic structural diagram of a video compression apparatus according to a fifth embodiment of the present invention, which is capable of executing a video coding compression method according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. The device can be implemented by software and/or hardware, and specifically comprises: a feature acquisition module 501, a relationship determination module 502 and a code sending module 503.
A feature obtaining module 501, configured to obtain a content color feature of the target video.
A relation determining module 502, configured to determine a pixel conversion relation according to the content color feature and a preset conversion relation table.
And an encoding sending module 503, configured to send the target video and the pixel conversion relationship after processing the target video according to the pixel conversion relationship.
According to the embodiment of the invention, the content color characteristics of the target video are obtained through the characteristic obtaining module, the relation determining module determines the pixel conversion relation through the preset conversion relation table based on the content color characteristics, the coding sending module processes the target video according to the pixel conversion relation and then carries out coding compression, and sends the target video and the corresponding pixel conversion relation, so that the adaptation degree of brightness conversion of the target video with different contents is realized, the visual redundancy in the video image is reduced, the coding compression ratio of the target video is improved, and the transmission efficiency of video data can be enhanced.
EXAMPLE six
Fig. 8 is a schematic structural diagram of a video compression apparatus according to a sixth embodiment of the present invention, which is capable of executing a video coding compression method according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. The device can be implemented by software and/or hardware, and specifically comprises: an information acquisition module 601 and a video processing module 602.
The information obtaining module 601 is configured to obtain video encoded data and a pixel conversion relationship.
A video processing module 602, configured to process the decoded video coding data according to the pixel transformation relationship.
According to the embodiment of the invention, the video coding data and the pixel conversion relation are obtained through the information obtaining module, and the video processing module processes the decoded video coding data according to the pixel conversion relation, so that the adaptation of the pixel conversion relation and the video content is realized, the coding compression ratio of the video image is improved, the visual redundancy of the video image is reduced, and the transmission efficiency of the video can be improved.
EXAMPLE seven
Fig. 9 is a schematic structural diagram of an apparatus according to a seventh embodiment of the present invention, as shown in fig. 9, the apparatus includes a processor 70, a memory 71, an input device 72, and an output device 73; the number of the processors 70 in the device may be one or more, and one processor 70 is taken as an example in fig. 9; the processor 70, the memory 71, the input device 72 and the output device 73 of the apparatus may be connected by a bus or other means, as exemplified by the bus connection in fig. 9.
Example eight
An eighth embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for video compression, the method including:
acquiring content color characteristics of a target video;
determining a pixel conversion relation according to the content color feature and a preset conversion relation table;
and after the target video is processed according to the pixel conversion relation, sending the target video and the pixel conversion relation.
And/or the presence of a gas in the gas,
acquiring video coding data and pixel conversion relation;
and processing the decoded video coding data according to the pixel conversion relation.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the video compression method provided by any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (13)

1. A video compression method, applied to an encoding end, the method comprising:
acquiring content color characteristics of a target video;
determining a pixel conversion relation according to the content color feature and a preset conversion relation table;
and after the target video is processed according to the pixel conversion relation, sending the target video and the pixel conversion relation.
2. The method of claim 1, wherein the content color feature extraction method comprises at least one of a color set, a color matrix, a color aggregation vector, a color correlation map, and a color histogram.
3. The method of claim 1, wherein obtaining the content color feature of the target video comprises:
extracting the pixel value of each pixel point in the target video;
determining the number of pixel points corresponding to each pixel value;
and taking the proportion of each pixel point in the target video in the number as the content color characteristic of the target video.
4. The method of claim 1, wherein the predetermined transformation relation table is determined by counting compression rates of a threshold number of experimental videos under different pixel transformation relations.
5. The method of claim 3, wherein determining a pixel transformation relationship according to the content color feature and a preset transformation relationship table comprises:
searching a relation identification number corresponding to the content color feature in the preset conversion relation table;
and searching the pixel conversion relation corresponding to the relation identification number.
6. The method of claim 5, wherein sending the target video and the pixel transformation relationship after processing the target video according to the pixel transformation relationship comprises:
converting pixel points in the target video from initial pixel values to target pixel values according to the pixel conversion relation;
performing compression coding on the processed target video to generate video coding data;
and sending the video coding data and the relation identification number of the pixel conversion relation to a decoding end.
7. A video compression method, applied to a decoding end, comprising:
acquiring video coding data and pixel conversion relation;
and processing the decoded video coding data according to the pixel conversion relation.
8. The method of claim 7, wherein obtaining video coding data and pixel transform relationships comprises:
receiving video coding data and a relation identification number sent by a coding end;
and searching the pixel conversion relation corresponding to the relation identification number.
9. The method of claim 8, wherein said processing the decoded video coding data according to the pixel transformation relationship comprises:
decoding the video coding data according to a preset decoding rule to generate an initial video;
and restoring the pixel points in the initial video from the target pixel values to the initial pixel values according to the pixel conversion relation.
10. A video compression apparatus, applied to an encoding side, the apparatus comprising:
the characteristic acquisition module is used for acquiring the content color characteristics of the target video;
the relation determining module is used for determining pixel conversion relation according to the content color characteristics and a preset conversion relation table;
and the coding sending module is used for sending the target video and the pixel conversion relation after the target video is processed according to the pixel conversion relation.
11. A video compression apparatus, applied to a decoding end, the apparatus comprising:
the information acquisition module is used for acquiring video coding data and pixel conversion relation;
and the video processing module is used for processing the decoded video coding data according to the pixel conversion relation.
12. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the video compression method as recited in any of claims 1-9.
13. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a video compression method as claimed in any one of claims 1 to 9.
CN202010273536.6A 2020-04-09 2020-04-09 Video compression method, device, equipment and storage medium Active CN111385579B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010273536.6A CN111385579B (en) 2020-04-09 2020-04-09 Video compression method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010273536.6A CN111385579B (en) 2020-04-09 2020-04-09 Video compression method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111385579A true CN111385579A (en) 2020-07-07
CN111385579B CN111385579B (en) 2022-07-26

Family

ID=71221966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010273536.6A Active CN111385579B (en) 2020-04-09 2020-04-09 Video compression method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111385579B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5416854A (en) * 1990-07-31 1995-05-16 Fujitsu Limited Image data processing method and apparatus
WO2005073920A1 (en) * 2004-02-02 2005-08-11 Adams Platform Pty Ltd Systems and methods for encoding and decoding video information
CN101068350A (en) * 2007-06-04 2007-11-07 北京派瑞根科技开发有限公司 Image coding and decoding processing method based on picture element st atistical characteristic and visual characteristic
CN109151436A (en) * 2018-09-30 2019-01-04 Oppo广东移动通信有限公司 Data processing method and device, electronic equipment and storage medium
CN109274976A (en) * 2018-09-30 2019-01-25 Oppo广东移动通信有限公司 Data processing method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5416854A (en) * 1990-07-31 1995-05-16 Fujitsu Limited Image data processing method and apparatus
WO2005073920A1 (en) * 2004-02-02 2005-08-11 Adams Platform Pty Ltd Systems and methods for encoding and decoding video information
CN101068350A (en) * 2007-06-04 2007-11-07 北京派瑞根科技开发有限公司 Image coding and decoding processing method based on picture element st atistical characteristic and visual characteristic
CN109151436A (en) * 2018-09-30 2019-01-04 Oppo广东移动通信有限公司 Data processing method and device, electronic equipment and storage medium
CN109274976A (en) * 2018-09-30 2019-01-25 Oppo广东移动通信有限公司 Data processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111385579B (en) 2022-07-26

Similar Documents

Publication Publication Date Title
US7873212B2 (en) Compression of images for computer graphics
CN110446041B (en) Video encoding and decoding method, device, system and storage medium
US7912324B2 (en) Orderly structured document code transferring method using character and non-character mask blocks
US8213727B2 (en) Image encoding apparatus and image decoding apparatus, and control method thereof
KR100742798B1 (en) Image-data processing apparatus
WO2008047865A1 (en) Image quality evaluation method, image quality evaluation system and image quality evaluation program
CN111429357B (en) Training data determining method, video processing method, device, equipment and medium
CN110533117B (en) Image comparison method, device, equipment and storage medium
CN113068040A (en) Image compression method and device, electronic equipment and readable storage medium
CN111047558A (en) Image detection method, image detection device, computer equipment and storage medium
CN111918065A (en) Information compression/decompression method and device
EP3180910B1 (en) Method for optimized chroma subsampling, apparatus for optimized chroma subsampling and storage device
KR101277712B1 (en) Method and apparatus for image processing
CN110740316A (en) Data coding method and device
CN111200693A (en) Image data transmission method, device and system
CN112153388A (en) Image compression method, device and related equipment
CN111385579B (en) Video compression method, device, equipment and storage medium
CN114467298A (en) Image signal conversion processing method and device and terminal equipment
CN112261417A (en) Video pushing method and system, equipment and readable storage medium
CN108668170B (en) Image information processing method and device, and storage medium
CN117011114A (en) Watermark embedding method and device for virtual desktop, electronic equipment and storage medium
CN108668169B (en) Image information processing method and device, and storage medium
CN115459780A (en) Data compression method, data decompression method and related equipment
CN110996127A (en) Image coding and decoding method, device and system
CN112202985B (en) Information processing method, client device, server device and information processing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20221202

Address after: 31a, 15 / F, building 30, maple mall, bangrang Road, Brazil, Singapore

Patentee after: Baiguoyuan Technology (Singapore) Co.,Ltd.

Address before: 5-13 / F, West Tower, building C, 274 Xingtai Road, Shiqiao street, Panyu District, Guangzhou, Guangdong 510000

Patentee before: GUANGZHOU BAIGUOYUAN INFORMATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right