Video recommendation method and system
Technical field
The present invention relates to video information process technical field, and in particular to a kind of video recommendation method and system.
Background technology
In today of information technology rapid development, video playback has been goed deep into the journey life of people.People it is daily go out
During row means of transportation, often in riding process by Vehicular video playback equipment or carry mobile terminal device see
Video is seen, passenger can increase enjoyment for uninteresting route by watching video, study professional knowledge, understand Domestic News in time
Deng.In the prior art, passenger is often random while taking a bus or opens a certain video according to the hobby of oneself, but to when getting off
Video is not finished playing also, and now passenger can only be abandoned watching, and very big inconvenience is brought to passenger.Although passenger can pass through it
Carry terminal device to continue to watch after getting off, but viewing video carrys out very big peace to personal safety belt during it is walked
Full hidden danger.
The content of the invention
Possibly video can not be watched on the road the invention solves user in the prior art, made troubles to user
Technical problem, and then a kind of video recommendation method and system are provided.
To solve its technical problem, the embodiment of the present invention provides a kind of video recommendation method, comprised the following steps:
Obtain the playing duration of each video;
Obtain duration needed for route;
Recommended video is determined according to the relation of duration needed for the playing duration of each video and route.
Alternatively, recommended video is determined in the relation of duration needed for the playing duration according to each video and route
Step include when the time difference between duration needed for the playing duration and route of some video within a preset range when, recommend
The video.
Alternatively, in the step of obtaining duration needed for route, in addition to:
Obtain current location and target location;
Obtain selected path and trip mode;
The duration according to needed for current location, target location, path and trip mode calculate route.
Alternatively, in the step of obtaining duration needed for route, including:
Obtain current location and target location;
Obtain selected path and the traffic information with the path;
The duration according to needed for the traffic information in current location, target location, path and the path calculates route.
Alternatively, in addition to Video Key information is obtained, according to Video Key information, the video recommended is divided
Class.
Alternatively, in addition to obtain searching keyword;According to the matching degree of Video Key information and the searching keyword,
The video recommended is ranked up.
Based on same inventive concept, the embodiment of the present invention also provides a kind of video recommendation system, including:
Video duration acquiring unit, for obtaining the playing duration of each video;
Route duration acquiring unit, for obtaining duration needed for route;
Video recommendations unit, determine that is recommended regards according to the relation of duration needed for the playing duration of each video and route
Frequently.
Alternatively, in video recommendations unit, the time between duration needed for the playing duration and route of some video
Difference within a preset range when, recommend the video.
Alternatively, in addition to:
First position acquiring unit, for obtaining current location information and target position information;
Path and trip mode acquiring unit, for obtaining selected path and trip mode;
First route duration calculation unit, for calculating route according to current location, target location, path and trip mode
Required duration.
Alternatively, in addition to:
Second place acquiring unit, for obtaining current location and target location;
Path and traffic information acquiring unit, for obtaining selected path and traffic information with the path;
Second distance duration calculation unit, for the traffic information according to current location, target location, path and the path
Calculate duration needed for route.
Alternatively, in addition to visual classification unit, for according to Video Key information, dividing the video recommended
Class.
Alternatively, in addition to keyword acquiring unit, for obtaining searching keyword;Video sequencing unit, for basis
Video Key information and the matching degree of the searching keyword, are ranked up to the video recommended.
Video recommendation method and system described in the embodiment of the present invention, method therein comprise the following steps:Obtain each
Duration needed for the playing duration and route of video, according to the relation of duration needed for the duration and route of each video, recommend to regard
Frequency is watched for user.Ensure that user in duration, is completely watching selected video described in route by such scheme.Route knot
It need not abandon watching during beam, improve Consumer's Experience;It need not utilize in walking and be watched from tape terminal, it is hidden to eliminate safety
Suffer from.
Brief description of the drawings
Fig. 1 is the flow chart of video recommendation method described in the embodiment of the present invention 1.
Fig. 2 is the step S102 of video recommendation method described in the embodiment of the present invention 2 flow chart.
Fig. 3 is the step S102 of video recommendation method described in the embodiment of the present invention 3 flow chart.
Fig. 4 is the flow chart of video recommendation system described in the embodiment of the present invention 4.
Fig. 5 is the structural representation of video recommendation system described in the embodiment of the present invention 5.
Fig. 6 is the structural representation of the structure 502 of video recommendation system described in the embodiment of the present invention 6.
Fig. 7 is the structural representation of the structure 502 of video recommendation system described in the embodiment of the present invention 7.
Fig. 8 is the structural representation of video recommendation system described in the embodiment of the present invention 8.
Fig. 9 is the electronic equipment hardware architecture diagram of video recommendation system described in the embodiment of the present invention 9.
Embodiment
Video recommendation method and system described in the embodiment of the present invention, it is applicable to mobile phone, vehicle-mounted heel row entertainment systems etc.
In terminal device.User can use above-mentioned terminal device viewing video during trip, when riding public transportation means.User is first
Into video recommendations interface, video is selected to be watched.Video recommendation method and system described in the embodiment of the present invention, i.e. basis
Duration needed for video playback duration and route determines which video is added in video recommendations interface, is selected for user.Separately
Outside, it is still available when closing video playback interface returns again to video recommendations interface if user has watched current video
The video that video recommendation method and system described in the embodiment of the present invention determine to recommend is with to the progress of the video recommendations interface of return
Renewal.Such scheme is described in detail with reference to specific embodiment and accompanying drawing.
Embodiment 1
As shown in figure 1, the video recommendation method provided for the present embodiment, comprises the following steps:
S101, obtain the playing duration of each video.The video can be the local video cached or
The video that network plays online., can the local video cached of preferential recommendation to save flow.
S102, obtain duration needed for route.Obtain the time that current location is consumed into the route of target location.Its
In, geographical position when current location is into video recommendations interface residing for user, can first enter into video recommendations
Geographical position or one section of video backed off after random current video of viewing or current video during interface residing for user play
Cheng Shi, geographical position when being back to video recommendations interface residing for user.
During the present embodiment above method application scenario difference, the mode of duration is different needed for acquisition route, such as:
The above method is carried in terminal device applied to user, starts route or trip when user has ridden public transportation means
In Cheng Jinhang ways, user wants viewing video, if user can be according to the actual conditions accurate judgement route institute of oneself route
Taken time (such as the time required to route can be more accurately estimated when taking subway), then user can be voluntarily inputted needed for route
Duration.
The above method be applied to vehicle-mounted terminal equipment in, such as user by taxi-hailing software preengage taxi when, preengaging
When will by the current location of user and target location by taxi-hailing software send in the terminal entrained by taxi driver with
And in vehicle-mounted heel row entertainment systems terminal, after passenger loading, taxi driver starts to set out, now vehicle-mounted heel row entertainment systems
The duration according to needed for being calculated this route in current location and target location and other information.
S103, recommended video is determined according to the relation of duration needed for the playing duration of each video and route.Generally
In the case of, the playing duration of the video of recommendation is slightly less than duration needed for route, such as centered on duration needed for route, recommends short
All videos within duration needed for route 5 minutes, it is therefore an objective to ensure completely watch video at the end of route.Recommend
The playing duration of video can also be slightly longer than duration needed for route, such as the time span of or so 1-2 minutes, and user can be by fast
Enter to omit the contents such as start or end and nor affect on viewing.Prepare to get off to enable users to the time of abundance, preferably recommend to broadcast
Put the video that duration is shorter than duration needed for route.
Video recommendation method described in above-described embodiment, by obtain each video playing duration and route needed for when
Video that is long, determining to recommend according to relation between the two, enables users to watch the video oneself liked on the road.
Embodiment 2
The present embodiment does following improvement on the basis of above-described embodiment 1, as shown in Fig. 2 step S102 uses such as lower section
Method is realized:
S202, obtain current location and target location.
S203, obtain selected path and trip mode.
S204, the duration according to needed for current location, target location, path and trip mode calculate route.
Method described above is applied to illustrate exemplified by carrying in mobile terminal, and user during going on a journey by bus, profit
With mobile terminal viewing video is carried, the list of videos of recommendation can be now obtained in aforementioned manners.In above-mentioned steps, present bit
Put and all can be inputted with target location by user, or current location is obtained using positioner, target location is inputted by user.
Existing mobile terminal is configured with d GPS locating module in itself, and the current location of mobile terminal can be accurately obtained using the locating module.
After current location and target location is obtained, obtain trip mode, trip mode can be inputted by user according to actual conditions or
Selection.Trip mode includes drive mode, public transport, subway etc., and different trip modes, its speed and path are all differed
Sample, the trip mode only determined and the path determined, the time required to could more accurately calculating route.Root described in the present embodiment
It is suitable for according to duration needed for current location, target location, path and trip mode calculating route this substantially not similar to subway
The trip mode influenceed by environment such as weather, road conditions.
Embodiment 3
In the present embodiment, as shown in figure 3, step S102 may be accomplished by:
S302, obtain current location and target location.
S303, obtain selected path and the traffic information with the path.
S304, the duration according to needed for the traffic information in current location, target location, path and the path calculates route.
It is different with embodiment 2, without this information of acquisition trip mode in above-mentioned steps S302.Therefore, this implementation
The method that example provides is applied to the situation of clear and definite trip mode, namely carries out video-see by car-mounted terminal.For example, taxi
Vehicle-mounted heel row entertainment systems.User is called a taxi by taxi-hailing software, can directly by the current location included in information of calling a taxi and
Target location is sent to vehicle-mounted rear entertainment systems, and its vehicle-mounted heel row entertainment systems records current location and the target of user automatically
Position.After user gets on the bus, when selection enters video recommendations interface, vehicle-mounted heel row entertainment systems are obtained by d GPS locating module
Current location, combining target position, traffic information is obtained, and is recommended according to traffic information to avoid the path of congested link automatically,
Then the time required to calculating route according to information above.When trip mode is motor vehicle, traffic information is to influence to calculate route
One key factor of required time.Therefore the influence factor is added when the time required to calculating route, result of calculation can be made more
Accurately.
Embodiment 4
On the basis of any of the above-described embodiment, as shown in figure 4, may also include by taking embodiment 1 as an example, in the present embodiment as
Lower step:
S401, obtain the playing duration of each video.
S402, obtain duration needed for route.
S403, recommended video is determined according to the relation of duration needed for the playing duration of each video and route.
S404, Video Key information is obtained, and according to Video Key information, the video recommended is classified.Wherein
Video Key information can be video name, brief introduction, main performers and clerks etc..Classification results can be news category, video display
Acute class etc..The video of recommendation is classified, the user that is more convenient for is selected according to oneself demand or hobby.
Further, can also include:
S405, obtain searching keyword.Obtain searching keyword of the user according to hobby input.
S406, according to Video Key information and the matching degree of the searching keyword, the video recommended is ranked up.
To all videos of recommendation, when the key message and very high acquired searching keyword matching degree of some video, then come
Forward position, if matching degree is low, position rearward is arranged, the video ranking results of recommendation is matched with user's request.
Embodiment 5
Based on same inventive concept, the embodiment of the present invention also provides a kind of video recommendation system, as shown in figure 5, structure bag
Include video duration acquiring unit 501, route duration acquiring unit 502 and video recommendations unit 503.
Video duration acquiring unit 501, for obtaining the playing duration of each video;
Route duration acquiring unit 502, for obtaining duration needed for route;
Video recommendations unit 503, determine to be recommended according to the relation of duration needed for the playing duration of each video and route
Video.I.e. when the time difference between duration needed for the playing duration and route of some video within a preset range when, recommend
The video.
Video recommendation system described in the present embodiment, by obtaining duration needed for each video duration and route, and divide
Analyse each video playing duration and route needed for duration relation, so that it is determined that the video recommended, make the video of recommendation
Meet duration needed for route, allow user in route with regard to the video liked can be finished watching.
Embodiment 6
Preferably to obtain route duration, as shown in fig. 6, route duration acquiring unit 502 also includes:
First position acquiring unit 6021, for obtaining current location information and target position information.Wherein current location
It can be inputted with target location by user, and current location can also be provided by d GPS locating module.
Path and trip mode acquiring unit 6022, for obtaining selected path and trip mode, different trip sides
The path of its determination of formula is different, and its speed is also different, therefore need to obtain trip mode and the path determined simultaneously.
First route duration calculation unit 6023, for being calculated according to current location, target location, path and trip mode
Duration needed for route.
System described in the present embodiment, the trip mode not influenceed suitable for trips such as subway, high ferros by road conditions, make required
Route duration is accurately calculated.
Embodiment 7
When trip mode is motor vehicle, traffic information is a key factor the time required to influenceing route, therefore such as Fig. 7
Shown, route duration acquiring unit 502 also includes:
Second place acquiring unit 7021, for obtaining current location and target location
Path and traffic information acquiring unit 7022, for obtaining selected path and traffic information with the path
Second duration calculation unit 7023, for the traffic information according to current location, target location, path and the path
Calculate duration needed for route.
Above-described embodiment adds traffic information this influence factor, makes route institute in a manner of Vehicle emission
The result of calculation to take time is more accurate.
Embodiment 8
On the basis of video recommendation system described in any of the above-described embodiment, as shown in figure 8, by taking embodiment 5 as an example, this reality
Applying example includes following structure:
Video duration acquiring unit 801, for obtaining the playing duration of each video;
Route duration acquiring unit 802, for obtaining duration needed for route;
Video recommendations unit 803, determine to be recommended according to the relation of duration needed for the playing duration of each video and route
Video.
Visual classification unit 804, for according to Video Key information, classifying to the video recommended.The video
Taxon, the video of recommendation is classified, be easy to user to be selected according to oneself demand or hobby.
Keyword acquiring unit 805, for obtaining searching keyword.
Video sequencing unit 806, for the matching degree according to Video Key information and the searching keyword, to being recommended
Video be ranked up.
Keyword acquiring unit is used for the searching keyword for obtaining user's input, and video sequencing unit is according to keyword pair
The video recommended is ranked up, and the video ranking results of recommendation is matched with user's request.
Embodiment 9
The embodiment of the present application provides a kind of nonvolatile computer storage media, and the computer-readable storage medium is stored with
Computer executable instructions, the computer executable instructions can perform the list items operation video in above-mentioned any means embodiment
The processing method of recommendation.
Embodiment 10
Fig. 9 is that the hardware configuration of the electronic equipment of the processing method for the execution video recommendations that the embodiment of the present application 10 provides shows
It is intended to, as shown in figure 9, the equipment includes:
One or more processors 901 and memory 902, in Fig. 9 by taking a processor 901 as an example.
Performing the equipment of the processing method of video recommendations can also include:Input unit 903 and output device 904.
Processor 901, memory 902, input unit 903 and output device 904 can pass through bus or other modes
Connect, in Fig. 9 exemplified by being connected by bus.
Memory 902 is used as a kind of non-volatile computer readable storage medium storing program for executing, available for storage non-volatile software journey
Sequence, non-volatile computer executable program and module, the processing method such as the video recommendations in the embodiment of the present application are corresponding
Programmed instruction/module (for example, video duration acquiring unit 501, route duration acquiring unit 502 and video shown in accompanying drawing 5
Recommendation unit 503).Processor 901 is stored in non-volatile software program, instruction and mould in memory 902 by operation
Block, various function application and data processing so as to execute server, that is, realize the places of above method embodiment video recommendations
Reason method.
Memory 902 can include storing program area and storage data field, wherein, storing program area can store operation system
Application program required for system, at least one function;Storage data field can store the use of the processing unit according to video recommendations
Data created etc..In addition, memory 902 can include high-speed random access memory, non-volatile deposit can also be included
Reservoir, for example, at least a disk memory, flush memory device or other non-volatile solid state memory parts.In some implementations
In example, memory 902 is optional including that can pass through relative to the remotely located memory of processor 901, these remote memories
Network connection to video recommendations processing unit.The example of above-mentioned network includes but is not limited to internet, intranet, local
Net, mobile radio communication and combinations thereof.
Input unit 903 can receive the numeral or character information of input, and produce and the processing unit of video recommendations
The key signals input that user is set and function control is relevant.Output device 904 may include the display devices such as display screen.
One or more of modules are stored in the memory 902, when by one or more of processors
During 901 execution, the processing method of the video recommendations in above-mentioned any means embodiment is performed.
The said goods can perform the method that the embodiment of the present application is provided, and possesses the corresponding functional module of execution method and has
Beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present application is provided.
The electronic equipment of the embodiment of the present invention exists in a variety of forms, includes but is not limited to:
(1) mobile communication equipment:The characteristics of this kind equipment is that possess mobile communication function, and to provide speech, data
Communicate as main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, feature mobile phone, and it is low
Hold mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, there is calculating and processing work(
Can, typically also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play content of multimedia.The kind equipment includes:Audio,
Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigation equipment.
(4) server:The equipment for providing the service of calculating, the composition of server are total including processor, hard disk, internal memory, system
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, therefore in processing energy
Power, stability, reliability, security, scalability, manageability etc. require higher.
(5) other electronic installations with data interaction function.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can
To be or may not be physically separate, it can be as the part that unit is shown or may not be physics list
Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs
In some or all of module realize the purpose of this embodiment scheme.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on
The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should
Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers
Make to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation
Method described in some parts of example or embodiment.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.