CN100515068C - Static frame loss method in video playing - Google Patents

Static frame loss method in video playing Download PDF

Info

Publication number
CN100515068C
CN100515068C CNB2006100810536A CN200610081053A CN100515068C CN 100515068 C CN100515068 C CN 100515068C CN B2006100810536 A CNB2006100810536 A CN B2006100810536A CN 200610081053 A CN200610081053 A CN 200610081053A CN 100515068 C CN100515068 C CN 100515068C
Authority
CN
China
Prior art keywords
frame
video
frequency
counter
value
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
CNB2006100810536A
Other languages
Chinese (zh)
Other versions
CN101079993A (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.)
BEIJING ZHONGKE CHINESE SHADOW MEDIA TECHNOLOGY CO LTD
Institute of Acoustics CAS
Original Assignee
Beijing Yi Wei Information Technology Co ltd AS
Institute of Acoustics CAS
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 Beijing Yi Wei Information Technology Co ltd AS, Institute of Acoustics CAS filed Critical Beijing Yi Wei Information Technology Co ltd AS
Priority to CNB2006100810536A priority Critical patent/CN100515068C/en
Publication of CN101079993A publication Critical patent/CN101079993A/en
Application granted granted Critical
Publication of CN100515068C publication Critical patent/CN100515068C/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

This invention discloses a static frame-losing method in video play including: forecasting the video decoding ability of a video terminal by the primary test code stream, analyzing the input video frame sequence received by the video terminal to estimate the decode complexity of the frame sequence, computing target play frame frequencies to judge if it is necessary to lose frames statically, if so it carries out the next step, otherwise, the operation is ended, computing percentage of frame-lost to determine the frame-lost frequency in a static frame-lost filter in the video terminal by the percentage to implement the frame-losing.

Description

Static frame loss method in the video playback
Technical field
The present invention relates to video playing terminal, specially refer to the limited video playing terminal of multimedia processing capability.
Background technology
The frame of video that present audio/video player system is play is divided into I frame, P frame and B frame, and wherein I frame and P frame are reference frames, and the B frame is a non-reference frame.In reference frame, the I frame is a key frame, and the P frame is common reference frame.When frame of video being done decoding, the information that the dependence of I frame itself is comprised can realize decoding, the information of an I frame or other P frames that needs the P frame could realize the decoding to it, a B frame I frame of needs and a P frame, or two P frames could be realized the decoding to it.
In audio/video player system; run into such problem through regular meeting: the average decoding complex degree that is input to the video sequence of playback terminal has exceeded the disposal ability of terminal; after the intact several frame video images of decoder decode; the current time of system just lags behind the normal demonstration time of frame of video; decode frame by frame if proceed; then can further aggravate the hysteresis that video image shows, what cause that the user sees is the video of slow play.
The method of handling this problem at present generally has two kinds: the one, the video sequence of input is decoded as possible, and if current system time has lagged behind the input video frame that will decode, then abandon this frame of video, do not decode; The 2nd, on the basis of method one, increase consideration to frame type, if the frame that promptly abandons is the B frame, then subsequent frame continues decoding, if what abandon is I frame or B frame, then abandons follow-up frame continuously and arrives up to next I frame.The demonstration that these two kinds of methods can keep decoded video image as far as possible is demonstration time of requiring of video image around, generally has been used for player commonly used at present, as Windows Media Player, Real Player etc.But if employing method one then when the frame that abandons is reference frame, can cause the subsequent frame decoding error to occur, decoding rear video quality reduces; If the employing method two, existence need abandon the situation of a plurality of frame of video continuously, causes the discontinuous of broadcast and pause easily, influences user's viewing effect.So, how under the limited situation of terminal processing capacity, alleviating the pressure of video decode, the demonstration of avoiding inhomogeneous frame losing to cause pauses, and just has actual application value.
Summary of the invention
The objective of the invention is to: overcome prior art on the terminal of multimedia processing capability deficiency, continuous frame losing causes picture often to pause when carrying out video playback, influence the drawback that the user watches, alleviate the video decode pressure of terminal, improve the fluency of video playback, improve user's viewing effect; Thereby the method that provides a kind of selectivity that is used for video display process video terminal institute receiver, video frame to abandon.
To achieve these goals, the invention provides the static frame loss method in a kind of video playback, be used for the selectivity of video display process video terminal institute receiver, video frame is abandoned, may further comprise the steps:
1), utilize the video decoding capability of benchmark test code stream prediction video terminal, obtain benchmark frame length, wide, three parameters of benchmark frame frequency of reference frame;
2), the input video frame sequence that video terminal received is analyzed, estimate the decoding complex degree of sequence of frames of video, obtain importing frame length, wide, three parameters of input frame frequency of incoming frame;
3), the video decoding capability and the step 2 that obtain according to step 1)) decoding complex degree of the sequence of frames of video that obtains, calculate target and play frame frequency;
4), comparison object plays frame frequency and input frame frequency, judges whether to carry out static frame loss, if the input frame frequency is play frame frequency greater than target, then does the static frame loss operation, carries out next step, otherwise, end operation;
5), the target that obtains according to step 3) is play frame frequency and is calculated frame losing percentage;
6), utilize frame losing percentage to determine frame losing frequency M in the static frame loss filter;
7), at video terminal a counter is set, the initial value of this counter is 0;
8), video terminal receiver, video frame sequence, and the value of described counter and the frame losing frequency M in the described static frame loss filter compared;
If the value of counter does not then abandon current incoming frame less than M, directly input video frame is sent in the decoder and decode;
If the value of counter equals M, then judge the type of current incoming frame, if incoming frame is the B frame, then abandon this frame, and the value zero clearing of counter, if I frame or P frame then do not abandon this frame, and counter added one;
If the value of counter greater than M, is judged the type of incoming frame, if incoming frame is the B frame, then abandons this frame, and the value of counter is changed to the value of counter and the difference of M, if I frame or P frame then do not abandon this frame, and counter added one.
In the technique scheme, in described step 3), described target is play being calculated as of frame frequency:
That target is play frame frequency=benchmark frame length * reference frame is wide * and benchmark frame frequency/input frame length/incoming frame is wide.
In described step 5), being calculated as of described frame losing percentage:
Frame losing percentage=1-target is play frame frequency/input frame frequency.
In described step 6), described frame losing frequency M round numbers, and should satisfy formula simultaneously:
| frame losing percentage * M-1|<| frame losing percentage * (M-1)-1|
| frame losing percentage * M-1|<=| frame losing percentage * (M+1)-1|.
Static frame loss method in the video playback of the present invention has the following advantages:
(1) integral body of the present invention has reduced the complexity of video playback;
(2) the present invention takes into full account the decoding capability and the input video decoding complex degree of terminal, the decoding pressure of the whole playing process of balance;
(3) the present invention has avoided the discontinuous of video playback, reduces video and shows pause;
(4) frame losing carried out according to frame losing filter and video frame type of the present invention both implements that integral body has kept frame losing percentage, has guaranteed to abandon the independence of frame again, and the decoding to all the other frames does not impact, and guarantees the fluency of video playback and demonstration.
Description of drawings
Fig. 1 is a set-top box application scene schematic diagram of the present invention;
Fig. 2 is the position of static frame loss filter in video player;
Fig. 3 is definite process of static frame loss filter;
Fig. 4 is the flow chart of the static frame loss implementation process in the static frame loss method in the video playback of the present invention;
Fig. 5 is the flow chart of the static frame loss method in the video playback of the present invention.
Embodiment
The present invention will be further described below in conjunction with the drawings and specific embodiments.
Static frame loss method in the video playback of the present invention can be applicable in as shown in Figure 1 the scene.Set-top box is sent the Video service request by broadband network to streaming media server, and streaming media server responds this request, and sends video data by network to set-top box, and set-top box is decoded after receiving video data, delivers to television set then and shows.In this scene, the network bandwidth can satisfy the transmission demand of video flowing, and the network receiver module of set-top box also has enough abilities to carry out Data Receiving, but the video decoding capability deficiency of set-top box can't satisfy the total data of video flowing is carried out real-time decoding.Static frame loss method of the present invention just is being applicable to the situation of this video terminal decoding capability deficiency.
In order to reach the effect of video smooth playing, the static frame loss method that in the video player of set-top box, adopts the present invention to propose.Described static frame loss method is mainly realized by the static frame loss filter, the position of static frame loss filter in video player be as shown in Figure 2: compression of video sequence is at first handled by the static frame loss filter, deliver to Video Decoder then, obtain decoding video sequence, decoding video sequence is through forming the display video sequence after the graph rendering.
As shown in Figure 5, the static frame loss method of present embodiment specifically comprises following steps:
1, the decoding capability of prediction video terminal, utilize the video playback ability of benchmark test code stream test machine top box, and video frame length, the frame of video of test code streams frame frequency wide, that set-top box is reached when playing with all strength is made as respectively: benchmark frame length, wide, the benchmark frame frequency of reference frame.The decoding capability of video terminal can be embodied by above-mentioned three parameters.For example, by the test of benchmark code stream, the decoding capability parameter of the set-top box that adopts in the present embodiment is: 352 * 288 * 30, and promptly the benchmark frame length is 352, and reference frame is wide to be 288, and the benchmark frame frequency is 30.
2, the input video frame sequence that set-top box is received is analyzed, and estimates the decoding complex degree of sequence of frames of video.By analysis, can know input frame length, wide, the input frame frequency of incoming frame to sequence of frames of video.For example, the parameter of the video sequence of playing in the present embodiment is: 512 * 384 * 25, and promptly importing frame length is 512, and incoming frame is wide to be 384, and the input frame frequency is 25.
3, utilize the decoding capability of the video terminal that step 1 obtains and the decoding complex degree of the video sequence frame that step 2 obtains, calculate the target of list entries and play frame frequency.The calculating that target is play frame frequency is as shown in Equation (1):
Target is play frame frequency=benchmark frame length * reference frame wide * benchmark frame frequency/input frame length/incoming frame wide (1)
Each parameter in the substitution present embodiment, then
Target is play frame frequency=352 * 288 * 30/512/384=15.5
4, comparison object is play frame frequency and input frame frequency, judges whether to carry out static frame loss.In the present embodiment, because target is play frame frequency (15.5) less than input frame frequency (25), so, need carry out static frame loss.
5, the target that is obtained by step 3 is play frame frequency and is calculated frame losing percentage, the computing formula of described frame losing percentage as shown in Equation (2):
Frame losing percentage=1-target is play frame frequency/input frame frequency (2)
In the present embodiment, frame losing percentage=1-15.5/25=38%
6, utilize frame losing percentage to determine frame losing frequency M in the static frame loss filter, M represents that every input M frame need abandon a frame.For the ease of the enforcement of frame losing, the necessary round numbers of M, and should satisfy formula (3) and formula (4) simultaneously:
| frame losing percentage * M-1|<| frame losing percentage * (M-1)-1| (3)
| frame losing percentage * M-1|<=| frame losing percentage * (M+1)-1| (4)
The determining of M value can adopt enumerative technique, and from numerical value 1, from 1 to (input frame frequency-1) formula above the substitution one by one, running into the numerical value or the numerical value that satisfy formula (3) and (4) is (importing frame frequency-1) time to stop, and this value is defined as M numerical value.
In the present embodiment, frame losing percentage (38%) substitution (3) (4), and to utilize above-mentioned enumerative technique can try to achieve satisfied M value be 3.
7, a counter is set, the initial value of this counter is 0, and the value of counter increases along with the input of frame of video.
8, the value of counter and the M value 3 in the present embodiment are compared, as shown in Figure 4, divide three kinds of situations:
1), if the value of counter less than 3, does not then abandon incoming frame, directly input video frame is sent in the decoder and decodes;
2), if the value of counter equals 3, then judge the type of incoming frame, if incoming frame is the B frame, then abandon this frame, and the value zero clearing of counter, if I frame or P frame then do not abandon this frame, and counter added one;
3), if the value of counter greater than 3, is judged the type of incoming frame, if incoming frame is the B frame, then abandons this frame, and the value of counter be changed to the value of counter and the difference of M, if I frame or P frame then do not abandon this frame, and counter added one.

Claims (1)

1, the static frame loss method in a kind of video playback may further comprise the steps:
1), utilize the video decoding capability of benchmark test code stream prediction video terminal, obtain the benchmark frame length, reference frame is wide and three parameters of benchmark frame frequency, and calculate decoding capability parameter=benchmark frame length * reference frame wide * the benchmark frame frequency;
2), the input video frame sequence that video terminal received is analyzed, estimate the decoding complex degree of sequence of frames of video, obtain importing frame length, incoming frame is wide and input frame frequency three parameters, and calculate decoding complex degree=input frame length * incoming frame wide * import frame frequency;
3), the video decoding capability and the step 2 that obtain according to step 1)) decoding complex degree of the sequence of frames of video that obtains, calculate target and play frame frequency;
Described target is play being calculated as of frame frequency:
That target is play frame frequency=benchmark frame length * reference frame is wide * and benchmark frame frequency/input frame length/incoming frame is wide;
4), comparison object plays frame frequency and input frame frequency, judges whether to carry out static frame loss, if the input frame frequency is play frame frequency greater than target, then does the static frame loss operation, carries out next step, otherwise, end operation;
5), the target that obtains according to step 3) is play frame frequency and is calculated frame losing percentage;
Frame losing percentage=1-target is play frame frequency/input frame frequency;
6), utilize frame losing percentage to determine frame losing frequency M in the static frame loss filter in the video terminal, described frame losing frequency M round numbers, and should satisfy following formula simultaneously:
| frame losing percentage * M-1|<| frame losing percentage * (M-1)-1|
| frame losing percentage * M-1|<=| frame losing percentage * (M+1)-1|;
7), at video terminal a counter is set, the initial value of this counter is 0, and the value of counter increases along with the input of frame of video;
8), video terminal receiver, video frame sequence, and the value of described counter and the frame losing frequency M in the described static frame loss filter compared;
If the value of counter does not then abandon current incoming frame less than M, directly input video frame is sent in the decoder and decode;
If the value of counter equals M, then judge the type of current incoming frame, if incoming frame is the B frame, then abandons this frame, and,, and the value of counter is added one if I frame or P frame then do not abandon this frame the value zero clearing of counter;
If the value of counter greater than M, is judged the type of incoming frame, if incoming frame is the B frame, then abandons this frame, and the value of counter is changed to the value of counter and the difference of M, if I frame or P frame then do not abandon this frame, and the value of counter is added one.
CNB2006100810536A 2006-05-23 2006-05-23 Static frame loss method in video playing Expired - Fee Related CN100515068C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100810536A CN100515068C (en) 2006-05-23 2006-05-23 Static frame loss method in video playing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100810536A CN100515068C (en) 2006-05-23 2006-05-23 Static frame loss method in video playing

Publications (2)

Publication Number Publication Date
CN101079993A CN101079993A (en) 2007-11-28
CN100515068C true CN100515068C (en) 2009-07-15

Family

ID=38907182

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100810536A Expired - Fee Related CN100515068C (en) 2006-05-23 2006-05-23 Static frame loss method in video playing

Country Status (1)

Country Link
CN (1) CN100515068C (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102256138A (en) * 2010-05-18 2011-11-23 安凯(广州)微电子技术有限公司 Method for improving video display effect
CN102263982B (en) * 2010-05-31 2013-09-18 北京创毅视讯科技有限公司 Method and device for improving moving visibility of analogue television
US20110310956A1 (en) * 2010-06-22 2011-12-22 Jian-Liang Lin Methods for controlling video decoder to selectively skip one or more video frames and related signal processing apparatuses thereof
CN102368823A (en) * 2011-06-28 2012-03-07 上海盈方微电子有限公司 Video framedropping strategy based on grading mechanism
CN103310820B (en) * 2012-03-14 2016-03-09 三星电子(中国)研发中心 A kind of method that multimedia player is optimized
CN104185083B (en) * 2013-05-20 2017-08-25 安凯(广州)微电子技术有限公司 A kind of adaptive frame losing method and device
CN104053002A (en) * 2014-06-05 2014-09-17 乐视网信息技术(北京)股份有限公司 Video decoding method and device
WO2016203539A1 (en) * 2015-06-16 2016-12-22 三菱電機株式会社 Image encoding scheme conversion device and image encoding scheme conversion method
CN105142019B (en) * 2015-08-14 2019-06-04 广州市百果园网络科技有限公司 Video encoding/decoding method and device
CN106792154B (en) * 2016-12-02 2020-02-11 广东赛特斯信息科技有限公司 Frame skipping synchronization system of video player and control method thereof
CN112839262A (en) * 2019-11-25 2021-05-25 中兴通讯股份有限公司 EPG UI frame processing method, device, server and storage medium
CN113542795B (en) * 2020-04-21 2023-04-18 腾讯科技(深圳)有限公司 Video processing method and device, electronic equipment and computer readable storage medium
CN112383676B (en) * 2020-11-03 2024-02-09 北京百度网讯科技有限公司 Video file processing method and device, electronic equipment and storage medium
CN114025240B (en) * 2021-10-12 2024-04-23 山东百盟信息技术有限公司 Method and device for determining television equipment capability, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1152242A (en) * 1995-08-02 1997-06-18 松下电器产业株式会社 Image coding device and transmission system and quantization control method and average throughput algorithm thereof
KR20020058635A (en) * 2000-12-30 2002-07-12 오길록 Bandwidth Adaptation Transcording Method using Frame Dropping Ratio
JP2002325254A (en) * 2001-02-26 2002-11-08 Ando Electric Co Ltd Moving image code evaluating apparatus and system
CN1406072A (en) * 2001-08-21 2003-03-26 北京威速科技有限公司 Video-frequency compressed code ratio control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1152242A (en) * 1995-08-02 1997-06-18 松下电器产业株式会社 Image coding device and transmission system and quantization control method and average throughput algorithm thereof
KR20020058635A (en) * 2000-12-30 2002-07-12 오길록 Bandwidth Adaptation Transcording Method using Frame Dropping Ratio
JP2002325254A (en) * 2001-02-26 2002-11-08 Ando Electric Co Ltd Moving image code evaluating apparatus and system
CN1406072A (en) * 2001-08-21 2003-03-26 北京威速科技有限公司 Video-frequency compressed code ratio control method

Also Published As

Publication number Publication date
CN101079993A (en) 2007-11-28

Similar Documents

Publication Publication Date Title
CN100515068C (en) Static frame loss method in video playing
US8111971B2 (en) Systems and methods of reducing media stream delay through independent decoder clocks
CN103210642B (en) Occur during expression switching, to transmit the method for the scalable HTTP streams for reproducing naturally during HTTP streamings
CA2742716C (en) Method and system for determining a quality value of a video stream
CN110662100A (en) Information processing method, device and system and computer readable storage medium
CN101227604A (en) Method for detecting network video quality by network injury tolerance
CN106792154B (en) Frame skipping synchronization system of video player and control method thereof
CN104639955B (en) The method for detecting MPEG2 TS VBR code stream quality problems
CN102217272A (en) Encoder and method for generating a stream of data
JP2008500752A (en) Adaptive decoding of video data
CN104717509B (en) A kind of video encoding/decoding method and device
CN101917613A (en) Acquiring and coding service system of streaming media
CN109168083A (en) A kind of Streaming Media real time playing method and device
CN101998101A (en) Video data receiving and transmitting systems and video data processing method for video telephone
CN103313095A (en) Video transmission method, play method, terminal and server
CN108307248B (en) Video broadcasting method, calculates equipment and storage medium at device
CN100589557C (en) A method for improving response speed of client VCR operation
JP2011015165A (en) Video quality estimating device, system, method and program
CN105491403B (en) For assessing the method and system of realtime video transmission quality
CN100531383C (en) Hierarchical processing method of video frames in video playing
EP3970384B1 (en) Method and apparatus for playing multimedia streaming data
CN101087406A (en) A method and system for instant snap of monitoring system
CN101222625B (en) Method and system for implementing IPTV multi-format mixed channel time shifting
CN111836071B (en) Multimedia processing method and device based on cloud conference and storage medium
CN114025171A (en) Video processing method and device, terminal equipment and storage medium

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
ASS Succession or assignment of patent right

Owner name: BEIJING ZHONGKE CHINA FILM MEDIA TECHNOLOGY CO., L

Free format text: FORMER OWNER: BEIJING YISHIWEI INFORMATION TECHNOLOGY CO., LTD.

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20100609

Address after: 100080, No. 21 West Fourth Ring Road, Beijing, Haidian District

Co-patentee after: Beijing Zhongke Chinese Shadow Media Technology Co.,Ltd.

Patentee after: Institute of acoustics, Chinese Academy of Sciences

Address before: 100080, No. 21 West Fourth Ring Road, Beijing, Haidian District

Co-patentee before: Beijing EZTV Technology Co., Ltd.

Patentee before: Institute of acoustics, Chinese Academy of Sciences

C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090715

Termination date: 20110523