CN113709490A - Video compression method, device, system and medium - Google Patents

Video compression method, device, system and medium Download PDF

Info

Publication number
CN113709490A
CN113709490A CN202110873304.9A CN202110873304A CN113709490A CN 113709490 A CN113709490 A CN 113709490A CN 202110873304 A CN202110873304 A CN 202110873304A CN 113709490 A CN113709490 A CN 113709490A
Authority
CN
China
Prior art keywords
image
frame image
image data
video compression
current
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
CN202110873304.9A
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.)
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Original Assignee
Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center 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 Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd filed Critical Shandong Yunhai Guochuang Cloud Computing Equipment Industry Innovation Center Co Ltd
Priority to CN202110873304.9A priority Critical patent/CN113709490A/en
Publication of CN113709490A publication Critical patent/CN113709490A/en
Pending legal-status Critical Current

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/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/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
    • H04N19/423Methods 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 characterised by memory arrangements

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 device, a system and a computer readable storage medium, wherein the method comprises the following steps: receiving image data of a current frame image, and acquiring image data of a previous frame image from the DDR; when the current state of the video compression controller is an opening state, sending the image data of the previous frame of image to the video compression controller for compression; sending the image data of the current frame image to a DDR for storage; judging whether the current frame image is the same as the previous frame image or not according to the image data of the current frame image and the image data of the previous frame image, and if so, changing the state of the video compression controller into a closed state; if the two image data are different, the state of the video compression controller is changed into an open state so as to compress the image data acquired from the DDR next time; in the using process, the data compression amount can be reduced, the network bandwidth and the video transmission delay are reduced, and the overall power consumption is reduced.

Description

Video compression method, device, system and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a video compression method, apparatus, system, and computer-readable storage medium.
Background
KVM over IP is also called IP KVM, i.e. KVM switch with remote management function, KVM is an abbreviation of Keyboard, display, and Mouse (Keyboard, Video, Mouse), and IP is Internet Protocol, which represents a Protocol for interconnecting networks, i.e. a group of Keyboard, display, and Mouse, to control multiple computers. In general, the distance between the analog KVM switch and the computer to be controlled is very limited due to the attenuation of the signals from the computer to the peripheral devices, and the IP KVM switch is different from the digital KVM switch, and it can remotely control a plurality of computer servers.
The IP KVM converts analog information such as video and control of a connected management object into a digital signal, compresses the digital signal into an IP packet, and transmits the IP packet via a network. After receiving the IP packet from the management object, the client of the control device decodes the IP packet and recombines the IP packet into an original digital mode, and then converts the IP packet into an analog form to be transmitted to a screen of the control client; after the administrator sees the current information state of the management object through the control screen, a local keyboard and a mouse are used for sending a series of control commands, and the control commands are combined and encrypted into an IP packet through the control client and transmitted to the KVMover IP through the network. The KVMover IP unpacks the IP packet, converts the IP packet into video, controls analog signals and transmits the analog signals to the managed object, so that corresponding actions are performed on the managed object.
In the existing IP KVM technology, a host transmits image data and other data to a PCIe (peripheral component interconnect express) controller through a PCIe (peripheral component interconnect express) bus, the PCIe controller separates Video data to a VGA (Video Graphics Array) module, and the VGA module transmits digital image data to a local module for display and stores the digital image data in a DDR (new image covers image of previous frame when storing each time). The video compression controller module reads image data in a Double data rate (Double Synchronous Random Access Memory) according to a video frame rate (how many images are in one second), then JPEG (Joint Photographic Experts Group) compression is carried out on the image data, the compressed data is stored in the DDR again, an Ethernet controller reads the compressed image data in the DDR, the compressed image data is transmitted to a remote terminal through the Ethernet after being packaged, and the remote terminal decompresses the image data through JPEG and displays the image data.
For computer display, the frequency of image change is not so high, and the image may not change after several seconds, whereas the video compression module in the prior art may read image data in DDR for compression all the time according to the frame rate of the host video, and the compressed data may be transmitted to the remote terminal through ethernet without stopping, which may increase a large network bandwidth, cause a situation of increased delay in video transmission, and increase the total chip power consumption due to the continuous operation of the video compression module.
In view of the above, how to provide a video compression method, apparatus, system and computer readable storage medium that solve the above technical problems becomes a problem to be solved by those skilled in the art.
Disclosure of Invention
Embodiments of the present invention provide a video compression method, apparatus, system and computer readable storage medium, which can reduce data compression amount, reduce network bandwidth and video transmission delay, and reduce overall power consumption during use.
To solve the foregoing technical problem, an embodiment of the present invention provides a video compression method, including:
receiving image data of a current frame image, and acquiring image data of a previous frame image from the DDR;
when the current state of the video compression controller is an opening state, sending the image data of the previous frame of image to the video compression controller for compression processing;
sending the image data of the current frame image to the DDR for storage;
judging whether the current frame image is the same as the previous frame image or not according to the image data of the current frame image and the image data of the previous frame image, and if so, changing the state of a video compression controller into a closed state; if the two states are different, the state of the video compression controller is changed into an open state, so that the image data acquired from the DDR next time can be compressed.
Optionally, the step of determining whether the current frame image is the same as the previous frame image according to the image data of the current frame image and the image data of the previous frame image is as follows:
comparing the image data of the current frame image with the pixel data of the same pixel position in the image data of the previous frame image, and judging whether the pixel data of each pixel position are completely consistent, if so, the current frame image is the same as the previous frame image, and if not, the current frame image is different from the previous frame image.
Optionally, the process of receiving the image data of the current frame image and acquiring the image data of the previous frame image from the DDR includes:
receiving image data of a current frame image sent by a VGA for multiple times according to the number of bytes of DDR burst transmission bytes to obtain multiple current pixel data groups corresponding to the current frame image;
and sequentially acquiring a plurality of historical pixel data groups corresponding to the previous frame of image from the DDR, wherein each time one current pixel data group is received, one corresponding historical pixel data group is acquired from the DDR.
Optionally, the step of comparing the image data of the current frame image with the pixel data of the same pixel position in the image data of the previous frame image, and determining whether the pixel data of each pixel position are completely consistent is:
starting from a first group of current pixel data groups, judging whether the pixel data of the current pixel data groups and the pixel data of the corresponding historical pixel data groups at the same pixel position are the same or not, if so, continuing to compare the next group of current pixel data groups with the corresponding historical pixel data groups until the comparison of the last group of current pixel data groups with the corresponding historical pixel data groups is completed; and if not, determining that the pixel data of each pixel position are not completely consistent.
Optionally, the method further includes:
when the image data of the previous frame of image does not exist in the DDR and the current image is the first frame of image, the state of the video compression controller is changed to be in an open state so as to compress the image data of the first frame of image acquired from the DDR next time.
An embodiment of the present invention further provides a video compression apparatus, including:
the acquisition module is used for receiving the image data of the current frame image and acquiring the image data of the previous frame image from the DDR;
the first sending module is used for sending the image data of the previous frame of image to the video compression controller for compression processing when the current state of the video compression controller is an open state;
the second sending module is used for sending the image data of the current frame image to the DDR for storage;
the judging module is used for judging whether the current frame image is the same as the previous frame image or not according to the image data of the current frame image and the image data of the previous frame image, and if the current frame image is the same as the previous frame image, the first changing module is triggered; if the difference is not the same, triggering a second change module;
the first changing module is used for changing the state of the video compression controller into a closing state;
the second changing module is configured to change the state of the video compression controller to an on state, so as to perform compression processing on image data acquired from the DDR next time.
Optionally, the determining module includes:
the comparison unit is used for comparing the image data of the current frame image with the pixel data of the same pixel position in the image data of the previous frame image;
the judging unit is used for judging whether the pixel data of each pixel position are completely consistent, and if so, the first determining unit is triggered; if not, triggering a second determining unit;
the first determining unit is configured to determine that the current frame image is the same as the previous frame image;
the second determining unit is configured to determine that the current frame image is different from the previous frame image.
Optionally, the obtaining module includes:
the receiving unit is used for receiving the image data of the current frame image sent by the VGA for multiple times according to the byte number of the DDR burst transmission byte to obtain a plurality of current pixel data groups corresponding to the current frame image;
and the acquisition unit is used for sequentially acquiring a plurality of historical pixel data groups corresponding to the previous frame of image from the DDR, wherein each time one current pixel data group is received, one corresponding historical pixel data group is acquired from the DDR.
An embodiment of the present invention further provides a video compression system, including:
a memory for storing a computer program;
a processor for implementing the steps of the video compression method as described above when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the video compression method are implemented as described above.
The embodiment of the invention provides a video compression method, a device, a system and a computer readable storage medium, wherein the method comprises the following steps: receiving image data of a current frame image, and acquiring image data of a previous frame image from the DDR; when the current state of the video compression controller is an opening state, sending the image data of the previous frame of image to the video compression controller for compression; sending the image data of the current frame image to a DDR for storage; judging whether the current frame image is the same as the previous frame image or not according to the image data of the current frame image and the image data of the previous frame image, and if so, changing the state of the video compression controller into a closed state; if the two image data are different, the state of the video compression controller is changed into an open state, so that the image data acquired from the DDR next time can be compressed.
It can be seen that, in the invention, after receiving the image data of the current frame image and obtaining the image data of the previous frame image from the DDR, whether to send the image data of the previous frame image to the video compression controller can be determined according to the current state of the video compression controller, when the current state of the video compression controller is the on state, the image data of the previous frame image is sent to the video compression controller for compression, the image data of the current frame image is sent to the DDR for storage, and whether the current frame image is the same as the previous frame image is judged according to the image data of the current frame image and the image data of the previous frame image, if the two frame images are the same, the image is not changed, the current frame image is not required to be compressed, at this time, the state of the video compression controller is changed to the off state, so that after receiving the image data of the next frame image next time, the image data of the current frame image obtained from the DDR is not required to be compressed, if the two frame images are different, the image is changed, the current frame image is required to be compressed, at the moment, the state of the video compression controller is changed into an open state, and therefore after the image data of the next frame image is received next time, the image data of the current frame image obtained from the DDR is compressed, the data compression amount is reduced, the network bandwidth and the video transmission delay are reduced, and the overall power consumption is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of a video compression method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an IP KVM system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of signal transmission within the image contrast module of FIG. 2;
fig. 4 is a schematic structural diagram of a video compression apparatus according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a video compression method, a device and a system and a computer readable storage medium, which can reduce data compression amount, network bandwidth and video transmission delay and reduce overall power consumption in the using process.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a video compression method according to an embodiment of the present invention. The method comprises the following steps:
s110: receiving image data of a current frame image, and acquiring image data of a previous frame image from the DDR;
it should be noted that, in practical applications, the host transmits image data and other data to the PCIe controller through a PCIe bus, and the PCIe controller separates Video data to a Video Graphics Array (Video Graphics Array). S120: when the current state of the video compression controller is an opening state, sending the image data of the previous frame of image to the video compression controller for compression;
specifically, in the embodiment of the present invention, whether the image data acquired from the DDR needs to be compressed may be determined by setting a state of the video compression controller, where the current state of the video compression controller may be read after the image data of the previous frame of image is acquired from the DDR, and when the current state of the video compression controller is an on state, the image data of the previous frame of image is sent to the video compression controller for compression processing, and of course, if the current state of the video compression controller is an off state, the image data of the previous frame of image is not sent to the video compression controller. That is, the current state of the video compression controller in the embodiment of the present invention is determined by the comparison result between the image data of the previous frame image and the image data of the previous frame image, when the image data of the previous frame image is not consistent with the image data of the previous frame image, it indicates that both of them need to be changed, the previous frame image needs to be compressed, the state of the video compression controller is changed to the on state, if the image data of the previous frame image is consistent with the image data of the previous frame image, it indicates that both of them do not change, the previous frame image does not need to be compressed, but the image data of the previous frame image is still stored in the DDR, and when the image data of the previous frame image obtained from the DDR is compared with the image data of the current frame image, the state of the video compression controller at the next time is determined, and determining whether the image data of the previous frame of image needs to be sent to the video compression controller for compression processing according to the current state of the video compression controller after the image data of the previous frame of image is obtained from the DDR at the current moment. In addition, after the video compression controller compresses the received data image information, the compressed data is sent to the DDR for storage, and the specific process can refer to the implementation method in the prior art.
S130: sending the image data of the current frame image to a DDR for storage;
specifically, after the image data of the previous frame of image is acquired from the DDR, the image data of the current frame of image may be sent to the DDR for storage, specifically, the image data of the current frame of image received from the VGA may be sent to the DDR for storage, or the image data of the current frame of image may be directly sent to the DDR by the VGA for storage, where the image data of the previous frame of image is overwritten when the image data of the current frame of image is sent to the DDR for storage. In addition, the VGA also transmits the image data of the current frame image to the local module for display, so that the local module can display the data.
S140: judging whether the current frame image is the same as the previous frame image according to the image data of the current frame image and the image data of the previous frame image, and if so, entering S150; if not, the process goes to S160;
s150: changing the state of the video compression controller to an off state;
s160: and changing the state of the video compression controller into an open state so as to compress the image data acquired from the DDR next time.
Specifically, whether the current frame image needs to be compressed is determined by judging whether the current frame image is the same as the previous frame image, and when the current frame image is determined to be the same as the previous frame image, the current moment is not changed compared with the previous moment, and the current frame image does not need to be compressed, so that the state of the video compression controller can be changed into a closed state, and therefore, after the current frame image is obtained from the DDR at the next moment, the situation that the image data of the current frame image does not need to be sent to the video compression controller for compression processing can be determined according to the state of the video compression controller; when the current frame image is different from the previous frame image, the current time is changed from the previous time, so that the image data of the current frame image needs to be compressed, and the state of the video compression controller needs to be changed into an open state, so that the image data of the current frame image can be determined to be sent to the video compression controller for compression according to the state of the video compression controller after the current frame image is obtained from the DDR at the next time. In practical application, when the state of the video compression controller is changed, the output controller may be set, and the state of the video compression controller is changed by changing the value of the output controller, for example, if the value of the output controller is equal to 1, the state of the video compression controller is in an off state, and if the value of the output controller is not equal to 0, the state of the video compression controller is in an on state. The method provided by the invention can reduce the compression processing of the same image, thereby reducing the repeated video compression processing process, correspondingly reducing the power consumption of a chip, reducing the repeated transmission of the same compressed image to a remote terminal and reducing the occupation of network bandwidth.
It should be noted that, before changing the state of the video compression controller in S150 and S160, it needs to determine that the current state of the video compression controller is the on state, and after the video compression controller completes compressing the image data of the previous frame of image acquired from the DDR, the step of changing the state of the video compression controller in S150 or S160 is executed. In addition, S130 and S140 in the embodiment of the present invention have no sequence when being specifically implemented, and may be determined according to actual needs.
Further, the method may further include:
and when the DDR does not have the image data of the previous frame of image and the current image is the first frame of image, changing the state of the video compression controller into an open state so as to compress the image data of the first frame of image acquired from the DDR next time.
It can be understood that the acquired image data of the first frame image needs to be compressed, and since the currently received current image is the first frame image and is not stored in the DDR yet, the image data of the previous frame image does not exist in the DDR, the state of the video compression controller can be directly changed to the on state after the image data of the first frame image is received, and after the image data of the second frame image is received at the next moment and the image data of the first frame image is acquired from the DDR, the image data of the first frame image can be sent to the video compression controller for compression because the state of the video compression controller is the on state. In addition, after the image data of the first frame image is compared with the image data of the second frame image, the state of the video compression controller is correspondingly changed according to the comparison result.
Further, in the above step S140, a process of determining whether the current frame image is the same as the previous frame image according to the image data of the current frame image and the image data of the previous frame image may specifically be:
comparing the image data of the current frame image with the pixel data of the same pixel position in the image data of the previous frame image, judging whether the pixel data of each pixel position are completely consistent, if the pixel data of each pixel position are corresponding to the same pixel position, indicating that the current frame image is the same as the previous frame image, and if the pixel data of each pixel position have different pixel data, indicating that the current frame image is different from the previous frame image, namely, if at least one pixel position has different pixel data, determining that the current frame image is different from the previous frame image.
Further, the process of receiving the image data of the current frame image in S110 and acquiring the image data of the previous frame image from the DDR may specifically be:
receiving image data of a current frame image sent by a VGA for multiple times according to the number of bytes of DDR burst transmission bytes to obtain multiple current pixel data groups corresponding to the current frame image;
and sequentially acquiring a plurality of historical pixel data groups corresponding to the previous frame of image from the DDR, wherein each time a current pixel data group is received, a corresponding historical pixel data group is acquired from the DDR.
It should be noted that, DDR burst transfer is to read the set byte data once without being interrupted by other modules, so the implementation of the present invention may introduce the image data transferred by the VGA module, and start counting after receiving the frame header mark, indicating that the image data of the current frame image has started to be received, and specifically complete one-time reception after the counted number reaches the byte number of the DDR burst transfer byte, in practical application, a read signal may be sent to the DDR video read module, the DDR video read signal obtains a group of historical pixel data groups of the previous frame image from the DDR, the byte number in a historical pixel array is also the byte number of the DDR burst transfer byte, specifically, the historical pixel data group of the previous frame image may be obtained from the DDR controller, and then the current pixel data group of the next group of current frame image is received, and acquiring the image data corresponding to the previous frame image from the DDR until the image data of the current frame image are received.
Further, the step of comparing the image data of the current frame image with the pixel data of the same pixel position in the image data of the previous frame image to determine whether the pixel data of each pixel position are completely consistent may specifically be:
starting from the first group of current pixel data groups, judging whether the pixel data of the current pixel data groups and the pixel data of the corresponding historical pixel data groups at the same pixel position are the same or not, if so, continuing to compare the next group of current pixel data groups and the corresponding historical pixel data groups until the comparison of the last group of current pixel data groups and the corresponding historical pixel data groups is completed; and if not, determining that the pixel data of each pixel position are not completely consistent.
Specifically, after each group of current pixel data groups is received, a corresponding group of historical pixel data groups is obtained, then the pixel data of each pixel position in the current pixel data group is compared with the pixel data of the same pixel position in the corresponding historical pixel data group, specifically, starting from a first pixel position, when the pixel data of the first pixel position is the same, the pixel data of a second pixel position is continuously compared, if the pixel data of the first pixel position is still the same, the next pixel position is continued until all the pixel positions in the group are completely compared, and if the pixel data of the next group are all the same, the current pixel data group and the corresponding historical pixel data group which are received in the next group are compared; if the two pixel data of the current compared pixel position are not consistent, the comparison can be finished, the pixel data of the subsequent pixel position are not compared any more, the pixel data of the pixel position are determined to be inconsistent, the pixel positions of the received current pixel data groups of other groups are not compared any more at this time, the current frame image can be directly determined to be different from the previous frame image, only until the comparison of the last group of current pixel data groups and the corresponding historical pixel data groups is finished, and the pixel data corresponding to each pixel position are the same, the pixel data of all the pixel positions can be determined to be the same, that is, the current frame image is determined to be the same as the previous frame image. The method provided in the embodiment of the present invention may be applied to an IP KVM control system implemented by an FPGA, an IP KVM control system designed by a chip, or all chip designs including an IP KVM system, where the design scheme of the IP KVM system may refer to the structural diagrams shown in fig. 2 and 3, where the method provided in the embodiment of the present invention may be implemented by an image contrast module in fig. 2, and a signal transmission process inside the image contrast module refers to fig. 3.
It can be seen that, in the invention, after receiving the image data of the current frame image and obtaining the image data of the previous frame image from the DDR, whether to send the image data of the previous frame image to the video compression controller can be determined according to the current state of the video compression controller, when the current state of the video compression controller is the on state, the image data of the previous frame image is sent to the video compression controller for compression, the image data of the current frame image is sent to the DDR for storage, and whether the current frame image is the same as the previous frame image is judged according to the image data of the current frame image and the image data of the previous frame image, if the two frame images are the same, the image is not changed, the current frame image is not required to be compressed, at this time, the state of the video compression controller is changed to the off state, so that after receiving the image data of the next frame image next time, the image data of the current frame image obtained from the DDR is not required to be compressed, if the two frame images are different, the image is changed, the current frame image is required to be compressed, at the moment, the state of the video compression controller is changed into an open state, and therefore after the image data of the next frame image is received next time, the image data of the current frame image obtained from the DDR is compressed, the data compression amount is reduced, the network bandwidth and the video transmission delay are reduced, and the overall power consumption is reduced.
On the basis of the foregoing embodiments, an embodiment of the present invention further provides a video compression apparatus, specifically referring to fig. 4, including:
the acquiring module 21 is configured to receive image data of a current frame image and acquire image data of a previous frame image from the DDR;
the first sending module 22 is configured to send image data of a previous frame of image to the video compression controller for compression processing when the current state of the video compression controller is an on state;
the second sending module 23 is configured to send the image data of the current frame image to the DDR for storage;
a judging module 24, configured to judge whether the current frame image is the same as the previous frame image according to the image data of the current frame image and the image data of the previous frame image, and if so, trigger the first changing module 25; if not, a second modification module 26 is triggered;
a first changing module 25 for changing the state of the video compression controller to an off state;
and a second changing module 26, configured to change the state of the video compression controller to an on state, so as to perform compression processing on image data acquired from the DDR next time.
Optionally, the determining module 24 includes:
the comparison unit is used for comparing the image data of the current frame image with the pixel data of the same pixel position in the image data of the previous frame image;
the judging unit is used for judging whether the pixel data of each pixel position are completely consistent, and if so, the first determining unit is triggered; if not, triggering a second determining unit;
the first determining unit is used for determining that the current frame image is the same as the previous frame image;
and the second determining unit is used for determining that the current frame image is different from the previous frame image.
Optionally, the obtaining module 21 includes:
the receiving unit is used for receiving the image data of the current frame image sent by the VGA for multiple times according to the byte number of the DDR burst transmission byte to obtain a plurality of current pixel data groups corresponding to the current frame image;
the acquiring unit is used for sequentially acquiring a plurality of historical pixel data groups corresponding to the previous frame of image from the DDR, wherein each time a current pixel data group is received, a corresponding historical pixel data group is acquired from the DDR.
It should be noted that the video compression apparatus provided in the embodiment of the present invention has the same beneficial effects as the video compression method provided in the above embodiment, and for specific description of the video compression method related in the embodiment of the present invention, please refer to the above embodiment, which is not repeated herein.
On the basis of the above embodiments, an embodiment of the present invention further provides a video compression system, including:
a memory for storing a computer program;
a processor for implementing the steps of the video compression method as described above when executing the computer program.
For example, the processor in the embodiment of the present invention may be specifically configured to receive image data of a current frame image, and acquire image data of a previous frame image from the DDR; when the current state of the video compression controller is an opening state, sending the image data of the previous frame of image to the video compression controller for compression; sending the image data of the current frame image to a DDR for storage; judging whether the current frame image is the same as the previous frame image or not according to the image data of the current frame image and the image data of the previous frame image, and if so, changing the state of the video compression controller into a closed state; if the two image data are different, the state of the video compression controller is changed into an open state, so that the image data acquired from the DDR next time can be compressed.
On the basis of the foregoing embodiments, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the video compression method as described above.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of video compression, comprising:
receiving image data of a current frame image, and acquiring image data of a previous frame image from the DDR;
when the current state of the video compression controller is an opening state, sending the image data of the previous frame of image to the video compression controller for compression processing;
sending the image data of the current frame image to the DDR for storage;
judging whether the current frame image is the same as the previous frame image or not according to the image data of the current frame image and the image data of the previous frame image, and if so, changing the state of a video compression controller into a closed state; if the two states are different, the state of the video compression controller is changed into an open state, so that the image data acquired from the DDR next time can be compressed.
2. The video compression method according to claim 1, wherein the step of determining whether the current frame image is the same as the previous frame image according to the image data of the current frame image and the image data of the previous frame image comprises:
comparing the image data of the current frame image with the pixel data of the same pixel position in the image data of the previous frame image, and judging whether the pixel data of each pixel position are completely consistent, if so, the current frame image is the same as the previous frame image, and if not, the current frame image is different from the previous frame image.
3. The video compression method according to claim 2, wherein the process of receiving the image data of the current frame image and obtaining the image data of the previous frame image from the DDR comprises:
receiving image data of a current frame image sent by a VGA for multiple times according to the number of bytes of DDR burst transmission bytes to obtain multiple current pixel data groups corresponding to the current frame image;
and sequentially acquiring a plurality of historical pixel data groups corresponding to the previous frame of image from the DDR, wherein each time one current pixel data group is received, one corresponding historical pixel data group is acquired from the DDR.
4. The video compression method according to claim 3, wherein the step of comparing the image data of the current frame image with the pixel data of the same pixel position in the image data of the previous frame image to determine whether the pixel data of each pixel position are completely consistent is:
starting from a first group of current pixel data groups, judging whether the pixel data of the current pixel data groups and the pixel data of the corresponding historical pixel data groups at the same pixel position are the same or not, if so, continuing to compare the next group of current pixel data groups with the corresponding historical pixel data groups until the comparison of the last group of current pixel data groups with the corresponding historical pixel data groups is completed; and if not, determining that the pixel data of each pixel position are not completely consistent.
5. The video compression method of claim 1, further comprising:
when the image data of the previous frame of image does not exist in the DDR and the current image is the first frame of image, the state of the video compression controller is changed to be in an open state so as to compress the image data of the first frame of image acquired from the DDR next time.
6. A video compression apparatus, comprising:
the acquisition module is used for receiving the image data of the current frame image and acquiring the image data of the previous frame image from the DDR;
the first sending module is used for sending the image data of the previous frame of image to the video compression controller for compression processing when the current state of the video compression controller is an open state;
the second sending module is used for sending the image data of the current frame image to the DDR for storage;
the judging module is used for judging whether the current frame image is the same as the previous frame image or not according to the image data of the current frame image and the image data of the previous frame image, and if the current frame image is the same as the previous frame image, the first changing module is triggered; if the difference is not the same, triggering a second change module;
the first changing module is used for changing the state of the video compression controller into a closing state;
the second changing module is configured to change the state of the video compression controller to an on state, so as to perform compression processing on image data acquired from the DDR next time.
7. The video compression apparatus of claim 6, wherein the determining module comprises:
the comparison unit is used for comparing the image data of the current frame image with the pixel data of the same pixel position in the image data of the previous frame image;
the judging unit is used for judging whether the pixel data of each pixel position are completely consistent, and if so, the first determining unit is triggered; if not, triggering a second determining unit;
the first determining unit is configured to determine that the current frame image is the same as the previous frame image;
the second determining unit is configured to determine that the current frame image is different from the previous frame image.
8. The video compression device of claim 7, wherein the obtaining module comprises:
the receiving unit is used for receiving the image data of the current frame image sent by the VGA for multiple times according to the byte number of the DDR burst transmission byte to obtain a plurality of current pixel data groups corresponding to the current frame image;
and the acquisition unit is used for sequentially acquiring a plurality of historical pixel data groups corresponding to the previous frame of image from the DDR, wherein each time one current pixel data group is received, one corresponding historical pixel data group is acquired from the DDR.
9. A video compression system, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the video compression method according to any one of claims 1 to 5 when executing said computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of a video compression method according to any one of claims 1 to 5.
CN202110873304.9A 2021-07-30 2021-07-30 Video compression method, device, system and medium Pending CN113709490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110873304.9A CN113709490A (en) 2021-07-30 2021-07-30 Video compression method, device, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110873304.9A CN113709490A (en) 2021-07-30 2021-07-30 Video compression method, device, system and medium

