Background technology
Web TV is claimed IPTV (Internet Protocol Television) again; It with television set, PC and handheld device as display terminal; Through STB or computer accessing to wide band network, realize services such as DTV, time-moving television, interactive TV, the appearance of Web TV has brought a kind of brand-new television-viewing method to people; It has changed passive in the past television viewing mode, realized TV with the network be the basis watch as required, with seeing with the easy way of stopping.
In the prior art, the factor of video tastes that influences Web TV can be divided into media play quality and business interaction quality from technological layer.Mosaic, the play quality that video is stagnated, float can influence medium; And the duration that channel switches, program request duration etc. can the interactive quality of traffic affecting.
Web TV can provide definition and the user experience suitable with traditional tv as a kind of carrier-class multimedia service.The carrier of Web TV is to carry the IP network that multi-service is merged, and transmission environment is complicated relatively more, therefore aspect quality assurance, faces the challenge bigger than existing radio network.In order to promote the quality of service of Web TV, source end, the transmission system (IP network) that needs to optimize network television system comprises backbone network and Access Network, television set terminal.The video pictures shake that the Network Transmission shake may cause, at present, prior art can't well solve this technical problem.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
As shown in Figure 1, be a kind of network television video player method of embodiment of the invention flow chart, said method comprises:
101, detect the Network Transmission situation of network television video receiving terminal and video server;
102, adjust the cache size of said network television video receiving terminal according to said Network Transmission situation;
103, utilize the adjusted said buffer memory of said network television video receiving terminal, come video flowing and the broadcast of buffer memory from said video server.
Optional, the Network Transmission situation of said detection network television video receiving terminal and video server can comprise: the Network Transmission degree of jitter that detects network television video receiving terminal and video server.Optional, saidly adjust the cache size of said network television video receiving terminal according to said Network Transmission situation, can comprise: the cache size of adjusting said network television video receiving terminal according to said Network Transmission degree of jitter.
Optional; The Network Transmission degree of jitter of said detection network television video receiving terminal and video server; Can comprise: when said network television video receiving terminal is connected with said video server first, initiate the test request of Network Transmission situation to said video server; Receive said video server and receive the test video stream that sends after the test request of said Network Transmission situation; According to said test video stream, confirm said Network Transmission degree of jitter.Optional; The Network Transmission degree of jitter of said detection network television video receiving terminal and video server; Can comprise: in the network television video playing process, detect the Network Transmission degree of jitter of network television video receiving terminal and video server periodically (like every separated half an hour).
Optional, saidly confirm said Network Transmission degree of jitter according to said test video stream, can comprise: the TS (Transport Stream, MPTS) according in the IP packet that receives, confirm said Network Transmission degree of jitter.Saidly confirm said Network Transmission degree of jitter, can comprise according to the transport stream TS in the IP packet that receives: when calculating and adding up a plurality of video packets of data due in T, the actual TS flow data total amount that arrives; Calculate the TS flow data total amount that should arrive in the said time T; According to said actual TS flow data total amount and the said TS flow data total amount that should arrive that arrives in the said time T, calculate and affirmation maximum network transmission jitter value.Optional; The said cache size of adjusting said network television video receiving terminal according to said Network Transmission situation; Can comprise: the size of the TS stream buffer memory that presets according to the decoder of said network television video receiving terminal is transmitted jitter value with said maximum network, adjusts the cache size of said network television video receiving terminal.
As shown in Figure 2, from the IP packet, extract the TS data flow for application example TV set terminal of the present invention, confirm the method flow diagram of the size of TV set terminal video cache, said method specifically comprises:
201, from the load of IP packet, obtain the size of TS stream packets; And (i is that i packet is since 0 counting to note the packet T time of advent (i); First packet that begins to add up is designated as 0 the time of advent, adds up the relative time of advent of relative data bag later on) and calculate and arrived TS flow data amount Sum (i) this moment.
202, judgment data packet jitter degree: calculate the required TS flow data amount Real (i) of above-mentioned each time point=video flowing code check * T (i); And the data volume that arrives with reality is relatively, draw the quantized value V (i) of existing network condition lower network transmission dither state=| Sum (i)-Real (i) |.Time Calculation at television set acceptance test stream goes out maximum network jitter value Vmax.
203, confirm the size of suitable TV set terminal broadcast buffer memory: the size+Vmax of the TS stream buffer memory that the BUFSIZE=decoder presets.
This said method embodiment technical scheme has proposed a kind of slack method of video playback that solves the Network Transmission shake preferably and cause.At first the Network Transmission degree of jitter is judged in TV set terminal and video server cooperation; And then the size of definite TV set terminal video playback buffer memory; Suitable video data buffer memory can be on current television set Hardware configuration level; Reach the purpose that reduces or eliminate the TV set image shake, the time-delay of TS packet when buffer memory has sufficient data to prevent network jitter, but can not bring influence and blindly take excessive memory space for fear of network jitter again simultaneously.
Corresponding to said method, as shown in Figure 3, be a kind of network television video receiving terminal of embodiment of the invention structural representation, said network television video receiving terminal 30 comprises:
Detectingunit 31 is used to detect the Network Transmission situation of network television video receiving terminal and video server;
Adjustment unit 32 is used for adjusting according to said Network Transmission situation the cache size of said network television video receiving terminal;
Buffer unit 33 is used to utilize the adjusted said buffer memory of said network television video receiving terminal, comes video flowing and the broadcast of buffer memory from said video server.
Optional, said detectingunit 31 specifically can be used to detect the Network Transmission degree of jitter of network television video receiving terminal and video server.Optional, said adjustment unit 32 specifically is used for adjusting according to said Network Transmission degree of jitter the cache size of said network television video receiving terminal.
As shown in Figure 4; Be embodiment of the invention detecting unit structural representation; Said detectingunit 31 comprises:first detection module 311, be used for when said network television video receiving terminal is connected with said video server first, and initiate the test request of Network Transmission situation to said video server; Receive said video server and receive the test video stream that sends after the test request of said Network Transmission situation; According to said test video stream, confirm said Network Transmission degree of jitter.Said detectingunit 31 also comprises:second detection module 312, be used at the network television video playing process, and periodically detect the Network Transmission degree of jitter of network television video receiving terminal and video server.
Optional, said detectingunit 31 is further used for confirming said Network Transmission degree of jitter according to the transport stream TS in the IP packet that receives.Said detectingunit 31, when further specifically calculating and adding up a plurality of video packets of data due in T, the actual TS flow data total amount that arrives; Calculate the TS flow data total amount that should arrive in the said time T; According to said actual TS flow data total amount and the said TS flow data total amount that should arrive that arrives in the said time T, calculate and affirmation maximum network transmission jitter value.Said adjustment unit 32, the size that is further used for the TS stream buffer memory that the decoder according to said network television video receiving terminal presets is transmitted jitter value with said maximum network, adjusts the cache size of said network television video receiving terminal.
This said apparatus embodiment technical scheme has proposed a kind of slack network television video receiving device of video playback that solves the Network Transmission shake preferably and cause.The Network Transmission degree of jitter is judged in TV set terminal and video server cooperation; And then the size of definite TV set terminal video playback buffer memory; Suitable video data buffer memory can be on current television set Hardware configuration level; Reach the purpose that reduces or eliminate the TV set image shake, the time-delay of TS packet when buffer memory has sufficient data to prevent network jitter, but can not bring influence and blindly take excessive memory space for fear of network jitter again simultaneously.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct related hardware to accomplish through program; Described program can be stored in the computer read/write memory medium; This program is when carrying out; Comprise above-mentioned all or part of step, described storage medium, as: ROM/RAM, disk, CD etc.
Above-described embodiment; The object of the invention, technical scheme and beneficial effect have been carried out further explain, and institute it should be understood that the above is merely embodiment of the present invention; And be not used in qualification protection scope of the present invention; All within spirit of the present invention and principle, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.