CN109194965A - Processing method, processing unit, display methods and display device - Google Patents

Processing method, processing unit, display methods and display device Download PDF

Info

Publication number
CN109194965A
CN109194965A CN201811398094.7A CN201811398094A CN109194965A CN 109194965 A CN109194965 A CN 109194965A CN 201811398094 A CN201811398094 A CN 201811398094A CN 109194965 A CN109194965 A CN 109194965A
Authority
CN
China
Prior art keywords
key frame
frame
initial
video file
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811398094.7A
Other languages
Chinese (zh)
Other versions
CN109194965B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811398094.7A priority Critical patent/CN109194965B/en
Publication of CN109194965A publication Critical patent/CN109194965A/en
Application granted granted Critical
Publication of CN109194965B publication Critical patent/CN109194965B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

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

Abstract

The application discloses a kind of processing method, processing unit, display methods and display device, for at this stage using the still very high problem of required memory space after current national standard AVS or international standard AVC/H.264 compression monitor video, initial video file is recompressed by carrying out independent processing to key frame therein, to reduce the storage volume of monitor video, a large amount of memory space has been brought with minimum calculating cost, there is considerable economic benefit.

Description

Processing method, processing unit, display methods and display device
Technical field
This application involves monitoring technology fields, more specifically to a kind of processing method, processing unit, display methods And display device.
Background technique
With the development of science and technology the resolution ratio of camera is constantly promoted, lead to the storage for storing the image of camera acquisition Space is increasing.
Summary of the invention
To solve the above problems, the application provides the following technical solutions:
A kind of processing method, comprising:
Initial video file is obtained, the initial video file includes image sequence, and described image sequence includes initial graph Picture and differential image, the differential image include the variance data at least between the initial pictures;
Key frame detection is carried out to described image sequence, and is given birth in described image sequence there are in the case where key frame At the mark video frame for identifying the key frame, the key frame includes in the initial pictures and the differential image An at least frame image;
The key frame in the initial video file is replaced with into the mark video frame and obtains the first video file;
It handles the key frame and obtains the second video file, second video file includes initial key frame and difference Key frame, the difference key frame includes the variance data at least between the initial key frame, and first video is literary The mark video frame initial key frame corresponding with the key frame identified/difference key frame tool in part It is relevant.
It is preferably, described that key frame detection is carried out to described image sequence, comprising:
Key frame detection is carried out to the specified described image sequence divided in region is located at.
It is preferably, described that key frame detection is carried out to described image sequence, comprising:
Key frame detection is carried out to the described image sequence of prescribed coding format.
It is preferably, described that key frame detection is carried out to described image sequence, comprising:
Key frame detection is carried out to described image sequence according to the preset detection period.
Preferably, the processing key frame obtains the second video file, comprising:
The second video file is at least obtained based on key frame described in the described image series processing where the key frame.
Preferably, described at least to obtain second based on key frame described in the described image series processing where the key frame Video file, comprising:
Obtain the compression ratio of the described image sequence where the key frame;
Compression ratio at least based on described image sequence determines target code format, and compiles according to the target code format The code key frame obtains the second video file.
Preferably, the method also includes:
Key frame record sheet is generated, record has the incidence relation in the key frame record sheet.
A kind of processing unit, comprising:
First obtains module, and for obtaining initial video file, the initial video file includes image sequence, the figure As sequence includes initial pictures and differential image, the differential image includes the difference number at least between the initial pictures According to;
For carrying out key frame detection to described image sequence, and there is key in described image sequence in detection module In the case where frame, generate the mark video frame for identifying the key frame, the key frame include the initial pictures and An at least frame image in the differential image;
Replacement module is obtained for the key frame in the initial video file to be replaced with the mark video frame First video file;
First processing module obtains the second video file for handling the key frame, and second video file includes Initial key frame and difference key frame, the difference key frame include the difference number at least between the initial key frame According to, and the mark video frame initial key corresponding with the key frame identified in first video file Frame/difference key frame has incidence relation.
A kind of display methods, comprising:
It obtains and operates the target video file to be shown with determination, the target video file is will be in initial video file Key frame replace with mark obtained first video file of video frame, the initial video file includes image sequence, institute Stating image sequence includes initial pictures and differential image, and the differential image includes the difference at least between the initial pictures Heteromerism evidence, the mark video frame are that there are institutes in the progress key frame detection of described image sequence and described image sequence It is generated in the case where stating key frame, the mark video frame includes described first for identifying the key frame, the key frame An at least frame image in beginning image and the differential image;
In the case where reading the mark video frame in the target video file, based on incidence relation second Initial key frame/difference key frame associated by the mark video frame, second video file are determined in video file is Handle what the key frame obtained, second video file includes the initial key frame and the difference key frame, described Difference key frame includes the variance data at least between the initial key frame, and the incidence relation is the association target view The mark video frame initial key frame/difference key frame corresponding with the key frame identified in frequency file 's;
The initial key frame/difference key frame is handled to obtain the key frame, and export.
A kind of display device, comprising:
Second obtains module, operates the target video file to be shown with determination, the target video file for obtaining For the key frame in initial video file is replaced with mark obtained first video file of video frame, the initial video text Part includes image sequence, and described image sequence includes initial pictures and differential image, the differential image include at least with institute The variance data between initial pictures is stated, the mark video frame is to carry out key frame detection and institute to described image sequence It is generated in the case where stating in image sequence there are the key frame, the mark video frame is for identifying the key frame, institute Stating key frame includes at least frame image in the initial pictures and the differential image;
Determining module, for being based in the case where reading the mark video frame in the target video file Incidence relation determines initial key frame/difference key frame associated by the mark video frame in the second video file, described The second video file processing key frame obtains, and second video file includes the initial key frame and the difference Different key frame, the difference key frame include the variance data at least between the initial key frame, and the incidence relation is The mark video frame being associated in the target video file initial key corresponding with the key frame identified Frame/difference key frame;
Second processing module obtains the key frame for handling the initial key frame/difference key frame, and defeated Out.
By the above technological means, may be implemented it is following the utility model has the advantages that
It can be seen via above technical scheme that the embodiment of the present application provides a kind of processing method, for using at this stage The still very high problem of required memory space after current national standard AVS or international standard AVC/H.264 compression monitor video, leads to It crosses and the independent processing of key frame therein progress is recompressed initial video file, to reduce the memory bank of monitor video Product, has brought a large amount of memory space with minimum calculating cost, has considerable economic benefit.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow diagram of processing method disclosed in the embodiment of the present application one;
Fig. 2 is the example of initial video file;
Fig. 3 is the example of the second video file;
Fig. 4 is a kind of flow diagram of processing method disclosed in the embodiment of the present application two;
Fig. 5 is a kind of flow diagram of processing method disclosed in the embodiment of the present application three;
Fig. 6 is a kind of flow diagram of processing method disclosed in the embodiment of the present application four;
Fig. 7 is a kind of flow diagram of processing method disclosed in the embodiment of the present application five;
Fig. 8 is a kind of structural schematic diagram of processing unit disclosed in the present application;
Fig. 9 is a kind of flow diagram of display methods disclosed in the present application;
Figure 10 is a kind of flow diagram of display device disclosed in the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
In a kind of processing method embodiment one disclosed in the present application, as shown in Figure 1, method includes the following steps:
Step 101: obtaining initial video file, initial video file includes image sequence, and image sequence includes initial graph Picture and differential image, differential image include the variance data at least between initial pictures.
Firstly, method disclosed in the present embodiment can be applied to the server-side of monitor video storage system, specially set It is placed in the service equipment of network side, can be realized by single server, can also be realized by the server farm that multiple servers form, The present embodiment does not limit this.And method disclosed in the present embodiment is without rising the hardware system and tool of server-side Grade, has brought a large amount of memory space with minimum calculating cost.
Secondly, initial video file is compressed monitor video file, generally compressed using H264 coding, it is subsequent It is illustrated so that H264 is encoded as an example.H264 coding is introduced below:
H264 coding mainly considers the temporal correlation of video, the basic principle is that: such as with monitor video file First frame is start frame, and subsequent frame refers to the frame of front, only difference (place of movement) recorded, to reach the effect of video compress Fruit.
To reduce frame losing (such as Network Packet Loss, corrupted data), the influence to entire monitor video such as prediction error, video The concept of GOP (Group of pitcures) is introduced in coding.One GOP indicates a decodable image sequence, generally It is made of 1 I frame, several P frames and B frame.The image sequence that initial video file is included in the present embodiment is one A GOP, the initial pictures that corresponding image sequence is included are I frame, the differential image that is included is at least P frame.Below to I Frame, P frame and B frame do simple introduction:
I frame: key frame does not depend on other frames, and compression ratio is generally 1/7;
P frame: single directional prediction frame, I frame or P frame, compression ratio before relying on can achieve 1/20~1/30;
B frame: bi-directional predicted frames, I frame or P frame, compression ratio before and after dependence can achieve 1/150~1/200.
It, can be by the way of GOP configuration, with M (P interframe finally, for the setting of image sequence in initial video file Every)=3, for N (I frame period)=13, the example of initial video file is as shown in Figure 2, wherein I, B, P respectively indicate I frame, B Frame and P frame.
Step 102: key frame detection being carried out to image sequence, and is given birth in image sequence there are in the case where key frame At the mark video frame for identifying key frame, key frame includes at least frame image in initial pictures and differential image.
Firstly, key frame can be pre-assigned by the user, including at least frame figure in initial pictures and differential image Picture, that is to say, that, it is possible to specify belong to the video frame of at least one of I frame, P frame and B frame as key frame.Certainly, it is based on Above to the description of GOP, can determine I frame for B frame and P frame, compression ratio is very low, possessed compression space very Greatly.Therefore, key frame includes at least initial pictures, that is, belongs to the video frame of I frame.
Secondly, key frame detection is introduced below:
The initial video file that H264 is encoded is in a network with NALU format transmission, in initial video file Some video frame can determine belonging to the video frame by the low 5 bit NAL TYPE of byte where detecting its NAL Type, I frame or P frame or B frame.
By taking key frame is to belong to the video frame of I frame as an example, for the GOP1 in the initial video file shown in Fig. 2, such as Fruit detects that video frame 1 is I frame in GOP1, then can determine that the video frame 1 is key frame, to generate for identifying video frame 1 mark video frame specifically carries the mark of video frame 1 in the mark video frame.The mark can be the position of video frame 1 It sets, can also be the serial number etc. of video frame 1, the present embodiment does not limit this, can be with unique identification video frame 1.
Step 103: the key frame in initial video file being replaced with into mark video frame and obtains the first video file.
Continue so that key frame is to belong to the video frame of I frame as an example, the GOP1 in initial video file shown in Fig. 2 is come It says, extracts video frame 1 from initial video file first, and then mark video frame corresponding to video frame 1 is set to view 1 position of frequency frame.And the mark due to only carrying video frame 1 in mark video frame, for video frame 1, Memory space shared by it is much smaller.At this point, memory space shared by the first video file is also just much smaller than initial video text Memory space shared by part.
In addition, for other video frames for being not belonging to I frame in initial video file, it can be without any processing.
Step 104: processing key frame obtains the second video file, and the second video file includes initial key frame and difference Key frame, difference key frame include the variance data at least between initial key frame, and the mark view in the first video file Frequency frame initial key frame corresponding with the key frame identified/difference key frame has incidence relation.
Continue so that key frame is to belong to the video frame of I frame as an example, it is assumed that there are 10 GOP in initial video file shown in Fig. 2, I.e. GOP1, GOP2 ... and GOP10.By step 103 can respectively from GOP1, GOP2 ... and extracted respectively in GOP10 Out a video frame 1, video frame 2 ... and video frame 10.Can obtain at this time one by video frame 1, video frame 2 ... and The key frame file that video frame 10 is constituted, and then compression processing can be carried out to the key frame file using specified coded format Obtain the second video file.
Wherein, specified coded format can be H264 coding, H265 coding, any one in MPEG, continue with It is illustrated for H264 coding:
Assuming that the GOP of the second video file is configured to M (P frame period)=1, N (I frame period)=5, then the second video file Example it is as shown in Figure 3, wherein I, B, P respectively indicate I frame, B frame and P frame.As can be seen that belonging to I frame in the second video file Video frame be initial key frame, the video frame for belonging to B frame or P frame is difference key frame, difference included by difference key frame Heteromerism is according to that can refer to the above-mentioned introduction for B frame and P frame, and details are not described herein.
In addition, can further generate key frame record sheet, the key frame record sheet to visualize above-mentioned incidence relation Middle record has above-mentioned incidence relation.
For the application effect for embodying the application, M (P frame period)=3, N (I frame are configured with the common GOP of current monitor video Interval)=60 for, it is assumed that every frame data amount is F (MB), and the frame per second of camera is 20FPS, and stores 1 month data IB B B P B B B P B B B P B B B P B B B P B B B P B B B P B B B…。
Use the size of initial video file before the application:
S1=F* (1/7+14*1/30+45*1/200) * (20*3600*24*30)/30 (MB)
Use the size reduced after the application:
S2=F (1/7) * (20*3600*24*30)/30-F* (20*3600*24*30/30)/200 (MB)
It can then calculate using the space proportion saved after the application:
S2/S1=(1/7-1/200)/(1/7+14*1/30+45*1/200)=16.52%.
Following table 1 be using the application after, commonly use GOP and configure corresponding effective effect table:
GOP list Save memory space %
M=3, N=30 28.354554
M=2, N=30 25.394737
M=3, N=60 16.519258
M=2, N=30 14.121951
M=3, N=90 11.654589
M=4, N=90 13.610719
M=3, N=120 8.8396947
M=4, N=120 9.9211789
Table 1
It can be seen that the application is by carrying out independent processing for initial video text to the key frame in initial video file Part recompression, to reduce the storage volume of monitor video, has brought a large amount of memory space with minimum calculating cost, has had Considerable economic benefit.
As a kind of implementation for carrying out key frame detection to image sequence, the embodiment of the present application two discloses a kind of place Reason method, as shown in figure 4, this method comprises the following steps:
Step 201: obtaining initial video file, initial video file includes image sequence, and image sequence includes initial graph Picture and differential image, differential image include the variance data at least between initial pictures.
Step 202: carrying out key frame detection to the specified image sequence divided in region is located at, and deposited in image sequence In the case where key frame, the mark video frame for identifying key frame is generated, key frame includes initial pictures and disparity map An at least frame image as in.
It, can be with the significance level of bond area, such as non-interesting area in conjunction with the scene of different compressed encodings in the present embodiment The significance level in domain is lower than the significance level of region-of-interest, may therefore specify that non-interesting region, then to non-interesting region It is compressed.It is, of course, also possible to the lower region of compression ratio in specified initial video file, the present embodiment do not limit this, It can be configured according to actual needs.
Therefore, the region that can be recompressed in advance to needs is divided and is specified, and is only carried out to specified division region Key frame detects and executes subsequent step.Further, it is also possible to specify different coded formats for different demarcation region.
Step 203: the key frame in initial video file being replaced with into mark video frame and obtains the first video file.
Step 204: processing key frame obtains the second video file, and the second video file includes initial key frame and difference Key frame, difference key frame include the variance data at least between initial key frame, and the mark view in the first video file Frequency frame initial key frame corresponding with the key frame identified/difference key frame has incidence relation.
It can be seen that the application carries out independent processing by dividing the key frame in region surely to initial video document Initial video file is recompressed, to reduce the storage volume of monitor video, has been brought largely with minimum calculating cost Memory space has considerable economic benefit.
As a kind of implementation for carrying out key frame detection to image sequence, the embodiment of the present application three discloses a kind of place Reason method, as shown in figure 5, this method comprises the following steps:
Step 301: obtaining initial video file, initial video file includes image sequence, and image sequence includes initial graph Picture and differential image, differential image include the variance data at least between initial pictures.
Step 302: key frame detection being carried out to the image sequence of prescribed coding format, and there is key in image sequence In the case where frame, the mark video frame for identifying key frame is generated, key frame includes in initial pictures and differential image An at least frame image.
It, can be in conjunction with image sequence in initial video file in conjunction with the scene of different compressed encodings in the present embodiment Coded format, for example, the compression effectiveness of H261 coding to be encoded more than H264 and H265 coding is poor, therefore, for using H261 The image sequence of coding can be compressed with further progress, and then may be used for the image sequence using H264 compression or H265 compression Without compression.
Therefore, the coded format that can be recompressed in advance to needs is specified, only to the image sequence of prescribed coding format Column carry out key frame detection and execute subsequent step.
Step 303: the key frame in initial video file being replaced with into mark video frame and obtains the first video file.
Step 304: processing key frame obtains the second video file, and the second video file includes initial key frame and difference Key frame, difference key frame include the variance data at least between initial key frame, and the mark view in the first video file Frequency frame initial key frame corresponding with the key frame identified/difference key frame has incidence relation.
It can be seen that the application carries out independent processing by determining initial video document the key frame of coded format Initial video file is recompressed, to reduce the storage volume of monitor video, has been brought largely with minimum calculating cost Memory space has considerable economic benefit.
As a kind of implementation for carrying out key frame detection to image sequence, the embodiment of the present application four discloses a kind of place Reason method, as shown in fig. 6, this method comprises the following steps:
Step 401: obtaining initial video file, initial video file includes image sequence, and image sequence includes initial graph Picture and differential image, differential image include the variance data at least between initial pictures.
Step 402: key frame detection being carried out to image sequence according to the preset detection period, and exists in image sequence and closes In the case where key frame, the mark video frame for identifying key frame is generated, key frame includes in initial pictures and differential image An at least frame image.
Since monitoring scene usually compares fixation, in general, camera is divided into two classes: one kind is fixing camera, by In a certain position of establishing shot;Another kind of is non-fixing camera, such as cradle head camera, the rotatable a certain area of monitoring Domain.
For fixing camera, since camera site is fixed, same GOP (image sequence) Zhong Getu in initial video file Scene similarity is higher as between, therefore, can be detected with real-time perfoming key frame.
Conversely, for on-fixed camera, since camera site is not fixed, same GOP (image sequence in initial video file Column) between each image scene similarity it is very low.Be 10FPS with frame per second, swing circle 3S, GOP configuration M (P frame period)= 2, for N (I frame period)=10, corresponding 3 GOP of a swing circle.Therefore, it for a certain camera site, can clap within each 3 seconds Take the photograph it is primary, so if detect that a certain video frame is key frame, then can at interval of 3S, to the view of one swing circle in interval Frequency frame carries out key frame detection, and key frame detected is the video frame of same camera site at this time, this is just removal wide area week The redundancy of (swing circle, per hour, daily) provides the foundation in phase.
Step 403: the key frame in initial video file being replaced with into mark video frame and obtains the first video file.
Step 404: processing key frame obtains the second video file, and the second video file includes initial key frame and difference Key frame, difference key frame include the variance data at least between initial key frame, and the mark view in the first video file Frequency frame initial key frame corresponding with the key frame identified/difference key frame has incidence relation.
It can be seen that the application by according to the preset detection period in initial video file key frame carry out it is independent Processing recompresses initial video file, to reduce the storage volume of monitor video, has been brought greatly with minimum calculating cost The memory space of amount has considerable economic benefit.
A kind of implementation of the second video file is obtained as processing key frame, the embodiment of the present application five discloses one kind Processing method, as shown in fig. 7, this method comprises the following steps:
Step 501: obtaining initial video file, initial video file includes image sequence, and image sequence includes initial graph Picture and differential image, differential image include the variance data at least between initial pictures.
Step 502: key frame detection being carried out to image sequence, and is given birth in image sequence there are in the case where key frame At the mark video frame for identifying key frame, key frame includes at least frame image in initial pictures and differential image.
Step 503: the key frame in initial video file being replaced with into mark video frame and obtains the first video file.
Step 504: the second video file, the second view at least being obtained based on the image sequence processing key frame where key frame Frequency file includes initial key frame and difference key frame, and difference key frame includes the difference number at least between initial key frame According to, and the mark video frame initial key frame corresponding with the key frame identified in the first video file/difference key frame tool It is relevant.
In the present embodiment, different coded formats can be specified for different images sequence, to adapt to different monitoring fields Scape can specifically preset the corresponding relationship of image sequence and coded format, be also based on the attribute of image sequence, such as Length, compression ratio determines the corresponding coded format of image sequence for another example.
By taking compression ratio determines the coded format of image sequence as an example, it is illustrated:
Firstly, obtaining the compression ratio of the image sequence where key frame;And then at least compression ratio based on image sequence is true Set the goal coded format, specifically, can be determined in conjunction with the corresponding relationship of pre-set different compression ratios and coded format, And then the second video file is obtained according to target code said shank key frame.
It can be seen that the application is by carrying out independent processing for initial video text to the key frame in initial video file Part recompression, to reduce the storage volume of monitor video, has brought a large amount of memory space with minimum calculating cost, has had Considerable economic benefit.
Corresponding with above-mentioned processing method, disclosed herein as well is a kind of processing units, as shown in figure 8, the processing unit Include:
First obtains module 100, and for obtaining initial video file, initial video file includes image sequence, image sequence Column include initial pictures and differential image, and differential image includes the variance data at least between initial pictures.
Detection module 200, for carrying out key frame detection to image sequence, and there are the feelings of key frame in image sequence Under condition, the mark video frame for identifying key frame is generated, key frame includes at least one in initial pictures and differential image Frame image.
Replacement module 300 obtains the first video for the key frame in initial video file to be replaced with mark video frame File.
First processing module 400 obtains the second video file for handling key frame, and the second video file includes initial closes Key frame and difference key frame, difference key frame includes the variance data at least between initial key frame, and the first video is literary Mark video frame initial key frame corresponding with the key frame identified/difference key frame in part has incidence relation.
It can be seen that the application is by carrying out independent processing for initial video text to the key frame in initial video file Part recompression, to reduce the storage volume of monitor video, has brought a large amount of memory space with minimum calculating cost, has had Considerable economic benefit.
In another embodiment of processing unit disclosed in the present application, detection module 20 carries out key frame to image sequence Detection, comprising:
Key frame detection is carried out to the specified image sequence divided in region is located at.
In another embodiment of processing unit disclosed in the present application, detection module 20 carries out key frame to image sequence Detection, comprising:
Key frame detection is carried out to the image sequence of prescribed coding format.
In another embodiment of processing unit disclosed in the present application, detection module 20 carries out key frame to image sequence Detection, comprising:
Key frame detection is carried out to image sequence according to the preset detection period.
In another embodiment of processing unit disclosed in the present application, first processing module 40 handles key frame and obtains the Two video files, comprising:
The second video file is at least obtained based on the image sequence processing key frame where key frame.
In another embodiment of processing unit disclosed in the present application, first processing module 40 is at least based on key frame institute Image sequence processing key frame obtain the second video file, comprising:
Obtain the compression ratio of the image sequence where key frame;
Target code format is at least determined based on the compression ratio of image sequence, and according to target code said shank key frame Obtain the second video file.
In another embodiment of processing unit disclosed in the present application, first processing module 40 is also used to:
Key frame record sheet is generated, is recorded in key frame record sheet relevant.
Corresponding with above-mentioned processing method, disclosed herein as well is a kind of display methods, as shown in figure 9, this method packet Include following steps:
Step 601: obtaining and operate the target video file to be shown with determination, target video file is by initial video text Key frame in part replaces with mark obtained first video file of video frame, and initial video file includes image sequence, figure As sequence includes initial pictures and differential image, differential image includes the variance data at least between initial pictures, mark Video frame is to identify in image sequence progress key frame detection and image sequence there are generating in the case where key frame For video frame for identifying key frame, key frame includes at least frame image in initial pictures and differential image.
It, can be to be shown to determine by the contact action of response user's input or button operation etc. in the present embodiment Target video file.It is, of course, also possible to search and determine target video text by the store path for obtaining target video file Part.It is understood that other may determine with the mode of target video file, in the application protection scope.
In addition, the acquisition process of the first video file, the second video file and incidence relation may refer in the present embodiment Any one embodiment of above-described embodiment one~five discloses part, and the present embodiment repeats no more this.
Step 602: in the case where reading the mark video frame in target video file, based on incidence relation second Determine that initial key frame/difference key frame associated by mark video frame, the second video file are that processing is crucial in video file What frame obtained, the second video file includes initial key frame and difference key frame, difference key frame include at least with initial key Variance data between frame, incidence relation are that the mark video frame in associated objects video file is corresponding with the key frame identified Initial key frame/difference key frame.
Step S603: processing initial key frame/difference key frame obtains key frame, and exports.
It is used that initial key frame/difference key frame is decoded to obtain key frame in the present embodiment, wherein decoding lattice Formula is corresponding with initial key frame/coded format of difference key frame.
It can be seen that the application can be under the premise of reducing the storage volume of monitor video, the monitoring of outputting high quality Video.
Corresponding with above-mentioned display method, disclosed herein as well is a kind of display devices, as shown in Figure 10, the display device Include:
Second obtains module 500, operates the target video file to be shown with determination for obtaining, target video file is Key frame in initial video file is replaced with into mark obtained first video file of video frame, initial video file includes Image sequence, image sequence include initial pictures and differential image, and differential image includes the difference at least between initial pictures Heteromerism evidence, mark video frame are that there are in the case where key frame in image sequence progress key frame detection and image sequence It generates, for mark video frame for identifying key frame, key frame includes at least frame figure in initial pictures and differential image Picture.
Determining module 600, for being closed based on association in the case where reading the mark video frame in target video file It ties up in the second video file and determines that initial key frame/difference key frame associated by mark video frame, the second video file are Processing key frame obtains, and the second video file includes initial key frame and difference key frame, difference key frame include at least with Variance data between initial key frame, incidence relation are mark video frames in associated objects video file and the pass that is identified The corresponding initial key frame of key frame/difference key frame.
Second processing module 700 obtains key frame, and exports for handling initial key frame/difference key frame.
It can be seen that the application can be under the premise of reducing the storage volume of monitor video, the monitoring of outputting high quality Video.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.Embodiment is disclosed Device for, since it is corresponded to the methods disclosed in the examples, so be described relatively simple, related place is referring to method Part illustrates.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of processing method, comprising:
Obtain initial video file, the initial video file includes image sequence, described image sequence include initial pictures with And differential image, the differential image include the variance data at least between the initial pictures;
Key frame detection is carried out to described image sequence, and generates and uses there are in the case where key frame in described image sequence In the mark video frame for identifying the key frame, the key frame include in the initial pictures and the differential image extremely A few frame image;
The key frame in the initial video file is replaced with into the mark video frame and obtains the first video file;
It handles the key frame and obtains the second video file, second video file includes that initial key frame and difference are crucial Frame, the difference key frame include the variance data at least between the initial key frame, and in first video file The mark video frame initial key frame/difference key frame corresponding with the key frame identified have close Connection relationship.
2. described to carry out key frame detection to described image sequence according to the method described in claim 1, wherein, comprising:
Key frame detection is carried out to the specified described image sequence divided in region is located at.
3. described to carry out key frame detection to described image sequence according to the method described in claim 1, wherein, comprising:
Key frame detection is carried out to the described image sequence of prescribed coding format.
4. described to carry out key frame detection to described image sequence according to the method described in claim 1, wherein, comprising:
Key frame detection is carried out to described image sequence according to the preset detection period.
5. according to the method described in claim 1, wherein, the processing key frame obtains the second video file, comprising:
The second video file is at least obtained based on key frame described in the described image series processing where the key frame.
6. according to the method described in claim 5, wherein, it is described at least based on the described image sequence where the key frame at It manages the key frame and obtains the second video file, comprising:
Obtain the compression ratio of the described image sequence where the key frame;
Compression ratio at least based on described image sequence determines target code format, and according to the target code said shank institute It states key frame and obtains the second video file.
7. according to the method described in claim 1, the method also includes:
Key frame record sheet is generated, record has the incidence relation in the key frame record sheet.
8. a kind of processing unit, comprising:
First obtains module, and for obtaining initial video file, the initial video file includes image sequence, described image sequence Column include initial pictures and differential image, and the differential image includes the variance data at least between the initial pictures;
Detection module, for carrying out key frame detection to described image sequence, and there are key frames in described image sequence In the case of, generate the mark video frame for identifying the key frame, the key frame includes the initial pictures and described An at least frame image in differential image;
Replacement module obtains first for the key frame in the initial video file to be replaced with the mark video frame Video file;
First processing module obtains the second video file for handling the key frame, and second video file includes initial Key frame and difference key frame, the difference key frame include the variance data at least between the initial key frame, and The mark video frame initial key frame/institute corresponding with the key frame identified in first video file Difference key frame is stated with incidence relation.
9. a kind of display methods, comprising:
It obtains and operates the target video file to be shown with determination, the target video file is by the pass in initial video file Key frame replaces with mark obtained first video file of video frame, and the initial video file includes image sequence, the figure As sequence includes initial pictures and differential image, the differential image includes the difference number at least between the initial pictures According to the mark video frame is that there are the passes in the progress key frame detection of described image sequence and described image sequence It is generated in the case where key frame, for the mark video frame for identifying the key frame, the key frame includes the initial graph An at least frame image in picture and the differential image;
In the case where reading the mark video frame in the target video file, based on incidence relation in the second video Determine that initial key frame/difference key frame associated by the mark video frame, second video file are processing in file What the key frame obtained, second video file includes the initial key frame and the difference key frame, the difference Key frame includes the variance data at least between the initial key frame, and the incidence relation is the association target video text The mark video frame initial key frame/difference key frame corresponding with the key frame identified in part;
The initial key frame/difference key frame is handled to obtain the key frame, and export.
10. a kind of display device, comprising:
Second obtains module, operates the target video file to be shown with determination for obtaining, and the target video file is will Key frame in initial video file replaces with mark obtained first video file of video frame, the initial video file packet Include image sequence, described image sequence includes initial pictures and differential image, the differential image include at least with it is described just Variance data between beginning image, the mark video frame are to carry out key frame detection and the figure to described image sequence As in sequence there are the key frame in the case where generate, the mark video frame is for identifying the key frame, the pass Key frame includes at least frame image in the initial pictures and the differential image;
Determining module, for being based on association in the case where reading the mark video frame in the target video file Relationship initial key frame/difference key frame associated by the determining mark video frame in the second video file, described second The video file processing key frame obtains, and second video file includes that the initial key frame and the difference are closed Key frame, the difference key frame include the variance data at least between the initial key frame, and the incidence relation is association The mark video frame initial key frame corresponding with the key frame identified in the target video file/poor Different key frame;
Second processing module obtains the key frame, and exports for handling the initial key frame/difference key frame.
CN201811398094.7A 2018-11-22 2018-11-22 Processing method, processing device, display method and display device Active CN109194965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811398094.7A CN109194965B (en) 2018-11-22 2018-11-22 Processing method, processing device, display method and display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811398094.7A CN109194965B (en) 2018-11-22 2018-11-22 Processing method, processing device, display method and display device

Publications (2)

Publication Number Publication Date
CN109194965A true CN109194965A (en) 2019-01-11
CN109194965B CN109194965B (en) 2021-05-18

Family

ID=64940473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811398094.7A Active CN109194965B (en) 2018-11-22 2018-11-22 Processing method, processing device, display method and display device

Country Status (1)

Country Link
CN (1) CN109194965B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110505534A (en) * 2019-08-26 2019-11-26 腾讯科技(深圳)有限公司 Monitor video processing method, device and storage medium
CN116189063A (en) * 2023-04-24 2023-05-30 青岛润邦泽业信息技术有限公司 Key frame optimization method and device for intelligent video monitoring

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174057A (en) * 2018-01-10 2018-06-15 武汉烛照科技有限公司 It is a kind of using video image interframe difference to the method and device of picture fast noise reduction

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174057A (en) * 2018-01-10 2018-06-15 武汉烛照科技有限公司 It is a kind of using video image interframe difference to the method and device of picture fast noise reduction

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黎洪松 程福林 艾新宇: "视频编码技术的若干新进展", 《计算机应用研究》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110505534A (en) * 2019-08-26 2019-11-26 腾讯科技(深圳)有限公司 Monitor video processing method, device and storage medium
CN116189063A (en) * 2023-04-24 2023-05-30 青岛润邦泽业信息技术有限公司 Key frame optimization method and device for intelligent video monitoring
CN116189063B (en) * 2023-04-24 2023-07-18 青岛润邦泽业信息技术有限公司 Key frame optimization method and device for intelligent video monitoring

Also Published As

Publication number Publication date
CN109194965B (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN110868600B (en) Target tracking video plug-flow method, display method, device and storage medium
CN105791431B (en) A kind of distribution on line formula monitor video processing method for scheduling task and device
US9609348B2 (en) Systems and methods for video content analysis
CN108574843B (en) Determine the method and encoder system of the GOP length for Video coding
EP0895694B1 (en) System and method for creating trick play video streams from a compressed normal play video bitstream
US9060201B2 (en) Stream synchronization for live video encoding
US10911817B2 (en) Information processing system
WO2020215453A1 (en) Video recording method and system
CN106792150B (en) A kind of poster generation method and device
US10609440B1 (en) Timing data anomaly detection and correction
CN109194965A (en) Processing method, processing unit, display methods and display device
CN111641804A (en) Video data processing method and device, terminal, camera and video conference system
CN107800989B (en) Video display method and system based on dynamic frame rate detection and network video recorder
US7403566B2 (en) System, computer program product, and method for transmitting compressed screen images from one computer to another or many computers
CN106101830A (en) A kind of video flow detection method combined based on region detection and applying detection
US8576923B2 (en) Bitstream navigation techniques
CN112235600A (en) Method, device and system for processing video data and video service request
US11582494B2 (en) System and method for content-layer based video compression
KR20190046510A (en) Method and Apparatus for Improving Packet Loss Recovery
CN116437099A (en) Compression storage system based on data attribute
US11599570B2 (en) Device and method to render multimedia data stream tamper-proof based on block chain recording
RU2697702C1 (en) Image compression method, image recovery method, image compression device and image recovery device
JP2007180970A (en) Video processor and monitoring camera system
CN110545447B (en) Audio and video synchronization method and device
TWI735297B (en) Coding of video and audio with initialization fragments

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