CN109862442A - A kind of input method for stream processing and processing unit based on IP transmission - Google Patents
A kind of input method for stream processing and processing unit based on IP transmission Download PDFInfo
- Publication number
- CN109862442A CN109862442A CN201910132521.5A CN201910132521A CN109862442A CN 109862442 A CN109862442 A CN 109862442A CN 201910132521 A CN201910132521 A CN 201910132521A CN 109862442 A CN109862442 A CN 109862442A
- Authority
- CN
- China
- Prior art keywords
- timeslice
- preset length
- bit rate
- channel
- code rate
- 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
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The present invention relates to IP transmission technique fields, specifically disclose a kind of input method for stream processing and processing unit based on IP transmission, including, it is preset length timeslice by the timeslice length adjustment of inlet flow, obtains the average bit rate △ Ri of preset length timeslice;The time span of preset length timeslice is gradually reduced, and monitors the fluctuation of the average bit rate △ Ri of preset length timeslice simultaneously;If the fluctuation of the average bit rate △ Ri of the preset length timeslice of current interval is more than preset threshold, stop the time span for reducing preset length timeslice, and the preset length timeslice of a upper time span is set as minimum and stablizes timeslice;Channel spatial cache is adjusted according to the fundamental characteristics of inlet flow and minimum timeslice of stablizing, the present invention is capable of providing a kind of channel code rate distribution mechanism of matching compensation, in in a limited space, accomplish reasonable space distribution, the code rate of reduction encoder well, it is ensured that decoding end can be stablized, reliably carry out audio/video decoding.
Description
Technical field
The present invention relates to IP transmission technique field more particularly to a kind of input method for stream processing and processing based on IP transmission
Device.
Background technique
With the development of science and technology, using more and more extensive in a manner of IP transmission, for transmitted based on IP video,
Voice communication is usually encoded by encoder, and is traveled to decoding end and be decoded, however, since IP transmission presence is not true
Fixed delay and jitter, so that decoding end can not be stablized, reliably carry out audio/video decoding, and IP transmission can not pass through analyzer
Normally to TR101290 analysis PCR shake and PCR drift is carried out based on IP traffic the problem of, and can not support well
The system being decoded for clock recovery.
Summary of the invention
The present invention provides a kind of input method for stream processing and processing unit based on IP transmission, can be good at reduction and compile
The code rate of code device, it is ensured that decoding end can be stablized, reliably carry out audio/video decoding.
Concrete scheme provided by the invention is as follows:
A kind of input method for stream processing based on IP transmission, comprising:
It is preset length timeslice by the timeslice length adjustment of inlet flow, obtains the average bit rate △ of preset length timeslice
Ri;
The time span of preset length timeslice is gradually reduced, and monitor the average bit rate △ Ri of preset length timeslice simultaneously
Fluctuation;
If the fluctuation of the average bit rate △ Ri of the preset length timeslice of current interval is more than preset threshold, stop reducing
The time span of preset length timeslice, and the preset length timeslice of a upper time span is set as minimum and stablizes the time
Piece;
Channel spatial cache is adjusted according to the fundamental characteristics of inlet flow and minimum timeslice of stablizing.
Optionally, described to calculate and obtain the average bit rate △ Ri of preset length timeslice, it specifically includes:
Preset length timeslice is averagely cut into several pieces preset length timeslice to be counted, calculates and obtains several pieces and wait uniting
The code rate of object time piece is counted, the average bit rate of preset length timeslice is calculated in the code rate according to several pieces.
Optionally, the fundamental characteristics according to inlet flow and minimum timeslice of stablizing adjust channel spatial cache, specifically
Include:
Caching coefficient N is obtained according to the fundamental characteristics of inlet flow, the caching coefficient N is preset parameter;
Channel spatial cache is adjusted in conjunction with the caching coefficient N and minimum timeslice of stablizing.
Optionally, bit rate output △ Ro is cached using the minimum average bit rate for stablizing timeslice as pre-restore.
Optionally, the method also includes:
Calculate and obtain the average bit rate △ Ri's of the pre-restore caching bit rate output △ Ro and the preset length timeslice
Difference;
According to the position of center line of the spatial cache, location information cache is obtained;
Caching adjustment offset is calculated according to the difference and the location information cache.
Optionally, the method also includes:
PCR information is obtained, the interval PCR and precision is checked, drift compensation value is obtained based on TR101290 criterion calculation.
Optionally, the method also includes:
Channel code rate sample information, burst sample information and channel change rate sample information are set;
The code rate for transferring channel code rate sample information and current channel is matched;
It transfers burst sample information and input sample is matched;
It transfers channel rate of change information and input bit rate change rate is matched;
According to above-mentioned matching result, chooses corresponding timeslice and issue timeslice parameter.
Optionally, comprising:
IP code rate pre-restore module and go drift control module;
The IP code rate pre-restore module, for obtaining pre-restore caching bit rate output △ Ro and dividing caching for each IP tunnel
Space;And
It is described to go drift control module, inlet flow is judged, according to judging result using caching adjustment penalty method or drift
Penalty method.
Optionally, described device further includes composite thresholds determination module and quick recovery module;
The composite thresholds determination module, for updating channel code rate sample information, burst sample information and channel change rate sample
This information;And
The quick recovery module, for according to the code rate of channel code rate sample information and current channel, burst sample information with
The matching result of input sample, channel change rate sample information and input bit rate change rate, when choosing corresponding timeslice and issuing
Between piece parameter.
Optionally, the IP code rate pre-restore module is also used to generate burst pre-warning signal, and the burst early warning is believed
Breath is sent to composite thresholds determination module.
The beneficial effects of the present invention are: the present invention is capable of providing a kind of channel code rate distribution mechanism of matching compensation,
In limited space, accomplish the distribution of reasonable space, restore the code rate of encoder well, it is ensured that decoding end can stablize, can
The carry out audio/video decoding leaned on.
Detailed description of the invention
Fig. 1 is the input method for stream processing flow chart based on IP transmission provided in the embodiment of the present invention;
Fig. 2 is the other two kinds input method for stream processing flow charts based on IP transmission provided in the embodiment of the present invention;
Fig. 3 is that the burst early warning provided in the embodiment of the present invention restores flow chart;
Fig. 4 is the input current processing device application scenario diagram based on IP transmission provided in the embodiment of the present invention;
Fig. 5 is the application scenario diagram of the composite thresholds determination module provided and quick recovery module in the embodiment of the present invention.
Specific embodiment
For the technical solution that the present invention will be described in detail, below in conjunction with the attached drawing of the embodiment of the present invention, to of the invention real
The technical solution for applying example carries out clear, complete description.Obviously, described embodiment is a part of the embodiments of the present invention,
Instead of all the embodiments.Based on described the embodiment of the present invention, those of ordinary skill in the art are without creativeness
Every other embodiment obtained, shall fall within the protection scope of the present invention under the premise of labour.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention
The normally understood meaning of technical staff it is identical.Term used herein is intended merely to description specific embodiment
Purpose, it is not intended that in the limitation present invention.Term " and or " used herein includes one or more relevant listed items
Any and all combinations.
Fig. 1 is please referred to, the present processes flow chart is shown in figure.
A kind of input method for stream processing based on IP transmission, comprising:
101, it is preset length timeslice by the timeslice length adjustment of inlet flow, obtains the average bit rate of preset length timeslice
△Ri。
Specifically, after channel start, data receiving state is started to work, when by timeslice length adjustment being preset length
Between piece timeslice is adjusted to maximum value, such as 2 seconds, and to the code rate of each preset length timeslice in the present embodiment
It is recorded and is compared, the characteristic of inlet flow is analyzed in the stage of beginning, show whether the data flow in the channel meets
CBR mode e.g. when the code rate that multiple preset length timeslices come out is close, then means the shake of the channel code rate
And convergence is preferable, and for the inlet flow of non-CBR mode, then not in the application range of the present embodiment.
102, the time span of preset length timeslice is gradually reduced, and monitors the average code of preset length timeslice simultaneously
The fluctuation of rate △ Ri.
Specifically, by this present embodiment by timeslice length adjustment be maximum value, maximum value timeslice is for channel
Error resilience ability is obvious, but is exactly that timeslice is bigger there are a larger problem, it is meant that it needs more cachings to be counted
According to storage, when channel is exponentially increased, then the code rate that each channel can be assigned to is just very limited, such as in a 4Gb
DDR on, if channel increases to 1024, the maximum space that each channel can be assigned to just only has 4Mb, if there is
Channel actual bit rate is larger, such as 100Mb/s, and the spatial cache of 4Mb will seem quite limited, therefore present embodiments provide
A kind of buffer setting mode based on timeslice, formula are buffer_range=N*T* △ Ri, wherein N indicates caching system
Number, T are the average bit rate of preset length timeslice to stablize minimum stable time leaf length, △ Ri under code rate, and minimum stable
The acquisition of timeslice then needs gradually contracting preset length timeslice, and the average bit rate △ Ri for observing preset length timeslice is
It is no to will appear larger fluctuation.
103, if the fluctuation of the average bit rate △ Ri of the preset length timeslice of current interval is more than preset threshold,
Stop reducing the time span of preset length timeslice, and the preset length timeslice of a upper time span is set as minimum steady
It fixes time piece.
Before obtaining minimum stable timeslice, the threshold value of the average bit rate △ Ri of a preset length timeslice is set,
When the fluctuation of the value of the average bit rate △ Ri of preset length timeslice is more than preset threshold, then ceased attempt to, and by the upper time
The preset length timeslice of length is set as minimum and stablizes timeslice.
104, channel spatial cache is adjusted according to the fundamental characteristics of inlet flow and minimum timeslice of stablizing.
Wherein, fundamental characteristics includes code rate change rate and code rate size, data flow by network transmission, there are it is biggish not
Certainty in the present embodiment, is cut into 8 by the way of clipping time piece, such as by 2 seconds preset length timeslice
Part, every part of time interval is 125 milliseconds, since the code rate of every part of timeslice all may be different, by choose it is maximum and
Minimum value obtains the code rate change rate in channel time piece, according to code rate change rate, code rate size and it is minimum stablize timeslice come
Adjust channel spatial cache.
In the present embodiment, it is determined that suitable match parameter receives current channel inlet flow, goes at drift for subsequent
Reason part plays good support.
In some embodiments, 101, it is preset length timeslice by the timeslice length adjustment of inlet flow, is preset
The average bit rate △ Ri of length time slice, specifically includes:
Preset length timeslice is averagely cut into several pieces preset length timeslice to be counted, calculates and obtains several pieces and wait uniting
The code rate of object time piece is counted, the average bit rate △ Ri of preset length timeslice is calculated in the code rate according to several pieces, e.g.,
One 2 seconds preset length timeslice is cut into 8 parts, every part of time interval is 125 milliseconds, due to every part of default length to be counted
The code rate for spending timeslice all may be different, therefore, is obtained according to the code rate fluctuation situation in 8 parts of preset length timeslices to be counted
Know the average bit rate △ Ri of preset length timeslice.
In some embodiments, 104, according to the fundamental characteristics of inlet flow and minimum to stablize timeslice adjustment channel caching empty
Between, it specifically includes:
According to the fundamental characteristics of inlet flow obtain caching coefficient N, caching coefficient N be preset parameter, in conjunction with the caching coefficient N with
Minimum stablizes timeslice and adjusts channel spatial cache, and the setting of N needs to consider many aspects, provides the ginseng of most suitable current channel
Number.
The present embodiment passes through the fundamental characteristics for obtaining current input stream, and chooses suitable minimum stable timeslice, from
And the division of spatial cache is obtained, it solves to shake currently based on the input scene of multichannel, multi program multiplex for rejecting code rate
The cache problem faced with drift provides the channel code rate distribution mechanism of matching smooth compensating, interior in a limited space, accomplishes
Reasonable space distribution.
In some embodiments, bit rate output △ is cached using the minimum average bit rate for stablizing timeslice as pre-restore
Ro needs to cache using the corresponding average bit rate of the stable timeslice of minimum as pre-restore defeated after the stable timeslice of minimum is selected
Code rate △ Ro out, as reference synchronization code rate, which has code rate R of the approximate transmitting terminal before transmitting by IP.
In the present embodiment, smoothed out pre-restore caching bit rate output △ Ro accuracy with higher and wider is cached
Jitter immunity.
In some embodiments, as shown in Fig. 2, the input method for stream processing that should be transmitted based on IP further include:
201, it calculates and obtains the average bit rate △ of pre-restore caching the bit rate output △ Ro and the preset length timeslice
The difference of Ri.
Specifically, delaying when the average bit rate △ Ri of preset length timeslice is greater than pre-restore caching bit rate output △ Ro
Deposit data increases, it is meant that, the direction of compensation just needs to do increment control algorithm, and on the contrary then cut down, preset length timeslice is averaged
It is accurate as far as possible that the difference selection of code rate △ Ri and pre-restore caching bit rate output △ Ro need, and therefore, mentions in the present embodiment
A kind of gradual difference has been supplied to extract, specific practice is using a biggish time window, such as to use in the present embodiment
One 2 seconds time window, code rate Ri pass through this 2 seconds time windows first, count the average bit rate of preset length timeslice
Then △ Ri updates the average bit rate △ Ri of a preset length timeslice, therefore, preset length time at interval of 125 milliseconds
The average bit rate △ Ri of piece has the function of 2 seconds jitter eliminations, and pre-restore caching bit rate output △ Ro is then equally using similar
Mode obtains, and an important benefit of which is to greatly reduce the shake introduced due to input, reduces drift compensation
Complexity.
202, according to the position of center line of the spatial cache, location information cache is obtained.
Specifically, starting read pointer to be set in the position of the medium line of spatial cache after system starts to receive data flow
It sets, such purpose is to cache to overflow upwards to be closer to the time overflowed downwards, due to shaking and postponing with the period
Property, therefore, which can preferably absorb shake using caching, and cache location then provides relatively straightforward information, in advance
If average bit rate △ Ri and pre-restore caching the bit rate output △ Ro of length time slice, which have differences, to be caused.
203, caching adjustment offset is calculated according to the difference and the location information cache.
Since there are coding sides to be multiplexed the case where exporting, in the present embodiment, provides a kind of adjust based on caching and mend
The mode repaid, specific formula are as follows: as △ Ro > △ Ri, comp=(△ Ro- △ Ri)/(△ buffer_level);Work as △
Ri > △ Ro, comp=(△ Ri- △ Ro)/(buffer_range-△ buffer_level).
In the present embodiment, using a kind of trend compensation way, current pre-restore caching bit rate output △ Ro is corrected,
Its specific practice are as follows: when △ buffer_level deviate spatial cache medium line position when, also mean that input and it is defeated
The deviation of code rate generates out, in the present embodiment, at interval of 125 milliseconds, then saves a △ buffer_level, and by newest system
The △ buffer_level that meter comes out is compared with last, if there is trend is expanded, then starts compensation, which
Advantage is can be to avoid inessential compensation, caused toning, so that destroying code rate interval leads to decoder clock drift deviation
It is excessive.
In some embodiments, as shown in Fig. 2, the input method for stream processing that should be transmitted based on IP further include: obtain PCR letter
Breath checks the interval PCR and precision, obtains drift compensation value based on TR101290 criterion calculation, specifically include following below scheme:
204, PCR information is obtained.
Specifically, locking the PID of the PCR of some program, and lasting monitoring is carried out to it, obtain the interval PCR, PCR essence
Information is spent, and it is checked, the test mode in the present embodiment is to be flowed into using local nominal clock 27Mhz to input
Row TR101290 analysis, to obtain the information of needs.
205, the interval PCR and precision are checked.
Specifically, due in network transmission process, existing uncertainty destroys the stability of data, therefore this reality
It applies in example, using the following test mode of formula: Ri/Ti ≈ R (i+1)/T (i+1), wherein code rate of the R between adjacent PCR, T are
Time between adjacent PCR, if the code rate information between adjacent PCR is consistent with the ratio of PCR value, then current PC R information reliably has
Effect.
206, drift compensation value is calculated.
Determine specifically, being drifted about according to the PCR of TR101290 description, to obtain the drift compensation value model in the unit time
It encloses, and Ro is corrected in this, as thresholding, the calculation process of the present embodiment are as follows: according to | dr_range | <
The requirement of 10ppm/hour max_dr when benchmark base_dr and 10ppm drift is calculated according to TR101290, according to dr_
Diff=| base_dr-max_dr | drift difference is obtained, using the value as the regulation thresholding of compensation, is trembled for filtering
Over control caused by dynamic, comp=dr_diff or comp > dr_diff, it is current to determine by 205 inspection result
It should be relatively reliable using any compensation way.
The trend that the present embodiment changes according to current cache, in conjunction with current preset length time slice average bit rate △ Ri and
Whether the difference of △ Ro locks according to PCR, the information such as whether starts according to drift compensation, finally obtains high-precision offset,
For ensuring the consistency of pre-restore caching bit rate output △ Ro and encoder code rate R.
In some embodiments, as shown in figure 3, the method also includes burst early warning to restore function, such as:
301, channel code rate sample information, burst sample information and channel change rate sample information are set.
By obtaining the fundamental characteristics of inlet flow, so that dynamic control is carried out to embodiment, due to during control,
There are the adaptations of inlet flow, therefore, in order to quickly be restored in abnormality, present embodiments provide a kind of mark sheet
Fast locking method, and mark sheet is then a set of match parameter formed in long-term work according to parameter current, this implementation
Example enables to the fast quick-recovery of working environment and the various environmental changes of Rapid matching in this way.
302, the code rate for transferring channel code rate sample information and current channel is matched.
The code rate of channel code rate sample information and current channel is matched, such as input bit rate is 1M, then matching
Sample information is the section 0.5-3M, and the parameter information which obtains is the input of minimum code rate.
303, it transfers burst sample information and input sample is matched.
Burst sample information and input sample are matched, such as currently without burst section, the parameter which obtains
Information is to stablize code rate.
304, it transfers channel rate of change information and input bit rate change rate is matched.
Channel rate of change information and input bit rate change rate are matched, such as current change rate is < 1%, code rate fluctuation
Small, channel status is good.
305, it according to above-mentioned matching result, chooses corresponding timeslice and issues timeslice parameter.
According to above-mentioned matching result, thus matching is minimum stablizes timeslice, such as 125 milliseconds, and is channel distribution one
The corresponding caching of a suitable N, bottom each unit can be locked quickly after obtaining match information and start calibration function, should
Design can be synchronized quickly when of short duration abnormal or interruption occurs in signal.
Referring to figure 4., the device application scenario diagram of the application is shown in figure.
This it is a kind of based on IP transmission input current processing device, including IP code rate pre-restore module and go drift control mould
Block.
Wherein, IP code rate pre-restore module, for obtaining pre-restore caching bit rate output △ Ro and being drawn for each IP tunnel
Divide spatial cache;It is that the average bit rate △ Ri of each timeslice sets bit rate output ginseng according to the code rate statistics based on timeslice
Examine value;According to Data Rate Distribution memory, timeslice and the matched spatial cache of code rate size are based on for the distribution of each IP tunnel;According to
Code rate pre-restore function locks the code rate Ri based on the timeslice, is closer to according to the cache location of data, setting one
Pre-restore caches bit rate output △ Ro.
Drift control module is gone, inlet flow is judged, according to judging result using caching adjustment penalty method or drift
Penalty method, since the code rate of IP input is always in variation in some fixed time period, according to the change rate of input bit rate,
And the case where current channel available cache memory, enabling are gone drift control module, are judged according to input condition, the present embodiment mentions
Two kinds of methods for going drift are supplied, according to multi program multiplex situation, using the method based on caching adjustment offset, according to single-unit
Mesh input condition obtains the interval PCR, precision and drift related data using automatic and configurable PCR following function in real time,
It is counted according to PCR precision and PCR drift data, Real-time Feedback error current situation and the dynamic range for adjustment.
In some embodiments, as shown in figure 5, this it is a kind of based on IP transmission input current processing device further include comprehensive threshold
It is worth determination module and quick recovery module.
Wherein, composite thresholds determination module, for updating channel code rate sample information, burst sample information and channel variation
Rate sample information.
Quick recovery module, for according to the code rate of channel code rate sample information and current channel, burst sample information with
The matching result of input sample, channel change rate sample information and input bit rate change rate, when choosing corresponding timeslice and issuing
Between piece parameter.
The shake that the shake generated in the present embodiment for IP network and encoder burst generate, according to adjustment time
Leaf length is chosen suitable time leaf length and is monitored to channel code rate to restore to receive code rate, and excessive timeslice is held
Cache resources are easily caused to waste, too small timeslice, anti-jitter ability is poor, according to code rate in the periodicity of coding side, can obtain
It is suitble to the spatial cache of current input characteristics to one, buffer_range=N*T* △ Ri, N indicate caching coefficient, and T is steady
Minimum under constant bit rate to stablize time leaf length, △ Ri is the average bit rate of preset length timeslice, and on this basis, happen suddenly early warning
Whether function, the then relativeness that can analyze the △ Ri and T of current real-time change generate variation, to need again empty to caching
Between be adjusted.
According to above-mentioned elaboration, an available pre-restore caches bit rate output △ Ro, which has approximate minimum steady
The characteristic of the corresponding average bit rate of leaf length of fixing time, the average bit rate △ Ri and encoder code rate R of preset length timeslice are deposited
It is the function of nonlinear time-varying in Ri (t)=R (t) ± D (t), D (t), but there is the convergent characteristic of a certain range, it is slow in pre-restore
After depositing bit rate output molding, system enters normal mode of operation, it can be understood as, early period predominantly receives adaptation stage, leads to
Searching proper reception parameter is crossed, to determine current pre-restore code rate, and initially enters and receives data and store output stage, simultaneously
Drift control module is gone in system starting.
Due to the determination of pre-restore caching bit rate output △ Ro, it is believed that current system receives code rate close to coding speed
Next rate then needs to start and drift control module is gone to compensate code rate, it would therefore be desirable to according to channel program feelings
Condition selects a kind of suitable mode to carry out offset value calculation.
The compensation of pre-restore caching bit rate output △ Ro needs to refer to several aspects, current cache Data Position, △ Ri's
Change rate, the change rate of change rate and PCR precision and the PCR drift of △ Ro and direction.
In the present embodiment provide two kinds of high-accuracy compensations adjustment mode, one is based on cache location and input and it is defeated
Out in the relativeness for corresponding to change rate in timeslice, to generate the adjustment mode of following formula: as △ Ro > △ Ri,
comp = (△Ro-△Ri)/ △(buffer_level);As △ Ri > △ Ro, comp=(△ Ri- △ Ro)/(
Buffer_range-△ buffer_level), above-mentioned adjustment type is ensuring to delay without reference to PCR using linear compensation way
It deposits in the case where not generating spilling, dynamic code rate adjustment is carried out to △ Ro, which holds multiplexed encoded data to input before treatment
When, there is preferable drift control ability.
Another adjustment mode is, by TR101290 agreement it is found that the range of drift of decoding clock needs to meet: | dr_
Range | < 10ppm/hour, therefore, according to the information that PCR is obtained, when first obtaining 10ppm/hour by analytical calculation
Code rate drift value max_dr, so as to obtain adjustable maximum dr_diff value, the adjustment mode of offset in the unit time
Are as follows: as △ Ro>△ Ri or comp<dr_diff, comp=(△ Ro- △ Ri)/(△ buffer_level);As △ Ri > △
Ro or comp < dr_diff, comp=(△ Ri- △ Ro)/(buffer_range-△ buffer_level), above-mentioned side
Formula can effectively avoid the shake introduced due to transmission, comp excess generation over control be caused, to preferably solve number
According to stream after IP is transmitted, cause to decode clock drift problems due to shaking, in single program channel in use, better effect.
In some embodiments, IP code rate pre-restore module is also used to generate burst pre-warning signal, and the burst is pre-
Alert information is sent to composite thresholds determination module.
Specifically, IP code rate pre-restore module counts input data according to an adjustable timeslice, the time
Leaf length is controlled by composite thresholds module, its purpose is that, code rate fluctuation changes greatly in different environment, in severe ring
In border, in order to predict the situation of change of current channel in advance, need to carry out code rate using lesser timeslice to continue system
Meter, such as 10 milliseconds are unit, when the code rate in some timeslice is considerably beyond currently received average bit rate, are then generated prominent
Pre-warning signal is sent out, and the signal is transmitted to composite thresholds module and is handled.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
Therefore it cannot understand limitations on the scope of the patent of the present invention.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range, therefore, protection scope of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of input method for stream processing based on IP transmission characterized by comprising
It is preset length timeslice by the timeslice length adjustment of inlet flow, obtains the average bit rate △ of preset length timeslice
Ri;
The time span of preset length timeslice is gradually reduced, and monitor the average bit rate △ Ri of preset length timeslice simultaneously
Fluctuation;
If the fluctuation of the average bit rate △ Ri of the preset length timeslice of current interval is more than preset threshold, stop reducing
The time span of preset length timeslice, and the preset length timeslice of a upper time span is set as minimum and stablizes the time
Piece;
Channel spatial cache is adjusted according to the fundamental characteristics of inlet flow and minimum timeslice of stablizing.
2. the input method for stream processing according to claim 1 based on IP transmission, which is characterized in that the calculating simultaneously obtains
The average bit rate △ Ri of preset length timeslice, specifically includes:
Preset length timeslice is averagely cut into several pieces preset length timeslice to be counted, calculates and obtains several pieces and wait uniting
The code rate of object time piece is counted, the average bit rate of preset length timeslice is calculated in the code rate according to several pieces.
3. the input method for stream processing according to claim 1 based on IP transmission, which is characterized in that described according to inlet flow
Fundamental characteristics and minimum timeslice of stablizing adjust channel spatial cache, specifically include:
Caching coefficient N is obtained according to the fundamental characteristics of inlet flow, the caching coefficient N is preset parameter;
Channel spatial cache is adjusted in conjunction with the caching coefficient N and minimum timeslice of stablizing.
4. the input method for stream processing according to claim 1 based on IP transmission, which is characterized in that will be described minimum stable
The average bit rate of timeslice caches bit rate output △ Ro as pre-restore.
5. the input method for stream processing according to claim 4 based on IP transmission, which is characterized in that the method is also wrapped
It includes:
Calculate and obtain the average bit rate △ Ri's of the pre-restore caching bit rate output △ Ro and the preset length timeslice
Difference;
According to the position of center line of the spatial cache, location information cache is obtained;
Caching adjustment offset is calculated according to the difference and the location information cache.
6. the input method for stream processing according to claim 1 based on IP transmission, which is characterized in that the method is also wrapped
It includes:
PCR information is obtained, the interval PCR and precision is checked, drift compensation value is obtained based on TR101290 criterion calculation.
7. the input method for stream processing according to claim 5 or 6 based on IP transmission, which is characterized in that the method is also
Include:
Channel code rate sample information, burst sample information and channel change rate sample information are set;
The code rate for transferring channel code rate sample information and current channel is matched;
It transfers burst sample information and input sample is matched;
It transfers channel rate of change information and input bit rate change rate is matched;
According to above-mentioned matching result, chooses corresponding timeslice and issue timeslice parameter.
8. a kind of input current processing device based on IP transmission, is applied to processing method as claimed in claim 7, feature exists
In, comprising:
IP code rate pre-restore module and go drift control module;
The IP code rate pre-restore module, for obtaining pre-restore caching bit rate output △ Ro and dividing caching for each IP tunnel
Space;And
It is described to go drift control module, inlet flow is judged, according to judging result using caching adjustment penalty method or drift
Penalty method.
9. the input current processing device according to claim 8 based on IP transmission, which is characterized in that described device further includes
Composite thresholds determination module and quick recovery module;
The composite thresholds determination module, for updating channel code rate sample information, burst sample information and channel change rate sample
This information;And
The quick recovery module, for according to the code rate of channel code rate sample information and current channel, burst sample information with
The matching result of input sample, channel change rate sample information and input bit rate change rate, when choosing corresponding timeslice and issuing
Between piece parameter.
10. the input current processing device according to claim 8 based on IP transmission, which is characterized in that the IP code rate is pre-
Recovery module is also used to generate burst pre-warning signal, and the burst warning information is sent to composite thresholds determination module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910132521.5A CN109862442B (en) | 2019-02-22 | 2019-02-22 | Input stream processing method and processing device based on IP transmission |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910132521.5A CN109862442B (en) | 2019-02-22 | 2019-02-22 | Input stream processing method and processing device based on IP transmission |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109862442A true CN109862442A (en) | 2019-06-07 |
CN109862442B CN109862442B (en) | 2022-05-17 |
Family
ID=66898717
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910132521.5A Active CN109862442B (en) | 2019-02-22 | 2019-02-22 | Input stream processing method and processing device based on IP transmission |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109862442B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202261655U (en) * | 2011-10-24 | 2012-05-30 | 成都虢电智能电力科技有限公司 | Adaptive coding and transmission system of multi-channel video at limited bandwidth |
CN105025330A (en) * | 2014-04-30 | 2015-11-04 | 深圳Tcl新技术有限公司 | Media file playing control method and apparatus based on DASH protocol |
CN105306970A (en) * | 2015-11-30 | 2016-02-03 | 武汉斗鱼网络科技有限公司 | Method and device for controlling stream media live broadcast transmitting speed |
CN105357591A (en) * | 2015-11-16 | 2016-02-24 | 北京理工大学 | QoE monitoring and optimization method for adaptive code rate video direct broadcast |
CN105451099A (en) * | 2014-08-19 | 2016-03-30 | 北京大学 | Method and device for adjusting video code rate |
CN107659819A (en) * | 2017-10-30 | 2018-02-02 | 网宿科技股份有限公司 | A kind of method and apparatus of video code conversion |
CN108965024A (en) * | 2018-08-01 | 2018-12-07 | 重庆邮电大学 | A kind of virtual network function dispatching method of the 5G network slice based on prediction |
CN109040855A (en) * | 2018-09-03 | 2018-12-18 | 重庆邮电大学 | A kind of wireless DASH streaming media bit rate smooth adaptive transmission method |
CN109302623A (en) * | 2018-11-01 | 2019-02-01 | 南京大学 | A kind of transmission method based on QoE model dynamic self-adapting video |
-
2019
- 2019-02-22 CN CN201910132521.5A patent/CN109862442B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202261655U (en) * | 2011-10-24 | 2012-05-30 | 成都虢电智能电力科技有限公司 | Adaptive coding and transmission system of multi-channel video at limited bandwidth |
CN105025330A (en) * | 2014-04-30 | 2015-11-04 | 深圳Tcl新技术有限公司 | Media file playing control method and apparatus based on DASH protocol |
CN105451099A (en) * | 2014-08-19 | 2016-03-30 | 北京大学 | Method and device for adjusting video code rate |
CN105357591A (en) * | 2015-11-16 | 2016-02-24 | 北京理工大学 | QoE monitoring and optimization method for adaptive code rate video direct broadcast |
CN105306970A (en) * | 2015-11-30 | 2016-02-03 | 武汉斗鱼网络科技有限公司 | Method and device for controlling stream media live broadcast transmitting speed |
CN107659819A (en) * | 2017-10-30 | 2018-02-02 | 网宿科技股份有限公司 | A kind of method and apparatus of video code conversion |
CN108965024A (en) * | 2018-08-01 | 2018-12-07 | 重庆邮电大学 | A kind of virtual network function dispatching method of the 5G network slice based on prediction |
CN109040855A (en) * | 2018-09-03 | 2018-12-18 | 重庆邮电大学 | A kind of wireless DASH streaming media bit rate smooth adaptive transmission method |
CN109302623A (en) * | 2018-11-01 | 2019-02-01 | 南京大学 | A kind of transmission method based on QoE model dynamic self-adapting video |
Also Published As
Publication number | Publication date |
---|---|
CN109862442B (en) | 2022-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10680657B2 (en) | Media controller with jitter buffer | |
US7733893B2 (en) | Method and receiver for determining a jitter buffer level | |
US6654956B1 (en) | Method, apparatus and computer program product for synchronizing presentation of digital video data with serving of digital video data | |
EP2364551B1 (en) | Multiplexed video streaming | |
US6731600B1 (en) | System and method for determining network conditions | |
US6625656B2 (en) | Method and apparatus for continuous playback or distribution of information including audio-visual streamed multimedia | |
EP1175109B1 (en) | MPEG PCR jitter, frequency offset and drift rate measurements | |
US7281053B2 (en) | Method and system for dynamic latency management and drift correction | |
US20120269204A1 (en) | Method for generating a robust timing correction in timing transfer systems | |
US20030169755A1 (en) | Clock skew compensation for a jitter buffer | |
CN108449617B (en) | Method and device for controlling audio and video synchronization | |
US10637788B2 (en) | Stability of delay-based congestion control in a computer network using an alpha-beta filter and round-trip-time predictor | |
US9307298B2 (en) | System and method for video statistical multiplexing adapting to internet protocol networks | |
CN101803268A (en) | Clock synchronization system, its method and program | |
CN109862442A (en) | A kind of input method for stream processing and processing unit based on IP transmission | |
EP2084873A1 (en) | Network jitter smoothing with reduced delay | |
CN112019289B (en) | Time synchronization method of time sharing system | |
US8854964B2 (en) | Method and apparatus for determining a transport bit rate for a Multiprogram transport stream | |
DE102012206910A1 (en) | Method and device for signaling a transmission time and / or a system clock | |
Atzori et al. | Speech playout buffering based on a simplified version of the ITU-T E-model | |
CN114501135B (en) | Method and device for implementing two-stage smoothing to de-jitter code stream | |
EP1346543B1 (en) | Dynamic latency management and dynamic drift correction | |
CN1126334C (en) | System and method for generoting a real-time signal | |
EP1030476B1 (en) | Measuring delay variation of regenerated data clock and of associated data packets | |
US20020097822A1 (en) | Temporal drift correction |
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 |