Publications (1)

Publication Number Publication Date
CN113709490A true CN113709490A (en) 2021-11-26

Family

ID=78651209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110873304.9A Pending CN113709490A (en) 2021-07-30 2021-07-30 Video compression method, device, system and medium

Country Status (1)

Country Link
CN (1) CN113709490A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873255A (en) * 2021-12-06 2021-12-31 苏州浪潮智能科技有限公司 Video data transmission method, video data decoding method and related devices
CN114051145A (en) * 2022-01-11 2022-02-15 苏州浪潮智能科技有限公司 Video compression processing method, device and medium
CN115209145A (en) * 2022-09-15 2022-10-18 苏州浪潮智能科技有限公司 Video compression method, system, device and readable storage medium
US12143609B2 (en) 2021-12-06 2024-11-12 Suzhou Metabrain Intelligent Technology Co., Ltd. Video data transmission method, video data decoding method, and related apparatuses

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040042547A1 (en) * 2002-08-29 2004-03-04 Scott Coleman Method and apparatus for digitizing and compressing remote video signals
US20070132771A1 (en) * 2005-12-14 2007-06-14 Winbond Israel Ltd. Efficient video frame capturing
US20100103183A1 (en) * 2008-10-23 2010-04-29 Hung-Ming Lin Remote multiple image processing apparatus
US20110123169A1 (en) * 2009-11-24 2011-05-26 Aten International Co., Ltd. Method and apparatus for video image data recording and playback
WO2018019237A1 (en) * 2016-07-26 2018-02-01 北京金山安全软件有限公司 Video transmitting method and device, and electronic equipment
CN112804532A (en) * 2021-01-07 2021-05-14 苏州浪潮智能科技有限公司 Image data acquisition method, system and related device
CN113068040A (en) * 2021-06-02 2021-07-02 苏州浪潮智能科技有限公司 Image compression method and device, electronic equipment and readable storage medium
CN113079379A (en) * 2021-03-26 2021-07-06 山东英信计算机技术有限公司 Video compression method, device, equipment and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040042547A1 (en) * 2002-08-29 2004-03-04 Scott Coleman Method and apparatus for digitizing and compressing remote video signals
US20070132771A1 (en) * 2005-12-14 2007-06-14 Winbond Israel Ltd. Efficient video frame capturing
US20100103183A1 (en) * 2008-10-23 2010-04-29 Hung-Ming Lin Remote multiple image processing apparatus
US20110123169A1 (en) * 2009-11-24 2011-05-26 Aten International Co., Ltd. Method and apparatus for video image data recording and playback
WO2018019237A1 (en) * 2016-07-26 2018-02-01 北京金山安全软件有限公司 Video transmitting method and device, and electronic equipment
CN112804532A (en) * 2021-01-07 2021-05-14 苏州浪潮智能科技有限公司 Image data acquisition method, system and related device
CN113079379A (en) * 2021-03-26 2021-07-06 山东英信计算机技术有限公司 Video compression method, device, equipment and computer readable storage medium
CN113068040A (en) * 2021-06-02 2021-07-02 苏州浪潮智能科技有限公司 Image compression method and device, electronic equipment and readable storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873255A (en) * 2021-12-06 2021-12-31 苏州浪潮智能科技有限公司 Video data transmission method, video data decoding method and related devices
CN113873255B (en) * 2021-12-06 2022-02-18 苏州浪潮智能科技有限公司 Video data transmission method, video data decoding method and related devices
US12143609B2 (en) 2021-12-06 2024-11-12 Suzhou Metabrain Intelligent Technology Co., Ltd. Video data transmission method, video data decoding method, and related apparatuses
CN114051145A (en) * 2022-01-11 2022-02-15 苏州浪潮智能科技有限公司 Video compression processing method, device and medium
WO2023134128A1 (en) * 2022-01-11 2023-07-20 苏州浪潮智能科技有限公司 Video compression processing method, device, and medium
CN115209145A (en) * 2022-09-15 2022-10-18 苏州浪潮智能科技有限公司 Video compression method, system, device and readable storage medium

Similar Documents

Publication Publication Date Title
CN113709490A (en) Video compression method, device, system and medium
US11521325B2 (en) Adaptive video streaming
CN109600610B (en) Data encoding method, terminal and computer readable storage medium
CN108769795B (en) Video signal realizing system and method
CN105681881A (en) Multimedia data transmission method based on mobile terminal, and mobile terminal
WO1993013625A1 (en) Method and apparatus for data redcution in a video image data reduction system
TWI486782B (en) Transmission system capable of dynamically setting transmission profile and its control method
EP2272237B1 (en) Method of transmitting data in a communication system
CN110830460A (en) Connection establishing method and device, electronic equipment and storage medium
WO2012163059A1 (en) Method, device and system for device redirection data transmission
JP2008283410A (en) Recorder and recording method
CN115633181B (en) Picture processing method, system, device, image compression device and storage medium
JP4600493B2 (en) Client server system
CN115643408A (en) Image compression method, device, equipment and storage medium
US20040083488A1 (en) Receiving apparatus, data communication system, and method for data communication
CN115550668A (en) Video image compression method, system, storage medium and equipment
CN104717531A (en) image log storage system and recording method thereof
CN115604052A (en) Vehicle communication interaction method and system and electronic equipment
US20090073982A1 (en) Tcp packet communication device and techniques related thereto
CN109474835B (en) Information processing apparatus, control method thereof, and storage medium
CN107454462B (en) Data transmission method, device and system
CN109510998B (en) The method for obtaining unpressed IP Camera initial data
US20200218700A1 (en) Image synchronized storage method and image processing device
CN114257643A (en) Log transmission method and system
JP2002176460A (en) Transmitter and communication 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