CN104618794A - Method and device for playing video - Google Patents

Method and device for playing video Download PDF

Info

Publication number
CN104618794A
CN104618794A CN201410178603.0A CN201410178603A CN104618794A CN 104618794 A CN104618794 A CN 104618794A CN 201410178603 A CN201410178603 A CN 201410178603A CN 104618794 A CN104618794 A CN 104618794A
Authority
CN
China
Prior art keywords
frame
time point
target image
image frame
interval
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
Application number
CN201410178603.0A
Other languages
Chinese (zh)
Other versions
CN104618794B (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.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201410178603.0A priority Critical patent/CN104618794B/en
Publication of CN104618794A publication Critical patent/CN104618794A/en
Application granted granted Critical
Publication of CN104618794B publication Critical patent/CN104618794B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping

Abstract

The invention discloses a method and a device for playing a video and belongs to the field of Internet. The method comprises the steps of receiving a skip request which carries a skip time point, selecting a target image frame satisfying a preset condition of time difference with the skip time point from the key frame of the current video and a plurality of pre-marked interval prediction frames, and playing the current video from the target image frame, wherein every two interface prediction frames are spaced by at least one image frame and the number of the interval frames is smaller than the number of the interval frames of the key frame, and the reference image frame of each interval prediction frame is the key frame or other interval prediction frame. According to the method, the skip accuracy of the video can be improved.

Description

The method and apparatus of displaying video
Technical field
The present invention relates to Internet technical field, particularly a kind of method and apparatus of displaying video.
Background technology
Along with the development of video technique, Video coding and decoding technique are that the storage of video file brings facility.Picture frame in the video of coding can comprise I frame (Important frame, key frame), P frame (Predictive frame, predictive frame) and B frame (Bidirectional predictive frame, bi-directional predicted frames).Correspondingly, when decoding to video, I frame directly can be decoded based on the data of self, P frame and B frame need the decoding data based on the reference image frame of its correspondence, the reference image frame of P frame is the picture frame before this P frame, any two picture frames before the reference image frame of B frame is this B frame or after this B frame.Usually, when carrying out Video coding, can arrange I frame period frame number, to regulate the density of I frame in video, I frame period frame number is the number of the picture frame (P frame and B frame) of other type at interval between adjacent two I frames.
In the process of displaying video; user usually can carry out skip operation to the video of current broadcasting; namely user is by clicking any position on the progress bar in current video, to make terminal, the video of current broadcasting is jumped to by a play time play time that user specifies and continues to play.When user carries out redirect to current video, the position that terminal is clicked on a progress bar according to the duration of current video and user, determine redirect time point, terminal is according to the time point of I frames all in the current video prestored, determine the I frame be positioned at before redirect time point, and be arranged in the I frame before redirect time point, determine the target I frame minimum with the time difference of redirect time point, terminal, from target I frame, plays this video.Although I frame is based on the decoding data of self, but the data volume of I frame is general larger, when carrying out Video coding, if the density of the I frame arranged in video is larger, the compression ratio of video can be caused lower, in order to ensure the compression ratio of video, what generally the time interval between adjacent two I frames can be arranged was larger, as 10 seconds.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
Because the time interval of adjacent two I frames is all comparatively large, there is the situation that the time difference of target I frame and redirect time point is larger possibly, often can reach 4 seconds or 5 seconds, make the jump accuracy of video lower like this.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of method and apparatus of displaying video.Described technical scheme is as follows:
First aspect, provides a kind of method of displaying video, and described method comprises:
Receive jump request, in described jump request, carry redirect time point;
According to described redirect time point, in the key frame and multiple interval predictive frame marked in advance of current video, choose the target image frame meeting default time difference condition with described redirect time point; Wherein, each interval predictive frame is separated with at least one picture frame between any two and interval frame number is less than key frame interval frame number, and the reference image frame of each interval predictive frame is key frame or other interval predictive frame;
From described target image frame, play described current video.
Second aspect, provides a kind of device of displaying video, and described device comprises:
Receiver module, for receiving jump request, carries redirect time point in described jump request;
Choose module, for according to described redirect time point, in the key frame and multiple interval predictive frame marked in advance of current video, choose the target image frame meeting default time difference condition with described redirect time point; Wherein, each interval predictive frame is separated with at least one picture frame between any two and interval frame number is less than key frame interval frame number, and the reference image frame of each interval predictive frame is key frame or other interval predictive frame;
Playing module, for from described target image frame, plays described current video.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
In the embodiment of the present invention, receive jump request, redirect time point is carried in jump request, according to redirect time point, in the key frame and multiple interval predictive frame marked in advance of current video, choose the target image frame meeting default time difference condition with redirect time point, wherein, each interval predictive frame is separated with at least one picture frame between any two and interval frame number is less than key frame interval frame number, and the reference image frame of each interval predictive frame is key frame or other interval predictive frame, from target image frame, play current video, like this, time difference due to adjacent two interval predictive frames is less than time difference of adjacent two key frames, therefore, the time point of target image frame is less than or equal to the time difference of time point to redirect time point of Target key frames in prior art to time difference of redirect time point, thus, the jump accuracy of video can be improved.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of a kind of displaying video that the embodiment of the present invention provides;
Fig. 2 is a kind of picture frame arrangement schematic diagram that the embodiment of the present invention provides;
Fig. 3 is the apparatus structure schematic diagram of a kind of displaying video that the embodiment of the present invention provides;
Fig. 4 is a kind of terminal structure schematic diagram that the embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Embodiments provide a kind of method of displaying video, as shown in Figure 1, the handling process of the method can comprise following step:
Step 101, receives jump request, carries redirect time point in jump request.
Step 102, according to redirect time point, in the I frame and multiple interval P frame (interval predictive frame) marked in advance of current video, chooses the target image frame meeting default time difference condition with redirect time point; Wherein, each interval P frame is separated with at least one picture frame between any two and interval frame number is less than I frame period frame number, and the reference image frame of each interval P frame is I frame or other interval P frame.
Step 103, from target image frame, plays current video.
In the embodiment of the present invention, receive jump request, redirect time point is carried in jump request, according to redirect time point, in the I frame and multiple interval P frame marked in advance of current video, choose the target image frame meeting default time difference condition with redirect time point, wherein, each interval P frame is separated with at least one picture frame between any two and interval frame number is less than I frame period frame number, and the reference image frame of each interval P frame is I frame or other interval P frame, from target image frame, play current video, like this, time difference due to adjacent two interval P frames is less than time difference of adjacent two I frames, therefore, the time point of target image frame is less than or equal to the time difference of time point to redirect time point of target I frame in prior art to time difference of redirect time point, thus, the jump accuracy of video can be improved.
Embodiment two
Embodiments provide a kind of method of displaying video, the method can be realized by terminal.Terminal wherein can be the terminal with displaying video function, as mobile phone, panel computer etc.
Below in conjunction with embodiment, be described in detail the handling process shown in Fig. 1, content can be as follows:
Step 101, receives jump request, carries redirect time point in jump request.
In force, user is by the video player displaying video in terminal, this video can be the local video that terminal local stores, also can be the Internet video from server Real-time Obtaining, now, video player can obtain the duration of the video of current broadcasting, this duration can be presented on the progress bar of video player.I frame, P frame and B frame can be comprised in encoded video, decoder is carried in video player, for decoding to the picture frame in video, the decoder that the video of different video file formats is corresponding can be different, and, the time point of the I frame in corresponding format video can be preserved in decoder, such as, video file format is mp4 (Moving Pictures Experts Group4, dynamic image expert group 4) decoder corresponding to video STBL (Sample Table Box, sample watchcase) field in have recorded the time point of I frame.
When user need by video by current point in time jump to play time that this user specifies play time, user can click a certain position on the progress bar in video player, then, according to the position that duration and the user of current video click on a progress bar, determine redirect time point, such as, the duration of current video is L, if progress bar is divided into 100 unit lengths in advance, the position that user clicks on a progress bar is positioned at a kth unit length, then redirect time point T1=L × k/100, in the process calculated, the result of redirect time point T1 can be accurate to microsecond, to improve the precision of redirect time point.Now can trigger the jump request generating and carry redirect time point, video player receives jump request.Can display reminding information in the interface of video player, such as, load video data etc.
Step 102, according to redirect time point, in the I frame and multiple interval P frame (interval predictive frame) marked in advance of current video, chooses the target image frame meeting default time difference condition with redirect time point; Wherein, each interval P frame is separated with at least one picture frame between any two and interval frame number is less than I frame period frame number, and the reference image frame of each interval P frame is I frame or other interval P frame.
Wherein, interval P frame is a kind of special P frame, and interval P frame can be on the basis of P frame, add an extra mark, to mark this P frame for interval P frame.Preferably, the reference image frame of interval P frame can be this interval P frame before I frame immediate with it, or other interval P frame between this interval P frame and this I frame, such as, interval immediate with it P frame before the P frame of this interval.When encoding to video, the reference image frame that can arrange the arbitrary picture frame after the P frame of interval is not the picture frame before the P frame of this interval.Interval P frame can also be called LDP (Long Distance Predictive predicts at a distance) frame.
Alternatively, the time difference condition preset can for be less than predetermined threshold value with the time difference of redirect time point, or can be less than other picture frame in the I frame of current video and multiple interval P frame marked in advance with the time difference of redirect time point.
Choose in above-mentioned steps 102 target image frame processing mode can be varied, the following provide several optional processing mode, specific as follows:
Mode one, from target I frame, search the picture frame meeting the time difference condition preset backward one by one, this processing mode can comprise the following steps one ~ step 2:
Step one, according to redirect time point, at the I frame be arranged in before redirect time point of current video, determines the target I frame minimum with the time difference of redirect time point.
In force, according to the time point of the I frame of current video, determine the I frame be positioned at before redirect time point, and the time point of the I frame be positioned at before redirect time point and redirect time point are made comparisons, find the I frame minimum with the time difference of redirect time point, as target I frame.
Alternatively, the video play for video player is the situation of Internet video, after video player determination target I frame, video data request can be sent to the server of Internet video, the time point of target I frame is carried in this video data request, when the server of Internet video receives video data request, the picture frame after target I frame and target I frame can be sent to terminal successively according to broadcasting sequential.
Step 2, according to broadcasting sequential, in target I frame and the interval P frame marked in advance after which, searches the target image frame meeting default time difference condition with redirect time point backward from target I frame.
In force, for preset time difference condition be the situation being less than predetermined threshold value with the time difference of redirect time point, the time point of target I frame and redirect time point can be done subtraction calculations, obtain the time difference, whether this time difference of terminal judges is less than predetermined threshold value, if this time difference is less than predetermined threshold value, then target I frame is defined as target image frame, if this time difference is not less than predetermined threshold value, then can the picture frame after target I frame be searched one by one, in the process of searching, for the picture frame of first after target I frame (can be described as the first picture frame), first can judge whether the first picture frame is LDP frame according to the coded message in the first picture frame, if the first picture frame is not LDP frame, then continue to judge the next picture frame of the first picture frame, if the first picture frame is LDP frame, then judge whether the time point of the first picture frame and the time difference of redirect time point are less than predetermined threshold value, if this time difference is less than predetermined threshold value, then the first picture frame is defined as target image frame, if this time difference is not less than predetermined threshold value, then continue to judge the next picture frame of the first picture frame, until find the picture frame being less than predetermined threshold value with the time difference of redirect time point, as target image frame.Wherein, the mark of the mark of this picture frame and the reference image frame of this picture frame can be carried in the coded message of picture frame.
It is the situation of other picture frame be less than with the time difference of redirect time point in the I frame of current video and multiple interval P frame marked in advance for the time difference condition preset, after determining target I frame, can search one by one the picture frame after target I frame from target I frame, until find the I frame or LDP frame that are positioned at redirect time point, then in the LDP frame and/or I frame of target I frame and search procedure process, determine the picture frame minimum with the time difference of redirect time point, as target image frame.
Alternatively, the processing procedure of above-mentioned steps two can also comprise following process: in the process of searching backward from target I frame, decodes to each interval P frame of target I frame and search procedure process.
In force, video player is decoded to target I frame, obtains the decoded data of target I frame, then, in the process judged the picture frame after target I frame, can decode, until find target image frame to the LDP frame searched.
Mode two, according to the I frame of the current video prestored and the time point of multiple interval P frame marked in advance, and redirect time point, in the I frame and multiple interval P frame marked in advance of current video, choose the target image frame meeting default time difference condition with redirect time point.
In force, can set up LDP frame time table in advance, for the time point of LDP frame each in recording of video, this LDP frame time table can be kept in video file, also can be preserved by independent timetable file.For Internet video, LDP frame time table when terminal request playing network video, can send to terminal, by terminal storage in this locality by the server of Internet video.In the process of searching target image frame, for local video, terminal then can obtain LDP frame time table from video file or timetable file, and for Internet video, terminal then can read and is obtained from server in advance and is stored in local LDP frame time table.Then, terminal obtains the time point of each LDP frame in video from LDP frame time table.Simultaneously, the time point of the I frame of current video can be obtained from the decoder of video player, and then, the time point of each I frame and the time difference of redirect time point can be calculated, and the time difference of the time point of each LDP frame and redirect time point, and the picture frame that the time difference determining to meet the time difference condition preset from the time difference obtained is corresponding, as target image frame.
Step 103, from target image frame, plays current video.
In force, for searching in the process of target image frame, to the situation that each LDP frame of target I frame and search procedure process is decoded, the decoded data of target image frame has been obtained in search procedure, when performing step 103, video player according to the decoded data of target image frame, can be decoded to the picture frame after target image frame successively, and from target image frame, play current video.
Or preferably, step 103 can also comprise other multiple processing mode, the following provide another kind of optional processing mode, specific as follows:
For the situation of target image frame to be the situation of I frame and target image frame be interval P frame, different processing modes can be adopted respectively:
Process one, if target image frame is I frame, then directly to decode to target image frame, and from target image frame, plays current video.
In force, terminal can obtain the coded message of target image frame, by the mark of the target image frame in coded message, judge whether target image frame is I frame, if target image frame is I frame, then video player is by the data of target image frame self, target image frame is decoded, then successively each picture frame after this target image frame is decoded, and from target image frame, video player shows the data of decoding and obtaining successively according to playing sequential, thus plays current video.
Process two, if target image frame is interval P frame, then according to the reference image frame recorded in target image frame, determine at least one picture frame needed for decoding target pictures frame, according to the picture frame determined, target image frame is decoded, and from target image frame, play current video.
In force, if target image frame is not I frame, but during LDP frame, video player obtains the coded message of target image frame, according to the mark of the reference image frame recorded in coded message, determine the reference image frame (can be described as the second picture frame) of target image frame, video player obtains the coded message of the second picture frame, and judge the second picture frame whether as I frame, if the second picture frame is I frame, then video player is decoded to the second picture frame, obtain the decoded data of the second picture frame, then according to the decoded data of the second picture frame, target image frame is decoded, thus obtain the decoded data of target image frame, then from target image frame, according to broadcasting sequential, respectively the picture frame after target image frame is decoded, video player shows the data of decoding and obtaining successively according to playing sequential, thus broadcasting current video, if the second picture frame is not I frame, then continue the deterministic process of carrying out as above to the reference image frame of the second picture frame, the rest may be inferred.
As shown in Figure 2, in figure, the picture frame of arrow points is the reference image frame of the initial picture frame of arrow, and p0 is I frame, p4 is LDP frame, p11 is LDP frame, and the reference image frame of p4 is I frame, and the reference image frame of p11 is p4, if the picture frame that redirect time point is corresponding is p10, and target image frame is p11, then the picture frame that video player can be decoded successively is p0, p4, p11, then, from p11, play current video.Like this, other picture frame between not needing p0, p4, p11 three is decoded, and therefore, decreases the number of the picture frame needing decoding, can improve treatment effeciency.
In the embodiment of the present invention, receive jump request, redirect time point is carried in jump request, according to redirect time point, in the key frame and multiple interval predictive frame marked in advance of current video, choose the target image frame meeting default time difference condition with redirect time point, wherein, each interval predictive frame is separated with at least one picture frame between any two and interval frame number is less than key frame interval frame number, and the reference image frame of each interval predictive frame is key frame or other interval predictive frame, from target image frame, play current video, like this, time difference due to adjacent two interval predictive frames is less than time difference of adjacent two key frames, therefore, the time point of target image frame is less than or equal to the time difference of time point to redirect time point of Target key frames in prior art to time difference of redirect time point, thus, the jump accuracy of video can be improved.
Embodiment three
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind of device of displaying video, and as shown in Figure 3, this device comprises:
Receiver module 310, for receiving jump request, carries redirect time point in jump request;
Choose module 320, for according to redirect time point, in the I frame and multiple interval P frame marked in advance of current video, choose the target image frame meeting default time difference condition with redirect time point; Wherein, each interval P frame is separated with at least one picture frame between any two and interval frame number is less than I frame period frame number, and the reference image frame of each interval P frame is I frame or other interval P frame;
Playing module 330, for from target image frame, plays current video.
Alternatively, choose module 320, for:
According to redirect time point, at the I frame be arranged in before redirect time point of current video, determine the target I frame minimum with the time difference of redirect time point;
According to broadcasting sequential, in target I frame and the interval P frame marked in advance after which, from target I frame, search the target image frame meeting default time difference condition with redirect time point backward.
Alternatively, this device also comprises decoder module, for:
In the process of searching backward from target I frame, each interval P frame of target I frame and search procedure process is decoded.
Alternatively, choose module 320, for:
According to the I frame of the current video prestored and the time point of multiple interval P frame marked in advance, and redirect time point, in the I frame and multiple interval P frame marked in advance of current video, choose the target image frame meeting default time difference condition with redirect time point.
Alternatively, the time difference condition preset, comprising:
Predetermined threshold value is less than with the time difference of redirect time point; Or,
Other picture frame in the I frame of current video and multiple interval P frame marked in advance is less than with the time difference of redirect time point.
Alternatively, playing module 330, for:
If target image frame is I frame, then direct target image frame to be decoded, and from target image frame, play current video; Or,
If target image frame is interval P frame, then according to the reference image frame recorded in target image frame, determine at least one picture frame needed for decoding target pictures frame, according to the picture frame determined, target image frame is decoded, and from target image frame, plays current video.
In the embodiment of the present invention, receive jump request, redirect time point is carried in jump request, according to redirect time point, in the key frame and multiple interval predictive frame marked in advance of current video, choose the target image frame meeting default time difference condition with redirect time point, wherein, each interval predictive frame is separated with at least one picture frame between any two and interval frame number is less than key frame interval frame number, and the reference image frame of each interval predictive frame is key frame or other interval predictive frame, from target image frame, play current video, like this, time difference due to adjacent two interval predictive frames is less than time difference of adjacent two key frames, therefore, the time point of target image frame is less than or equal to the time difference of time point to redirect time point of Target key frames in prior art to time difference of redirect time point, thus, the jump accuracy of video can be improved.
It should be noted that: the device of the displaying video that above-described embodiment provides is when displaying video, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by terminal is divided into different functional modules, to complete all or part of function described above.In addition, the device of the displaying video that above-described embodiment provides and the embodiment of the method for displaying video belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Embodiment four
Please refer to Fig. 4, it illustrates the terminal structure schematic diagram of the displaying video involved by the embodiment of the present invention, this terminal may be used for the method implementing the displaying video provided in above-described embodiment.Specifically:
Terminal 400 can comprise RF (Radio Frequency, radio frequency) circuit 110, the memory 120 including one or more computer-readable recording mediums, input unit 130, display unit 140, transducer 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include the parts such as processor 180 and power supply 190 that more than or processes core.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in Fig. 4, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
RF circuit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, transfer to more than one or one processor 180 to process; In addition, base station is sent to by relating to up data.Usually, RF circuit 110 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low noise amplifier), duplexer etc.In addition, RF circuit 110 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, code division multiple access), WCDMA (Wideband CodeDivision Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.
Memory 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of memory 120 by running, thus performs the application of various function and data processing.Memory 120 mainly can comprise storage program district and store data field, and wherein, storage program district can storage operation system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal 400.In addition, memory 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 120 can also comprise Memory Controller, to provide the access of processor 180 and input unit 130 pairs of memories 120.
Input unit 130 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, action bars, optics or trace ball signal and inputs.Particularly, input unit 130 can comprise Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 131 or near Touch sensitive surface 131 such as finger, stylus) thereon, and drive corresponding jockey according to the formula preset.Optionally, Touch sensitive surface 131 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 180, and the order that energy receiving processor 180 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 131.Except Touch sensitive surface 131, input unit 130 can also comprise other input equipments 132.Particularly, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
Display unit 140 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal 400 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 140 can comprise display floater 141, optionally, the form such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) can be adopted to configure display floater 141.Further, Touch sensitive surface 131 can cover display floater 141, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, send processor 180 to determine the type of touch event, on display floater 141, provide corresponding vision to export with preprocessor 180 according to the type of touch event.Although in the diagram, Touch sensitive surface 131 and display floater 141 be as two independently parts realize input and input function, in certain embodiments, can by Touch sensitive surface 131 and display floater 141 integrated and realize input and output function.
Terminal 400 also can comprise at least one transducer 150, such as optical sensor, motion sensor and other transducers.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display floater 141, proximity transducer when terminal 400 moves in one's ear, can cut out display floater 141 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as pedometer, knock) etc.; As for terminal 400 also other transducers such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 160, loud speaker 161, microphone 162 can provide the audio interface between user and terminal 400.Voicefrequency circuit 160 can by receive voice data conversion after the signal of telecommunication, be transferred to loud speaker 161, by loud speaker 161 be converted to voice signal export; On the other hand, the voice signal of collection is converted to the signal of telecommunication by microphone 162, voice data is converted to after being received by voicefrequency circuit 160, after again voice data output processor 180 being processed, through RF circuit 110 to send to such as another terminal, or export voice data to memory 120 to process further.Voicefrequency circuit 160 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and terminal 400.
WiFi belongs to short range wireless transmission technology, and by WiFi module 170, terminal 400 can help that user sends and receive e-mail, browsing page and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 4 shows WiFi module 170, be understandable that, it does not belong to must forming of terminal 400, can omit in the scope of essence not changing invention as required completely.
Processor 180 is control centres of terminal 400, utilize the various piece of various interface and the whole mobile phone of connection, software program in memory 120 and/or module is stored in by running or performing, and call the data be stored in memory 120, perform various function and the deal with data of terminal 400, thus integral monitoring is carried out to mobile phone.Optionally, processor 180 can comprise one or more process core; Preferably, processor 180 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 180.
Terminal 400 also comprises the power supply 190 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal 400 can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, the display unit of terminal 400 is touch-screen displays, terminal 400 also includes memory, and one or more than one program, one of them or more than one program are stored in memory, and are configured to be performed by more than one or one processor state more than one or one program package containing the instruction for carrying out following operation:
Receive jump request, in jump request, carry redirect time point;
According to redirect time point, in the I frame and multiple interval P frame marked in advance of current video, choose the target image frame meeting default time difference condition with redirect time point; Wherein, each interval P frame is separated with at least one picture frame between any two and interval frame number is less than I frame period frame number, and the reference image frame of each interval P frame is I frame or other interval P frame;
From target image frame, play current video.
Alternatively, according to redirect time point, in the I frame and multiple interval P frame marked in advance of current video, choose the target image frame meeting default time difference condition with redirect time point, comprising:
According to redirect time point, at the I frame be arranged in before redirect time point of current video, determine the target I frame minimum with the time difference of redirect time point;
According to broadcasting sequential, in target I frame and the interval P frame marked in advance after which, from target I frame, search the target image frame meeting default time difference condition with redirect time point backward.
Alternatively, the method also comprises:
In the process of searching backward from target I frame, each interval P frame of target I frame and search procedure process is decoded.
Alternatively, according to redirect time point, in the I frame and multiple interval P frame marked in advance of current video, choose the target image frame meeting default time difference condition with redirect time point, comprising:
According to the I frame of the current video prestored and the time point of multiple interval P frame marked in advance, and redirect time point, in the I frame and multiple interval P frame marked in advance of current video, choose the target image frame meeting default time difference condition with redirect time point.
Alternatively, the time difference condition preset, comprising:
Predetermined threshold value is less than with the time difference of redirect time point; Or,
Other picture frame in the I frame of current video and multiple interval P frame marked in advance is less than with the time difference of redirect time point.
Alternatively, from target image frame, play current video, comprising:
If target image frame is I frame, then direct target image frame to be decoded, and from target image frame, play current video; Or,
If target image frame is interval P frame, then according to the reference image frame recorded in target image frame, determine at least one picture frame needed for decoding target pictures frame, according to the picture frame determined, target image frame is decoded, and from target image frame, plays current video.
In the embodiment of the present invention, receive jump request, redirect time point is carried in jump request, according to redirect time point, in the key frame and multiple interval predictive frame marked in advance of current video, choose the target image frame meeting default time difference condition with redirect time point, wherein, each interval predictive frame is separated with at least one picture frame between any two and interval frame number is less than key frame interval frame number, and the reference image frame of each interval predictive frame is key frame or other interval predictive frame, from target image frame, play current video, like this, time difference due to adjacent two interval predictive frames is less than time difference of adjacent two key frames, therefore, the time point of target image frame is less than or equal to the time difference of time point to redirect time point of Target key frames in prior art to time difference of redirect time point, thus, the jump accuracy of video can be improved.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. a method for displaying video, is characterized in that, described method comprises:
Receive jump request, in described jump request, carry redirect time point;
According to described redirect time point, in the key frame and multiple interval predictive frame marked in advance of current video, choose the target image frame meeting default time difference condition with described redirect time point; Wherein, each interval predictive frame is separated with at least one picture frame between any two and interval frame number is less than key frame interval frame number, and the reference image frame of each interval predictive frame is key frame or other interval predictive frame;
From described target image frame, play described current video.
2. method according to claim 1, it is characterized in that, described according to described redirect time point, in the key frame and multiple interval predictive frame marked in advance of current video, choose the target image frame meeting default time difference condition with described redirect time point, comprising:
According to described redirect time point, at the key frame be arranged in before described redirect time point of current video, determine the Target key frames minimum with the time difference of described redirect time point;
According to broadcasting sequential, in described Target key frames and the interval predictive frame marked in advance after which, from described Target key frames, search the target image frame meeting default time difference condition with described redirect time point backward.
3. method according to claim 2, is characterized in that, described method also comprises:
In the process of searching backward from described Target key frames, each interval predictive frame of described Target key frames and search procedure process is decoded.
4. method according to claim 1, it is characterized in that, described according to described redirect time point, in the key frame and multiple interval predictive frame marked in advance of current video, choose the target image frame meeting default time difference condition with described redirect time point, comprising:
According to the key frame of the current video prestored and the time point of multiple interval predictive frame marked in advance, and described redirect time point, in the key frame and multiple interval predictive frame marked in advance of described current video, choose the target image frame meeting default time difference condition with described redirect time point.
5. method according to claim 1, is characterized in that, described default time difference condition, comprising:
Predetermined threshold value is less than with the time difference of described redirect time point; Or,
Other picture frame in the key frame of described current video and multiple interval predictive frame marked in advance is less than with the time difference of described redirect time point.
6. method according to claim 1, is characterized in that, described from described target image frame, plays described current video, comprising:
If described target image frame is key frame, then direct described target image frame to be decoded, and from described target image frame, play described current video; Or,
If described target image frame is described interval predictive frame, then according to the reference image frame recorded in described target image frame, determine at least one picture frame of decoding needed for described target image frame, according to the picture frame determined, described target image frame is decoded, and from described target image frame, play described current video.
7. a device for displaying video, is characterized in that, described device comprises:
Receiver module, for receiving jump request, carries redirect time point in described jump request;
Choose module, for according to described redirect time point, in the key frame and multiple interval predictive frame marked in advance of current video, choose the target image frame meeting default time difference condition with described redirect time point; Wherein, each interval predictive frame is separated with at least one picture frame between any two and interval frame number is less than key frame interval frame number, and the reference image frame of each interval predictive frame is key frame or other interval predictive frame;
Playing module, for from described target image frame, plays described current video.
8. device according to claim 7, is characterized in that, described in choose module, for:
According to described redirect time point, at the key frame be arranged in before described redirect time point of current video, determine the Target key frames minimum with the time difference of described redirect time point;
According to broadcasting sequential, in described Target key frames and the interval predictive frame marked in advance after which, from described Target key frames, search the target image frame meeting default time difference condition with described redirect time point backward.
9. device according to claim 8, is characterized in that, described device also comprises decoder module, for:
In the process of searching backward from described Target key frames, each interval predictive frame of described Target key frames and search procedure process is decoded.
10. device according to claim 7, is characterized in that, described in choose module, for:
According to the key frame of the current video prestored and the time point of multiple interval predictive frame marked in advance, and described redirect time point, in the key frame and multiple interval predictive frame marked in advance of described current video, choose the target image frame meeting default time difference condition with described redirect time point.
11. devices according to claim 7, is characterized in that, described default time difference condition, comprising:
Predetermined threshold value is less than with the time difference of described redirect time point; Or,
Other picture frame in the key frame of described current video and multiple interval predictive frame marked in advance is less than with the time difference of described redirect time point.
12. devices according to claim 7, is characterized in that, described playing module, for:
If described target image frame is key frame, then direct described target image frame to be decoded, and from described target image frame, play described current video; Or,
If described target image frame is described interval predictive frame, then according to the reference image frame recorded in described target image frame, determine at least one picture frame of decoding needed for described target image frame, according to the picture frame determined, described target image frame is decoded, and from described target image frame, play described current video.
CN201410178603.0A 2014-04-29 2014-04-29 The method and apparatus for playing video Active CN104618794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410178603.0A CN104618794B (en) 2014-04-29 2014-04-29 The method and apparatus for playing video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410178603.0A CN104618794B (en) 2014-04-29 2014-04-29 The method and apparatus for playing video

Publications (2)

Publication Number Publication Date
CN104618794A true CN104618794A (en) 2015-05-13
CN104618794B CN104618794B (en) 2018-08-03

Family

ID=53153037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410178603.0A Active CN104618794B (en) 2014-04-29 2014-04-29 The method and apparatus for playing video

Country Status (1)

Country Link
CN (1) CN104618794B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704527A (en) * 2016-01-20 2016-06-22 努比亚技术有限公司 Terminal and method for video frame positioning for terminal
CN107155138A (en) * 2017-06-06 2017-09-12 深圳Tcl数字技术有限公司 Video playback jump method, equipment and computer-readable recording medium
CN108184126A (en) * 2017-12-27 2018-06-19 生迪智慧科技有限公司 Video coding and coding/decoding method, the encoder and decoder of snapshot image
CN108737908A (en) * 2018-05-21 2018-11-02 腾讯科技(深圳)有限公司 A kind of media playing method, device and storage medium
WO2019170073A1 (en) * 2018-03-05 2019-09-12 青岛海信传媒网络技术有限公司 Media playback
CN110248245A (en) * 2019-06-21 2019-09-17 维沃移动通信有限公司 A kind of video locating method, device, mobile terminal and storage medium
CN110719524A (en) * 2019-10-16 2020-01-21 腾讯科技(深圳)有限公司 Video playing method and device, intelligent playing equipment and storage medium
CN111131901A (en) * 2019-12-05 2020-05-08 北京奇艺世纪科技有限公司 Method, apparatus, computer device and storage medium for processing long video data
US10705709B2 (en) 2018-03-05 2020-07-07 Qingdao Hisense Media Network Technology Co., Ltd. Playing media
WO2020147521A1 (en) * 2019-01-15 2020-07-23 北京字节跳动网络技术有限公司 Image display method and apparatus
CN111684816A (en) * 2019-05-15 2020-09-18 深圳市大疆创新科技有限公司 Video decoding method, video decoding device, storage medium, and electronic apparatus
CN112995698A (en) * 2021-05-19 2021-06-18 浙江华创视讯科技有限公司 Video playing method, client, service platform and intelligent conference system
CN114245231A (en) * 2021-12-21 2022-03-25 威创集团股份有限公司 Multi-video synchronous skipping method, device, equipment and readable storage medium
CN115412769A (en) * 2021-05-28 2022-11-29 福建天泉教育科技有限公司 Method and terminal for improving triggering precision of whole second of browser video playing

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184232A (en) * 2006-11-13 2008-05-21 中兴通讯股份有限公司 Method of switching video sequence using switch frame
CN101370139A (en) * 2007-08-17 2009-02-18 华为技术有限公司 Method and device for switching channels
CN102780919A (en) * 2012-08-24 2012-11-14 乐视网信息技术(北京)股份有限公司 Method for carrying out video location and displaying through key frame
US20130071097A1 (en) * 2007-12-19 2013-03-21 Advanced Micro Devices, Inc. Efficient video decoding migration for multiple graphics processor systems
CN103491387A (en) * 2012-06-14 2014-01-01 深圳市快播科技有限公司 System, on-demand unicast terminal and method for video positioning

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184232A (en) * 2006-11-13 2008-05-21 中兴通讯股份有限公司 Method of switching video sequence using switch frame
CN101370139A (en) * 2007-08-17 2009-02-18 华为技术有限公司 Method and device for switching channels
US20130071097A1 (en) * 2007-12-19 2013-03-21 Advanced Micro Devices, Inc. Efficient video decoding migration for multiple graphics processor systems
CN103491387A (en) * 2012-06-14 2014-01-01 深圳市快播科技有限公司 System, on-demand unicast terminal and method for video positioning
CN102780919A (en) * 2012-08-24 2012-11-14 乐视网信息技术(北京)股份有限公司 Method for carrying out video location and displaying through key frame

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704527A (en) * 2016-01-20 2016-06-22 努比亚技术有限公司 Terminal and method for video frame positioning for terminal
CN107155138A (en) * 2017-06-06 2017-09-12 深圳Tcl数字技术有限公司 Video playback jump method, equipment and computer-readable recording medium
CN108184126A (en) * 2017-12-27 2018-06-19 生迪智慧科技有限公司 Video coding and coding/decoding method, the encoder and decoder of snapshot image
US10705709B2 (en) 2018-03-05 2020-07-07 Qingdao Hisense Media Network Technology Co., Ltd. Playing media
WO2019170073A1 (en) * 2018-03-05 2019-09-12 青岛海信传媒网络技术有限公司 Media playback
CN108737908A (en) * 2018-05-21 2018-11-02 腾讯科技(深圳)有限公司 A kind of media playing method, device and storage medium
CN108737908B (en) * 2018-05-21 2021-11-30 腾讯科技(深圳)有限公司 Media playing method, device and storage medium
GB2594214B (en) * 2019-01-15 2023-05-03 Beijing Bytedance Network Tech Co Ltd Image display method and apparatus
US11482257B2 (en) 2019-01-15 2022-10-25 Beijing Bytedance Network Technology Co., Ltd. Image display method and apparatus
WO2020147521A1 (en) * 2019-01-15 2020-07-23 北京字节跳动网络技术有限公司 Image display method and apparatus
GB2594214A (en) * 2019-01-15 2021-10-20 Beijing Bytedance Network Tech Co Ltd Image display method and apparatus
CN111684816A (en) * 2019-05-15 2020-09-18 深圳市大疆创新科技有限公司 Video decoding method, video decoding device, storage medium, and electronic apparatus
WO2020227994A1 (en) * 2019-05-15 2020-11-19 深圳市大疆创新科技有限公司 Video decoding method, video decoding apparatus, storage medium and electronic device
CN110248245A (en) * 2019-06-21 2019-09-17 维沃移动通信有限公司 A kind of video locating method, device, mobile terminal and storage medium
CN110719524B (en) * 2019-10-16 2022-02-01 腾讯科技(深圳)有限公司 Video playing method and device, intelligent playing equipment and storage medium
CN110719524A (en) * 2019-10-16 2020-01-21 腾讯科技(深圳)有限公司 Video playing method and device, intelligent playing equipment and storage medium
CN111131901B (en) * 2019-12-05 2022-07-12 北京奇艺世纪科技有限公司 Method, apparatus, computer device and storage medium for processing long video data
CN111131901A (en) * 2019-12-05 2020-05-08 北京奇艺世纪科技有限公司 Method, apparatus, computer device and storage medium for processing long video data
CN112995698A (en) * 2021-05-19 2021-06-18 浙江华创视讯科技有限公司 Video playing method, client, service platform and intelligent conference system
CN115412769A (en) * 2021-05-28 2022-11-29 福建天泉教育科技有限公司 Method and terminal for improving triggering precision of whole second of browser video playing
CN115412769B (en) * 2021-05-28 2023-12-15 福建天泉教育科技有限公司 Method and terminal for improving whole second triggering precision of video playing of browser
CN114245231A (en) * 2021-12-21 2022-03-25 威创集团股份有限公司 Multi-video synchronous skipping method, device, equipment and readable storage medium
CN114245231B (en) * 2021-12-21 2023-03-10 威创集团股份有限公司 Multi-video synchronous skipping method, device and equipment and readable storage medium

Also Published As

Publication number Publication date
CN104618794B (en) 2018-08-03

Similar Documents

Publication Publication Date Title
CN104618794A (en) Method and device for playing video
CN104065982B (en) The method and apparatus of live streaming media
CN104869468A (en) Method and apparatus for displaying screen information
CN104967896A (en) Method for displaying bulletscreen comment information, and apparatus thereof
CN105005909A (en) Method and device for predicting lost users
CN103596017B (en) Video downloading method and system
CN103559731B (en) Method and terminal for displaying lyrics under screen locking state
CN103677633B (en) Unlocking screen method, device and terminal
CN104717341A (en) Message prompting method and terminal
CN105549740A (en) Method and device for playing audio data
CN104426962A (en) Multi-terminal binding method, binding server, terminal and multi-terminal binding system
CN104519404A (en) Graphics interchange format file playing method and device
CN103678605A (en) Information transmission method and device and terminal device
CN103475914A (en) Video playing method, video playing device, terminal equipment and server
CN104935955A (en) Live video stream transmission method, device and system
CN103853819A (en) Information acquisition method, terminal and system
CN106507204A (en) A kind of video play-reverse method and apparatus
CN105516784A (en) Virtual good display method and device
CN104618223A (en) Information recommendation management method, device and system
CN104159140A (en) Video processing method, apparatus and system
CN103945241A (en) Streaming data statistical method, system and related device
CN104954159A (en) Network information statistics method and device
CN104519262A (en) Method, device for acquiring video data, and terminal
CN104602135A (en) Method and device for controlling full screen play
CN103699309A (en) Method and device for recording synchronous video, and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant