Movatterモバイル変換


[0]ホーム

URL:


CN110430450A - A kind of method, apparatus and electronic equipment of video location - Google Patents

A kind of method, apparatus and electronic equipment of video location
Download PDF

Info

Publication number
CN110430450A
CN110430450ACN201910712250.0ACN201910712250ACN110430450ACN 110430450 ACN110430450 ACN 110430450ACN 201910712250 ACN201910712250 ACN 201910712250ACN 110430450 ACN110430450 ACN 110430450A
Authority
CN
China
Prior art keywords
current
video
speed
coefficient
plays
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.)
Pending
Application number
CN201910712250.0A
Other languages
Chinese (zh)
Inventor
周春波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co LtdfiledCriticalBeijing QIYI Century Science and Technology Co Ltd
Priority to CN201910712250.0ApriorityCriticalpatent/CN110430450A/en
Publication of CN110430450ApublicationCriticalpatent/CN110430450A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The embodiment of the invention provides a kind of method, apparatus of video location and electronic equipment, available current video;When detecting slide on the touch screen in currently playing video frame images, according to the current location and sliding initial position slided into real time, horizontal-shift is calculated in real time;Coefficient corresponding relationship is played according to horizontal-shift and speed, determines that current speed plays coefficient in real time;At current time, coefficient is played according to the current speed at current time, video is played out;At the end of detecting sliding, target frame image of the current frame image as positioning is obtained.As it can be seen that using the embodiment of the present invention, the initial position of the current location and sliding that can be slided on the touchscreen according to user in real time calculates horizontal-shift in real time;Determine that current speed plays coefficient in real time according to horizontal-shift, to video playing, user can see the continuous pictures of video, can it is accurate by video location to target frame picture, improve user experience.

Description

