CN111225215B - Data processing method and system - Google Patents

Data processing method and system Download PDF

Info

Publication number
CN111225215B
CN111225215B CN202010277566.4A CN202010277566A CN111225215B CN 111225215 B CN111225215 B CN 111225215B CN 202010277566 A CN202010277566 A CN 202010277566A CN 111225215 B CN111225215 B CN 111225215B
Authority
CN
China
Prior art keywords
video
compressed
real
resolution
time
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.)
Active
Application number
CN202010277566.4A
Other languages
Chinese (zh)
Other versions
CN111225215A (en
Inventor
高可
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Shuzhi Xinzheng Technology Co ltd
Original Assignee
Beijing Shuzhi Xinzheng 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 Beijing Shuzhi Xinzheng Technology Co ltd filed Critical Beijing Shuzhi Xinzheng Technology Co ltd
Priority to CN202010277566.4A priority Critical patent/CN111225215B/en
Publication of CN111225215A publication Critical patent/CN111225215A/en
Application granted granted Critical
Publication of CN111225215B publication Critical patent/CN111225215B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/71Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/7867Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Signal Processing (AREA)
  • Library & Information Science (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention provides a data processing method, which comprises the following steps: storing the video data according to a preset storage mode; respectively performing first compression and second compression on videos which are represented by compression marks in the stored videos and have uncompressed video access time exceeding a preset deletion period to respectively form a first compressed video and a second compressed video, wherein the resolution of the first compressed video is equal to the resolution of a real-time video, the number of frames is lower than the number of frames of the real-time video, the resolution of the second compressed video is lower than the resolution of the real-time video, and the number of frames is equal to the number of frames of the real-time video; the first compressed video is appended to the second compressed video in a binary stream to form a combined compressed video, and the compression flag of the video is set to a flag value characterizing the compression. The invention can store the video data of a long time period as much as possible and meet the requirement of backtracking query.

Description

Data processing method and system
Technical Field
The present invention relates to a data processing method and system, and in particular, to a video data processing method and system.
Background
With the advent of the network age, video data has become an important means for acquiring information in human life. However, video data is large, especially video data stored in real time is particularly large, typically as surveillance video, the occupied memory space is particularly large, and large amounts of video data are not useful. Therefore, at intervals (e.g., 3-6 months), some video data must be deleted, if memory space is not available. However, in some cases, real-time video data before a specific time, for example, data before 6 months, needs to be queried, and if all the real-time video data are deleted, relevant information cannot be obtained, and the requirement of backtracking query cannot be met.
Therefore, a data processing method and system are urgently needed, which can store real-time video data for a long time period as much as possible in a limited space, and can meet the requirement of backtracking query.
Disclosure of Invention
In view of the above technical problems, embodiments of the present invention provide a data processing method and system, which can meet the requirements of storing real-time video data for a long period of time and backtracking query.
The technical scheme adopted by the invention is as follows:
one aspect of the present invention provides a data processing method, including:
storing video data according to a preset storage mode, wherein the preset storage mode comprises a real-time video ID, video acquisition time, a real-time video frame rate, a real-time video resolution, an access log, a video storage path and a compression mark;
respectively performing first compression and second compression on videos which are represented by compression marks in stored videos and have uncompressed video access time exceeding a preset deletion period to respectively form a first compressed video and a second compressed video, wherein the resolution of the first compressed video is equal to the resolution of the real-time video, the frame number of the first compressed video is lower than the frame number of the real-time video, the resolution of the second compressed video is lower than the resolution of the real-time video, and the frame number of the second compressed video is equal to the frame number of the real-time video;
and adding the first compressed video to the second compressed video in the form of binary stream to form a combined compressed video, and setting a compression flag of the combined compressed video to a flag value representing the compression.
Optionally, the frame number of the first compressed video is 1/M of the frame number of the real-time video compressed in the first compression process, where M is an integer greater than or equal to 2, and is determined based on the frame rate of the real-time video compressed in the first compression process.
Optionally, the ⌊ M/2 ⌋ th frame of each M frames of the real-time video compressed in the first compression process is retained in the first compressed video.
Optionally, M is equal to ⌊ F/2 ⌋ or ⌊ F/3 ⌋, where F represents the frame rate of the real-time video compressed in the first compression process.
Optionally, the resolution of the second compressed video is 1/N of the resolution of the real-time video compressed in the second compression process2N is ⌊ W0/WP⌋ and ⌊ H0/HP⌋, W0*H0For the resolution, W, of the real-time video compressed in the second compression processP*HPIs a preset minimum resolution.
Optionally, retaining pixels in the second compressed video at coordinates (⌊ N/2 ⌋ + N i, ⌊ N/2 ⌋ + N j), wherein i =0,1, 2.; j =0,1,2,.. the maximum values of i and j are ⌊ W0/N ⌋ and ⌊ H0/N⌋。
Optionally, resolution of the second compressed videoThe rate is 1/N of the resolution of the real-time video compressed in the second compression process2N is W0/WPAnd H0/HPThe smaller of W0*H0For the resolution, W, of the real-time video compressed in the second compression processP*HPIs a preset minimum resolution.
Optionally, if N is an integer, retaining a pixel in the second compressed video with coordinates (⌊ N/2 ⌋ + N i, ⌊ N/2 ⌋ + N j), wherein i =0,1, 2.. 9.; j =0,1,2,.. the maximum values of i and j are ⌊ W0/N ⌋ and ⌊ H0/N⌋;
If N is a non-integer, then the reserved coordinates in the second compressed video are:
(⌊N1/2⌋+x0,⌊N1/2⌋+y0)、(⌊N1/2⌋+x0,⌊N2/2⌋+ N1+y0)、(⌊N2/2⌋+ N1+x0,⌊N2/2⌋+ y0) And (⌊ N)2/2⌋+ N1+x0,⌊N2/2⌋+ N1+y0) Wherein N is1And N2⌊ N ⌋ and ⌈ N ⌉, x, respectively0And y0Coordinates of the upper left pixel point of each unit grid in the real-time video frame compressed in the second compression process, wherein the grid size of the unit grid is (N)1+N2)*(N1+N2) The starting point of the first unit grid is the pixel point at the upper left corner of the real-time video frame compressed in the second compression process.
Optionally, the video access time is determined based on the access log.
Another aspect of the present invention provides a data processing system, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of the above claims when executing the computer program.
The data processing method provided by the embodiment of the invention comprises the steps of firstly, respectively carrying out first compression and second compression on videos which are represented by compression marks in stored videos and have uncompressed video access time exceeding a preset deletion period to respectively form a first compressed video and a second compressed video, wherein the resolution ratio of the first compressed video is equal to the resolution ratio of the real-time video, the frame number of the first compressed video is lower than that of the real-time video, the resolution ratio of the second compressed video is lower than that of the real-time video, and the frame number of the second compressed video is equal to that of the real-time video. Thus, through the data processing method, the original video can be compressed into two compressed videos with different sizes and resolutions, the resolution of the first compressed video is unchanged but the frame number is reduced, namely, the picture is clear but not consistent, the resolution of the second compressed video is reduced but the frame number is unchanged, namely, the picture is not clear but consistent, and through the two compressed videos, under the condition that the storage space is relatively fixed, the video data of a long time period can be stored as much as possible, so that the requirement of backtracking query is met.
Drawings
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating the retention of pixels in the original video in the compressed video according to an embodiment of the present invention;
fig. 3 is a diagram illustrating the retention of pixels in the original video in the compressed video according to another embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
In some of the flows described in the present specification and claims and in the above figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, with the order of the operations being indicated as 101, 102, etc. merely to distinguish between the various operations, and the order of the operations by themselves does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel.
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 only a part of the embodiments of the present invention, 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 invention.
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention. As shown in fig. 1, a data processing method provided in an embodiment of the present invention includes:
s100, storing the video data according to a preset storage mode, wherein the preset storage mode comprises a real-time video ID, video acquisition time, a real-time video frame rate, a real-time video resolution, an access log, a video storage path and a compression mark.
S200, respectively performing first compression and second compression on videos which are represented by compression marks in the stored videos and have uncompressed video access time exceeding a preset deletion period to respectively form a first compressed video and a second compressed video, wherein the resolution of the first compressed video is equal to the resolution of the real-time video, and the frame number of the first compressed video is lower than that of the real-time video; the resolution of the second compressed video is lower than the resolution of the real-time video, and the frame number of the second compressed video is equal to the frame number of the real-time video.
S300, adding the first compressed video to the second compressed video in a binary stream form to form a combined compressed video, and setting a compression flag of the combined compressed video to a flag value representing compression.
The data processing method provided by the embodiment of the invention comprises the steps of firstly, respectively carrying out first compression and second compression on videos which are represented by compression marks in stored videos and have uncompressed video access time exceeding a preset deletion period to respectively form a first compressed video and a second compressed video, wherein the resolution ratio of the first compressed video is equal to the resolution ratio of the real-time video, the frame number of the first compressed video is lower than that of the real-time video, the resolution ratio of the second compressed video is lower than that of the real-time video, and the frame number of the second compressed video is equal to that of the real-time video. Thus, through the data processing method, the original video can be compressed into two compressed videos with different sizes and resolutions, the resolution of the first compressed video is unchanged but the frame number is reduced, namely, the picture is clear but not consistent, the resolution of the second compressed video is lowered but the frame number is unchanged, namely, the picture is not clear but consistent, and through the two compressed videos, the video data in a long time period can be stored as much as possible under the condition that the storage space is relatively fixed, so that the requirement of backtracking query can be met.
Further, in the embodiment of the present invention, in step S100, the real-time video may be stored using a database having a storage function. The real-time video ID may be determined randomly. The access log can be that the video is accessed by xx minutes xx seconds at xx month xx day xx in xx year, and the access comprises inquiry, playing, copying and the like. The compression flag may be represented using a preset flag value, e.g., a value of 0 for uncompressed, a value of 1 for compressed, etc.
Further, in the embodiment of the present invention, steps S200 to S300 may be implemented by a general-purpose processor having a data processing capability. In the embodiment of the present invention, the processor performs the compression processing of steps S200 to S300 on each video with a compression flag of 0 stored in the database. In one specific example, the following processing steps are performed:
s401, acquiring the time t of the latest accessed real-time video needing to be compressed; if t is within a preset deletion period, for example, within 3 months, the compression processing operation is not carried out, the operation is ended, and the next video is processed; otherwise, the process proceeds to S402.
S402, performing first compression on a real-time video to be compressed to form a first compressed video; the resolution ratio of the first compressed video is equal to that of the real-time video to be compressed, and the frame number is lower than that of the real-time video;
s403, performing second compression on the real-time video to be compressed to form a second compressed video; the resolution of the second compressed video is lower than that of the real-time video, and the frame number is equal to that of the real-time video;
s404, attaching the first compressed video to the second compressed video in the form of a binary stream to form a combined compressed video including the two compressed videos, and setting a compression flag of the combined compressed video to 1.
Further, in this embodiment of the present invention, the frame number of the first compressed video may be 1/M of the frame number of the real-time video compressed in the first compression process, that is, the sampling rate is 1 frame for sampling the real-time video every M frames, where M represents a first compression rate and is an integer greater than or equal to 2, and is determined based on the frame rate of the real-time video compressed in the first compression process. In a specific example, M is equal to ⌊ F/2 ⌋ or ⌊ F/3 ⌋, where F represents the frame rate of the real-time video compressed in the first compression process. For example, if the frame rate F =60 frames/second, then M =20, which is equivalent to leaving 3 frames per second.
In one example, the first compressed video retains ⌊ M/2 ⌋ th frames of every M frames of the real-time video compressed in the first compression process. For example, taking M =20 as an example, the 10 th frame, the 30 th frame, and the 50 th frame of the real-time video compressed in the first compression process are retained in the first compressed video.
Further, in the embodiment of the present invention, the resolution and the retained pixels of the second compressed video may be determined by two ways:
example one
In this embodiment, the resolution of the second compressed video is 1/N of the resolution of the real-time video compressed in the second compression process2N denotes a second compressibility, and W0And H0And (4) correlating. In one example, N is ⌊ W0/WP⌋ and ⌊ H0/HP⌋, W0*H0For the resolution, W, of the real-time video compressed in the second compression processP*HPIs a preset minimum resolution. That is, the resolution W1 × H1 of the second compressed video and the resolution W of the real-time video compressed in the second compression process0* H0The relationship of (1) is: w1= W0/N,H1=H0and/N. In a specific example, the preset minimum resolution WP*HPMay be 320 x 240, i.e. N is ⌊ W0/320 ⌋ and ⌊ H0The smaller of/240 ⌋, so that the lowest resolution of the video compressed in the second compression process is 320 x 240. In one example, in the case that the resolution of the real-time video is 1920 × 1080, N is the smaller 4 of ⌊ 1920/320 ⌋ (= 6) and ⌊ 1080/240 ⌋ (= 4), so that the compressed video is 480 × 270, that is, the compressed video is 1/16 of the original video.
Further, in this embodiment, a pixel with coordinates (⌊ N/2 ⌋ + N × i, ⌊ N/2 ⌋ + N × j) is retained in the second compressed video, wherein i =0,1, 2...; j =0,1,2,.. the maximum values of i and j are ⌊ W0/N ⌋ and ⌊ H0/N⌋,W0*H0The resolution of the real-time video compressed in the second compression process. I.e. dividing the compressed real-time video frame into a plurality of grid sizes N2The unit grid of (2), 1 pixel is reserved in each unit grid, and the coordinates of the pixel are. As shown in fig. 2, in the case of N =4, the unit cell of the compressed real-time video frame has a cell size of 4 × 4=16, and the position of the pixel P retained in each unit cell in the cell is shown by the hatched portion in fig. 2. As can be seen from fig. 2, the remaining pixels are located at the relatively middle position of the unit grid, and can better represent the colors of 16 pixels. Thus, in the present embodiment, only one pixel is reserved in each unit grid with the grid size of 16, so that the video can be compressed as much as possible, and the pixel coordinates are selected to be reserved relative to the pixel in the middle, so that the color of the original real-time video frame can be better represented.
Example two
In this embodiment, the resolution of the second compressed video is 1/N of the resolution of the real-time video compressed in the second compression process2N denotes a second compressibility, and W0And H0And (4) correlating. In one example, N is W0/WPAnd H0/HPThe smaller of W0*H0For the resolution, W, of the real-time video compressed in the second compression processP*HPIs a preset minimum resolution. That is, the resolution W1 × H1 of the second compressed video and the resolution W of the real-time video compressed in the second compression process0*H0The relationship of (1) is: w1= W0/N,H1=H0and/N. In a specific example, the preset minimum resolution WP*HPMay be 320 x 240, i.e. N is W0320 and H0The smaller of/240, so that the lowest resolution of the video compressed in the second compression process is 320 × 240.
In this embodiment, if N, which is derived based on the resolution of the compressed real-time video and the preset lowest resolution, is an integer, e.g., N =4, then pixels with coordinates (⌊ N/2 ⌋ + N × i, ⌊ N/2 ⌋ + N × j) are retained in the second compressed video, where i =0,1, 2.; j =0,1,2,.. the maximum values of i and j are ⌊ W0/N ⌋ and ⌊ H0/N ⌋, that is, the retained pixels are identical to the retained pixels in the first embodiment.
If N, which is derived based on the resolution of the compressed real-time video and the preset lowest resolution, is a non-integer, e.g., N =4.5, then the reserved coordinates in the second compressed video are: (⌊ N)1/2⌋+x0,⌊N1/2⌋+y0)、(⌊N1/2⌋+x0,⌊N2/2⌋+ N1+y0)、(⌊N2/2⌋+ N1+x0,⌊N2/2⌋+ y0) And (⌊ N)2/2⌋+ N1+x0,⌊N2/2⌋+ N1+y0) Wherein N is1And N2⌊ N ⌋ and ⌈ N ⌉, x, respectively0And y0For compression in the second compression processThe coordinate of a pixel point P0 at the upper left corner of each unit grid in the video frame is represented by (N)1+N2)*(N1+N2) The starting point of the first unit grid is the pixel point at the upper left corner of the real-time video frame compressed in the second compression process. I.e., the compressed real-time video frame may be divided into a plurality of mesh sizes of (N)1+N2)*(N1+N2) Each unit cell has 4 pixels reserved therein, and the coordinates of the pixels reserved in each unit cell are (⌊ N)1/2⌋+x0,⌊N1/2⌋+y0)、(⌊N1/2⌋+x0,⌊N2/2⌋+ N1+y0)、(⌊N2/2⌋+ N1+x0,⌊N2/2⌋+ y0) And (⌊ N)2/2⌋+ N1+x0,⌊N2/2⌋+ N1+y0). As shown in fig. 3, in the case of N =4.5, the grid size of the unit grid of the compressed real-time video frame is (4 + 5) × (4 + 5) =81, and the positions of the 4 pixels P1 to P4 reserved per unit grid in the grid are shown by the hatched portions in fig. 3. As can be seen from fig. 3, the remaining 4 pixels are located at the relatively middle position of the unit grid, and can better represent the color of 81 pixels. Thus, in this embodiment, only 4 pixels are reserved in each unit grid with the grid size of 81, so that the video can be compressed as much as possible, and the pixels with the pixel coordinates relatively close to the middle are selected and reserved, so that the color of the original real-time video frame can be reflected better.
Further, in an embodiment of the present invention, the video access time may be determined based on the access log.
Note that, in the embodiment of the present invention, the symbol ⌊ ⌋ represents rounding-down, and the symbol ⌈ ⌉ represents rounding-up.
To sum up, the data processing method provided by the embodiment of the present invention can compress an original video into two compressed videos with different sizes and resolutions, where the first compressed video is 1/M of the original real-time video, and the second compressed video is 1/(N × N) of the original video. In the embodiments of the present inventionIn the method, the total compression rate of the video can be determined by a formula (M × N)2)/(N2+ M) so that the total compression ratio can be obtained from the first compression ratio and the second compression ratio.
According to the embodiment of the invention, the original real-time video is compressed into two compressed videos with different resolutions and frame numbers, so that the video data of a long time period can be stored as much as possible under the condition that the storage space is relatively fixed, and the requirement of backtracking query is met.
The embodiment of the present invention further provides a data processing system, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the steps of the data processing method when executing the computer program.
Specifically, the memory and the processor can be general-purpose memory and processor, which are not specifically limited herein, and when the processor runs a computer program stored in the memory, the data processing method can be executed, so as to solve the problems in the related art that real-time video data cannot be stored for a long period of time and the requirement for backtracking query cannot be met.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, or the like.
The above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A data processing method, comprising:
storing real-time video data according to a preset storage mode, wherein the preset storage mode comprises a real-time video ID, video acquisition time, a real-time video frame rate, a real-time video resolution, an access log, a video storage path and a compression mark;
respectively performing first compression and second compression on the real-time video which is represented by the compression mark in the stored real-time video and is not compressed and the video access time exceeds a preset deletion period to respectively form a first compressed video and a second compressed video; the resolution of the first compressed video is equal to the resolution of the real-time video, the frame number of the first compressed video is lower than the frame number of the real-time video, the resolution of the second compressed video is lower than the resolution of the real-time video, and the frame number of the second compressed video is equal to the frame number of the real-time video;
and adding the first compressed video to the second compressed video in the form of binary stream to form a combined compressed video, and setting a compression flag of the combined compressed video to a flag value representing the compression.
2. The data processing method according to claim 1, wherein the frame number of the first compressed video is 1/M of the frame number of the real-time video compressed in the first compression process, and M is an integer greater than or equal to 2, and is determined based on the frame rate of the real-time video compressed in the first compression process.
3. The data processing method as claimed in claim 2, wherein the first compressed video retains ⌊ M/2 ⌋ th frame of every M frames of the real-time video compressed in the first compression process.
4. The data processing method of claim 2 or 3, wherein M is equal to ⌊ F/2 ⌋ or ⌊ F/3 ⌋, wherein F represents the frame rate of the real-time video compressed in the first compression process.
5. The data processing method of claim 1, wherein the resolution of the second compressed video is 1/N of the resolution of the real-time video compressed in the second compression process2N is ⌊ W0/WP⌋ and ⌊ H0/HP⌋, W0*H0For the resolution, W, of the real-time video compressed in the second compression processP*HPIs a preset minimum resolution.
6. The data processing method of claim 5, wherein pixels with coordinates (⌊ N/2 ⌋ + N i, ⌊ N/2 ⌋ + N j) are retained in the second compressed video, wherein i =0,1, 2.. once.; j =0,1,2,.. the maximum values of i and j are ⌊ W0/N ⌋ and ⌊ H0/N⌋。
7. The data processing method of claim 1, wherein the resolution of the second compressed video is 1/N of the resolution of the real-time video compressed in the second compression process2N is W0/WPAnd H0/HPThe smaller of W0*H0For the resolution, W, of the real-time video compressed in the second compression processP*HPIs a preset minimum resolution.
8. The data processing method of claim 7, wherein if N is an integer, the second voltage isA pixel with coordinates (⌊ N/2 ⌋ + N i, ⌊ N/2 ⌋ + N j) is retained in the condensed video, wherein i =0,1, 2.. once.; j =0,1,2,.. the maximum values of i and j are ⌊ W0/N ⌋ and ⌊ H0/N⌋;
If N is a non-integer, then the reserved coordinates in the second compressed video are: (⌊ N)1/2⌋+x0,⌊N1/2⌋+y0)、(⌊N1/2⌋+x0,⌊N2/2⌋+ N1+y0)、(⌊N2/2⌋+ N1+x0,⌊N2/2⌋+ y0) And (⌊ N)2/2⌋+ N1+x0,⌊N2/2⌋+ N1+y0) Wherein N is1And N2⌊ N ⌋ and ⌈ N ⌉, x, respectively0And y0Coordinates of the upper left pixel point of each unit grid in the real-time video frame compressed in the second compression process, wherein the grid size of the unit grid is (N)1+N2)*(N1+N2) The starting point of the first unit grid is the pixel point at the upper left corner of the real-time video frame compressed in the second compression process.
9. The data processing method of claim 1, wherein the video access time is determined based on the access log.
10. A data processing system comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of the preceding claims 1 to 9 are implemented by the processor when executing the computer program.
CN202010277566.4A 2020-04-10 2020-04-10 Data processing method and system Active CN111225215B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010277566.4A CN111225215B (en) 2020-04-10 2020-04-10 Data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010277566.4A CN111225215B (en) 2020-04-10 2020-04-10 Data processing method and system

Publications (2)

Publication Number Publication Date
CN111225215A CN111225215A (en) 2020-06-02
CN111225215B true CN111225215B (en) 2020-07-24

Family

ID=70830095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010277566.4A Active CN111225215B (en) 2020-04-10 2020-04-10 Data processing method and system

Country Status (1)

Country Link
CN (1) CN111225215B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101282445A (en) * 2007-04-06 2008-10-08 明基电通股份有限公司 Method for recording medium data
US7986848B2 (en) * 2007-09-11 2011-07-26 International Business Machines Corporation Methods, systems, and computer program products for a multi-resolution storage scheme for historical data
CN101370140A (en) * 2008-09-25 2009-02-18 浙江大华技术股份有限公司 Multi-code stream generation method
CN106162174B (en) * 2016-08-31 2019-10-29 北京奇艺世纪科技有限公司 A kind of video multi-resolution encoding method and apparatus
US10306250B2 (en) * 2017-06-16 2019-05-28 Oath Inc. Video encoding with content adaptive resource allocation
CN108024080A (en) * 2017-12-08 2018-05-11 佛山市章扬科技有限公司 A kind of method using a variety of compress mode recorded videos

Also Published As

Publication number Publication date
CN111225215A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
US9626797B2 (en) Generating a consensus mesh from an input set of meshes
CN111159492A (en) Track point retrieval method and device, storage medium and terminal
WO2010021625A1 (en) Automatic creation of a scalable relevance ordered representation of an image collection
CN110716739B (en) Code change information statistical method, system and readable storage medium
US20070274599A1 (en) Image processing method and image processing apparatus
US20070211078A1 (en) Image Processing Device And Image Processing Method
CN115022670B (en) Video file storage method, video file restoration device, video file storage equipment and storage medium
CN110569379A (en) Method for manufacturing picture data set of automobile parts
CN111225215B (en) Data processing method and system
CN105069747A (en) Image interpolation method and device
CN112714338A (en) Video transmission method, video playing method, video transmission device, video playing device, computer equipment and storage medium
CN110572713B (en) Transcoding method and processing terminal for adaptive video bandwidth ratio
US10964076B2 (en) Method and system for solving inverse problems in image processing using deep dictionary learning (DDL)
CN113706639B (en) Image compression method and device based on rectangular NAM, storage medium and computing equipment
CN102663715A (en) Super-resolution method and device
CN114363697B (en) Video file generation and playing method and device
CN111770377B (en) Compression method for video playing system
CN113569862A (en) Method and system for secondary cutting of atlas
CN109977247A (en) Image processing method and image processing apparatus
US7468733B2 (en) Method and system for improving color reduction
CN113220505B (en) Backup mirror image data management method, device, system and storage medium
CN114724276B (en) Processing method, playing method and related equipment for multi-type log data
CN110837575B (en) Method and device for generating transmission characteristic information of video image
DE112014004060B4 (en) Device-centric media prioritization systems and methods therefor
CN116527908B (en) Motion field estimation method, motion field estimation device, computer device and storage medium

Legal Events

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