CN101068328B - Automatic video recording method - Google Patents

Automatic video recording method Download PDF

Info

Publication number
CN101068328B
CN101068328B CN2007102007999A CN200710200799A CN101068328B CN 101068328 B CN101068328 B CN 101068328B CN 2007102007999 A CN2007102007999 A CN 2007102007999A CN 200710200799 A CN200710200799 A CN 200710200799A CN 101068328 B CN101068328 B CN 101068328B
Authority
CN
China
Prior art keywords
value
video recording
program stream
characteristic value
cpu
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.)
Expired - Fee Related
Application number
CN2007102007999A
Other languages
Chinese (zh)
Other versions
CN101068328A (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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN2007102007999A priority Critical patent/CN101068328B/en
Publication of CN101068328A publication Critical patent/CN101068328A/en
Application granted granted Critical
Publication of CN101068328B publication Critical patent/CN101068328B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

A method of making video-recording automatically includes inputting program stream to CPU through coding/decoding module, picking up character value of program stream by CPU, comparing picked up character value of program stream with classification character value stored in databank by CPU, controlling and executing relevant video-recording action if it is judged by CPU that program stream character value is the same as classification character value.

Description

Automatic video recording method
Technical field
The present invention relates to a kind of digital video recording technology, relate to digital video compaction technique simultaneously.
Background technology
TV programme has often been interted a lot of advertisements, often interrupts watching of normal program, and current video cassette recorder often can only machinery by the time started and the concluding time automatic video recording that are provided with in advance, and significant limitation is arranged when program recording:
1, program broadcasting time fluctuation big, will waste a large amount of memory spaces and be used in and write down on the useless program, it is imperfect perhaps to record useful program.
2, advertisement insertion is too many, can be interrupted by useless adlink etc. repeatedly during playback, and the user is inconvenient to watch, and has destroyed the continuity of normal program, wastes memory space again.
Digital recording is by CPU control coding/decoding module, storing in the memory after the program stream compression at present.
The digital video compaction technique (as MPEG) that the coding/decoding module is commonly used adopts the time prediction coding to most frame usually, promptly usually said P frame (" P " refers to prediction, has only the forward direction time prediction), B frame (" B " refers to bi-directional predicted).Part during compression is handled has only been utilized the spatial redundancy of single image (in the frame), and this frame of any interframe encode that do not use is called I frame (" I " refers to intraframe coding).
The I frame is formed by compression in the frame, represent real picture, and with reference to passing by or other picture frame in future, compressed encoding does not adopt similar JPEG compression algorithm, if image represent with rgb space, then say the image that at first converts the YCrCb space representation to.Each plane of delineation is divided into 8 * 8 segment, and each segment carries out discrete cosine transform (Discrete CosineTransform discrete cosine transform).Through the shape ordering of the alternating current component coefficient that quantizes, and then use lossless compressiong to encode after the discrete cosine transform according to Zig-zag.Discrete cosine transform is after the DC component coefficient that quantizes DPCM (differential pulse code modulation differential pulse coding), the alternating current component coefficient is with RLE (run length encoding), and then encodes or use arithmetic coding with Huffman (Huffman).
Summary of the invention
Technical problem to be solved by this invention is that providing a kind of can also start the method for recording a video by the filtering useless signal automatically.
The present invention solves the problems of the technologies described above the technical scheme that is adopted to be, a kind of automatic video recording method may further comprise the steps:
1, program stream is imported to CPU by after the coding/decoding module;
2, CPU extracts the program stream characteristic value;
3, CPU is with the characteristic of division value comparison of storing in the program stream characteristic value extracted and the database;
4, CPU judges the comparative result of program stream characteristic value and characteristic of division value, and corresponding video recording action is carried out in control according to comparative result.
Described characteristic of division value includes with programs feature value, useless programs feature value; In the described step 4, be identical with the comparative result of useful programs feature value as the program stream characteristic value, CPU control beginning video recording; Is identical as the program stream characteristic value with the comparative result of useless programs feature value, CPU control stopping video recording.
Further, the generation of described characteristic of division value: it is useful program or useless program that the user specifies the program of current broadcast, CPU will extract current program stream characteristic value, and this program stream characteristic value correspondence is appointed as useful programs feature value or useless programs feature value, and be saved in database.
Concrete, CPU is used as the program stream characteristic value with the I frame characteristic value sequence of extracting in the decode procedure.
Concrete, described I frame characteristic value sequence is I frame sequence of the DC component coefficient after discrete cosine transform during encoding and decoding in frame.
The invention has the beneficial effects as follows, identification video signal content and filter out garbage automatically, or start video recording automatically, and keep the continuity of program recording and improve the memory space utilization ratio, can be widely used in all kinds of recording apparatus designs.Strengthen the product hommization, be particularly suitable for recording of TV programme.
Description of drawings
Fig. 1 is the generation flow chart of characteristic of division value;
Fig. 2 is the flow chart of automatic video recording.
Embodiment
Serial of often watching and serial variety show (useful program) all can have relatively more fixing video clips at first, and the program stream characteristic value of preserving this video clips is useful programs feature value.When playing to this video clips, CPU extracts the program stream characteristic value of this video clips and compares with the useful programs feature value that is kept in advance in the database, is defined as useful program, then CPU control beginning video recording.This mode can overcome program broadcasting time fluctuation when big, and it is inaccurate and cause record a large amount of useless programs down to set the video recording time started, perhaps records the incomplete problem of useful program.
Useful program and advertisement (useless program) alternately the time relatively more fixing video clips also can appear, the program stream characteristic value that obtains useless program in advance is as useless programs feature value and storage, in video process, CPU extracts current program stream characteristic value and useless programs feature value compares, determine the useless program that is of current broadcast, then CPU control stops video recording, and up to having the program stream characteristic value with useful programs feature value when identical, CPU controls and begins video recording.The purpose that useless programs feature value is set is further to improve the memory space utilization ratio, in video process, but the appearance of the useless program of CPU Real time identification, thus video recording stopped, after occurring, useful program beginning video recording once more.
The program stream that the present invention receives recording apparatus adopts corresponding algorithm to obtain the program stream characteristic value, and the characteristic value by useful/useless program of getting off with prior preservation relatively decides the beginning and the end of program recording record.Like this, for serial of often watching and serial variety show etc., as long as when using for the first time, specify corresponding feature segment, just can the corresponding programme content of automatic recording, and filter out useless programme information.By the combination of technology such as timing automatic start, realize passing through content recognition and the method for the full-automatic recording function of reality.
Embodiment
In order to utilize the calculating of original coding/decoding module, in order to avoid increase extra amount of calculation, directly adopt part I frame in mpeg encoded/decode procedure in frame during encoding and decoding the DC component coefficient after discrete cosine transform be used as the sampling source of program stream characteristic value.
All be to carry out discrete cosine transform and quantification after adopting piecemeal (as 8 * 8) basically when compressing in the frame, directly discrete cosine transform and first data (representative DC component) of each 8 * 8 matrix after quantizing as the characteristic value sequence of I frame, ignore other detail data; That is,, remove the error that tiny interference causes, obtain a relatively more consistent feature picture, obtain short sampled value string by left low frequency component signal being adopted compress technique by the filtering high fdrequency component.The characteristic value sequence of I frame is to sampled value string that should the I frame.
We preserve the characteristic value sequence of a plurality of continuous I frames usually, and preservation is many more, more accurate certainly, but operand and memory space are just big more.The characteristic value of present embodiment is made of the characteristic value sequence of 4 continuous I frames, can meet the demands substantially.The extraction of characteristic value sequence is the data that must use in the program stream encoding-decoding process, can not increase extra computing.
As shown in Figure 1, the characteristic of division value of present embodiment includes with programs feature value, useless programs feature value, and the generation of its characteristic of division value is set by the user.
The user is when playback program, and the coding/decoding module is carried out decompress(ion) to the program stream that is kept in the memory, and CPU constantly extracts I frame characteristic value sequence in decompression procedure.The segment place that the user can repeat, specifying the type of current program by remote controller or alternate manner is useful program or useless program, CPU is according to user's selection then, current program stream characteristic value is saved in corresponding database, promptly useful program database or useless program database.
After having preserved the characteristic of division value, just can realize discerning automatically the kinescope method of content, as shown in Figure 2: program is when playing, and CPU constantly extracts current program stream characteristic value and the characteristic of division value in the database by the coding/decoding module and compares.Detailed process is:
A, CPU judge the current video state that whether is in earlier, in this way, then current program stream characteristic value and useless programs feature value are compared, and enter step b; As not, then just current program stream characteristic value and the comparison of useful programs feature value enter step c;
B, whether identical, as identical, CPU control stopping video recording then continuing video recording as difference;
C, whether identical, as identical, CPU control beginning video recording then still keeps video recording to stop as difference.
Above judgement and more only use simple equating and judge is the equal of fastest computing, and uses complicated high exponent arithmetic(al) (multiplication and division, idempotent), and is less demanding to the arithmetic speed of hardware.
When the program stream decompress(ion), in recovering the process of an I frame, progressively the characteristic value with the start frame of corresponding program in the characteristic value extracted and the database compares successively, just stop comparison procedure if run into unmatched item, when next I frame decompress(ion), repeat same comparison procedure again.
Extract program A with the user, and appointed program A is useful program, program B is when playing, and CPU judges that whether program B is that the process of useful program is the detailed process that example illustrates the comparison of program stream characteristic value.
When program A plays beginning, select to gather sample, CPU begins the program stream characteristic value and collects and the preservation process:
1, before receiving an I frame, omits all other data (B frame, P frame);
2, preserve the characteristic value sequence of this frame successively in the process that decompresses, and be saved in corresponding database, promptly useful program database, characteristic value sequence are A1-1, A1-2, A1-3
3, repeating step 1 and step 2, up to the characteristic value sequence that collects continuous 4 I frames, the sampled value string of these 4 I frames has constituted the program stream characteristic value of this program, promptly useful programs feature value.
Can use the title of user's appointment to come corresponding characteristic value sequence in the linked database after finishing, so that the user utilizes these data to screen program.
The beginning segment of program A is expressed as in database:
A1-1,A1-2,A1-3……
A2-1,A2-2,A2-3……
A3-1,A3-2,A3-3……
A4-1,A4-2,A4-3……
The user can pass through database index function each characteristic value of each frame of access program A easily.
In the program B playing process, CPU continues comparative feature value process:
1, before receiving an I frame, omits every other data (B frame, P frame);
2, in the process that decompresses, extract the characteristic value sequence of this frame successively, compare successively, as difference occurs and just return step 1 with the characteristic value sequence of first I frame of preserving in the useful program database; The identical step 3 that then enters;
3, continue relatively, if the characteristic value sequence of continuous 4 the I frames of current program stream all successively with useful program database in 4 characteristic value sequence all identical, it is identical with useful programs feature value then to be judged as current program stream characteristic value, is and has found program A.
The present invention extracts the program stream characteristic value of vision signal segment, selects characteristic of division value and preservation according to user's hobby, by comparing with the useful/unwanted signal characteristic value of preserving, decides the beginning and the end of program recording record.

Claims (6)

1. automatic video recording method is characterized in that, may further comprise the steps:
1) program stream is imported to CPU by after the coding/decoding module;
2) CPU extracts the program stream characteristic value;
3) CPU is with the characteristic of division value comparison of storing in the program stream characteristic value extracted and the database; Described characteristic of division value includes with programs feature value, useless programs feature value;
4) CPU judges the comparative result of program stream characteristic value and characteristic of division value, and corresponding video recording action is carried out in control according to comparative result: is identical as the program stream characteristic value with the comparative result of useful programs feature value, CPU control beginning video recording; Is identical as the program stream characteristic value with the comparative result of useless programs feature value, CPU control stopping video recording;
In video process, CPU extracts current program stream characteristic value and useless programs feature value compares, the appearance of the useless program of Real time identification, described program stream characteristic value is a plurality of continuous I frame sampling value strings, when determine current broadcast be useless program the time, then CPU control stops video recording, and up to having the program stream characteristic value with useful programs feature value when identical, CPU controls and begins video recording.
2. automatic video recording method according to claim 1 is characterized in that the detailed process that the characteristic of division value in the described step 3) in program stream characteristic value and the database compares is:
A, CPU judge the current video state that whether is in earlier, in this way, then current program stream characteristic value and useless programs feature value are compared, and enter step b; As not, then current program stream characteristic value and useful programs feature value are compared, enter step c;
B, judge whether identically, as identical, CPU control stops video recording, then continues video recording as difference;
C, judge whether identically, as identical, CPU control begins video recording, then still keeps video recording to stop as difference.
3. as automatic video recording method as described in the claim 2, it is characterized in that, described characteristic of division value is specified generation by the user: it is useful program or useless program that the user specifies the program of current broadcast, it is useful programs feature value or useless programs feature value that CPU specifies current program stream characteristic value, and is saved to database.
4. automatic video recording method according to claim 1 is characterized in that, CPU is to extract I frame characteristic value sequence in the decode procedure as the program stream characteristic value.
5. as automatic video recording method as described in the claim 4, it is characterized in that described I frame characteristic value sequence is I frame sequence of the DC component coefficient after discrete cosine transform during encoding and decoding in frame.
6. as automatic video recording method as described in claim 4 or 5, it is characterized in that the program stream characteristic value is the characteristic value sequence of 4 continuous I frames.
CN2007102007999A 2007-06-08 2007-06-08 Automatic video recording method Expired - Fee Related CN101068328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007102007999A CN101068328B (en) 2007-06-08 2007-06-08 Automatic video recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007102007999A CN101068328B (en) 2007-06-08 2007-06-08 Automatic video recording method

Publications (2)

Publication Number Publication Date
CN101068328A CN101068328A (en) 2007-11-07
CN101068328B true CN101068328B (en) 2011-01-19

Family

ID=38880742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007102007999A Expired - Fee Related CN101068328B (en) 2007-06-08 2007-06-08 Automatic video recording method

Country Status (1)

Country Link
CN (1) CN101068328B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387333B (en) * 2010-08-30 2013-09-11 杭州海康威视数字技术股份有限公司 Recording method of DVR and DVR
CN102572349A (en) * 2012-02-14 2012-07-11 中兴通讯股份有限公司 Method and device for recording video program
CN106101842A (en) * 2016-06-27 2016-11-09 杭州当虹科技有限公司 A kind of advertisement editing system based on intellectual technology
CN108769519A (en) * 2018-05-30 2018-11-06 广东思派康电子科技有限公司 The remote photographic method and its device of communication system

Also Published As

Publication number Publication date
CN101068328A (en) 2007-11-07

Similar Documents

Publication Publication Date Title
US9326000B2 (en) Method and system for still image encoding and random access decoding
US8634652B2 (en) Video entity recognition in compressed digital video streams
US7949042B2 (en) Image searching device and method, program and program recording medium
US6757438B2 (en) Method and apparatus for video compression using microwavelets
US7869659B2 (en) Image-comparing apparatus, image-comparing method, image-retrieving apparatus and image-retrieving method
JP3571974B2 (en) A method for detecting scene changes by processing digital image display video data in a compressed form.
EP1751986A1 (en) Coding method applied to multimedia data
CN101742317A (en) Video compressing and encoding method with alpha transparent channel
JPH1066087A (en) Method for detecting change point of scene and method for editing and displaying moving image
CN1366778A (en) Video compression
US20100118947A1 (en) Decoder for selectively decoding predetermined data units from a coded bit stream
CN101068328B (en) Automatic video recording method
CN1613259A (en) Method and system for detecting intra-coded pictures and for extracting intra DCT precision and macroblock-level coding parameters from uncompressed digital video
CN107770528B (en) Video playing method and device
CN112584155A (en) Video data processing method and device
TW200305146A (en) Editing of encoded A/V sequences
KR101163774B1 (en) Device and process for video compression
KR100697516B1 (en) Moving picture coding method based on 3D wavelet transformation
US7050700B2 (en) Picture compression managing apparatus and picture compression managing method used therefor
US20010014123A1 (en) Method for processing video
EP3190793A1 (en) Method for re-encoding image and apparatus therefor
CN112714336B (en) Video segmentation method and device, electronic equipment and computer readable storage medium
CN102244826A (en) Method and system for watermarking video based on video content
JPH07152779A (en) Processing method for detecting moving picture index and moving picture processor having moving picture index detection processing function
EP1892965A2 (en) Fixed bit rate, intraframe compression and decompression of video

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110119

Termination date: 20180608