A kind of method, apparatus and electronic equipment of video location
Technical field
The present invention relates to the technical fields of computer, set more particularly to the method, apparatus and electronics of a kind of video locationIt is standby.
Background technique
In the modern life, user understands various information frequently by viewing video or entertains.Currently, in player, can be with touch screen backstage when upper viewing video, the screen that moves right carries out forwarding operation to video or slides screen to the left to viewFrequency carries out back operation, browses a sheet by a sheet static discrete thumbnail, navigates to the target frame picture of video.
Inventor has found that at least there are the following problems for the prior art in the implementation of the present invention:
If it is desired to the target position that video location is arrived is just without thumbnail, then by video during video locationTarget frame picture accurately is navigated to regard to relatively difficult, and user experience is lower.
Summary of the invention
The method, apparatus and electronic equipment for being designed to provide a kind of video location of the embodiment of the present invention, with relatively accurateBy video location to target frame picture, improve user experience.Specific technical solution is as follows:
In a first aspect, the embodiment of the invention provides a kind of methods of video location, which comprises
Obtain currently playing current video;
It is current according to what is slided into real time when detecting slide on the touch screen in currently playing video frame imagesThe initial position of position and sliding, calculates horizontal-shift in real time;
The corresponding relationship that coefficient is played according to preset horizontal-shift and speed, determines the current speed at current time in real timePlay coefficient;
At each current time, coefficient is played according to current speed corresponding with each current time, to working as forward sightFrequency plays out;
At the end of detecting sliding, target frame image of the current frame image as positioning is obtained.
Optionally, when detecting slide on the touch screen when in currently playing video frame images, according to realityWhen the initial position of current location and sliding that slides into, before the step of calculating horizontal-shift in real time, further includes:
Judge whether to detect the operational order of video location;
If it is, executing described when detecting slide on the touch screen in currently playing video frame images, rootThe initial position of the current location and sliding that are slided into when factually, real-time the step of calculating horizontal-shift.
Optionally, the step of operational order for judging whether to detect video location, comprising: in frame of display video figureOn the touch screen of picture, judge whether to detect pressing operation;
If detecting pressing operation, it is determined that detect video location operational order, in the position of pressing operation, displayThe sliding button of video location.
Optionally, described at each current time, coefficient is played according to each current time corresponding current speed,Before the step of being played out to current video, further includes:
Whether the direction and the preset direction played forward of determined level displacement are consistent;
It is described at each current time if the direction of horizontal displacement is consistent with the preset direction played forward,Coefficient is played according to current speed corresponding with each current time, the step of playing out to current video, comprising: everyOne current time plays coefficient according to current speed corresponding with each current time, is broadcast forward to current videoIt puts;
It is described when each is current if the direction of horizontal displacement and the preset direction played forward are inconsistentIt carves, coefficient is played according to current speed corresponding with each current time, the step of playing out to current video, comprising:At each current time, coefficient is played according to the current speed at each current time, current video is broadcast backwardIt puts.
Optionally, it in the corresponding relationship for playing coefficient according to preset horizontal-shift and speed, determines in real time currentThe current speed at moment played after the step of coefficient, further includes:
Show that current speed plays coefficient in video playing display interface.
Optionally, described at the end of detecting sliding, current frame image is obtained as the target frame image of positioningAfter step, further includes:
Since the target frame image, current video is played out according to normal playback speed.
Optionally, coefficient is played according to the current speed at each current time at each current time described, it is rightAfter the step of current video plays out, further includes:
Judge whether to detect the operational order for keeping current speed to play;
It is described at the end of detecting sliding if detecting the operational order for keeping current speed to play, worked asPrior image frame comprises determining that sliding terminates as the step of target frame image positioned;Current frame image is obtained as positioningTarget frame image;
At the time of according to the operational order for keeping current speed to play is detected, corresponding current speed plays coefficient pairCurrent video carries out speed broadcasting;
Judge whether to detect and cancels the instruction of speed play operation;
Cancel the instruction of speed play operation if detected, current video is played out according to normal playback speed;
Cancel the instruction of speed play operation if do not detected, executes and described keep current speed to play according to detectingOperational order at the time of, corresponding current speed plays the step of coefficient carries out speed broadcasting to current video;
If not detecting the operational order for keeping current speed to play, described at the end of detecting sliding, obtainAfter the step of obtaining target frame image of the current frame image as positioning, since target frame image, according to normal playback speedCurrent video is played out.
Optionally, described to judge whether the step of detecting the operational order for keeping current speed to play, comprising: to judgeDuring sliding, if detect pressing operation.
It is optionally, described to judge whether to detect the step of cancelling the instruction of speed play operation, comprising:
Judge whether to detect double click operation on the touch screen of frame of display video image.
Optionally, when detecting slide on the touch screen when in currently playing video frame images, according to real-timeThe initial position of the current location and sliding that slide into, real-time the step of calculating horizontal-shift, comprising:
When detecting slide on the touch screen in currently playing video frame images, every prefixed time interval, obtainIt is corresponding to calculate current time according to the current location and initial position for the current location for taking the slide to be slided intoHorizontal-shift;
The corresponding relationship that coefficient is played according to preset horizontal-shift and speed, determines the current of current time in real timeSpeed plays the step of coefficient, comprising:
According to the current time corresponding horizontal-shift, preset horizontal-shift is inquired with speed and plays the corresponding of coefficientRelationship determines that the current time corresponding current speed plays coefficient;
It is described to play coefficient according to current speed corresponding with each current time at each current time, to working asThe step of preceding video plays out, comprising:
At the current time, coefficient is played according to the current time determined corresponding current speed, to currentVideo plays out.
Second aspect, the embodiment of the invention provides a kind of device of video location, described device includes:
Current video acquiring unit, for obtaining currently playing current video;
Horizontal-shift computing unit detects slide on the touch screen of currently playing video frame images for working asWhen, according to the initial position of the current location and sliding that slide into real time, horizontal-shift is calculated in real time;
Current speed plays factor determination unit, for playing the corresponding pass of coefficient with speed according to preset horizontal-shiftSystem determines that the current speed at current time plays coefficient in real time;
Video playback unit is used at each current time, according to current speed corresponding with each current timeCoefficient is played, current video is played out;
Target frame image acquiring unit, at the end of detecting sliding, obtaining mesh of the current frame image as positioningMark frame image.
Optionally, described device further include:
Video location operational order judging unit, for working as in the horizontal-shift computing unit in currently playing video frameWhen detecting slide on the touch screen of image, according to the initial position of the current location and sliding that slide into real time, in real timeBefore calculating horizontal-shift, judge whether the operational order for detecting video location;If it is, triggering the horizontal-shift meterUnit is calculated when detecting slide on the touch screen in currently playing video frame images, according to the present bit slided into real timeThe initial position set and slided, calculates horizontal-shift in real time.
Optionally, the video location operational order judging unit, comprising:
Pressing operation judgment module judges whether to detect pressing behaviour for the touch screen in frame of display video imageMake;If detecting pressing operation, it is determined that detect video location operational order, in the position of pressing operation, show videoThe sliding button of positioning.
Optionally, described device further include:
Walking direction unit is used in the video playback unit at each current time, according to current with eachMoment, corresponding current speed played coefficient, before being played out to current video, the direction of determined level displacement with it is presetWhether the direction played forward is consistent;
The video playback unit, comprising: video playing module and video playing module backward forward;
Video playing module forward, if direction and the preset direction one played forward for horizontal displacementIt causes, at each current time, plays coefficient according to current speed corresponding with each current time, current video is carried outIt plays forward;
Video playing module backward, if different for the direction of horizontal displacement and the preset direction played forwardIt causes, at each current time, plays coefficient according to current speed corresponding with each current time, current video is carried outIt plays backward.
Optionally, described device further include:
Speed plays coefficient display unit, for playing factor determination unit according to preset level in the current speedOffset plays the corresponding relationship of coefficient with speed, after determining that the current speed at current time plays coefficient in real time, broadcasts in videoIt puts display interface and shows that current speed plays coefficient.
Optionally, described device further include:
First normal speed forward unit, in the target frame image acquiring unit when detect sliding at the end of,After obtaining target frame image of the current frame image as positioning, since the target frame image, according to normal playback speedCurrent video is played out.
Optionally, described device further include:
Current speed play instruction judging unit, in the video playback unit at each current time, according toCurrent speed corresponding with each current time plays coefficient, after playing out current video, judges whether to detectThe operational order for keeping current speed to play;
The target frame image acquiring unit, comprising: sliding terminates determining module and target frame image obtains module;
The sliding terminates determining module, if for detecting the operational order for keeping current speed to play, it is determined thatSliding terminates;
The target frame image obtains module, for obtaining target frame image of the current frame image as positioning;
Current speed broadcast unit, at the time of for according to the operational order for keeping current speed to play is detected, institute is rightThe current speed answered plays coefficient and carries out speed broadcasting to current video;
Cancel speed operational order judging unit, cancels the instruction of speed play operation for judging whether to detect;
First broadcast unit, if cancelling the instruction of speed play operation for detecting, according to normal playback speed pairCurrent video plays out;Cancel the instruction of speed play operation if do not detected, triggers the current speed broadcast unitAt the time of according to the operational order for keeping current speed to play is detected, corresponding current speed plays coefficient to current videoCarry out speed broadcasting;
Second broadcast unit, if for not detecting the operational order for keeping current speed to play, in the targetFrame image acquiring unit is at the end of detecting sliding, after obtaining target frame image of the current frame image as positioning, from meshMark frame image starts, and plays out according to normal playback speed to current video.
Optionally, the current speed play instruction judging unit, comprising:
Pressing operation judgment module in sliding process, for judging during sliding, if detect pressing behaviourMake.
Optionally, the cancellation speed operational order judging unit, is specifically used for:
Judge whether to detect double click operation on the touch screen of frame of display video image.
Optionally, the horizontal-shift computing unit, is specifically used for:
When detecting slide on the touch screen in currently playing video frame images, every prefixed time interval, obtainIt is corresponding to calculate current time according to the current location and initial position for the current location for taking the slide to be slided intoHorizontal-shift;
The current speed plays factor determination unit, is specifically used for:
According to the current time corresponding horizontal-shift, preset horizontal-shift is inquired with speed and plays the corresponding of coefficientRelationship determines that the current time corresponding current speed plays coefficient;
The video playback unit, is specifically used for:
At the current time, coefficient is played according to the current time determined corresponding current speed, to currentVideo plays out.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, including processor, communication interface, memory andCommunication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor, when for executing the program stored on memory, the step of realizing above-mentioned video locating method.
Fourth aspect, present invention implementation additionally provide a kind of computer readable storage medium, the computer-readable storageDielectric memory contains computer program, and the computer program realizes any of the above-described video locating method when being executed by processorStep.
5th aspect, the embodiment of the invention also provides a kind of computer program products comprising instruction, when it is being calculatedWhen being run on machine, so that computer executes any of the above-described video locating method.
The embodiment of the present invention the utility model has the advantages that
The method, apparatus and electronic equipment of video location provided in an embodiment of the present invention, available currently playing video;When detecting slide on the touch screen in currently playing video frame images, according to the current location and cunning slided into real timeDynamic initial position, calculates horizontal-shift in real time;The corresponding relationship of coefficient is played according to preset horizontal-shift and speed, in real timeDetermine that the current speed at current time plays coefficient;At each current time, work as according to corresponding with each current timePreceding speed plays coefficient, plays out to current video;At the end of detecting sliding, current frame image is obtained as positioningTarget frame image.
As it can be seen that using the embodiment of the present invention, it can be according to the current location and cunning that user slides into real time on the touchscreenDynamic initial position, calculates horizontal-shift in real time;The corresponding relationship of coefficient is played according to horizontal-shift and speed, determination is worked as in real timePreceding speed plays coefficient, plays coefficient according to current speed, plays out to video, user can see the continuous picture of videoFace can be accurate by video location to target frame picture unlike prior art user can only see many pieces of thumbnail,Improve user experience.
Certainly, implement any of the products of the present invention or method it is not absolutely required at the same reach all the above excellentPoint.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show belowThere is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only thisSome embodiments of invention for those of ordinary skill in the art without creative efforts, can be withIt obtains other drawings based on these drawings.
Fig. 1 is a kind of a kind of flow chart of video locating method provided in an embodiment of the present invention;
Fig. 2 is a kind of another flow chart of video locating method provided in an embodiment of the present invention;
Fig. 3 a is the schematic diagram of one of presently relevant technology video pictures;
Fig. 3 b is a kind of schematic diagram of video pictures provided in an embodiment of the present invention;
Fig. 4 provides a kind of structural schematic diagram of the device of video location for the embodiment of the present invention;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment 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, completeSite preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every otherEmbodiment shall fall within the protection scope of the present invention.
In order to accurate by video location to target frame picture, user experience is improved, the embodiment of the invention provides viewsThe method, apparatus and electronic equipment of frequency positioning.
Video locating method provided by the embodiment of the present invention can be applied to any need video location to target frameThe electronic equipment of picture, such as: computer or mobile terminal are not specifically limited herein.For convenience, hereinafter referred to as electronicsEquipment.
The method of video location provided in an embodiment of the present invention, as shown in Figure 1, the specific process flow of this method includes:
Step S101 obtains currently playing current video.
It is enforceable, the available currently playing current video of electronic equipment.
Step S102, when detecting slide on the touch screen in currently playing video frame images, according to real-time slidingThe initial position of the current location and sliding moved, calculates horizontal-shift in real time.
Enforceable, electronic equipment can first judge whether to detect the operational order of video location;If it is, working asWhen detecting slide on the touch screen of currently playing video frame images, according to the current location and sliding slided into real timeInitial position calculates horizontal-shift in real time.
It is enforceable, it can be calculated horizontal when sliding according to the initial position of the current location and sliding that slide into real timeThe pixel number that direction is passed through.
In another embodiment, when detecting slide on the touch screen in currently playing video frame images,The current location that the slide is slided into can also be obtained every prefixed time interval, according to the current location and risenBeginning position calculates current time corresponding horizontal-shift.
Step S103 plays the corresponding relationship of coefficient according to preset horizontal-shift and speed, determines current time in real timeCurrent speed play coefficient.
It is enforceable, the corresponding pass of coefficient can be played with speed according to the pixel number that horizontal direction when sliding is passed throughSystem determines that the current speed at current time plays coefficient in real time.For example, can preset are as follows: (speed broadcasting coefficient)=0.01* (the pixel number that horizontal direction is passed through)+1, i.e., when the pixel number that horizontal direction is passed through is 0, broadcast with 1 speedIt puts;When the pixel number that horizontal direction is passed through is 100, with the broadcasting of 2 speeds;When the pixel number that horizontal direction is passed through isWhen 200, with the broadcasting of 3 speeds, in this way, speed plays coefficient can be with consecutive variations.It illustrates, herein to waterFlat offset plays the corresponding relationship of coefficient with speed, is not specifically limited.
It is enforceable, in above-mentioned steps S102, if obtaining the slide every prefixed time interval and being slidedThe current location moved, according to the current location and initial position, when calculating current time corresponding horizontal-shift, in this stepIn, then can according to current time corresponding horizontal-shift, inquire preset horizontal-shift and speed play coefficientCorresponding relationship determines that the current time corresponding current speed plays coefficient.
Step S104 plays coefficient according to current speed corresponding with each current time at each current time,Current video is played out.
It is enforceable, at the current time, system is played according to the current time determined corresponding current speedNumber, plays out current video.
Step S105 obtains target frame image of the current frame image as positioning at the end of detecting sliding.
It is enforceable, it can work as and detect that preset duration does not have slide displacement on the touch screen of frame of display video imageWhen, for example, 1s be not displaced or pressing dynamics be 0 when, determine sliding terminate, obtain current frame image as position targetFrame image.
As it can be seen that using the embodiment of the present invention, it can be according to the current location and cunning that user slides into real time on the touchscreenDynamic initial position, calculates horizontal-shift in real time;The corresponding relationship of coefficient is played according to horizontal-shift and speed, determination is worked as in real timePreceding speed plays coefficient, plays coefficient according to current speed, plays out to video, user can see the continuous picture of videoFace can be accurate by video location to target frame picture unlike prior art user can only see many pieces of thumbnail,Improve user experience.
Moreover, can calculate horizontal-shift in real time using the embodiment of the present invention and speed plays the corresponding relationship of coefficient, InEach current time plays coefficient according to current speed corresponding with each current time, plays out to current video,It can determine that speed plays coefficient in real time, real-time is stronger, and user experience is higher according to user's operation.
Another process of the method for video location provided in an embodiment of the present invention, as shown in Figure 2, comprising:
Step S201 obtains currently playing current video.
Step S202 judges whether the operational order for detecting video location.
It is enforceable, it can be determined that be set in advance in video location button in the menu bar of video display interface whether byIt presses, if be pressed, detects the operational order of video location.Technical staff can be according to the actual situation by video locationButton is arranged in other suitable positions, is not specifically limited at this to the position of video location button setting.
It is enforceable, it can also judge whether to detect pressing operation on the touch screen of frame of display video image, ifDetect pressing operation, it is determined that detect video location operational order, in the position of pressing operation, show the cunning of video locationDynamic button.In a kind of specific embodiment, can use three-dimensional touch technology 3D touch technology, when detect flicking,Dub and again by the pressing dynamics of different dimensions when, have different functions, in the present embodiment can be when detecting pressing dynamicsAttach most importance on time, by the position of operation, is showing the sliding button of video location again.
If it is determined that result be it is yes, i.e., if detecting the operational order of video location, execute step S203;If sentencedDisconnected result be it is no, i.e., if not detecting the operational order of video location, operation terminate.
Step S203, when detecting slide on the touch screen in currently playing video frame images, according to real-time slidingThe initial position of the current location and sliding moved, calculates horizontal-shift in real time.
Step S204 plays the corresponding relationship of coefficient according to preset horizontal-shift and speed, determines current time in real timeCurrent speed play coefficient.
In practical application, step S203~S204 can be identical as step S102~S103 in Fig. 1, herein no longer in detailExplanation.
Step S205 shows that current speed plays coefficient in video playing display interface.
It is enforceable, coefficient can be played in the current speed of video playing display interface real-time display.Herein to currentThe position that speed plays coefficient is not specifically limited.
Whether step S206, the direction and the preset direction played forward of determined level displacement are consistent.
It is enforceable, can preset when the direction of horizontal displacement to the right when, for the direction that plays forward.
If it is determined that result be it is yes, i.e., the direction of horizontal displacement is consistent with the preset direction played forward, then executesStep S207;If it is determined that result be it is no, i.e. the direction of horizontal displacement and the preset direction played forward is inconsistent, then holdsRow step S208.
Step S207 plays coefficient according to current speed corresponding with each current time at each current time,Current video is played forward.Execute step S209.
Step S208 plays coefficient according to the current speed at each current time at each current time, to working asPreceding video is played backward.
Step S209 judges whether to detect the operational order for keeping current speed to play.
It is enforceable, it can be determined that during sliding, if to detect pressing operation.In a kind of specific embodiment partyIn formula, three-dimensional touch technology 3D touch technology can use, when detecting flicking, dub and again by the pressing force of different dimensionsWhen spending, there is different functions, can attach most importance on time when detecting pressing dynamics in this step, generate and current speed is kept to playOperational order.
If it is determined that result be it is no, i.e., do not detect the operational order for keeping current speed to play, then follow the stepsS210;If it is determined that result be it is yes, that is, detect the operational order for keeping current speed to play, then follow the steps S212.
Step S210, at the end of detecting sliding, using current frame image as the target frame image of positioning.
Step S211 plays out current video according to normal playback speed since target frame image.Process knotBeam.
Step S212 determines that sliding terminates.
It is enforceable, when step S209 detects the operational order for keeping current speed to play, so that it may determine slidingTerminate.It is enforceable, in other embodiments, if you do not need to judging whether to detect that the operation for keeping current speed to play refers toIt enables, then can also determine that sliding terminates when can't detect any pressing dynamics on the touch screen in frame of display video image.
Step S213 obtains target frame image of the current frame image as positioning.
Step S214, at the time of according to the operational order for keeping current speed to play is detected, corresponding current speedIt plays coefficient and speed broadcasting is carried out to current video.
Step S215 judges whether to detect and cancels the instruction of speed play operation.
It is enforceable, it can be determined that whether on the touch screen of frame of display video image to detect double click operation.
If it is determined that result be it is yes, i.e., if detect cancel speed play operation instruction, then follow the steps S216;Such asThe result that fruit judges be it is no, i.e., if do not detect cancel speed play operation instruction, return to step S214, i.e., according toThe current speed plays the step of coefficient carries out speed broadcasting to current video.
Step S216 plays out current video according to normal playback speed.
As it can be seen that using the embodiment of the present invention, it can be according to the current location and cunning that user slides into real time on the touchscreenDynamic initial position, calculates horizontal-shift in real time;The corresponding relationship of coefficient is played according to horizontal-shift and speed, determination is worked as in real timePreceding speed plays coefficient, plays coefficient according to current speed, plays out to video, user can see the continuous picture of videoFace can be accurate by video location to target frame picture unlike prior art user can only see many pieces of thumbnail,Improve user experience.
In addition, in the present embodiment shown in Fig. 2, it can also be by judging whether to detect the behaviour for keeping current speed to playMake instruction and cancel the instruction of speed play operation, realize after navigating to target frame image, continues to keep current according to detectingAt the time of the operational order that speed plays, corresponding current speed plays coefficient and plays out or broadcast according to normal playback speedIt puts, further improves user experience.
Below by one of presently relevant technology video pictures and a kind of video pictures provided in an embodiment of the present invention intoRow comparative descriptions.
If Fig. 3 a is the schematic diagram of one of presently relevant technology video pictures, as shown in Figure 3a, comprising:
There is progress bar in the bottom of video pictures, can show that current video frame picture is located at the position of current video.WhenUser is behind the scenes with hand touch screen, slides or slides to the left a sheet by a sheet static discrete thumbnail of browsing to the right, navigate to videoTarget frame picture.
Fig. 3 b is a kind of schematic diagram of video pictures provided in an embodiment of the present invention, as shown in Figure 3b, comprising:
In video pictures, sliding button can show that current speed plays system in finger position with the sliding of fingerNumber, and show that user starts the position and current location of sliding, according to the initial position of the current location and sliding that slide intoHorizontal-shift, the corresponding relationship of coefficient is played based on preset horizontal-shift and speed, determines the current speed at current timePlay coefficient.Coefficient is played according to the current speed, current video is played out, user can see the continuous pictures of videoAnd it hears continuous sound, unlike prior art user can only see many pieces of thumbnail, can accurately determine videoTarget frame picture is arrived in position, improves user experience.
The embodiment of the present invention provides a kind of structural schematic diagram of the device of video location, as shown in Figure 4, comprising:
Current video acquiring unit 401, for obtaining currently playing current video;
Horizontal-shift computing unit 402 detects sliding behaviour for working as on the touch screen of currently playing video frame imagesWhen making, according to the initial position of the current location and sliding that slide into real time, horizontal-shift is calculated in real time;
Current speed plays factor determination unit 403, for playing pair of coefficient according to preset horizontal-shift and speedIt should be related to, determine that the current speed at current time plays coefficient in real time;
Video playback unit 404 is used at each current time, according to current times corresponding with each current timeSpeed plays coefficient, plays out to current video;
Target frame image acquiring unit 405, at the end of detecting sliding, obtaining current frame image as positioningTarget frame image.
Optionally, described device further include:
Video location operational order judging unit, for working as in the horizontal-shift computing unit in currently playing video frameWhen detecting slide on the touch screen of image, according to the initial position of the current location and sliding that slide into real time, in real timeBefore calculating horizontal-shift, judge whether the operational order for detecting video location;If it is, triggering the horizontal-shift meterUnit is calculated when detecting slide on the touch screen in currently playing video frame images, according to the present bit slided into real timeThe initial position set and slided, calculates horizontal-shift in real time.
Optionally, the video location operational order judging unit, comprising:
Pressing operation judgment module judges whether to detect pressing behaviour for the touch screen in frame of display video imageMake;If detecting pressing operation, it is determined that detect video location operational order, in the position of pressing operation, show videoThe sliding button of positioning.
Optionally, described device further include:
Walking direction unit is used in the video playback unit at each current time, according to current with eachMoment, corresponding current speed played coefficient, before being played out to current video, the direction of determined level displacement with it is presetWhether the direction played forward is consistent;
The video playback unit, comprising: video playing module and video playing module backward forward;
Video playing module forward, if direction and the preset direction one played forward for horizontal displacementIt causes, at each current time, plays coefficient according to current speed corresponding with each current time, current video is carried outIt plays forward;
Video playing module backward, if different for the direction of horizontal displacement and the preset direction played forwardIt causes, at each current time, plays coefficient according to current speed corresponding with each current time, current video is carried outIt plays backward.
Optionally, described device further include:
Speed plays coefficient display unit, for playing factor determination unit according to preset level in the current speedOffset plays the corresponding relationship of coefficient with speed, after determining that the current speed at current time plays coefficient in real time, broadcasts in videoIt puts display interface and shows that current speed plays coefficient.
Optionally, described device further include:
First normal speed forward unit, in the target frame image acquiring unit when detect sliding at the end of,After obtaining target frame image of the current frame image as positioning, since the target frame image, according to normal playback speedCurrent video is played out.
Optionally, described device further include:
Current speed play instruction judging unit, in the video playback unit at each current time, according toCurrent speed corresponding with each current time plays coefficient, after playing out current video, judges whether to detectThe operational order for keeping current speed to play;
The target frame image acquiring unit, comprising: sliding terminates determining module and target frame image obtains module;
The sliding terminates determining module, if for detecting the operational order for keeping current speed to play, it is determined thatSliding terminates;
The target frame image obtains module, for obtaining target frame image of the current frame image as positioning;
Current speed broadcast unit, at the time of for according to the operational order for keeping current speed to play is detected, institute is rightThe current speed answered plays coefficient and carries out speed broadcasting to current video;
Cancel speed operational order judging unit, cancels the instruction of speed play operation for judging whether to detect;
First broadcast unit, if cancelling the instruction of speed play operation for detecting, according to normal playback speed pairCurrent video plays out;Cancel the instruction of speed play operation if do not detected, triggers the current speed broadcast unitAt the time of according to the operational order for keeping current speed to play is detected, corresponding current speed plays coefficient to current videoCarry out speed broadcasting;
Second broadcast unit, if for not detecting the operational order for keeping current speed to play, in the targetFrame image acquiring unit is at the end of detecting sliding, after obtaining target frame image of the current frame image as positioning, from meshMark frame image starts, and plays out according to normal playback speed to current video.
Optionally, the current speed play instruction judging unit, comprising:
Pressing operation judgment module in sliding process, for judging during sliding, if detect pressing behaviourMake.
Optionally, the cancellation speed operational order judging unit, is specifically used for:
Judge whether to detect double click operation on the touch screen of frame of display video image.
Optionally, the horizontal-shift computing unit, is specifically used for:
When detecting slide on the touch screen in currently playing video frame images, every prefixed time interval, obtainIt is corresponding to calculate current time according to the current location and initial position for the current location for taking the slide to be slided intoHorizontal-shift;
The current speed plays factor determination unit, is specifically used for:
According to the current time corresponding horizontal-shift, preset horizontal-shift is inquired with speed and plays the corresponding of coefficientRelationship determines that the current time corresponding current speed plays coefficient;
The video playback unit, is specifically used for:
At the current time, coefficient is played according to the current time determined corresponding current speed, to currentVideo plays out.
As it can be seen that using the embodiment of the present invention, it can be according to the current location and cunning that user slides into real time on the touchscreenDynamic initial position, calculates horizontal-shift in real time;The corresponding relationship of coefficient is played according to horizontal-shift and speed, determination is worked as in real timePreceding speed plays coefficient, plays coefficient according to current speed, plays out to video, user can see the continuous picture of videoFace can be accurate by video location to target frame picture unlike prior art user can only see many pieces of thumbnail,Improve user experience.
The embodiment of the invention also provides a kind of electronic equipment, as shown in figure 5, include processor 501, communication interface 502,Memory 503 and communication bus 504, wherein processor 501, communication interface 502, memory 503 are complete by communication bus 504At mutual communication,
Memory 503, for storing computer program;
Processor 501 when for executing the program stored on memory 503, realizes following steps:
Obtain currently playing current video;
It is current according to what is slided into real time when detecting slide on the touch screen in currently playing video frame imagesThe initial position of position and sliding, calculates horizontal-shift in real time;
The corresponding relationship that coefficient is played according to preset horizontal-shift and speed, determines the current speed at current time in real timePlay coefficient;
At each current time, coefficient is played according to current speed corresponding with each current time, to working as forward sightFrequency plays out;
At the end of detecting sliding, target frame image of the current frame image as positioning is obtained.
As it can be seen that using the embodiment of the present invention, it can be according to the current location and cunning that user slides into real time on the touchscreenDynamic initial position, calculates horizontal-shift in real time;The corresponding relationship of coefficient is played according to horizontal-shift and speed, determination is worked as in real timePreceding speed plays coefficient, plays coefficient according to current speed, plays out to video, user can see the continuous picture of videoFace can be accurate by video location to target frame picture unlike prior art user can only see many pieces of thumbnail,Improve user experience.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral ComponentInterconnect, PCI) bus or expanding the industrial standard structure (Extended Industry StandardArchitecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For justIt is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easyThe property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used alsoTo be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital SignalProcessing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existingIt is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discreteDoor or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which canIt reads to be stored with computer program in storage medium, the computer program realizes any of the above-described video location when being executed by processorThe step of method.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when itWhen running on computers, so that computer executes any video locating method in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof realIt is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer programProduct includes one or more computer instructions.When loading on computers and executing the computer program instructions, all orIt partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meterCalculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage mediumIn, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computerInstruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data centerUser's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server orData center is transmitted.The computer readable storage medium can be any usable medium that computer can access orIt is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be withIt is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard diskSolid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a realityBody or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operationIn any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended toNon-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including thoseElement, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipmentIntrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded thatThere is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodimentDividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,For the embodiments such as electronic equipment, computer readable storage medium and computer program product, since it is substantially similar to methodEmbodiment, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is allAny modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present inventionIt is interior.

Claims (21)

CN201910712250.0A2019-08-022019-08-02A kind of method, apparatus and electronic equipment of video locationPendingCN110430450A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201910712250.0ACN110430450A (en)2019-08-022019-08-02A kind of method, apparatus and electronic equipment of video location

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201910712250.0ACN110430450A (en)2019-08-022019-08-02A kind of method, apparatus and electronic equipment of video location

Publications (1)

Publication NumberPublication Date
CN110430450Atrue CN110430450A (en)2019-11-08

Family

ID=68412344

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201910712250.0APendingCN110430450A (en)2019-08-022019-08-02A kind of method, apparatus and electronic equipment of video location

Country Status (1)

CountryLink
CN (1)CN110430450A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114339397A (en)*2021-12-232022-04-12北京百度网讯科技有限公司Multimedia editing information determination method, device, equipment and storage medium
CN114339446A (en)*2021-12-282022-04-12北京百度网讯科技有限公司Audio and video editing method, device, equipment, storage medium and program product
CN114598912A (en)*2022-02-102022-06-07互影科技(北京)有限公司Multimedia file display method and device, storage medium and electronic equipment
CN115171241A (en)*2022-06-302022-10-11南京领行科技股份有限公司Video frame positioning method and device, electronic equipment and storage medium
CN118158482A (en)*2024-03-192024-06-07北京达佳互联信息技术有限公司 Multimedia resource playing method, device, electronic device and storage medium
CN118781516A (en)*2024-06-182024-10-15暗物智能科技(广州)有限公司 A content annotation method, device, computer equipment and readable storage medium based on human body skill operation video
CN119893174A (en)*2025-03-272025-04-25成都市灵奇空间软件有限公司Safety protection interaction system and safety protection interaction method based on visual video retrieval system

Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070077024A1 (en)*2005-04-152007-04-05Sony CorporationInput apparatus, input method, input control program, reproduction apparatus, reproduction control method, and reproduction control program
CN101025987A (en)*2006-02-212007-08-29广州市纽帝亚资讯科技有限公司Video play fast forward/fast rewind method and device based on video content
CN101770795A (en)*2009-01-052010-07-07联想(北京)有限公司Computing device and video playing control method
CN103179465A (en)*2013-03-222013-06-26广东欧珀移动通信有限公司 Method and mobile terminal for video playback progress control
CN104954875A (en)*2015-05-282015-09-30北京奇艺世纪科技有限公司Method and device for controlling video playing progress
CN105916035A (en)*2015-12-152016-08-31乐视致新电子科技(天津)有限公司Display method for quick positioning of playing time point and display device thereof
CN106648359A (en)*2016-11-292017-05-10维沃移动通信有限公司Method for adjusting video playback progress and mobile terminal
CN106648426A (en)*2016-11-292017-05-10维沃移动通信有限公司Method for adjusting video playing progress and mobile terminal
CN106681603A (en)*2016-11-292017-05-17维沃移动通信有限公司Method for adjusting video playing progress and mobile terminal
CN106681604A (en)*2016-11-292017-05-17维沃移动通信有限公司Method for adjusting video playing progress and mobile terminal

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070077024A1 (en)*2005-04-152007-04-05Sony CorporationInput apparatus, input method, input control program, reproduction apparatus, reproduction control method, and reproduction control program
CN101025987A (en)*2006-02-212007-08-29广州市纽帝亚资讯科技有限公司Video play fast forward/fast rewind method and device based on video content
CN101770795A (en)*2009-01-052010-07-07联想(北京)有限公司Computing device and video playing control method
CN103179465A (en)*2013-03-222013-06-26广东欧珀移动通信有限公司 Method and mobile terminal for video playback progress control
CN104954875A (en)*2015-05-282015-09-30北京奇艺世纪科技有限公司Method and device for controlling video playing progress
CN105916035A (en)*2015-12-152016-08-31乐视致新电子科技(天津)有限公司Display method for quick positioning of playing time point and display device thereof
CN106648359A (en)*2016-11-292017-05-10维沃移动通信有限公司Method for adjusting video playback progress and mobile terminal
CN106648426A (en)*2016-11-292017-05-10维沃移动通信有限公司Method for adjusting video playing progress and mobile terminal
CN106681603A (en)*2016-11-292017-05-17维沃移动通信有限公司Method for adjusting video playing progress and mobile terminal
CN106681604A (en)*2016-11-292017-05-17维沃移动通信有限公司Method for adjusting video playing progress and mobile terminal

Cited By (12)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114339397A (en)*2021-12-232022-04-12北京百度网讯科技有限公司Multimedia editing information determination method, device, equipment and storage medium
CN114339397B (en)*2021-12-232023-08-11北京百度网讯科技有限公司Method, device, equipment and storage medium for determining multimedia editing information
US12287947B2 (en)2021-12-232025-04-29Beijing Baidu Netcom Science Technology Co., Ltd.Method and apparatus for determining multimedia editing information, device and storage medium
CN114339446A (en)*2021-12-282022-04-12北京百度网讯科技有限公司Audio and video editing method, device, equipment, storage medium and program product
CN114339446B (en)*2021-12-282024-04-05北京百度网讯科技有限公司 Audio and video editing method, device, equipment, storage medium and program product
CN114598912A (en)*2022-02-102022-06-07互影科技(北京)有限公司Multimedia file display method and device, storage medium and electronic equipment
CN114598912B (en)*2022-02-102024-05-10互影科技(北京)有限公司Multimedia file display method and device, storage medium and electronic equipment
CN115171241A (en)*2022-06-302022-10-11南京领行科技股份有限公司Video frame positioning method and device, electronic equipment and storage medium
CN115171241B (en)*2022-06-302024-02-06南京领行科技股份有限公司Video frame positioning method and device, electronic equipment and storage medium
CN118158482A (en)*2024-03-192024-06-07北京达佳互联信息技术有限公司 Multimedia resource playing method, device, electronic device and storage medium
CN118781516A (en)*2024-06-182024-10-15暗物智能科技(广州)有限公司 A content annotation method, device, computer equipment and readable storage medium based on human body skill operation video
CN119893174A (en)*2025-03-272025-04-25成都市灵奇空间软件有限公司Safety protection interaction system and safety protection interaction method based on visual video retrieval system

Similar Documents

PublicationPublication DateTitle
CN110430450A (en)A kind of method, apparatus and electronic equipment of video location
KR101951135B1 (en)Method for scaling video image, and mobile terminal
CN107968921B (en) Video generation method, device and electronic device
CN109905754B (en)Virtual gift receiving method and device and storage equipment
JP6875346B2 (en) Information processing methods and devices, storage media, electronic devices
CN111223047B (en)Image display method and electronic equipment
CN110944224B (en)Video playing method and electronic equipment
CN104166553B (en)A kind of display methods and electronic equipment
WO2019100754A1 (en)Human body movement identification method and device, and electronic device
CN108024073B (en)Video editing method and device and intelligent mobile terminal
CN105872815A (en)Video playing method and device
KR20180050384A (en) Application processing method and apparatus
JP2012083801A (en)Display control program, display control system, display control device, and display control method
CN111182211B (en) Shooting method, image processing method, and electronic device
CN108616771B (en)Video playing method and mobile terminal
CN110351593A (en)Information processing method, device, terminal device and computer readable storage medium
CN114449162B (en)Method, device, computer equipment and storage medium for playing panoramic video
CN114721575B (en)Text content processing method and device and electronic equipment
CN109743438A (en)A kind of method and apparatus sending multimedia messages
CN110944139A (en) A display control method and electronic device
CN108390961B (en)Touch response method and device, readable storage medium and mobile terminal
US20150309681A1 (en)Depth-based mode switching for touchless gestural interfaces
CN111131706B (en) Video picture processing method and electronic device
CN109361864B (en)Shooting parameter setting method and terminal equipment
CN106507201A (en)A kind of video playing control method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20191108

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp