CN110248245A - A kind of video locating method, device, mobile terminal and storage medium - Google Patents
A kind of video locating method, device, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN110248245A CN110248245A CN201910551827.4A CN201910551827A CN110248245A CN 110248245 A CN110248245 A CN 110248245A CN 201910551827 A CN201910551827 A CN 201910551827A CN 110248245 A CN110248245 A CN 110248245A
- Authority
- CN
- China
- Prior art keywords
- key frame
- video
- playing time
- prediction
- playing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000003860 storage Methods 0.000 title claims abstract description 20
- 238000012544 monitoring process Methods 0.000 claims abstract description 46
- 238000004590 computer program Methods 0.000 claims description 10
- 230000006399 behavior Effects 0.000 claims description 4
- 238000009877 rendering Methods 0.000 abstract description 5
- 238000005516 engineering process Methods 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 12
- 230000033001 locomotion Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000003825 pressing Methods 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 4
- 230000006854 communication Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 241000406668 Loxodonta cyclotis Species 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 241000331006 Euchaeta media Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005111 flow chemistry technique Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 230000001404 mediated effect Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440218—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44213—Monitoring of end-user related data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-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/47217—End-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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Social Psychology (AREA)
- Computer Networks & Wireless Communication (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The present invention provides a kind of video locating method, device, mobile terminal and storage mediums.The described method includes: obtaining the corresponding playing time of end position of the drag operation in the case where monitoring the drag operation for the corresponding progress monitoring item of currently playing video;From the corresponding video flowing of the broadcasting video, the previous key frame and latter key frame adjacent with the playing time are obtained;Based on the previous key frame and the latter key frame, the corresponding prediction key frame of the playing time is determined;The prediction key frame is decoded, and plays the corresponding video pictures of the prediction key frame.The present invention drags the moment according to video, and the quick indexing front and back key frame nearest to video frame, using key frame predictive compensation technology, the dragging of fast accurate is played, to realize quickly decoding, rendering, smooth broadcasting network video source.
Description
Technical field
The present invention relates to video flow processing technical fields, more particularly to a kind of video locating method, device, mobile terminal
And storage medium.
Background technique
In mobile internet era, with the promotion and popularization of intelligent terminal, user constantly pursues the audio-video of high-quality
Experience, high compression ratio, high code rate, high-resolution, multichannel, lossless source of sound become standard configuration gradually, for for multimedia source of sound
Lossless and video pictures quality requirements it is higher and higher.Network video-on-demand (Vidoe-on-demand, VOD) and live streaming are
At a part in for people's lives, corresponding video program is played according to the needs of users, fundamentally changes user's mistake
Passive type is gone to see the deficiency of TV, the video content that can be liked with trick play oneself.
And during video on demand, when user issues on-demand request, stream media service system will be according to program request
The programme information being stored in film source library is retrieved by information, is transmitted to client in the form of video and audio stream file.
Due to being restricted by server bandwidth, network transmission, terminal hardware performance etc., when playing Online Video at the terminal, user is held
Row F.F., rewind drag operation play video when, cannot accurately from dragging position from play (i.e. the actual play moment earlier than,
Or it is later than dragging position at the time of correspond to), to the phenomenon that " retracts " occur, and when being played before dragging position, playing
It will appear caching for a long time in journey to wait, influence user and watch effect.
Summary of the invention
The embodiment of the present invention provides a kind of video locating method, device, mobile terminal and storage medium, fast to solve to execute
When playing video into, rewind drag operation, cannot accurately it be played from dragging position, thus there is the phenomenon that " retracts ", and
It is played before dragging position, will appear caching for a long time in playing process and wait, influence the problem of user watches effect.
In order to solve the above-mentioned technical problem, the embodiments of the present invention are implemented as follows:
In a first aspect, the embodiment of the invention provides a kind of video locating methods, comprising: monitoring for currently playing
In the case where the drag operation of the corresponding progress monitoring item of video, when obtaining the corresponding broadcasting of end position of the drag operation
It carves;From the corresponding video flowing of the broadcasting video, the previous key frame adjacent with the playing time and latter key are obtained
Frame;Based on the previous key frame and the latter key frame, the corresponding prediction key frame of the playing time is determined;To described
Prediction key frame is decoded, and plays the corresponding video pictures of the prediction key frame.
Second aspect, the embodiment of the invention provides a kind of video positioning apparatus, comprising: playing time obtains module, uses
In in the case where monitoring the drag operation for the corresponding progress monitoring item of currently playing video, the drag operation is obtained
The corresponding playing time of end position;Key frame obtains module, for obtaining from the corresponding video flowing of the broadcasting video
The previous key frame and latter key frame adjacent with the playing time;Key frame determining module is predicted, for based on before described
One key frame and the latter key frame determine the corresponding prediction key frame of the playing time;Key frame decoder module, is used for
The prediction key frame is decoded, and plays the corresponding video pictures of the prediction key frame.
The third aspect, the embodiment of the invention provides a kind of mobile terminals, comprising: processor, memory and is stored in institute
The computer program that can be run on memory and on the processor is stated, when the computer program is executed by the processor
The step of realizing video locating method described in any of the above embodiments.
Fourth aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium
Computer program is stored on storage media, the computer program realizes that video described in any of the above embodiments is fixed when being executed by processor
The step of position method.
In embodiments of the present invention, by monitoring the dragging behaviour for the corresponding progress monitoring item of currently playing video
In the case where work, the corresponding playing time of end position of drag operation is obtained, from playing in the corresponding video flowing of video, is obtained
The previous key frame and latter key frame adjacent with playing time is based on previous key frame and latter key frame, when determining broadcasting
Corresponding prediction key frame is carved, prediction key frame is decoded, and plays the corresponding video pictures of prediction key frame.The present invention
Embodiment drags the moment according to video, and the quick indexing front and back key frame nearest to video frame uses key frame predictive compensation skill
The dragging of art, fast accurate plays, to realize quickly decoding, rendering, smooth broadcasting network video source.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of video locating method provided in an embodiment of the present invention;
Fig. 2 is a kind of step flow chart of video locating method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of video positioning apparatus provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of video positioning apparatus provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment one
Referring to Fig.1, a kind of step flow chart of video locating method provided in an embodiment of the present invention, this method tool are shown
Body may include steps of:
Step 101: in the case where monitoring the drag operation for the corresponding progress monitoring item of currently playing video, obtaining
Take the corresponding playing time of the end position of the drag operation.
During the embodiment of the present invention can be applied to terminal plays video, user execute be fast-forward to a certain moment or after
During falling back on a certain moment broadcasting video, realize in the scene quickly positioned.
Terminal can be PC (Personal Computer, personal computer) end, such as desktop computer, laptop
Electronic equipment.Terminal may be mobile terminal, such as mobile phone, PAD (Portable Android Device, tablet computer) etc.
Mobile electronic device.
For terminal be specially which kind of electronic equipment can according to the actual situation depending on, the embodiment of the present invention is not subject to this
Limitation.
Progress monitoring item refers to the strip control button for controlling video playing progress, and user can be pressed by mouse
Progress monitoring item is to control currently playing video fast forward to a certain moment or back to a certain moment broadcasting video;It can also pass through
Mouse pressing progress monitoring item is slided location on the touchscreen, to control currently playing video fast forward to certain a period of time
Carving or back to a certain moment plays video, specifically, can according to the actual situation depending on, the embodiment of the present invention is not subject to this
Limitation.
Drag operation refers to user's finger pressing progress monitoring item or mouse pressing progress monitoring item, holds to progress monitoring item
Capable drag operation, it is possible to understand that ground, drag operation can play out currently playing video fast forward to a certain moment
Operation, or currently playing video is backed to operation that a certain moment plays out specifically can be according to business need
Depending on asking, the embodiment of the present invention is also without restriction to this.
Playing time refers to a certain playing time that video is played corresponding to the end position of drag operation, it is possible to understand that
Ground, playing time can be located at play the video currently playing moment before, can also be located at play the video currently playing moment it
Afterwards, specifically, can according to the actual situation depending on.
Monitoring program corresponding with operation is held can be preset in terminal system, which can supervise in real time
The drag operation executed to the corresponding progress monitoring item of broadcasting video is surveyed, and is being monitored to the corresponding progress of currently playing video
In the case where the drag operation that control strip executes, the end position of available drag operation is when playing the broadcasting in video
It carves.
After the corresponding playing time of end position for getting drag operation, step 102 is executed.
Step 102: from the corresponding video flowing of the broadcasting video, obtaining the previous key adjacent with the playing time
Frame and latter key frame.
Key frame refers to that frame locating for the key operations in role or object of which movement or variation.Include in video flowing
A series of key frame, there is also there is ordinary video frame between two neighboring key frame, video flowing is by a series of
Normal frames between key frame and every two key frame are formed by.
It is to be appreciated that when the corresponding video frame of playing time is key frame, then directly to the corresponding pass of playing time
Key frame is decoded broadcasting, and for such situation, the embodiment of the present invention is no longer described in detail.
The embodiment of the present invention is the detailed description carried out for the corresponding video frame of playing time for the case where normal frames.
Previous key frame refers to that ordinary video frame corresponding with playing time is adjacent, before the ordinary video frame
One key frame.Latter key frame refers to that ordinary video frame corresponding with playing time is adjacent, be located at the ordinary video frame it
A key frame afterwards.For example, play video flowing in include: I1 frame, 1 frame, 2 frames, I2 frame, 3 frames, 4 frames, I3 frame, 5 frames, 6 frames,
I4 frame, wherein I1 frame, I2 frame, I3 frame and I4 frame are key frame, remaining is ordinary video frame, corresponding common in playing time
When video frame is 6 frame, then previous key frame is I3 frame, and latter key frame is I4 frame;And playing the corresponding ordinary video of video
When frame is 4 frame, then previous key frame is I2 frame, and latter key frame is I3 frame.
It is to be appreciated that above-mentioned example is merely to the example for more fully understanding the embodiment of the present invention and enumerating, not as
To the sole limitation of the embodiment of the present invention.
After obtaining playing the corresponding video flowing of video, video flowing can be parsed, to obtain a series of press
It, can be according to parsing after obtaining the corresponding normal frames of playing time according to the key frame and normal frames of playing sequence arrangement
The key frame and normal frames according to playing sequence arrangement arrived, gets positioned at adjacent previous of the corresponding normal frames of playing time
Key frame and latter key frame.
Certainly, in embodiments of the present invention, key frame fallout predictor can also be preset, by calling key frame fallout predictor
From the corresponding video flowing list of video flowing, the previous key frame and latter key frame adjacent with playing time are searched, for this
Process will be described in detail in following embodiments two, and the embodiment of the present invention is not repeated here herein.
From playing in the corresponding video flowing of video, the previous key frame and latter key frame adjacent with playing time are obtained
Later, step 103 is executed.
Step 103: being based on the previous key frame and the latter key frame, determine the corresponding prediction of the playing time
Key frame.
Prediction key frame refers to motion compensation process is carried out by previous key frame and latter key frame after, and obtain
Key frame corresponding with playing time.
After obtaining the previous key frame and latter key frame adjacent with playing time, can according to previous key frame with
Latter key frame carries out motion compensation, to obtain the corresponding prediction key frame of playing time.
Specifically, movement compensation process can according to each pixel of previous key frame and latter key frame each pixel
Point, and the previous playing time and the corresponding latter playing time of latter key frame of previous key frame are combined, using corresponding public affairs
Prediction key frame is calculated in formula.
For the above-mentioned process that prediction key frame is calculated, will be described in detail in following embodiments two, this hair
Bright embodiment is not repeated here herein.
After determining the corresponding prediction key frame of playing time based on previous key frame and latter key frame, step is executed
Rapid 104.
Step 104: the prediction key frame being decoded, and plays the corresponding video pictures of the prediction key frame.
After obtaining the corresponding prediction key frame of playing time, video decoding can be carried out to prediction key frame, and broadcast
Put the corresponding video pictures of prediction key frame, it is possible to understand that ground, by predicting that the decoding of key frame can play now to avoid retracting
The generation of elephant improves the fluency of Online Video broadcasting in turn, eliminates the time that load waits.
Video locating method provided in an embodiment of the present invention, by monitoring for the corresponding progress of currently playing video
In the case where the drag operation of control strip, the corresponding playing time of end position of drag operation is obtained, it is corresponding from video is played
Video flowing in, the previous key frame and latter key frame adjacent with playing time is obtained, based on previous key frame and latter pass
Key frame determines the corresponding prediction key frame of playing time, is decoded to prediction key frame, and it is corresponding to play prediction key frame
Video pictures.The embodiment of the present invention drags the moment according to video, and the quick indexing front and back key frame nearest to video frame uses pass
The dragging of key frame predictive compensation technology, fast accurate plays, to realize quickly decoding, rendering, smooth broadcasting network video source,
Online Video playing fluency is improved, the load waiting time is eliminated.
Embodiment two
Referring to Fig. 2, a kind of step flow chart of video locating method provided in an embodiment of the present invention, this method tool are shown
Body may include steps of:
Step 201: creation key frame fallout predictor.
During the embodiment of the present invention can be applied to terminal plays video, user execute be fast-forward to a certain moment or after
During falling back on a certain moment broadcasting video, realize in the scene quickly positioned.
Terminal can be PC (Personal Computer, personal computer) end, such as desktop computer, laptop
Electronic equipment.Terminal may be mobile terminal, such as mobile phone, PAD (Portable Android Device, tablet computer) etc.
Mobile electronic device.
For terminal be specially which kind of electronic equipment can according to the actual situation depending on, the embodiment of the present invention is not subject to this
Limitation.
Key frame fallout predictor can be used for obtain it is adjacent with a certain ordinary video frame, before the ordinary video frame
Key frame and be located at the ordinary video frame after key frame.
In embodiments of the present invention, key frame fallout predictor can be pre-created, in the follow-up process, to need to obtain and broadcast
During putting moment corresponding video frame adjacent previous key frame and latter key frame, key frame prediction is called directly
Device, to obtain previous key frame and latter key frame.
For the creation process of key frame fallout predictor, the detailed description for being referred to following step is (general with Android device
Key frame fallout predictor for):
1, Android.mk file (i.e. Android compiling file) is configured, LOCAL_MODULE=is set
LibVideoSeekKeyFramePredictor, reference to variable include $ ((BUILD_SHARED_LIBRARY));
In above-mentioned steps, can define the attribute of Android.mk file, i.e. VideoSeekKey: video retrieval is crucial
Frame, FramePredictor: fallout predictor frame can configure Android compiling file by the above process, and in compiling file
Middle definition file attribute, key frame locating function and corresponding frame.
2, according to configuration attribute, compiling generates a dynamic base libVideoSeekKeyFramePredictor.so and supplies
Media framework module is called;
According to the file attribute of above-mentioned configuration, compiling generates a dynamic base, defines key frame in dynamic base and searches
Function, the dynamic base can be called directly by Media framework (i.e. media framework), it can be played media and directly adjust
With the dynamic base is considered as key frame fallout predictor.
3, dynamic base generates catalogue: out/target/ entry name/system/lib/libVideoSeekKeyFramePr
edictor.so;
After generating dynamic base, dynamic base can be added under specified file catalogue, it, can during subsequent calls
Directly to call dynamic base according to the catalogue.
The above process is the creation process for completing key frame fallout predictor.
Certainly, above-mentioned steps are merely to a kind of creation for more fully understanding the technical solution of the embodiment of the present invention and enumerating
The scheme of key frame fallout predictor, in practical applications, those skilled in the art can also be pre- using other way creation key frame
Device is surveyed, in this regard, the embodiment of the present invention is without restriction.
After creating key frame fallout predictor, step 202 is executed.
Step 202: in the case where monitoring the drag operation for the corresponding progress monitoring item of currently playing video, obtaining
Take the corresponding playing time of the end position of the drag operation.
Progress monitoring item refers to the strip control button for controlling video playing progress, and user can be pressed by mouse
Progress monitoring item is to control currently playing video fast forward to a certain moment or back to a certain moment broadcasting video;It can also pass through
Mouse pressing progress monitoring item is slided location on the touchscreen, to control currently playing video fast forward to certain a period of time
Carving or back to a certain moment plays video, specifically, can according to the actual situation depending on, the embodiment of the present invention is not subject to this
Limitation.
Drag operation refers to user's finger pressing progress monitoring item or mouse pressing progress monitoring item, holds to progress monitoring item
Capable drag operation, it is possible to understand that ground, drag operation can play out currently playing video fast forward to a certain moment
Operation, or currently playing video is backed to operation that a certain moment plays out specifically can be according to business need
Depending on asking, the embodiment of the present invention is also without restriction to this.
Playing time refers to a certain playing time that video is played corresponding to the end position of drag operation, it is possible to understand that
Ground, playing time can be located at play the video currently playing moment before, can also be located at play the video currently playing moment it
Afterwards, specifically, can according to the actual situation depending on.
Monitoring program corresponding with operation is held can be preset in terminal system, which can supervise in real time
The drag operation executed to the corresponding progress monitoring item of broadcasting video is surveyed, and is being monitored to the corresponding progress of currently playing video
In the case where the drag operation that control strip executes, the end position of available drag operation is when playing the broadcasting in video
It carves.
After the corresponding playing time of end position for getting drag operation, step 203 is executed.
Step 203: the key frame fallout predictor is called, by the key frame fallout predictor from corresponding with the broadcasting video
In video flowing list, the previous key frame and the latter key frame are searched.
Video flowing list refers to list corresponding with the video flowing of the currently playing video of terminal.It is stored in video flowing list
The corresponding each playing time of each video frame (including key frame and ordinary video frame).
In the end position for getting drag operation after playing the playing time in video, it can call and be pre-created
Good key frame fallout predictor, it is adjacent that playing time corresponding with drag operation is searched by key frame fallout predictor from video flowing list
, previous key frame and latter key frame.
It is to be appreciated that when the corresponding video frame of playing time is key frame, then directly to the corresponding pass of playing time
Key frame is decoded broadcasting, and for such situation, the embodiment of the present invention is no longer described in detail.
The embodiment of the present invention is the detailed description carried out for the corresponding video frame of playing time for the case where normal frames.
After finding previous key frame and latter key frame, step 204 is executed.
Step 204: obtaining previous corresponding first playing time of key frame and the latter key frame corresponding the
Two playing times.
First playing time refers to that the corresponding playing time of previous key frame, the second playing time refer to latter key frame pair
The playing time answered, it is possible to understand that ground, playing time described herein corresponds to for playing video, for example, playing
The total duration of video is 1 hour, and the first playing time and the second playing time are a certain playing time in playing duration, such as
First playing time is 56min, and the second playing time is 58min etc..
It is to be appreciated that above-mentioned example is merely to more fully understand the technical solution of the embodiment of the present invention and showing for enumerating
Example, not as the sole limitation to the embodiment of the present invention.
After obtaining previous key frame and latter key frame, can by key frame fallout predictor according to previous key frame and after
One key frame searches corresponding first playing time of previous key frame from video flowing list, and it is corresponding to search latter key frame
The second playing time.
Certainly, in practical applications, corresponding first playing time of previous key frame can also be obtained using other way,
And corresponding second playing time of latter key frame, the embodiments of the present invention are not limited thereto.
Previous key frame and latter key frame are being found by key frame fallout predictor, and getting the first playing time and
After two playing times, the key frame fallout predictor can be destroyed in media player, avoids the operation pair of key frame fallout predictor
The video playing of media player impacts.
Obtain previous corresponding first playing time of key frame and corresponding second playing time of latter key frame it
Afterwards, step 205 is executed.
Step 205: being broadcast according to the previous key frame, first playing time, the latter key frame, described second
Moment and the playing time are put, the prediction key frame is calculated.
Obtaining previous key frame, corresponding first playing time of previous key frame, latter key frame and latter key frame
After corresponding second playing time, when can be played according to previous key frame, the first playing time, latter key frame, second
Quarter and playing time, are calculated prediction key frame jointly.
For calculating the detailed process of prediction key frame, will be described in detail with embodiments discussed below.
In a preferred embodiment of an embodiment of the present invention, above-mentioned steps 205 may include:
Sub-step S1: all first pixel point values in corresponding first image of the previous key frame and described are obtained
All second pixel point values in corresponding second image of latter key frame.
First image refers to that image corresponding to previous key frame, the second image refer to figure corresponding to latter key frame
Picture.
It will be appreciated that though image may be described in embodiments of the present invention using term first, second etc., but these
Image should not necessarily be limited by these terms.These terms are only used to for image being distinguished from each other out.For example, not departing from the embodiment of the present invention
In the case where range, the first image can also be referred to as second, and similarly, the second image can also be referred to as the first image.
Pixel refers to be made of the lattice of image, these lattices have specific position and assigned color
Color numerical value, lattice color and position just determine the appearance that the image is showed.
Pixel is the dot matrix one by one presented after image is amplified, each point is a pixel.
First pixel refers to that the pixel in the first image, the second pixel refer to the pixel in the second image.
First pixel point value is pixel corresponding to each first pixel, and the second pixel point value is each second picture
Pixel corresponding to vegetarian refreshments.
After obtaining previous key frame and latter key frame, it can obtain in corresponding first image of previous key frame
All second pixel point values in all first pixel point values and corresponding second image of latter key frame, and execute sub-step
S2。
Sub-step S2: each first pixel point value and the second pixel corresponding with each first pixel point value are calculated
Difference between value.
In obtaining the first image after corresponding first pixel point value of all first pixels, it is available respectively and respectively
Corresponding second pixel of first pixel, and then obtain corresponding second pixel point value of each second pixel.
It in turn, can be by the difference between each first pixel point value respectively the second pixel point value corresponding with each first pixel
Value.
In the difference being calculated between each first pixel point value and the second pixel point value corresponding with each first pixel point value
After value, sub-step S3 is executed.
Sub-step S3: the first difference between the playing time and first playing time is calculated.
First difference refers to the difference between playing time and the first playing time.
It, can be with after obtaining the corresponding playing time of drag operation and corresponding first playing time of previous key frame
The difference between playing time and the first play time is calculated, and using the difference as the first difference, i.e. playing time-the first is broadcast
Put the moment the=the first difference.
After the first difference being calculated between playing time and the first playing time, sub-step S4 is executed.
Sub-step S4: the product value of each difference Yu first difference is calculated.
Product value refers to the difference between the first pixel point value of above-mentioned calculating and corresponding second pixel point value, with broadcasting
The first difference between moment and the first playing time is multiplied, obtained value.
In the difference being calculated between each first pixel point value the second pixel point value corresponding with each first pixel point value,
And after the first difference between playing time and the first playing time, each difference can be multiplied with the first difference, can be obtained
To product value, i.e. product value=the first difference of difference *.
Sub-step S5: the second difference between second playing time and first playing time is calculated.
Second difference refers to the difference between the second playing time and the first playing time.
In above-mentioned steps, after getting the second playing time and the first playing time, when second can be played
It subtracts the first playing time quarter, the second difference, i.e. the second difference=second the-the first playing time of playing time can be obtained.
Sub-step S6: being calculated the ratio of each product value Yu second difference, using each ratio as institute
State the pixel point value of the corresponding forecast image of prediction key frame.
Forecast image refers to display image corresponding to prediction key frame.
Ratio refers to the ratio between the above-mentioned product value being calculated and the second difference, i.e. product value/second difference.
In above process, it is calculated after each product value and the second difference, each product value and can be calculated separately
Ratio between two differences, since each pixel corresponds to a product value, and then can be by each product value and the second difference
Between pixel point value of the ratio as the corresponding forecast image of prediction key frame can be calculated in turn according to above-mentioned
Ratio corresponding to each pixel determines the corresponding pixel point value of each pixel in forecast image, in turn, available prediction
Key frame.Above-mentioned calculating process (1) can indicate according to the following equation:
Iseek=(Inext-Ipre) * (Tseek-Tpre)/(Tnext-Tpre) (1)
In above-mentioned formula (1), Iseek indicates that prediction key frame, Inext indicate that latter key frame, Ipre indicate previous pass
Key frame, Tseek indicate playing time, and Tpre indicates the first playing time, and Tnext indicates the second playing time.
It is to be appreciated that Iseek, Inext and Ipre respectively indicate prediction key frame, latter key in above-mentioned formula (1)
Pixel point value corresponding to frame and previous key frame.It certainly, can be respectively according to latter key frame and previous pass in calculating process
The pixel point value in prediction key frame is calculated (i.e. described in the above process in each corresponding pixel point value in key frame
Ratio), and then according to multiple pixel point values, the corresponding all pixels point value of forecast image can be calculated, according to prognostic chart
As prediction key frame can be obtained in corresponding all pixels point value.
It is to be appreciated that above-mentioned calculating process is merely to more fully understanding the technical solution of the embodiment of the present invention and enumerating
It is a kind of be calculated prediction key frame mode, in practical applications, those skilled in the art can also use other movements
The mode of compensation obtains prediction key frame, and the embodiments of the present invention are not limited thereto.
Step 206: the prediction key frame being decoded, and plays the corresponding video pictures of the prediction key frame.
After obtaining the corresponding prediction key frame of playing time, video decoding can be carried out to prediction key frame, and broadcast
Put the corresponding video pictures of prediction key frame, it is possible to understand that ground, by predicting that the decoding of key frame can play now to avoid retracting
The generation of elephant improves the fluency of Online Video broadcasting in turn, eliminates the time that load waits.
It is decoded to prediction key frame, and after playing the corresponding video pictures of prediction key frame, executes step
207。
Step 207: in the case where reaching threshold number with the number for playing the associated target drag operation of video,
Establish the incidence relation between the playing time and the prediction key frame.
In embodiments of the present invention, target drag operation refers to that will play the corresponding progress monitoring item of video rests on broadcasting
The drag operation at moment, the i.e. end position of target drag operation correspond to the playing time for playing video.
Threshold number refers to by the pre-set frequency threshold value of business personnel, threshold number can be set in advance as 10 times,
20 times, it is 30 inferior, specifically, can be depending on business demand, the embodiments of the present invention are not limited thereto.
The number of target drag operation, which refers to, will play the corresponding progress monitoring item of video and rests on the dragging of playing time
The corresponding number of operation.
In the case where being that the number for playing the associated target drag operation of video reaches threshold number, broadcasting can establish
Incidence relation between moment and prediction key frame repeatedly pulls behaviour to playing video and execute there are one or more users
Make, by video fast forward to when playing behavior that video is watched, that is, establishes playing time with prediction key frame and be associated with pass
System.
After establishing playing time and predicting the incidence relation between key frame, step 208 is executed.
Step 208: the incidence relation is saved into the corresponding video flowing of the broadcasting video.
After establishing playing time and predicting the incidence relation between key frame, which can be stored in and be broadcast
It puts in the corresponding video flowing of video.
And when monitoring that another user refers to target drag operation that video executes is played, it can be according to pre-saving
In playing the incidence relation in the corresponding video flowing of video, prediction key frame is obtained.It in turn, can be straight according to the prediction key frame
It connects decoding to play, reduces the time for calculating prediction key frame.
The embodiment of the present invention will then compensate obtained new key by reaching certain threshold value in the user of seek to certain moment
Frame index information adding is into the index of original, when hereafter having user seek again to the moment, according to crucial index and pass
Key frame predicts calculation formula Iseek, calculates new key frame, can once navigate to key frame, accelerates the operation of seek
And accuracy.
Video locating method provided in an embodiment of the present invention, in addition to having the video locating method of the offer of above-described embodiment one
Outside the beneficial effect being had, can also with using increasing for user, when the user of seek to certain moment reaches certain threshold value,
Then the new key frame index information that compensation obtains is appended in the index of original, hereafter has user seek to the moment again
When, calculation formula Iseek is predicted according to crucial index and key frame, new key frame is calculated, can once navigate to pass
Key frame accelerates the operation and accuracy of seek.
Embodiment three
Referring to Fig. 3, a kind of structural schematic diagram of video positioning apparatus provided in an embodiment of the present invention, device tool are shown
Body may include following module:
Playing time obtains module 310, for monitoring dragging for the corresponding progress monitoring item of currently playing video
In the case where dragging operation, the corresponding playing time of end position of the drag operation is obtained;
Key frame obtains module 320, for obtaining and the playing time from the corresponding video flowing of the broadcasting video
Adjacent previous key frame and latter key frame;
Key frame determining module 330 is predicted, described in determining based on the previous key frame and the latter key frame
The corresponding prediction key frame of playing time;
Key frame decoder module 340 for being decoded to the prediction key frame, and plays the prediction key frame pair
The video pictures answered.
Video positioning apparatus provided in an embodiment of the present invention, by monitoring for the corresponding progress of currently playing video
In the case where the drag operation of control strip, the corresponding playing time of end position of drag operation is obtained, it is corresponding from video is played
Video flowing in, the previous key frame and latter key frame adjacent with playing time is obtained, based on previous key frame and latter pass
Key frame determines the corresponding prediction key frame of playing time, is decoded to prediction key frame, and it is corresponding to play prediction key frame
Video pictures.The embodiment of the present invention drags the moment according to video, and the quick indexing front and back key frame nearest to video frame uses pass
The dragging of key frame predictive compensation technology, fast accurate plays, to realize quickly decoding, rendering, smooth broadcasting network video source,
Online Video playing fluency is improved, the load waiting time is eliminated.
Example IV
Referring to Fig. 4, a kind of structural schematic diagram of video positioning apparatus provided in an embodiment of the present invention, device tool are shown
Body may include following module:
Key frame fallout predictor creation module 410, for creating key frame fallout predictor;
Playing time obtains module 420, for monitoring dragging for the corresponding progress monitoring item of currently playing video
In the case where dragging operation, the corresponding playing time of end position of the drag operation is obtained;
Key frame obtains module 430, for obtaining and the playing time from the corresponding video flowing of the broadcasting video
Adjacent previous key frame and latter key frame;
Key frame determining module 440 is predicted, described in determining based on the previous key frame and the latter key frame
The corresponding prediction key frame of playing time;
Key frame decoder module 450, for executing decoding operate to the prediction key frame, and it is crucial to play the prediction
The corresponding video pictures of frame;
Incidence relation establishes module 460, for reaching with the number for playing the associated target drag operation of video
In the case where threshold number, the incidence relation between the playing time and the prediction key frame is established;The target pulls
Operation refers to the drag operation that the corresponding progress monitoring item of the broadcasting video is rested on to the playing time;
Incidence relation preserving module 470, for the incidence relation to be stored in the corresponding video flowing of the broadcasting video
In.
Preferably, the key frame acquisition module 430 includes:
Key frame search submodule 4301, for calling the key frame fallout predictor, by the key frame fallout predictor from
In the corresponding video flowing list of the broadcasting video, the previous key frame and the latter key frame are searched.
Preferably, the prediction key frame determining module 440 includes:
Playing time acquisition submodule 4401, for obtaining corresponding first playing time of the previous key frame and institute
State corresponding second playing time of latter key frame;
Key frame computational submodule 4402 is predicted, for according to the previous key frame, first playing time, described
Latter key frame, second playing time and the playing time, are calculated the prediction key frame.
Preferably, the prediction key frame computational submodule 4402 includes:
Pixel point value acquisition submodule, for obtaining all first pictures in corresponding first image of the previous key frame
All second pixel point values in vegetarian refreshments value and corresponding second image of the latter key frame;
Pixel difference computational submodule, for calculate each first pixel point value and with each first pixel point value
Difference between corresponding second pixel point value;
First difference computational submodule, for being calculated between the playing time and first playing time
One difference;
Product value computational submodule, for the product value of each difference Yu first difference to be calculated;
Second difference computational submodule, for being calculated between second playing time and first playing time
The second difference;
Pixel point value acquisition submodule will be each for the ratio of each product value Yu second difference to be calculated
Pixel point value of the ratio as the corresponding forecast image of the prediction key frame.
Video positioning apparatus provided in an embodiment of the present invention, in addition to having the video positioning apparatus of the offer of above-described embodiment three
Outside the beneficial effect being had, can also with using increasing for user, when the user of seek to certain moment reaches certain threshold value,
Then the new key frame index information that compensation obtains is appended in the index of original, hereafter has user seek to the moment again
When, calculation formula Iseek is predicted according to crucial index and key frame, new key frame is calculated, can once navigate to pass
Key frame accelerates the operation and accuracy of seek.
Embodiment five
Referring to Fig. 5, the hardware structural diagram of a kind of mobile terminal of each embodiment to realize the present invention.
The mobile terminal 500 includes but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, defeated
Enter unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor
The components such as 510 and power supply 511.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 5 is not constituted
Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, perhaps combine certain components or
Different component layouts.In embodiments of the present invention, mobile terminal include but is not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Processor 510, in the feelings for monitoring the drag operation for the corresponding progress monitoring item of currently playing video
Under condition, the corresponding playing time of end position of the drag operation is obtained;From the corresponding video flowing of the broadcasting video, obtain
Take the previous key frame and latter key frame adjacent with the playing time;Based on the previous key frame and the latter key
Frame determines the corresponding prediction key frame of the playing time;The prediction key frame is decoded, and plays the prediction and closes
The corresponding video pictures of key frame.
In embodiments of the present invention, by monitoring for the dragging to the corresponding progress monitoring item of currently playing video
In the case where operation, the corresponding playing time of end position of drag operation is obtained, from playing in the corresponding video flowing of video, is obtained
The previous key frame and latter key frame adjacent with playing time are taken, previous key frame and latter key frame are based on, determines and plays
Moment corresponding prediction key frame is decoded prediction key frame, and plays the corresponding video pictures of prediction key frame.This hair
Bright embodiment drags the moment according to video, and the quick indexing front and back key frame nearest to video frame uses key frame predictive compensation
The dragging of technology, fast accurate plays, and to realize quickly decoding, rendering, smooth broadcasting network video source, improves online view
Frequency playing fluency eliminates the load waiting time.
It should be understood that the embodiment of the present invention in, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 510 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 501 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by wireless communication system and network and other set
Standby communication.
Mobile terminal provides wireless broadband internet by network module 502 for user and accesses, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 503 can be received by radio frequency unit 501 or network module 502 or in memory 509
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 503 can also be provided and be moved
The relevant audio output of specific function that dynamic terminal 500 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 503 includes loudspeaker, buzzer and receiver etc..
Input unit 504 is for receiving audio or video signal.Input unit 504 may include graphics processor
(Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 506.Through graphics processor 5041, treated that picture frame can be deposited
Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike
Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output that mobile communication base station can be sent to via radio frequency unit 501 is converted in the case where telephone calling model.
Mobile terminal 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 5061, and proximity sensor can close when mobile terminal 500 is moved in one's ear
Display panel 5061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 506 is for showing information input by user or being supplied to the information of user.Display unit 506 can wrap
Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 5061.
User input unit 507 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 507 include touch panel 5071 and
Other input equipments 5072.Touch panel 5071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 5071 or in touch panel 5071
Neighbouring operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area
It manages the order that device 510 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Seed type realizes touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments
5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it
On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touching
The type for touching event provides corresponding visual output on display panel 5061.Although in Fig. 5, touch panel 5071 and display
Panel 5061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments
In, can be integrated by touch panel 5071 and display panel 5061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place is without limitation.
Interface unit 508 is the interface that external device (ED) is connect with mobile terminal 500.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in mobile terminal 500 or can be used in 500 He of mobile terminal
Data are transmitted between external device (ED).
Memory 509 can be used for storing software program and various data.Memory 509 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 509 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 509, and calls and is stored in storage
Data in device 509 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511
Can be logically contiguous by power-supply management system and processor 510, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, and memory 509 is stored in
On memory 509 and the computer program that can run on the processor 510, the computer program are executed by processor 510
Each process of the above-mentioned video locating method embodiment of Shi Shixian, and identical technical effect can be reached, to avoid repeating, here
It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned video locating method embodiment, and energy when being executed by processor
Reach identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only
Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation
RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (12)
1. a kind of video locating method characterized by comprising
In the case where monitoring the drag operation for the corresponding progress monitoring item of currently playing video, the dragging behaviour is obtained
The corresponding playing time of the end position of work;
From the corresponding video flowing of the broadcasting video, the previous key frame adjacent with the playing time and latter key are obtained
Frame;
Based on the previous key frame and the latter key frame, the corresponding prediction key frame of the playing time is determined;
The prediction key frame is decoded, and plays the corresponding video pictures of the prediction key frame.
2. the method according to claim 1, wherein corresponding in the end position for obtaining the drag operation
Playing time the step of before, further includes:
Create key frame fallout predictor;
It is described from the corresponding video flowing of the broadcasting video, obtain the previous key frame adjacent with the playing time and latter
The step of key frame, comprising:
The key frame fallout predictor is called, by the key frame fallout predictor from video flowing list corresponding with the broadcasting video
In, search the previous key frame and the latter key frame.
3. the method according to claim 1, wherein described be based on the previous key frame and the latter key
Frame, the step of determining the playing time corresponding prediction key frame, comprising:
Obtain corresponding first playing time of the previous key frame and corresponding second playing time of the latter key frame;
According to the previous key frame, first playing time, the latter key frame, second playing time and described
The prediction key frame is calculated in playing time.
4. according to the method described in claim 3, it is characterized in that, it is described according to the previous key frame, it is described first play
The step of the prediction key frame is calculated in moment, the latter key frame, second playing time and the playing time
Suddenly, comprising:
It obtains all first pixel point values in corresponding first image of the previous key frame and the latter key frame corresponds to
The second image in all second pixel point values;
Calculate the difference between each first pixel point value and the second pixel point value corresponding with each first pixel point value;
The first difference between the playing time and first playing time is calculated;
The product value of each difference Yu first difference is calculated;
The second difference between second playing time and first playing time is calculated;
The ratio of each product value Yu second difference is calculated, using each ratio as the prediction key frame pair
The pixel point value for the forecast image answered.
5. the method according to claim 1, wherein being decoded described to the prediction key frame, and broadcasting
After the step of putting the prediction key frame corresponding video pictures, further includes:
In the case where reaching threshold number with the number for playing the associated target drag operation of video, the broadcasting is established
Incidence relation between moment and the prediction key frame;The target drag operation refer to by the broadcasting video it is corresponding into
Degree control strip rests on the drag operation of the playing time;
The incidence relation is stored in the corresponding video flowing of the broadcasting video.
6. a kind of video positioning apparatus characterized by comprising
Playing time obtains module, in the drag operation for monitoring to be directed to the corresponding progress monitoring item of currently playing video
In the case of, obtain the corresponding playing time of end position of the drag operation;
Key frame obtains module, for obtaining adjacent with the playing time from the corresponding video flowing of the broadcasting video
Previous key frame and latter key frame;
Key frame determining module is predicted, for being based on the previous key frame and the latter key frame, when determining the broadcasting
Carve corresponding prediction key frame;
Key frame decoder module for being decoded to the prediction key frame, and plays the corresponding view of the prediction key frame
Frequency picture.
7. device according to claim 6, which is characterized in that further include:
Key frame fallout predictor creation module, for creating key frame fallout predictor;
The key frame obtains module
Key frame search submodule, for calling the key frame fallout predictor, by the key frame fallout predictor from the broadcasting
In the corresponding video flowing list of video, the previous key frame and the latter key frame are searched.
8. device according to claim 6, which is characterized in that the prediction key frame determining module includes:
Playing time acquisition submodule, for obtaining corresponding first playing time of the previous key frame and the latter pass
Corresponding second playing time of key frame;
Key frame computational submodule is predicted, for according to the previous key frame, first playing time, the latter key
Frame, second playing time and the playing time, are calculated the prediction key frame.
9. device according to claim 8, which is characterized in that the prediction key frame computational submodule includes:
Pixel point value acquisition submodule, for obtaining all first pixels in corresponding first image of the previous key frame
All second pixel point values in value and corresponding second image of the latter key frame;
Pixel difference computational submodule, for calculating each first pixel point value and corresponding with each first pixel point value
The second pixel point value between difference;
First difference computational submodule, first for being calculated between the playing time and first playing time are poor
Value;
Product value computational submodule, for the product value of each difference Yu first difference to be calculated;
Second difference computational submodule, for being calculated between second playing time and first playing time
Two differences;
Pixel point value acquisition submodule will be each described for the ratio of each product value Yu second difference to be calculated
Pixel point value of the ratio as the corresponding forecast image of the prediction key frame.
10. device according to claim 6, which is characterized in that further include:
Incidence relation establishes module, for reaching threshold number with the number for playing the associated target drag operation of video
In the case where, establish the incidence relation between the playing time and the prediction key frame;The target drag operation refers to
The corresponding progress monitoring item of the broadcasting video is rested on to the drag operation of the playing time;
Incidence relation preserving module, for the incidence relation to be stored in the corresponding video flowing of the broadcasting video.
11. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be in institute
The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor
Any one of described in video locating method the step of.
12. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium
Sequence, the video locating method as described in any one of claims 1 to 5 is realized when the computer program is executed by processor
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910551827.4A CN110248245B (en) | 2019-06-21 | 2019-06-21 | Video positioning method and device, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910551827.4A CN110248245B (en) | 2019-06-21 | 2019-06-21 | Video positioning method and device, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110248245A true CN110248245A (en) | 2019-09-17 |
CN110248245B CN110248245B (en) | 2022-05-06 |
Family
ID=67889139
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910551827.4A Active CN110248245B (en) | 2019-06-21 | 2019-06-21 | Video positioning method and device, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110248245B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111757177A (en) * | 2020-06-17 | 2020-10-09 | 维沃移动通信有限公司 | Video clipping method and device |
CN112822522A (en) * | 2020-12-31 | 2021-05-18 | 北京梧桐车联科技有限责任公司 | Video playing method, device, equipment and storage medium |
CN113610897A (en) * | 2021-08-19 | 2021-11-05 | 北京字节跳动网络技术有限公司 | Testing method, device and equipment of cursor control device |
CN113726778A (en) * | 2021-08-30 | 2021-11-30 | 咪咕视讯科技有限公司 | Streaming media seek method, device, computing equipment and computer storage medium |
CN114666603A (en) * | 2022-05-06 | 2022-06-24 | 厦门美图之家科技有限公司 | Video decoding method and device, electronic equipment and storage medium |
WO2022156166A1 (en) * | 2021-01-21 | 2022-07-28 | 稿定(厦门)科技有限公司 | Method and apparatus for playing back video file while dragging progress bar |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101025987A (en) * | 2006-02-21 | 2007-08-29 | 广州市纽帝亚资讯科技有限公司 | Video play fast forward/fast rewind method and device based on video content |
CN101064846A (en) * | 2007-05-24 | 2007-10-31 | 上海交通大学 | Time-shifted television video matching method combining program content metadata and content analysis |
CN101106723A (en) * | 2007-07-10 | 2008-01-16 | 中国传媒大学 | A system and method for quickly playing multimedia information |
CN101478681A (en) * | 2008-12-31 | 2009-07-08 | 深圳市同洲电子股份有限公司 | Generation method, system and multimedia device for fast forwarding and rewinding video file |
CN103024561A (en) * | 2011-09-28 | 2013-04-03 | 深圳市快播科技有限公司 | Method and device for displaying dragging progress bar |
CN103686411A (en) * | 2013-12-11 | 2014-03-26 | 深圳Tcl新技术有限公司 | Method for playing video and multimedia device |
US20140099071A1 (en) * | 2012-10-08 | 2014-04-10 | John Adcock | Systems and Methods for Instructional Video Navigation and Note Taking |
CN104301771A (en) * | 2013-07-15 | 2015-01-21 | 中兴通讯股份有限公司 | Method and device for adjusting playing progress of video file |
CN104618794A (en) * | 2014-04-29 | 2015-05-13 | 腾讯科技(北京)有限公司 | Method and device for playing video |
CN104994340A (en) * | 2015-06-25 | 2015-10-21 | 广东工业大学 | Precise positioning playback method for audio/video storage mode |
CN105704527A (en) * | 2016-01-20 | 2016-06-22 | 努比亚技术有限公司 | Terminal and method for video frame positioning for terminal |
CN106126047A (en) * | 2015-03-08 | 2016-11-16 | 苹果公司 | For showing and using the equipment of menu, method and graphic user interface |
CN107155138A (en) * | 2017-06-06 | 2017-09-12 | 深圳Tcl数字技术有限公司 | Video playback jump method, equipment and computer-readable recording medium |
CN107872716A (en) * | 2016-09-23 | 2018-04-03 | 杭州海康威视数字技术股份有限公司 | A kind of stream data analytic method, device and the electronic equipment of rearmounted encapsulation |
CN109862423A (en) * | 2019-01-03 | 2019-06-07 | 珠海亿智电子科技有限公司 | A kind of video seek method, apparatus, terminal and computer readable storage medium |
CN109905749A (en) * | 2019-04-11 | 2019-06-18 | 腾讯科技(深圳)有限公司 | Video broadcasting method and device, storage medium and electronic device |
-
2019
- 2019-06-21 CN CN201910551827.4A patent/CN110248245B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101025987A (en) * | 2006-02-21 | 2007-08-29 | 广州市纽帝亚资讯科技有限公司 | Video play fast forward/fast rewind method and device based on video content |
CN101064846A (en) * | 2007-05-24 | 2007-10-31 | 上海交通大学 | Time-shifted television video matching method combining program content metadata and content analysis |
CN101106723A (en) * | 2007-07-10 | 2008-01-16 | 中国传媒大学 | A system and method for quickly playing multimedia information |
CN101478681A (en) * | 2008-12-31 | 2009-07-08 | 深圳市同洲电子股份有限公司 | Generation method, system and multimedia device for fast forwarding and rewinding video file |
CN103024561A (en) * | 2011-09-28 | 2013-04-03 | 深圳市快播科技有限公司 | Method and device for displaying dragging progress bar |
US20140099071A1 (en) * | 2012-10-08 | 2014-04-10 | John Adcock | Systems and Methods for Instructional Video Navigation and Note Taking |
CN104301771A (en) * | 2013-07-15 | 2015-01-21 | 中兴通讯股份有限公司 | Method and device for adjusting playing progress of video file |
CN103686411A (en) * | 2013-12-11 | 2014-03-26 | 深圳Tcl新技术有限公司 | Method for playing video and multimedia device |
CN104618794A (en) * | 2014-04-29 | 2015-05-13 | 腾讯科技(北京)有限公司 | Method and device for playing video |
CN106126047A (en) * | 2015-03-08 | 2016-11-16 | 苹果公司 | For showing and using the equipment of menu, method and graphic user interface |
CN104994340A (en) * | 2015-06-25 | 2015-10-21 | 广东工业大学 | Precise positioning playback method for audio/video storage mode |
CN105704527A (en) * | 2016-01-20 | 2016-06-22 | 努比亚技术有限公司 | Terminal and method for video frame positioning for terminal |
WO2017124897A1 (en) * | 2016-01-20 | 2017-07-27 | 努比亚技术有限公司 | Terminal, method for video frame positioning by terminal, and computer storage medium |
CN107872716A (en) * | 2016-09-23 | 2018-04-03 | 杭州海康威视数字技术股份有限公司 | A kind of stream data analytic method, device and the electronic equipment of rearmounted encapsulation |
CN107155138A (en) * | 2017-06-06 | 2017-09-12 | 深圳Tcl数字技术有限公司 | Video playback jump method, equipment and computer-readable recording medium |
CN109862423A (en) * | 2019-01-03 | 2019-06-07 | 珠海亿智电子科技有限公司 | A kind of video seek method, apparatus, terminal and computer readable storage medium |
CN109905749A (en) * | 2019-04-11 | 2019-06-18 | 腾讯科技(深圳)有限公司 | Video broadcasting method and device, storage medium and electronic device |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111757177A (en) * | 2020-06-17 | 2020-10-09 | 维沃移动通信有限公司 | Video clipping method and device |
CN112822522A (en) * | 2020-12-31 | 2021-05-18 | 北京梧桐车联科技有限责任公司 | Video playing method, device, equipment and storage medium |
CN112822522B (en) * | 2020-12-31 | 2023-03-21 | 北京梧桐车联科技有限责任公司 | Video playing method, device, equipment and storage medium |
WO2022156166A1 (en) * | 2021-01-21 | 2022-07-28 | 稿定(厦门)科技有限公司 | Method and apparatus for playing back video file while dragging progress bar |
CN113610897A (en) * | 2021-08-19 | 2021-11-05 | 北京字节跳动网络技术有限公司 | Testing method, device and equipment of cursor control device |
CN113726778A (en) * | 2021-08-30 | 2021-11-30 | 咪咕视讯科技有限公司 | Streaming media seek method, device, computing equipment and computer storage medium |
CN114666603A (en) * | 2022-05-06 | 2022-06-24 | 厦门美图之家科技有限公司 | Video decoding method and device, electronic equipment and storage medium |
CN114666603B (en) * | 2022-05-06 | 2024-05-03 | 厦门美图之家科技有限公司 | Video decoding method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110248245B (en) | 2022-05-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110248245A (en) | A kind of video locating method, device, mobile terminal and storage medium | |
CN106791958B (en) | Position mark information generation method and device | |
US9924205B2 (en) | Video remote-commentary synchronization method and system, and terminal device | |
WO2018192415A1 (en) | Data live broadcast method, and related device and system | |
CN109660817B (en) | Video live broadcast method, device and system | |
CN107707976A (en) | A kind of video encoding/decoding method and mobile terminal | |
CN108966004A (en) | A kind of method for processing video frequency and terminal | |
CN107817939A (en) | A kind of image processing method and mobile terminal | |
RU2745737C1 (en) | Video recording method and video recording terminal | |
CN111726525A (en) | Video recording method, video recording device, electronic equipment and storage medium | |
CN113490010B (en) | Interaction method, device and equipment based on live video and storage medium | |
US11165950B2 (en) | Method and apparatus for shooting video, and storage medium | |
CN110177296A (en) | A kind of video broadcasting method and mobile terminal | |
CN111124207B (en) | Multimedia file playing method and electronic equipment | |
US20170336935A1 (en) | Method, device for displaying reference content and storage medium thereof | |
CN109168038A (en) | A kind of processing method of resource, device and equipment | |
CN110099296A (en) | A kind of information display method and terminal device | |
WO2019170118A1 (en) | Video playing method, device and apparatus | |
CN109618218B (en) | Video processing method and mobile terminal | |
CN108391123A (en) | A kind of method and terminal generating video | |
CN109830248A (en) | A kind of audio recording method and terminal device | |
CN110650367A (en) | Video processing method, electronic device, and medium | |
CN108881719A (en) | A kind of method and terminal device switching style of shooting | |
CN107707760A (en) | A kind of sending out notice processing method and mobile terminal | |
CN109120800A (en) | A kind of application icon method of adjustment and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |