CN111787398A - Video compression method, device, equipment and storage device - Google Patents

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

Info

Publication number
CN111787398A
CN111787398A CN202010591865.5A CN202010591865A CN111787398A CN 111787398 A CN111787398 A CN 111787398A CN 202010591865 A CN202010591865 A CN 202010591865A CN 111787398 A CN111787398 A CN 111787398A
Authority
CN
China
Prior art keywords
quantization parameter
image
region
video stream
interest
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.)
Pending
Application number
CN202010591865.5A
Other languages
Chinese (zh)
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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202010591865.5A priority Critical patent/CN111787398A/en
Publication of CN111787398A publication Critical patent/CN111787398A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a video compression method, a video compression device, video compression equipment and a storage device. The video compression method comprises the following steps: the method comprises the steps of obtaining a video stream, decoding the video stream, dividing an image in the decoded video stream into an interested region and a background region outside the interested region, obtaining a first quantization parameter and a second quantization parameter for coding, coding the interested region by adopting the first quantization parameter, coding the background region by adopting the second quantization parameter, and obtaining coded data corresponding to the video stream, wherein the first quantization parameter is different from the second quantization parameter, and the image quality coded by the first quantization parameter is better than the image quality coded by the second quantization parameter. By the mode, the coding result is more accurate and reasonable, the image quality is protected to the maximum extent, and the aim of balancing the code rate and the image quality is fulfilled.

Description

Video compression method, device, equipment and storage device
Technical Field
The present application relates to the field of video coding compression, and in particular, to a video compression method, apparatus, device, and storage apparatus.
Background
With the realization of the full-line large networking of banks, high-definition videos of all business outlets can be accessed to a monitoring center, but the bandwidths from all the business outlets to the monitoring center are generally low (2-10M, wherein the common bandwidth is 4M), most of the bandwidths are required to be used by businesses, so that the blockage of the monitoring center during the early warning of multichannel video retrieval is serious, the prior art generally adopts uniform compression parameters to encode and compress the whole video stream, the image quality of the compressed video cannot be guaranteed while the compression rate is met, and the bandwidth or equipment upgrading and reconstruction cost is too high.
Disclosure of Invention
The application provides a video compression method, a video compression device, an equipment and a storage device, which can achieve the aim of balancing code rate and image quality.
In order to solve the technical problem, the application adopts a technical scheme that: there is provided a video compression method comprising the steps of:
acquiring a video stream, and decoding the video stream;
dividing an image in the decoded video stream into an interested area and a background area outside the interested area, and acquiring a first quantization parameter and a second quantization parameter for encoding;
and coding the region of interest by using the first quantization parameter, and coding the background region by using the second quantization parameter to obtain coded data corresponding to the video stream, wherein the first quantization parameter is different from the second quantization parameter, and the image quality coded by the first quantization parameter is better than the image quality coded by the second quantization parameter.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a video compression apparatus including:
the acquisition module is used for acquiring a video stream and decoding the video stream;
the analysis module divides an image in the decoded video stream into an interested region and a background region outside the interested region according to preset target identification, and acquires a first quantization parameter and a second quantization parameter for encoding;
and the compression module is used for coding the region of interest by adopting a first quantization parameter and coding at least the background region by adopting a second quantization parameter, wherein the first quantization parameter is different from the second quantization parameter, and the image quality coded by the first quantization parameter is better than the image quality coded by the second quantization parameter.
In order to solve the above technical problem, another technical solution adopted by the present application is:
a video compression apparatus comprising a processor, a memory coupled to the processor, wherein the memory stores program instructions for implementing the video compression method; the processor is to execute the program instructions stored by the memory to encode the video stream.
In order to solve the above technical problem, the present application adopts another technical solution that:
a storage device stores a program file capable of implementing the video compression method.
The beneficial effect of this application is: according to the video compression method, the video compression device, the video compression equipment and the storage device, the images in the video stream are obtained, the interesting regions and the background regions outside the interesting regions are divided, and different coding parameters are adopted for guiding coding compression of the interesting regions and the background regions.
Drawings
FIG. 1 is a flow chart of a video compression method according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a video compression method according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of a video compression system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a video compression apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a video compression apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a memory device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first", "second" and "third" in this application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any indication of the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include at least one of the feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. All directional indications (such as up, down, left, right, front, and rear … …) in the embodiments of the present application are only used to explain the relative positional relationship between the components, the movement, and the like in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indication is changed accordingly. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Fig. 1 is a schematic flow chart of an intelligent compression method according to a first embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 1 if the results are substantially the same. As shown in fig. 1, the method comprises the steps of:
step S101: and acquiring a video stream, and decoding the video stream.
Specifically, in step S101, the code stream may be pulled to the video source device by responding to the video retrieval request of the other device. For example, a video retrieval request sent by a requesting device is received, where the video retrieval request may include a start time and an end time of a segment of video stream, and an original video stream or a storage path of the original video stream, so that the video stream in the segment of video stream may be obtained in the original video stream according to the start time and the end time; responding to the video calling request, and acquiring the video stream from video source equipment; and decoding the video stream to obtain a decoded video stream.
Step S102: and dividing the image in the decoded video stream into an interested area and a background area outside the interested area, and acquiring a first quantization parameter and a second quantization parameter for encoding.
In step S102, in an embodiment, the step of obtaining the first quantization parameter and the second quantization parameter for encoding includes: calculating and acquiring a first quantization parameter according to the pixels of the region of interest, calculating and acquiring a second quantization parameter according to the pixels of the image and the pixels of the region of interest, wherein the step of dividing the image in the decoded video stream into the region of interest and a background region outside the region of interest comprises: dividing each frame of image of the decoded video stream into a plurality of sub-images with preset sizes, wherein each sub-image comprises a plurality of pixels, determining a target area of each frame of image, taking the sub-image where the target area is located as the region of interest, and taking at least part of the area of each frame of image except the region of interest as a background area, wherein the step of taking the sub-image where the target area is located as the region of interest comprises the following steps: marking the position of the sub-image where the target area is positioned as a first symbol representing the area of interest; the taking at least part of the region of each frame of image except the region of interest as a background region comprises: and determining sub-images in each frame of image except the sub-image in which the region of interest is positioned, and marking the position of the determined sub-image as a second symbol representing a background region.
The method includes the steps that target identification is carried out on an image in the region of interest to identify a target region containing a preset target in the image, if an active object is used as the preset target, when an active person, an active vehicle and the like are identified in the image, the region covered by the person and the vehicle is used as the target region, a sub-image where the target region is located is used as the region of interest, the sub-image of the region of interest is marked as a first symbol representing the region of interest, sub-images except the sub-image where the region of interest is located in each frame of image are used as background regions, the position of the determined sub-image is marked as a second symbol representing the background region, if the sub-image of the region of interest is marked as 1, the sub-image of the background region is marked as 0, and the preset target, The first symbol and the second symbol can be manually set.
In step S102, an embodiment of "dividing an image in the decoded video stream into an interesting region and a background region outside the interesting region, and acquiring a first quantization parameter and a second quantization parameter for encoding" is taken as an example for description, specifically, dividing each frame of an image of the decoded video stream into a plurality of sub-images with preset sizes, where each sub-image includes a plurality of pixels includes the following steps: the method includes dividing at least one frame of image of the video stream into a plurality of sub-images with preset sizes, where each sub-image includes a number of pixels, for example, dividing the frame of image into an ordered arrangement set of M rows and N columns (M, N > -1) of sub-images with the same preset size, where the preset size may be set manually, and determining the sub-image including a target region in the frame of image according to a preset target recognition result.
Step S103: and coding the region of interest by adopting a first quantization parameter, and coding at least the background region by adopting a second quantization parameter to obtain coded data corresponding to the video stream, wherein the first quantization parameter is different from the second quantization parameter, and the image quality coded by the first quantization parameter is better than the image quality coded by the second quantization parameter.
In step S103, a first quantization parameter and a second quantization parameter are obtained through the calculation of the pixels of the image and the pixels of the region of interest, and the image and the region of interest are encoded by using the first quantization parameter and the second quantization parameter, so as to obtain encoded data corresponding to the video stream. In the requirement that the image quality encoded by the first quantization parameter is better than the image quality encoded by the second quantization parameter, the evaluation of the image quality may be based on at least one parameter such as resolution and code rate as an evaluation criterion, or may be a comprehensive evaluation combining two or more of the above parameters. It can be understood that the data flow rate, also called bit rate, used in a unit time of a video stream is the most important part in picture quality control in video coding. Under the same resolution, the larger the code stream of the video stream is, the smaller the compression ratio is, the higher the picture quality is, and the larger the file size of the video stream is. The Quantization Parameter (QP) in this embodiment may be understood as an important parameter in an inverse quantization process in decoding, and generally, the smaller the quantization parameter is, the finer the quantization is, the higher the code rate is, and the higher the image quality is, if the first quantization parameter of the region of interest is taken as 10 and the second quantization parameter of the background region is taken as 12, most details of the region of interest are retained, and some details of the background region are lost, the code rate is reduced, the image distortion of the background region is enhanced and the quality is reduced, but the image distortion of the region of interest is smaller, and the image quality is not significantly reduced.
After the encoding of the region of interest by using the first quantization parameter and the encoding of at least the background region by using the second quantization parameter to obtain the encoded data corresponding to the video stream, the method further includes:
and sending the coded data corresponding to the video stream to the request equipment.
The video compression method of the first embodiment of the invention can lead the coding result to be more accurate and reasonable, protect the image quality to the maximum extent and achieve the aim of balancing the code rate and the image quality by acquiring the image in the video stream, dividing the region of interest and the background region outside the region of interest and adopting different coding parameters to guide the coding of the region of interest and the background region.
Fig. 2 is a flow chart of an intelligent compression method according to a second embodiment of the present invention. It should be noted that the method of the present invention is not limited to the flow sequence shown in fig. 2 if the results are substantially the same. As shown in fig. 2, the method comprises the steps of:
step S201: and acquiring a video stream, and decoding the video stream.
Step S202: and dividing the image in the decoded video stream into an interested area and a background area outside the interested area, and acquiring a first quantization parameter and a second quantization parameter for encoding.
In this embodiment, steps S201 and S202 in fig. 2 are similar to steps S101 and S102 in fig. 1, and are not repeated herein for brevity.
Step S203: acquiring coding parameters, wherein the coding parameters comprise a resolution parameter and/or an I frame interval number.
Step S204: and according to the coding parameters, coding the region of interest by adopting the first quantization parameter and coding the background region by adopting the second quantization parameter.
In step S203, a user instruction is received to obtain an encoding parameter, where the encoding parameter may include one or more of a resolution parameter and an I-frame interval number, where the resolution parameter is a resolution setting value input by a user, and the I-frame interval number is obtained by calculating according to pixels of the image after the instruction indicating that an I-frame interval technique is adopted is input by the user.
In an embodiment of "obtaining encoding parameters, where the encoding parameters include a resolution parameter and/or an I-frame interval number", a user inputs a resolution parameter, and when compressing the decoded video stream according to the resolution parameter, the method further includes, according to the resolution parameter, encoding a region of interest using the first quantization parameter and encoding the background region using the second quantization parameter to reduce the resolution of the decoded video stream to the resolution parameter, where if the resolution set by the user is 200W when the resolution of an image in the video stream is greater than 200W, the resolution of the video stream is reduced to 200W after the encoding and compressing of the video stream are completed.
The video stream is coded and compressed by acquiring the resolution information set by the user, so that the user can set the resolution according to the self requirement, the operation is more flexible, and the user experience is better.
In another embodiment of the present invention, after a user inputs an instruction using an I frame interval technique, the I frame interval number is obtained according to the user instruction and the pixel calculation of the image, and when compressing the decoded video stream, the method further includes, according to the I frame interval number, encoding an area of interest using the first quantization parameter and encoding the background area using the second quantization parameter to modify the I frame interval number of the decoded video stream into the I frame interval number obtained by the calculation.
By acquiring an instruction which is input by a user and indicates that an I frame interval technology is adopted, I frame interval modification can be carried out on the video stream, and the capability of resisting network fluctuation is enhanced.
Fig. 4 is a schematic structural diagram of a video compression apparatus according to an embodiment of the present invention. As shown in fig. 4, the apparatus 50 includes an obtaining module 51, an analyzing module 52, and a compressing module 53.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a video compression system according to an embodiment of the invention, as shown in fig. 3:
the obtaining module 51 is configured to obtain a video stream, decode the video stream, for example, receive a video retrieval request sent by the requesting device 41; in response to the video retrieval request, the video stream is acquired from the video source device 42, and the video stream is decoded to obtain a decoded video stream. The requesting device 41 may be a user terminal such as a mobile phone or a computer, and the user terminal may log in a corresponding platform or install a corresponding client to remotely access the video compression apparatus. The video source device may be a storage device for storing video or a front-end device (e.g., a camera) for capturing video.
Optionally, the obtaining module 51 is further configured to obtain an encoding parameter, where the encoding parameter includes at least one instruction of a resolution parameter and an I-frame interval number. The analysis module 52 divides an area of interest and a background area outside the area of interest according to an image in the decoded video stream, where the area of interest is to perform target recognition on the image to determine a target area containing a preset target in the image, and determines a sub-image covered by the target area as the area of interest, and if an active object is taken as the preset target, when an active person, vehicle, or the like is recognized in the image, the area covered by the person or vehicle is taken as the target area, the sub-image where the target area is located is taken as the area of interest, and at least a part of the area except the area of interest in the image is taken as the background area.
The compressing module 53 is configured to encode the region of interest by using a first quantization parameter, and encode at least the background region by using a second quantization parameter, where the first quantization parameter is different from the second quantization parameter, and the image quality encoded by the first quantization parameter is better than the image quality encoded by the second quantization parameter.
Optionally, the compressing module 53 further compresses the decoded video stream by combining the first quantization parameter and the second quantization parameter according to the resolution parameter obtained by the obtaining module 51, so that the resolution corresponding to the compressed video stream is reduced to the resolution parameter.
In addition, in response to the instruction of using the I-frame interval technique obtained by the obtaining module 51, the compressing module 53 may further modify, according to the number of I-frame intervals, the number of I-frame intervals of the decoded video stream into the number of I-frame intervals obtained by calculation by using the first quantization parameter to encode the region of interest and using the second quantization parameter to encode the background region, so as to obtain the final encoded data corresponding to the video stream.
Finally, after the video stream is encoded, the encoded data corresponding to the video stream is sent to the requesting device 41.
It can be understood that the specific manner for implementing each function by each module of the video compression apparatus can refer to the specific steps corresponding to the above embodiments, and therefore, the detailed description thereof is omitted here.
In other embodiments, the video compression apparatus may be integrated with the video source device in the system shown in fig. 3.
The video compression device is additionally arranged in the network environment under the condition that the network condition of an application scene and the operation habit of an operator are not changed, any video source is scheduled, coded and compressed according to a request issued by the request equipment and is transmitted back to the request equipment for previewing, replaying and downloading, the problem that the original code stream is blocked in viewing is solved, and the effect of previewing high-definition smoothness is achieved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a video compression apparatus according to an embodiment of the invention. As shown in fig. 5, the video compression apparatus 60 includes a processor 61 and a memory 62 coupled to the processor 61.
The memory 62 stores program instructions for implementing the video compression method described in any of the above embodiments.
The processor 61 is used to execute program instructions stored by the memory 62 to encode the video stream.
The processor 61 may also be referred to as a CPU (Central Processing Unit). The processor 61 may be an integrated circuit chip having signal processing capabilities. The processor 61 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It is understood that the video compression apparatus may also be the video compression device shown in fig. 3. The video compression device may specifically be any electronic device with processing capabilities, for example a server. In addition, the video compression device may be integrated in the same device as the video source device in the system shown in fig. 3.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a memory device according to an embodiment of the invention. The storage device of the embodiment of the present invention stores a program file 71 capable of implementing all the methods described above, wherein the program file 71 may be stored in the storage device in the form of a software product, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. The aforementioned storage device includes: various media capable of storing program codes, such as a usb disk, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, or terminal devices, such as a computer, a server, a mobile phone, and a tablet.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. The above embodiments are merely examples and are not intended to limit the scope of the present disclosure, and all modifications, equivalents, and flow charts using the contents of the specification and drawings of the present disclosure or those directly or indirectly applied to other related technical fields are intended to be included in the scope of the present disclosure.

Claims (11)

1. A video compression method, characterized in that it comprises the steps of:
acquiring a video stream, and decoding the video stream;
dividing an image in the decoded video stream into an interested area and a background area outside the interested area, and acquiring a first quantization parameter and a second quantization parameter for encoding;
and coding the region of interest by using the first quantization parameter, and coding the background region by using the second quantization parameter to obtain coded data corresponding to the video stream, wherein the first quantization parameter is different from the second quantization parameter, and the image quality coded by using the first quantization parameter is better than the image quality coded by using the second quantization parameter.
2. The video compression method of claim 1, wherein obtaining the first quantization parameter and the second quantization parameter for encoding comprises:
and calculating to obtain a first quantization parameter according to the pixels of the region of interest, and calculating to obtain a second quantization parameter according to the pixels of the image and the pixels of the region of interest.
3. The video compression method according to claim 1, wherein the dividing the image in the decoded video stream into the region of interest and the background region outside the region of interest comprises:
dividing each frame of image of the decoded video stream into a plurality of sub-images with preset sizes, wherein each sub-image comprises a plurality of pixels;
determining a target area of each frame of image, and taking a sub-image where the target area is located as the region of interest;
and taking at least partial area except the interested area in each frame of image as a background area.
4. The video compression method of claim 3, wherein the determining the target area for each frame of image in the video stream comprises:
and carrying out target identification on the image so as to identify a target area containing a preset target in the image.
5. The video compression method according to claim 3, wherein the step of using the sub-image where the target area is located as the region of interest comprises the following steps:
marking the position of the sub-image where the target area is positioned as a first symbol representing the area of interest;
the taking at least part of the region of each frame of image except the region of interest as a background region comprises:
and determining sub-images in each frame of image except the sub-image in which the region of interest is positioned, and marking the position of the determined sub-image as a second symbol representing a background region.
6. The video compression method according to claim 1, wherein the encoding the region of interest using the first quantization parameter and the encoding the background region using the second quantization parameter comprises:
acquiring coding parameters, wherein the coding parameters comprise resolution parameters and/or I frame interval numbers;
and according to the coding parameters, coding the region of interest by adopting the first quantization parameter and coding the background region by adopting the second quantization parameter.
7. The video compression method of claim 6, wherein the obtaining the encoding parameters comprises:
acquiring a resolution parameter input by a user; and/or
And acquiring an instruction which is input by a user and indicates that an I frame interval technology is adopted, and calculating according to the pixels of the image to obtain the I frame interval number.
8. The video compression method of claim 1, wherein the obtaining the video stream and decoding the video stream comprises:
receiving a video calling request sent by a request device;
responding to the video calling request, and acquiring the video stream from video source equipment;
decoding the video stream to obtain the decoded video stream;
after the encoding of the region of interest by using the first quantization parameter and the encoding of the background region by using the second quantization parameter to obtain the encoded data corresponding to the video stream, the method further includes:
and sending the coded data corresponding to the decoded video stream to the request device.
9. A video compression apparatus, comprising:
the acquisition module is used for acquiring a video stream and decoding the video stream;
the analysis module divides an image in the decoded video stream into an interested region and a background region outside the interested region according to preset target identification, and acquires a first quantization parameter and a second quantization parameter for encoding;
and the compression module is used for coding the region of interest by using the first quantization parameter and coding the background region by using the second quantization parameter to obtain coded data corresponding to the video stream, wherein the first quantization parameter is different from the second quantization parameter, and the image quality coded by the first quantization parameter is better than the image quality coded by the second quantization parameter.
10. A video compression device comprising a processor, a memory coupled to the processor, wherein,
the memory stores program instructions for implementing the video compression method of any of claims 1-8;
the processor is to execute the program instructions stored by the memory to encode the video stream.
11. A storage device in which a program file capable of implementing the video compression method according to any one of claims 1 to 8 is stored.
CN202010591865.5A 2020-06-24 2020-06-24 Video compression method, device, equipment and storage device Pending CN111787398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010591865.5A CN111787398A (en) 2020-06-24 2020-06-24 Video compression method, device, equipment and storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010591865.5A CN111787398A (en) 2020-06-24 2020-06-24 Video compression method, device, equipment and storage device

Publications (1)

Publication Number Publication Date
CN111787398A true CN111787398A (en) 2020-10-16

Family

ID=72761476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010591865.5A Pending CN111787398A (en) 2020-06-24 2020-06-24 Video compression method, device, equipment and storage device

Country Status (1)

Country Link
CN (1) CN111787398A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112770117A (en) * 2020-12-30 2021-05-07 杭州海康机器人技术有限公司 Video storage method, processing method, device and storage medium
CN113099254A (en) * 2021-03-31 2021-07-09 上海平安智慧教育科技有限公司 Online teaching method, system, equipment and storage medium with regional variable resolution
CN113645500A (en) * 2021-10-15 2021-11-12 北京蔚领时代科技有限公司 Virtual reality video stream data processing system
CN114786037A (en) * 2022-03-17 2022-07-22 青岛虚拟现实研究院有限公司 Self-adaptive coding compression method facing VR projection
CN115550660A (en) * 2021-12-30 2022-12-30 北京智美互联科技有限公司 Network video local variable compression method and system
CN115988214A (en) * 2022-12-01 2023-04-18 北京首都在线科技股份有限公司 Video frame encoding method, video frame display method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002289A (en) * 2013-01-08 2013-03-27 中国电子科技集团公司第三十八研究所 Video constant quality coding device for monitoring application and coding method thereof
CN104427337A (en) * 2013-08-21 2015-03-18 杭州海康威视数字技术股份有限公司 Region of interest (ROI) video coding method and apparatus based on object detection
CN108337515A (en) * 2018-01-19 2018-07-27 浙江大华技术股份有限公司 A kind of method for video coding and device
CN110602495A (en) * 2019-08-20 2019-12-20 深圳市盛世生物医疗科技有限公司 Medical image coding method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002289A (en) * 2013-01-08 2013-03-27 中国电子科技集团公司第三十八研究所 Video constant quality coding device for monitoring application and coding method thereof
CN104427337A (en) * 2013-08-21 2015-03-18 杭州海康威视数字技术股份有限公司 Region of interest (ROI) video coding method and apparatus based on object detection
CN108337515A (en) * 2018-01-19 2018-07-27 浙江大华技术股份有限公司 A kind of method for video coding and device
CN110602495A (en) * 2019-08-20 2019-12-20 深圳市盛世生物医疗科技有限公司 Medical image coding method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112770117A (en) * 2020-12-30 2021-05-07 杭州海康机器人技术有限公司 Video storage method, processing method, device and storage medium
CN113099254A (en) * 2021-03-31 2021-07-09 上海平安智慧教育科技有限公司 Online teaching method, system, equipment and storage medium with regional variable resolution
CN113645500A (en) * 2021-10-15 2021-11-12 北京蔚领时代科技有限公司 Virtual reality video stream data processing system
CN113645500B (en) * 2021-10-15 2022-01-07 北京蔚领时代科技有限公司 Virtual reality video stream data processing system
CN115550660A (en) * 2021-12-30 2022-12-30 北京智美互联科技有限公司 Network video local variable compression method and system
CN115550660B (en) * 2021-12-30 2023-08-22 北京国瑞数智技术有限公司 Network video local variable compression method and system
CN114786037A (en) * 2022-03-17 2022-07-22 青岛虚拟现实研究院有限公司 Self-adaptive coding compression method facing VR projection
CN114786037B (en) * 2022-03-17 2024-04-12 青岛虚拟现实研究院有限公司 VR projection-oriented adaptive coding compression method
CN115988214A (en) * 2022-12-01 2023-04-18 北京首都在线科技股份有限公司 Video frame encoding method, video frame display method and device

Similar Documents

Publication Publication Date Title
CN111787398A (en) Video compression method, device, equipment and storage device
CN110572579B (en) Image processing method and device and electronic equipment
KR101703931B1 (en) Surveillance system
CN108833938B (en) Method and apparatus for selecting video covers
EP3089453A1 (en) Image coding and decoding methods and devices
CN110636294B (en) Video decoding method and device, and video encoding method and device
CN110784718B (en) Video data encoding method, apparatus, device and storage medium
CN105979189A (en) Video signal processing and storing method and video signal processing and storing system
CN110022481B (en) Decoding and generating methods and devices of video code stream, storage medium and electronic device
JP5950605B2 (en) Image processing system and image processing method
CN111510643B (en) System and method for splicing panoramic image and close-up image
CN113343895B (en) Target detection method, target detection device, storage medium and electronic equipment
CN102726042A (en) Video analytics for security systems and methods
US20240015307A1 (en) Method and image-capturing device for encoding image frames of an image stream and transmitting encoded image frames on a communications network
CN111263097B (en) Media data transmission method and related equipment
CN112672154A (en) Live video playing method and device, server and computer readable storage medium
US11095901B2 (en) Object manipulation video conference compression
CN109246431B (en) Video coding method and device based on quantization parameter configuration and electronic equipment
CN110662071A (en) Video decoding method and apparatus, storage medium, and electronic apparatus
CN114584781A (en) Video compression method and device and computer readable storage medium
CN113852816A (en) Video frame processing method and device, computer equipment and readable storage medium
CN113691815A (en) Video data processing method, device and computer readable storage medium
CN108933945B (en) GIF picture compression method, device and storage medium
CN112565693A (en) Method, system and equipment for monitoring video on demand
CN111491166A (en) Dynamic compression system and method based on content analysis

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