A kind of processor of video optimized storage
Technical field
The utility model relates to multi-media processing field, espespecially a kind of processor of video optimized storage.
Background technology
Due to channel width and coding transmission real-time, and codec is to the requirement of buffering area, and Rate Control is most important in the encoder, a good Rate Control scheme, control in network real-time Transmission and video quality, and in the cost control of codec, positive effect can be played.
Patent documentation CN101198042A discloses a kind of bit rate control method of Video coding on June 11st, 2008, transmit leg controls feedback link by real-time Transmission and regularly sends control bag, when receiving FEEDBACK CONTROL bag, obtain bit rate output according to the packet loss in described FEEDBACK CONTROL bag, video data is sent by real-time Transmission link according to obtained code check.The bit rate control method of the Video coding that the program provides and transmitter, by considering that the factor of packet loss controls bit rate output, make coding data out can adapt to the transmission of current network conditions better, thus reach better video display effect.
Patent documentation CN104113761A discloses bit rate control method in a kind of Video coding and encoder on October 22nd, 2014, in order to improve the accuracy of bit rate control method, and reduction complexity, the method is: first determine the first Grad of current video image and the second Grad of last video image, again according to the target bit rate presetting average bit rate calculating current video image, then the performance parameter of at least one encoded video image of specifying is determined, then, when the first Grad and/or the second Grad are not 0, according to target bit rate, first Grad, the QP of the second Grad and performance parameter determination current video image, when for 0, according to the QP of target bit rate and performance parameter determination current video image, finally, according to QP, current video image is encoded, like this, improves the accuracy of bit rate control method, also reduce complexity simultaneously.
All the time, the code rate selection of video file is to ensure that subjective viewing quality is for target.The video file completed has specific code check (as shown in Figure 1), and download subsequently and storage all adopt this cbr (constant bit rate).For descending download and store for subsequent video processing and distribution application scenarios, how to save memory space, be the target that industry is pursued always.
Utility model content
In view of this, the utility model is intended to a kind of processor can saving the video optimized storage of memory space.
A kind of video storage device of the utility model, comprising: shift register, operational amplifier and contents address memory; Described shift register, described operational amplifier are connected by the signal of telecommunication successively with described contents address memory; Described shift register receiving video data, exports segment data; Described operational amplifier receives segment data, exports the lowest bit rate of segment data; Contents address memory receives lowest bit rate, stores lowest bit rate segmenting video.The utility model carries out segment processing to pending video, and every section of video is with the upper limit threshold of Y-PSNR for reference data determines lowest bit rate, and the lowest bit rate of every section of video can be different.Compare in the mode of the subjective viewing quality single cbr (constant bit rate) that is benchmark, significantly can reduce the capacity of video file, save memory space.And can bandwidth demand be effectively reduced when subsequent video is distributed online.
Accompanying drawing explanation
Fig. 1 is the storage effect schematic diagram of the method for existing video storage;
Fig. 2 is the storage effect schematic diagram after adopting the utility model video storage device;
Fig. 3 is the operation principle schematic diagram of the utility model embodiment video storage device;
Fig. 4 is the structural representation that the utility model embodiment looks video storage device;
Fig. 5 is the processor principle schematic of the video optimized storage of the utility model embodiment two;
Fig. 6 is the processor principle schematic of the video optimized storage of the utility model embodiment three.
Fig. 7 is the method schematic diagram of the video optimized storage of the utility model embodiment four;
Fig. 8 is the method schematic diagram of the video optimized storage of the utility model embodiment five;
Fig. 9 is the method schematic diagram of the video optimized storage of the utility model embodiment six;
Figure 10 is the structural representation that the utility model embodiment looks video storage device;
Wherein: 1, first processor; 11, Video segmentation device; 2, the second processor;
21, Y-PSNR unit; 22, selected cell; 23, comparing unit;
24, unit is indicated; 3, memory.
Embodiment
Below in conjunction with accompanying drawing and preferred embodiment, the utility model is described in further detail.
A kind of video storage device that the utility model provides, shown in Figure 10, comprising:
Shift register, operational amplifier and contents address memory;
Described shift register, described operational amplifier are connected by the signal of telecommunication successively with described contents address memory;
Described shift register receiving video data, exports segment data;
Described operational amplifier receives segment data, exports the lowest bit rate of segment data;
Contents address memory receives lowest bit rate, stores lowest bit rate segmenting video.
Optionally, described shift register is 8,16,32 or 64 bit registers.
Preferably, described operational amplifier is PLC technology operational amplifier, low consumed power operational amplifier or high speed operation amplifier.
Preferably, described contents address memory is semiconductor memory or magnetic surface storage.
Embodiment one
As shown in Figure 3, video storage device disclosed in present embodiment, comprising:
First processor 1, the second processor 2 and memory 3; First processor 1, second processor 2 is connected by the signal of telecommunication successively with memory 3; First processor 1 carries out segmentation to pending video, and the second processor 2 calculates the lowest bit rate of every section of video, and memory 3 is with lowest bit rate fragmented storage video.
As shown in Figure 4, be the operation principle of above-described embodiment video storage device, comprise:
A: segment processing is carried out to pending video;
B: the lowest bit rate calculating every section of video respectively;
C: with lowest bit rate fragmented storage video.
In one embodiment, described second processor 2 is comparator; The Y-PSNR of video corresponding for often kind of code check compares with the upper limit threshold of predetermined Y-PSNR by described comparator respectively, and using the Y-PSNR of video lower than the lowest bit rate of described upper limit threshold as the lowest bit rate of whole section of video.
Preferably, first processor 1 and the second processor 2 can be DSP, MCU, FPGA, ARM or CPU.
The utility model embodiment carries out segment processing to pending video, every section of video with the upper limit threshold of Y-PSNR for reference data determines lowest bit rate, compare in the mode of the subjective viewing quality single cbr (constant bit rate) that is benchmark, significantly can reduce the capacity of video file, save memory space.And can bandwidth demand be effectively reduced when subsequent video is distributed online.Concrete effect can with reference to shown in Fig. 2.
Embodiment two
As shown in Figure 5, a kind of video storage device of present embodiment, comprises first processor 1, the second processor 2 be coupled with first processor 1, the memory 3 be coupled with the second processor; First processor 1 carries out segment processing to pending video; Second processor 2 calculates the lowest bit rate of every section of video; Memory 3 is with lowest bit rate fragmented storage video.First processor 1 also comprises Video segmentation device 11: described Video segmentation device 11 carries out segment processing according to essential information to pending video.
Described second processor 2 also comprises the Y-PSNR unit 21 be coupled with Video segmentation device, the selected cell 22 be coupled with Y-PSNR unit 21, the comparing unit 23 be coupled with selected cell 22 and Y-PSNR unit 21 respectively; Described Y-PSNR unit 21 sets the upper limit threshold of Y-PSNR, described selected cell 22 selects different code checks by trial-and-error method, video corresponding for often kind of code check compares with upper limit threshold by described comparing unit 23 respectively, until find the Y-PSNR of video lower than the lowest bit rate of described upper limit threshold as the lowest bit rate of whole section of video.
The establishing method of lowest bit rate comprises: compared by the lowest bit rate under each essential information, selects wherein minimum code check as the lowest bit rate of whole section of video.Such as, 3 kinds of minimum code rate such as known A, B, C, when carrying out code storage with D to this section of video, in local, D and A, B, C are compared, code check lower among both selections is as the lowest bit rate of this section of video.With this lowest bit rate, this section of video is stored, just effectively reduce memory capacity.
Essential information comprises the state of video object, the scene of video capture or picture packet count.State comprises motion state or inactive state.The scene of described video capture comprises ball match scene or network courses scene.
Trial-and-error method is that passing through of pursuing a goal constantly is tested and eliminate error, explores the method with the system of black box character.This method is applied unconsciously in the behavior of animal, is then conscious in the behavior of people.Trial-and-error method is the learning method of pure experience.The main body of application trial-and-error method is by changing the parameter of Black smoker discontinuously or continuously, and the response of test done by black box, to seek the approach reaching target.The success or failure of subject behavior are with the degree of its convergence target or the process evaluation reaching intermediate objective.The information of convergence target is to main body, and main body will continue to take successful behavior; Depart from the information feed back of target to main body, main body will avoid the behavior taking failure.By this continuous trial and constantly evaluation, main body just can reach the target that will pursue gradually.
Present embodiment adopts trial-and-error method, take result as guiding, as long as successfully deal with problems, does not need to know how lowest bit rate calculates on earth.Even if do not need advanced knowledge, the Y-PSNR of video still can be found lower than the lowest bit rate of described upper limit threshold.Present embodiment carries out segmentation in conjunction with video content to video.In segmentation, optimized the lowest bit rate of applicable this section of video content by trial-and-error method.
Embodiment three
As shown in Figure 6, a kind of video storage device of present embodiment, comprises first processor 1, the second processor 2 be coupled with first processor, the memory 3 be coupled with the second processor; First processor carries out segment processing to pending video; Second processor calculates the lowest bit rate of every section of video; Memory is with lowest bit rate fragmented storage video.
Described second processor also comprises and indicates unit 24, and the essential information indicating unit embedded to every section of video indicates; The lowest bit rate under each essential information estimated by second processor; According to the lowest bit rate under each essential information, estimate the lowest bit rate that every section of video is suitable for.
Second processor also comprises and the selected cell 22 indicating element coupling, the comparing unit 23 be coupled with selected cell; Described selected cell 22 selects different code checks to the video of each segmentation by trial-and-error method, and video corresponding for often kind of code check compares with upper limit threshold by described comparing unit 23 respectively, therefrom finds out lowest bit rate.The lowest bit rate of the video of every sub-segmentation also compares by comparing unit 23, selects wherein minimum code check as the lowest bit rate of whole section of video.
Essential information comprises the state of video object, the scene of video capture or picture packet count.State comprises motion state or inactive state.The scene of described video capture comprises ball match scene or network courses scene.
In order to lower memory space further.Can by corresponding for the video-frequency band of each essential information a kind of upper limit threshold; According to the lowest bit rate of minimum upper limit threshold estimation as the lowest bit rate of whole section of video.
Present embodiment first carries out segmentation to video, first large video is resolved into small video, reduces the amount of analysis of every section of video and analyzes difficulty.Then in every section, carry out secondary segmenting according to the essential information of video, the video of each subsegment optimizes the lowest bit rate of this subsegment video content applicable by trial-and-error method.And then the lowest bit rate of Integrated comparative all subsegments video obtains the lowest bit rate of whole section of video.
The optimization achieving video by three embodiments by the mode of hardware above stores, below, illustrate and also can realize this function by software.
Embodiment four
As shown in Figure 7, present embodiment discloses a kind of method of video optimized storage, comprises step:
A: segment processing is carried out to pending video.
B1-1: the upper limit threshold of setting Y-PSNR.
B1-2: every section video selects different code checks by trial-and-error method.
B1-3: the video of its correspondence is compared, until find the Y-PSNR of video lower than the lowest bit rate of described upper limit threshold with upper limit threshold respectively.
C: with lowest bit rate fragmented storage video.
Trial-and-error method is that passing through of pursuing a goal constantly is tested and eliminate error, explores the method with the system of black box character.This method is applied unconsciously in the behavior of animal, is then conscious in the behavior of people.Trial-and-error method is the learning method of pure experience.The main body of application trial-and-error method is by changing the parameter of Black smoker discontinuously or continuously, and the response of test done by black box, to seek the approach reaching target.The success or failure of subject behavior are with the degree of its convergence target or the process evaluation reaching intermediate objective.The information of convergence target is to main body, and main body will continue to take successful behavior; Depart from the information feed back of target to main body, main body will avoid the behavior taking failure.By this continuous trial and constantly evaluation, main body just can reach the target that will pursue gradually.
Present embodiment adopts trial-and-error method, take result as guiding, as long as successfully deal with problems, does not need to know how lowest bit rate calculates on earth.Even if do not need advanced knowledge, the Y-PSNR of video still can be found lower than the lowest bit rate of described upper limit threshold.
Embodiment five
As shown in Figure 8, present embodiment discloses a kind of method of video optimized storage, comprises step:
A2-1: the essential information embedded to pending video indicates.
A2-1: segment processing is carried out to pending video according to essential information.
B2-1: the upper limit threshold setting the Y-PSNR of every section of video.
B2-2: every section video selects different code checks by trial-and-error method.
B2-3: the video of its correspondence is compared, until find the Y-PSNR of video lower than the lowest bit rate of described upper limit threshold with upper limit threshold respectively.
C: with lowest bit rate fragmented storage video.
The establishing method of lowest bit rate comprises: compared by the lowest bit rate under each essential information, selects wherein minimum code check as the lowest bit rate of whole section of video.Such as, 3 kinds of minimum code rate such as known A, B, C, when carrying out code storage with D to this section of video, in local, D and A, B, C are compared, code check lower among both selections is as the lowest bit rate of this section of video.With this lowest bit rate, this section of video is stored, just effectively reduce memory capacity.
Essential information comprises the state of video object, the scene of video capture or picture packet count.State comprises motion state or inactive state.The scene of described video capture comprises ball match scene or network courses scene.
Trial-and-error method is that passing through of pursuing a goal constantly is tested and eliminate error, explores the method with the system of black box character.This method is applied unconsciously in the behavior of animal, is then conscious in the behavior of people.Trial-and-error method is the learning method of pure experience.The main body of application trial-and-error method is by changing the parameter of Black smoker discontinuously or continuously, and the response of test done by black box, to seek the approach reaching target.The success or failure of subject behavior are with the degree of its convergence target or the process evaluation reaching intermediate objective.The information of convergence target is to main body, and main body will continue to take successful behavior; Depart from the information feed back of target to main body, main body will avoid the behavior taking failure.By this continuous trial and constantly evaluation, main body just can reach the target that will pursue gradually.
Present embodiment adopts trial-and-error method, take result as guiding, as long as successfully deal with problems, does not need to know how lowest bit rate calculates on earth.Even if do not need advanced knowledge, the Y-PSNR of video still can be found lower than the lowest bit rate of described upper limit threshold.Present embodiment carries out segmentation in conjunction with video content to video.In segmentation, optimized the lowest bit rate of applicable this section of video content by trial-and-error method.
Embodiment six
As shown in Figure 9, present embodiment discloses a kind of method of video optimized storage, comprises step:
A: segment processing is carried out to pending video.
B3-1: the essential information embedded to every section of video indicates.
B3-2: estimate the lowest bit rate under each essential information.
B3-3: according to the lowest bit rate under each essential information, estimates the lowest bit rate that every section of video is suitable for.
C: with lowest bit rate fragmented storage video.
The method of the lowest bit rate under each essential information comprises: select different code checks by trial-and-error method, is compared, until find the Y-PSNR of video lower than the lowest bit rate of described upper limit threshold respectively by the video of its correspondence with upper limit threshold.
The establishing method of lowest bit rate comprises: compared by the lowest bit rate under each essential information, selects wherein minimum code check as the lowest bit rate of whole section of video.Such as, 3 kinds of minimum code rate such as known A, B, C, when carrying out code storage with D to this section of video, in local, D and A, B, C are compared, code check lower among both selections is as the lowest bit rate of this section of video.With this lowest bit rate, this section of video is stored, just effectively reduce memory capacity.
Essential information comprises the state of video object, the scene of video capture or picture packet count.State comprises motion state or inactive state.The scene of described video capture comprises ball match scene or network courses scene.
In order to lower memory space further.Can by corresponding for the video-frequency band of each essential information a kind of upper limit threshold; According to the lowest bit rate of minimum upper limit threshold estimation as the lowest bit rate of whole section of video.
Present embodiment first carries out segmentation to video, first large video is resolved into small video, reduces the amount of analysis of every section of video and analyzes difficulty.Then in every section, carry out secondary segmenting according to the essential information of video, the video of each subsegment optimizes the lowest bit rate of this subsegment video content applicable by trial-and-error method.And then the lowest bit rate of Integrated comparative all subsegments video obtains the lowest bit rate of whole section of video.
Above content is in conjunction with concrete preferred implementation further detailed description of the utility model, can not assert that concrete enforcement of the present utility model is confined to these explanations.For the utility model person of an ordinary skill in the technical field, without departing from the concept of the premise utility, some simple deduction or replace can also be made, all should be considered as belonging to protection range of the present utility model.