CN109104642A - A kind of video generation method and device - Google Patents

A kind of video generation method and device Download PDF

Info

Publication number
CN109104642A
CN109104642A CN201811124483.0A CN201811124483A CN109104642A CN 109104642 A CN109104642 A CN 109104642A CN 201811124483 A CN201811124483 A CN 201811124483A CN 109104642 A CN109104642 A CN 109104642A
Authority
CN
China
Prior art keywords
video
video file
period
specific
file
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
CN201811124483.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 Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201811124483.0A priority Critical patent/CN109104642A/en
Publication of CN109104642A publication Critical patent/CN109104642A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/23418Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/23424Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring 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/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity

Abstract

The embodiment of the present application discloses a kind of video generation method and device, it specifically includes, obtain the first video file, and multiple specific video clips are extracted from first video file automatically, then multiple specific video clips are spliced, generate corresponding second video file of the first video file, that is, when needing to generate the corresponding short-movie video of the first video file, multiple video clips can be extracted from the first video file automatically, the corresponding short-movie video of first video file is spliced into using multiple video clip, short-movie video passes through video generation method provided by the embodiments of the present application, it can be automatic, it is quickly generated short-movie video, avoid in the prior art the production cost as caused by manual manufacture video it is higher, slow-footed problem, improve formation efficiency, reduce production cost.

Description

A kind of video generation method and device
Technical field
This application involves Internet technical fields, and in particular to a kind of video generation method and device.
Background technique
With universal and network the speed-raising of mobile terminal, the short-movie video propagated on the Internet media platform is more next More by the concern of user, short-movie video can be suitble to it is being watched under moving condition and in short-term leisure state, be suitble to high frequency The video content of push.In the prior art, the production of short-movie video be originated from mostly UGC (User Generated Content, User's original content), i.e., by human-edited, produce and generate short-movie video.But by manual manufacture video production higher cost, Speed is slower, is unable to satisfy growing user video viewing demand.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of video generation method and device, to solve in the prior art by people Work makes video production higher cost, slow technical problem.
To solve the above problems, technical solution provided by the embodiments of the present application is as follows:
In a first aspect, the embodiment of the present application provides a kind of video generation method, this method comprises:
Obtain the first video file;
Extract the specific video clip in first video file;
The specific video clip is spliced, corresponding second video file of first video file is generated.
In one possible implementation, the specific video clip extracted in first video file, comprising:
First video file is divided into multiple video sub-segments;
Extract the specific video clip for dividing obtained all or part of video sub-segments.
In one possible implementation, the specific video clip extracted in first video file, comprising:
User behavior data when being played according to the first video file history extracts the spy of first video file Determine video clip;
And/or the attribute information according to first video file, extract the particular video frequency piece of first video file Section.
In one possible implementation, the user behavior number when broadcasting according to the first video file history According to the specific video clip of extraction first video file, comprising:
Obtain the data of the history playback progress adjustment behavior for first video file;
The data that behavior is adjusted according to the playback progress, determine effective F.F. period in first video file And/or effective rewind period;
Video content after effective F.F. period in the first preset time period is extracted as specific video clip, And/or the video content in extraction effective rewind period is as specific video clip.
In one possible implementation, the data that behavior is adjusted according to the playback progress, determine described the Effective F.F. period and/or effective rewind period in one video file, comprising:
The data that behavior is adjusted according to the playback progress, determine the F.F. period that multiple historical users generate respectively And/or the rewind period;
The period that multiplicity is higher than the first preset condition is determined as effective F.F. time in the F.F. period Section;The period that multiplicity is higher than the second preset condition is determined as effective rewind period in the rewind period.
In one possible implementation, the user behavior data when broadcasting according to the first video file history, Extract the specific video clip of first video file, comprising:
Obtain the barrage data generated when the first video file plays;
The quantity for generating the barrage data is extracted in first video file greater than in the period of first threshold Video content as specific video clip.
In one possible implementation, the attribute information according to first video file extracts described the Specific video clip in one video file, comprising:
Obtain the mark of the video focus carried in first video file;
It is extracted in first video file in the video after the video focus in the second preset time period Hold and is used as specific video clip.
In one possible implementation, the method also includes:
Semantic analysis is carried out to the mark of the video focus, determines that video to be extracted is closed from the video focus Note point;
The video after the video focus in the second preset time period is then extracted in first video file Content includes: as specific video clip
It is extracted in first video file after the video focus to be extracted in second preset time period Video content is as specific video clip.
In one possible implementation, the attribute information according to first video file extracts described the Specific video clip in one video file, comprising:
The video attribute of first video file is obtained, the video attribute includes the image of frame per second and/or video frame Colorfulness;
Frame per second is extracted in first video file is greater than second threshold and/or image color richness greater than third threshold Video content in the period of value is as specific video clip.
In one possible implementation, the method also includes:
It obtains with the matched music of the first video file as background music;
After being spliced the specific video clip, the background music is added, generates first video file Corresponding second video file.
Second aspect, the embodiment of the present application provide a kind of video-generating device, and described device includes:
First acquisition unit, for obtaining the first video file;
Extraction unit, for extracting the specific video clip in first video file;
Concatenation unit generates first video file corresponding for splicing the specific video clip Two video files.
In one possible implementation, described device further include:
Division unit, for first video file to be divided into multiple video sub-segments;
The extraction unit divides the particular video frequency piece of obtained all or part of video sub-segments specifically for extracting Section.
In one possible implementation, the extraction unit is specifically used for according to the first video file history User behavior data when broadcasting extracts the specific video clip of first video file;And/or according to the first video text The attribute information of part extracts the specific video clip in first video file.
In one possible implementation, the extraction unit includes:
First obtains subelement, for obtaining the number for being directed to the history playback progress adjustment behavior of first video file According to;
It determines subelement, for adjusting the data of behavior according to the playback progress, determines in first video file Effective F.F. period and/or effective rewind period;
First extracts subelement, for extracting in the video after effective F.F. period in the first preset time period Hold and is used as specific video clip, and/or, the video content in effective rewind period is extracted as specific video clip.
In one possible implementation, the determining subelement includes:
First determines subelement, for adjusting the data of behavior according to the playback progress, determines multiple historical users point The F.F. period and/or rewind period not generated;
Second determines subelement, for multiplicity to be higher than to the period of the first preset condition in the F.F. period It is determined as effective F.F. period;The period that multiplicity is higher than the second preset condition is determined as in the rewind period Effective rewind period.
In one possible implementation, the extraction unit includes:
Second obtains subelement, for obtaining the barrage data generated when the first video file plays;
Second extracts subelement, and the quantity for extracting the generation barrage data in first video file is greater than Video content in the period of first threshold is as specific video clip.
In one possible implementation, the extraction unit includes:
Third obtains subelement, for obtaining the mark of the video focus carried in the first video file;
Third extracts subelement, pre- for extracting after the video focus second in first video file If the video content in the period is as specific video clip.
In one possible implementation, the extraction unit further include:
Subelement is analyzed, semantic analysis is carried out for the mark to the video focus, from the video focus Determine video focus to be extracted;
The third extracts subelement, is specifically used for extracting in first video file and close in the video to be extracted Video content after note point in the second preset time period is as specific video clip.
In one possible implementation, the extraction unit includes:
4th obtains subelement, and for obtaining the video attribute of first video file, the video attribute includes frame The image color richness of rate and/or video frame;
4th extracts subelement, is greater than second threshold and/or image for extracting frame per second in first video file Colorfulness is greater than the video content in the period of third threshold value as specific video clip.
In one possible implementation, described device further include:
Second acquisition unit, for obtaining with the matched music of the first video file as background music;
Adding unit, for after being spliced the specific video clip, adding the background music, described in generation Corresponding second video file of first video file.
The third aspect, the embodiment of the present application provide a kind of for generating the device of video, include memory, Yi Jiyi A perhaps more than one program one of them or more than one program is stored in memory, and is configured to by one Or it includes the instruction for performing the following operation that more than one processor, which executes the one or more programs:
Obtain the first video file;
Extract the specific video clip in the first video file;
The specific video clip is spliced, corresponding second video file of first video file is generated.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with instruction, when by one Or multiple processors are when executing, so that device executes video generation method described in first aspect.
It can be seen that the embodiment of the present application has the following beneficial effects:
The embodiment of the present application obtains the first video file, and extracts multiple particular video frequencies from first video file automatically Then segment splices multiple specific video clips, generate corresponding second video file of the first video file, that is, It says, when needing to generate the corresponding short-movie video of the first video file, multiple views can be extracted from the first video file automatically Frequency segment is spliced into the corresponding short-movie video of first video file using multiple video clip, and short-movie video passes through this Shen Please embodiment provide video generation method, can automatically and quickly generate short-movie video, avoid in the prior art by manually making Make that production cost caused by video is higher, slow-footed problem, improves formation efficiency, reduce production cost.
Detailed description of the invention
Fig. 1 is the block schematic illustration of exemplary application scene provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of video generation method provided by the embodiments of the present application;
Fig. 3 is that a kind of data for adjusting behavior according to playback progress provided by the embodiments of the present application extract specific video clip The flow chart of method;
Fig. 4 is a kind of flow chart that specific video clip method is extracted according to barrage data provided by the embodiments of the present application;
Fig. 5 is a kind of process that specific video clip method is extracted according to video focus provided by the embodiments of the present application Figure;
Fig. 6 is a kind of flow chart that specific video clip method is extracted according to video attribute provided by the embodiments of the present application;
Fig. 7 is a kind of structure chart of video-generating device provided by the embodiments of the present application;
Fig. 8 is another video-generating device structure chart provided by the embodiments of the present application;
Fig. 9 is a kind of server device topology schematic diagram provided by the embodiments of the present application.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific real Mode is applied to be described in further detail the embodiment of the present application.
The problems of short-movie video is being generated based on traditional technology described in background technique, inventor is by grinding Study carefully, propose a kind of video generation method, when needing to generate the corresponding short-movie video of certain video file, it is available first should Video file, and multiple specific video clips are automatically extracted from the video file, which can cover video The hot spot segment and/or main action segment of file, and multiple particular video files are spliced, generate the video file pair The short-movie video answered meets user video viewing demand, improves so as to quickly generate the corresponding short-movie video of video file Formation efficiency reduces cost.
Referring to Fig. 1, which is the block schematic illustration of exemplary application scene provided by the embodiments of the present application.Wherein, this Shen Please embodiment provide video generation method can be applied in server 20.
When practical application, server 20 obtains the first video file, and can be obtained by client 10 about the first view The user behavior or server 20 of frequency file extract the attribute information of the first video file from the information that itself is stored, so Afterwards, at least one particular video file can be extracted from the first video file according to user behavior and/or attribute information, so Afterwards, the particular video file of extraction is spliced, generates the second video file of the first video file.
It will be understood by those skilled in the art that block schematic illustration shown in FIG. 1 is only that presently filed embodiment can be An example being wherein achieved.The scope of application of the application embodiment is not limited by any aspect of the frame.
It should be noted that the client 10 in the embodiment of the present application can be equipped in terminal, terminal can be existing , it is researching and developing or in the future research and development, can by it is any type of wiredly and/or wirelessly connection (for example, Wi-Fi, LAN, Honeycomb, coaxial cable etc.) realize any user equipment for interacting with server 20, including but not limited to: existing, researching and developing Or in the future research and development smart phone, non-smart mobile phone, tablet computer, laptop PC, desktop personal computer, Minicomputer, medium-size computer, mainframe computer etc..It is also to be noted that server 20 can be in the embodiment of the present application It is one of the equipment of existing, researching and developing or research and development in the future, that information recommendation can be provided a user application services Example.Presently filed embodiment is unrestricted in this regard.
Technical solution provided by the present application for ease of understanding, below in conjunction with attached drawing to video generation side provided by the present application Method is illustrated.
Referring to fig. 2, which is a kind of flow chart of video generation method provided by the embodiments of the present application, as shown in Fig. 2, should Method may include:
S201: the first video file is obtained.
In the present embodiment, when needing to generate the short-movie video of the first video file, first can be obtained from alternative library Video file.It wherein, may include multiple the first video files for needing to generate short-movie video in alternative library.For in alternative library Any first video file, the short-movie video of first video file can be generated.In practical applications, can will have The video file that user completely watches history (not exiting or do not play out progress adjustment in midway) is put into alternative library.
S202: the specific video clip in the first video file is extracted.
In the present embodiment, for the short-movie video for generating the first video file, it can extract specific in the first video file Video clip.At this point, the first video file can be complete first video file, which may include first Hot spot segment and/or main action segment in video file.
In practical applications, it is the efficiency for improving extraction specific video clip, and guarantees extracted particular video frequency piece Section can cover multiple main time sections of the first video file, and step S202 can also include: to divide the first video file For multiple video sub-segments, the specific video clip for dividing obtained all or part of video sub-segments is then extracted, then is executed S203 splices the corresponding specific video clip of all videos sub-piece.
For example, the first video file be film " Ah sweet's main story ", then by the video file be divided into beginning video sub-segments, Intermediate video sub-piece and final result video sub-segments, extract at least one specific video clip from each video sub-segments, So as to obtain at least three specific video clips, and then S203 is executed according at least three specific video clips of acquisition.
It should be noted that in the multiple video sub-segments of actual division, it can be according to play time or playback progress pair First video file is divided, and can also be divided according to other rules, and the present embodiment is at this to the specific reality of division Existing mode is without limitation.
It is understood that the purpose that the present embodiment generates the short-movie video of the first video file is, it is generated short Piece video can allow user to quickly understand the important content and/or splendid contents of the first video file, therefore extract Specific video clip also needs the preview demand for meeting user.That is, when extracting the specific video clip of the first video file, It can be extracted according to preset condition.Be specifically as follows, according to the first video file history play when user behavior and/ Or the attribute information of first video file itself, it can according to user when watching first video file generated row For, such as barrage, the fast forward and fast reverse of transmission, can also the attribute information according to specific to first video file itself, example The frame per second or video focus of such as video carry out specific fragment extraction, so that the specific video clip extracted can be with Attract user's viewing, meets user and watch demand.
Wherein, specific video clip is extracted about according to the attribute information of user behavior and/or the first video file itself Specific implementation, will be illustrated in subsequent embodiment.
S203: specific video clip is spliced, and generates corresponding second video file of the first video file.
In the present embodiment, multiple specific video clips of extraction are spliced, so that it is corresponding to generate the first video file The second video file, i.e. the corresponding short-movie video of the first video file, so as to user by the short-movie video can be quick Solve the watching focus of first video file.
The embodiment of the present application obtains the first video file, and extracts multiple particular video frequencies from first video file automatically Then segment splices multiple specific video clips, generate corresponding second video file of the first video file.Namely It says, when needing to generate the corresponding short-movie video of the first video file, multiple views can be extracted from the first video file automatically Frequency segment is spliced into the corresponding short-movie video of first video file using multiple video clip.Pass through the embodiment of the present application The video generation method of offer can automatically and quickly generate short-movie video, avoid in the prior art by manual manufacture video institute It causes that production cost is higher, slow-footed problem, improves formation efficiency, reduce production cost.
Through the foregoing embodiment it is found that can be existed according to user when extracting the specific video clip of the first video file The attribute information of generated user behavior and/or first video file extracts when watching the first video file.Wherein, User behavior may include playback progress adjustment behavior and send barrage behavior, and attribute information may include first video text Video focus, the frame per second of video and the image color richness of video frame that part carries.It is specific for ease of understanding to extract Mode will be introduced respectively below how according to the attribute information of user behavior and the/the first video file extraction specific video clip.
First the implementation for extracting specific video clip according to user behavior will be illustrated below.
Referring to Fig. 3, which is provided by the embodiments of the present application a kind of according to user behavior extraction specific video clip method Flow chart, as shown in figure 3, this method may include:
S301: the data of the history playback progress adjustment behavior for the first video file are obtained.
It, can be by video playing client to when each user is when watching the first video file in the present embodiment The playback progress of one video file is adjusted, meanwhile, client can recorde user to the first video file playback progress The behavioral data generated when adjustment, and the behavioral data of record can be sent to server.It is literary when needing to obtain the first video When the short-sighted frequency of part, each user is obtained first, generated number when history playback progress adjusts is carried out to the first video file According to.The data can be to adjust time data when the first video file playback progress, for example, user is in the first video file The adjustment for sometime playing out progress stops the adjustment etc. of playback progress at another moment of the first video file.
It is understood that user for the first video file playback progress adjustment mode can there are many.User The adjustment of progress can be played out by triggering the corresponding fast forward button of the first video file or fast backspace key, it can also be by dragging The playing progress bar for moving first video file is adjusted.No matter which kind of user adjust playback progress in the way of, corresponding Initial time and end time are adjusted, then the adjustment initial time and end time are to be directed to broadcasting for the first video file The data of progress adjustment behavior are put, then S302 can be executed according to the initial time and end time.
Wherein, when user carries out F.F. adjustment to playback progress, the initial time of adjustment is earlier than the end time;Work as user When carrying out retreating adjustment to playback progress, the initial time of adjustment is later than the end time.For example, user watches " Ah sweet's main story " When, the F.F. since the 10th minute stopped F.F. at the 13rd minute, then the initial time adjusted is the 10th minute, at the end of Between be the 13rd minute;When user retreated since the 50th minute, in stopping in the 45th minute, then the initial time adjusted was the 50th point Clock, end time are the 45th minute.
S302: adjusting the data of behavior according to playback progress, determine in the first video file effective F.F. period and/or Effective rewind period.
In the present embodiment, when the corresponding time data of acquisition user's adjustment playback progress, the first video text can be determined Part corresponding effective F.F. period and/or effective rewind period, so as to according to effective F.F. period and/or effective rewind Period extracts specific video clip.
Wherein, effective F.F. period can be understood as having in the first video file that have carried out playback progress compared with multi-user fast Into period.Effective rewind period, which can be understood as having in the first video file, has carried out playback progress progress compared with multi-user The period of retrogressing.Effective F.F. period may be the period being not concerned in the first video file compared with multi-user, and to have The end time of effect F.F. period is that the video clip of starting point may be that most of user is interested.Effective rewind period It may be the period for watching, comparing concern in the first video file again compared with multi-user.
In practical applications, there may be maloperations when adjusting for user to playback progress, and need to guarantee to obtain Take multiple effective F.F. periods and/or effective rewind period.The history then obtained for first video file plays The specific implementation of the data of progress adjustment behavior may include: to obtain target user's going through at least twice for the first video file History playback progress adjust behavior data, and between any history playback progress adjustment behavior twice of same target user when Between interval be greater than preset time threshold, target user be any one or more users.It adjusts and goes further according to playback progress later For data, determine effective F.F. period and/or effective rewind period in the first video file.So as to avoid obtaining By the data for the history playback progress adjustment behavior that the maloperation behavior of user generates.
To allow the effective F.F. period obtained and/or effective rewind period preferably to reflect most users Behavior can determine that multiple historical users produce respectively according to user to the data of the first video file playback progress adjustment behavior The raw F.F. period and/or rewind period;Then multiplicity in the F.F. period is higher than to the time of the first preset condition Section is determined as effective F.F. period;The period that multiplicity in the rewind period is higher than the second preset condition is determined as effectively The rewind period.
In practical application, being directed to first video file, multiple historical users are obtained for first video file Playback progress be adjusted generated data, and then determine F.F. period and/or rewind time that each user generates Section.It is then possible to which number of repetition in multiple historical users corresponding F.F. period to be higher than to the period of the first preset condition As effective F.F. period, and/or, number of repetition in multiple historical users corresponding rewind period is higher than second and is preset The period of condition is as effective rewind period.
For example, being directed to film " Ah sweet's main story ", the F.F. period that user A is generated is -13 minutes the 10th minute, the 25th point Clock -31 minutes;The F.F. period that user B is generated is -13 minutes the 11st minute, -33 minutes the 26th minute;What user C was generated The F.F. period is -14 minutes the 11st minute, then repetition in -13 minutes the 11st minute in the F.F. period that three users generate Degree is 3, and -31 minutes the 26th minute multiplicities are 2, when the first preset condition is 2, then really by -13 minutes the 11st minute It is set to effective F.F. period, executes S303.
For another example the rewind period that user A is generated is-the 55 minute, -40 minutes the 44th minute the 60th minute;User B The rewind period of generation is -52 minutes the 57th minute, -38 minutes the 43rd minute;The rewind period that user C is generated is the 58th Minutes -51 minutes, -40 minutes the 43rd minute, then repetition in -55 minutes the 57th minute in the rewind period that three users generate Degree be -40 minutes the 3, the 43rd minute multiplicity be 3, when the second preset condition be 2 when, then by -55 minutes the 57th minute and It is determined as within -40 minutes within 43rd minute effective rewind period, executes S303.
It should be noted that the first preset condition and the second preset condition can according to the actual situation or experience is set Fixed, the present embodiment does not limit.
It is understood that for the playback progress of the first video file, adjustment can there is only F.F.s to adjust, can also be with There is only rewind adjustment, when there is only one of adjustment behavior, can only determine the adjustment behavior corresponding effective time Section, then executes S303.
It, can be with to guarantee that the period obtained can accurately reflect the focus of user in addition, it is necessary to explanation Second obtains user for unit and plays out generated time data when progress adjustment for the first video file.
S303: the video content after effective F.F. period in the first preset time period is extracted as particular video frequency piece Section, and/or, the video content in effective rewind period is extracted as specific video clip.
In the present embodiment, when acquisition is directed to the effective F.F. period and/or effective rewind period of the first video file When, using the video content in certain period after effective F.F. period as specific video clip, and/or, it will be effectively fast The video content in the period is moved back as specific video clip.
Wherein, the first preset time period can be preset fixed time period, or dynamic time section.Specifically When realization, different dynamic time sections can be set according to the duration of entire first video file, so as to extract meet this first The specific video clip of video file.For example, the first preset time period can be set as 1 minute, then when can be by effective F.F. Between video content in 1 minute after section as specific video clip;Alternatively, the duration when the first video file is more than 1 Half an hour, the first preset time period are 2 minutes;When the duration of the first video file be no more than it is 1 small when, the first preset time period It is 1 minute.Specific setting about the first preset time can determines according to actual conditions, and the present embodiment is to this without limit It is fixed.
It, can be according to behavior of the user when watching video to the playback progress adjustment of the first video file in the present embodiment Generated data extract specific video clip.The specific video clip can reflect what user paid special attention to when watching video Video content, so that the specific video clip of extraction to be spliced into the short-movie video of first video file.The short-movie piece of video Section can cover the hot spot segment or main action segment of the first video file, to meet the first video file of user's preview Demand.
Above embodiments illustrate the tools that the data according to caused by user's adjustment playback progress extract specific video clip Body is realized, extracts specific video clip according to the barrage data that user generates when watching video below in conjunction with attached drawing introduction.
Referring to fig. 4, which is provided by the embodiments of the present application a kind of according to barrage data generation specific video clip method Flow chart, as shown in figure 4, this method may include:
S401: the barrage data generated when the first video file plays are obtained.
In the present embodiment, the multiple periods for generating barrage data when the first video file plays are obtained first, are then united Count the quantity of barrage data in each period.
In practical applications, user is when watching the first video file, and when watching wonderful, user can be in essence Color segment playing time sends the comment of oneself by video jukebox software, to generate barrage data.When according to barrage data When generating specific video clip, when available first video file of server plays in generate periods of barrage data, with And each period corresponding barrage quantity extracts particular video frequency to execute S402 according to the barrage quantity of each period Segment.
S402: the quantity for generating barrage data is extracted in the first video file greater than the view in the period of first threshold Frequency content is as specific video clip.
In the present embodiment, the period and the period pair of barrage data are generated when obtaining the first video file and playing When the barrage quantity answered, the quantity of barrage data is greater than to the video content in the period of first threshold as particular video frequency piece Section.It is, using barrage a fairly large number of period corresponding video content as specific video clip.
For example, " Ah sweet's main story ", when playing, the period for generating barrage is respectively -27 minutes the 22nd minute, barrage number According to quantity be 20;- 43 minutes 41st minute, the quantity of barrage data was 50;And -69 minutes the 65th minute, barrage The quantity of data is 45, wherein first threshold is 30, then right by -27 minutes the 22nd minute and -69 minutes the 65th minute The video content answered is as specific video clip.
Wherein, first threshold is the minimum item number for determining barrage corresponding to specific video clip, about setting for first threshold Surely can determines according to actual conditions, the present embodiment is it is not limited here.
The method of the extraction specific video clip provided through this embodiment is used when can be played according to the first video file The barrage number of extracted specific video clip that family is sent.It is to compare to attract user due to generating a fairly large number of video clip of barrage Featured videos segment, therefore using the video clip as specific video clip, and the multiple specific video clips that will acquire are spelled It is connected into short-movie video, to meet the needs of user's the first video file of preview.
It is understood that in practical application, playback progress can also be adjusted to the data and barrage data phase of behavior In conjunction with to extract the high and period corresponding video content with a large amount of barrage data of multiplicity as particular video frequency piece Section.
When specific implementation, multiple specific video clips first can be extracted according to the data that playback progress adjusts behavior respectively, Multiple specific video clips are extracted according to barrage data.Then, it will be repeated in the specific video clip extracted by two ways Higher video clip is spent as final specific video clip, thus using final video fragment assembly at short-movie video.
When specific implementation, multiple specific video clips first can also be extracted according to the data that playback progress adjusts behavior, so Select to generate a fairly large number of specific video clip of barrage from multiple specific video clips further according to barrage data afterwards as most Whole specific video clip, to be spliced into short-movie video using final specific video clip.
When specific implementation, first can also extract multiple specific video clips according to barrage data, then further according to play into The data of degree adjustment behavior select the higher specific video clip of multiplicity as final specific from multiple specific video clips Video clip, to be spliced into short-movie video using final specific video clip.
Above embodiment described the tools that user behavior when being played according to the first video file extracts specific video clip Body implementation is said below in conjunction with attached drawing to according to the attribute information of the first video file extraction specific video clip It is bright.
Referring to Fig. 5, which is provided by the embodiments of the present application a kind of according to video focus extraction specific video clip side The flow chart of method, as shown in figure 5, this method may include:
S501: the mark of the video focus carried in the first video file is obtained.
In the present embodiment, the mark of the video focus carried in the first video is obtained first, which is to the video The simple introduction of video content after focus in certain period of time.
In practical applications, it is labeled with video focus in the video file of existing many video playback websites, it should Video focus is usually more excellent in the video file or plot material time point.It would generally be for the video focus It is labeled in the playing progress bar of video file, user is intuitively seen on video playing interface when watching video To the markup information of video focus and the video focus existing for current video file, so that user can quickly understand It the content of the video focus and quickly navigates to the video focus and is watched.For example, the broadcasting of the first video file It may include that being labeled with for video focus skips head, excellent watching focus 1, excellent watching focus 2, skips run-out etc. on progress bar.
S502: the video content after the video focus in the second preset time period is extracted in the first video file and is made For specific video clip.
In the present embodiment, the video content after video focus in preset time period can be extracted as particular video frequency piece Section.
Wherein, the second preset time period can be the preset period, and second after extraction video focus is pre- If the video content in the period is as specific video clip.For example, the second preset time period is 2 minutes, excellent watching focus 1 is corresponding Time point be 10 points 45 seconds, then since the time point, to 12 points 45 seconds stop, using the video content in the period as Specific video clip.
In one possible implementation, semantic point can also be carried out to the mark of video focus after S501 Analysis determines video focus to be extracted from video focus.
When the corresponding mark of the video focus for obtaining the first video file, semantic analysis is carried out to the mark, to obtain The physical meaning of the mark is taken, and then determines that video to be extracted is paid close attention to from multiple video focus according to the semanteme of the mark Point.
It is determined as example, can will be labeled as skipping head, excellent watching focus 1 and the corresponding video focus of excellent watching focus 2 Video focus to be extracted skips run-out not as video focus to be extracted.
Then S502 can be extraction second preset time period after video focus to be extracted in the first video file Interior video content is as specific video clip.
It first determines video focus to be extracted, then extracts after the video focus to be extracted in second preset time period Video content as specific video clip.The method of the extraction specific video clip provided through this embodiment, can basis Video focus entrained by first video file itself extracts specific video clip, since the video focus is artificial chooses The first video file wonderful, therefore, the specific video clip of extraction can cover the heat of the first video file positive Point segment and/or main action segment, meet the preview demand of user.
It should be noted that in practical applications, can will be extracted according to user behavior specific video clip and according to Video focus extracts specific video clip and combines, and thereby may be ensured that the specific video clip of extraction can attract user to see It sees.
Further, specific video clip can also be extracted according to the video attribute of the first video file, below in conjunction with Attached drawing is illustrated the extracting mode.
Referring to Fig. 6, which is provided by the embodiments of the present application a kind of according to video attribute extraction specific video clip method Flow chart, as shown in fig. 6, this method may include:
S601: the video attribute of the first video file is obtained.
In the present embodiment, obtain the first video file itself video attribute, the video attribute may include frame per second and/or The image color richness of video frame, so as to extract specific view according to the image color richness of frame per second and/or video frame Frequency segment.
Wherein, the frame per second of the first video file refers to the quantity per second for showing picture frame when the first video file plays, right Corresponding frame per second is relatively low when tableaux, broadcasting;For dynamic menu, corresponding frame per second is higher when broadcasting.Image color The bright-coloured lively degree of richness reflection color, the ornamental value of indirect reflecting video content, video content higher for ornamental value, Usual corresponding image color richness is higher, and video content lower for ornamental value, usual corresponding image color are rich Fu Du is lower.
In specific implementation, the image color richness that the first video file can be obtained by two ways, one is, Screenshot is carried out to the video pictures of the first video file, the picture of the video pictures is generated, is then obtained according to the size of the picture The corresponding image color richness of the video pictures is taken, the picture of generation is bigger, shows that image color richness is higher.It is another It is that image color richness is determined according to color category included in a frame image, included color kind in a frame image The bright image color richness of class more multilist is higher.
S602: frame per second is extracted in the first video file and is greater than second threshold and/or image color richness greater than third Video content in the period of threshold value is as specific video clip.
In the present embodiment, using frame per second in the first video file be greater than second threshold period corresponding video content as Specific video clip, and/or, image color richness is greater than the period corresponding video content of third threshold value as specific Video clip.
Wherein, second threshold and third threshold value can be determined according to the video attribute of first video file itself, To ensure to extract multiple specific video clips of the first video file, and then it is spliced into the short-movie view of the first video file Frequently.
The method of the extraction specific video clip provided through the foregoing embodiment, can be according to the first video file itself Video attribute extracts, and without relying on user behavior, improves the efficiency for generating short-movie video.
In the embodiment of the present application, the mode of four kinds of extraction specific video clips is provided.For above-mentioned four kinds of extraction sides Formula can carry out any combination, to extract specific video clip using a variety of extracting modes, to guarantee the specific view extracted Frequency segment can cover the hot spot segment and/or main action segment of the first video file positive, meet and regard for preview first The demand of frequency file.
In a kind of possible implementation of the embodiment of the present application, background sound can also be added for the short-movie video generated It is happy, improve user's viewing experience.It is specifically as follows, obtains with the matched music of the first video file as background music, inciting somebody to action After specific video clip is spliced, the background music is added, generates corresponding second video file of the first video file.
In specific implementation, the music to match with the first video file type is obtained, such as when the first video file is When funny video, then cheerful and light-hearted music is chosen as background music;When the first video file is disaster video, then choose heavy Music as background music etc., preferably to attract user to watch the short-movie video.
Based on above method embodiment, the embodiment of the present application also provides a kind of video-generating devices, below in conjunction with attached Figure is illustrated the device.
Referring to Fig. 7, which is a kind of video-generating device structure chart provided by the embodiments of the present application, which can wrap It includes:
First acquisition unit 701, for obtaining the first video file;
Extraction unit 702, for extracting the specific video clip in the first video file;
It is corresponding to generate first video file for splicing the specific video clip for concatenation unit 703 Second video file.
In one possible implementation, described device further include:
Division unit, for first video file to be divided into multiple video sub-segments;
The extraction unit divides the particular video frequency piece of obtained all or part of video sub-segments specifically for extracting Section.
In one possible implementation, the extraction unit is specifically used for being played according to the first video file history When user behavior data, extract the first video file in specific video clip;And/or the category according to the first video file Property information, extract the specific video clip in first video.
In one possible implementation, the extraction unit includes:
First obtains subelement, for obtaining the data for being directed to the history playback progress adjustment behavior of the first video file;
It determines subelement, for adjusting the data of behavior according to the playback progress, determines in first video file Effective F.F. period and/or effective rewind period;
First extracts subelement, for extracting in the video after effective F.F. period in the first preset time period Hold and is used as specific video clip, and/or, the video content in effective rewind period is extracted as specific video clip.
In one possible implementation, the determining subelement includes:
First determines subelement, for adjusting the data of behavior according to the playback progress, determines multiple historical users point The F.F. period and/or rewind period not generated;
Second determines subelement, for multiplicity to be higher than to the period of the first preset condition in the F.F. period It is determined as effective F.F. period;The period that multiplicity is higher than the second preset condition is determined as in the rewind period Effective rewind period.
In one possible implementation, the extraction unit includes:
Second obtains subelement, for obtaining the barrage data generated when the first video file plays;
Second extracts subelement, and the quantity for extracting the generation barrage data in first video file is greater than Video content in the period of first threshold is as specific video clip.
In one possible implementation, the extraction unit includes:
Third obtains subelement, for obtaining the mark of the video focus carried in the first video file;
Third extracts subelement, pre- for extracting after the video focus second in first video file If the video content in the period is as specific video clip.
In one possible implementation, the extraction unit further include:
Subelement is analyzed, semantic analysis is carried out for the mark to the video focus, from the video focus Determine video focus to be extracted;
The third extracts subelement, is specifically used for extracting in first video file and close in the video to be extracted Video content after note point in the second preset time period is as specific video clip.
In one possible implementation, the extraction unit includes:
4th obtains subelement, for obtaining the video attribute of the first video file, the video attribute include frame per second with/ Or the image color richness of video frame;
4th extracts subelement, is greater than second threshold and/or image for extracting frame per second in first video file Colorfulness is greater than the video content in the period of third threshold value as specific video clip.
In one possible implementation, described device further include:
Second acquisition unit, for obtaining with the matched music of the first video file as background music;
Adding unit, for after being spliced the specific video clip, adding the background music, described in generation Corresponding second video file of first video file.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 8 shows a kind of block diagram for generating video-unit 800.For example, device 800 can be mobile phone, computer, Digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant Deng.
Referring to Fig. 8, device 800 may include following one or more components: processing component 802, memory 804, power supply Component 806, multimedia component 808, audio component 810, the interface 89 of input/output (I/O), sensor module 814, Yi Jitong Believe component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing element 802 may include that one or more processors 820 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown Example includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management system System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 808 includes a front camera and/or rear camera.When equipment 800 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set Part 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 89 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can be with It is keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and locking Button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor module 814 can detecte the state that opens/closes of equipment 800, and the relative positioning of component, for example, it is described Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800 Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing following methods:
Obtain the first video file;
Extract the specific video clip in the first video file;
The specific video clip is spliced, corresponding second video file of first video file is generated.
Optionally, the method also includes:
First video file is divided into multiple video sub-segments;
Extract the specific video clip for dividing obtained all or part of video sub-segments.
Optionally, user behavior data when being played according to the first video file extracts in first video file Specific video clip;And/or the attribute information according to the first video file, extract the specific view in first video file Frequency segment.
Optionally, the user behavior data when broadcasting according to the first video file, extracts first video file In specific video clip, comprising:
Obtain the data of the playback progress adjustment behavior for the first video file;
The data that behavior is adjusted according to the playback progress, determine effective F.F. period in first video file And/or effective rewind period;
Video content after effective F.F. period in the first preset time period is extracted as specific video clip, And/or the video content in extraction effective rewind period is as specific video clip.
Optionally, the data that behavior is adjusted according to the playback progress determine in first video file effectively F.F. period and/or effective rewind period, comprising:
The data that behavior is adjusted according to the playback progress, determine the F.F. period that multiple historical users generate respectively And/or the rewind period;
The period that multiplicity is higher than the first preset condition is determined as effective F.F. time in the F.F. period Section;The period that multiplicity is higher than the second preset condition is determined as effective rewind period in the rewind period.
Optionally, the user behavior data when broadcasting according to the first video file, extracts first video file Specific video clip, comprising:
Obtain the barrage data generated when the first video file plays;
The quantity for generating the barrage data is extracted in first video file greater than in the period of first threshold Video content as specific video clip.
Optionally, the attribute information according to the first video file extracts the specific view in first video file Frequency segment, comprising:
Obtain the mark of the video focus carried in the first video file;
It is extracted in first video file in the video after the video focus in the second preset time period Hold and is used as specific video clip.
Optionally, the method also includes:
Semantic analysis is carried out to the mark of the video focus, determines that video to be extracted is closed from the video focus Note point;
The video after the video focus in the second preset time period is then extracted in first video file Content includes: as specific video clip
It is extracted in first video file after the video focus to be extracted in second preset time period Video content is as specific video clip.
Optionally, the attribute information according to the first video file extracts the specific view in first video file Frequency segment, comprising:
The video attribute of the first video file is obtained, the video attribute includes the image color of frame per second and/or video frame Richness;
Frame per second is extracted in first video file is greater than second threshold and/or image color richness greater than third threshold Video content in the period of value is as specific video clip.
Optionally, the method also includes:
It obtains with the matched music of the first video file as background music;
After being spliced the specific video clip, the background music is added, generates first video file Corresponding second video file.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of device 800 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device executes, so that mobile terminal is able to carry out a kind of input method, which comprises
Obtain the first video file;
Extract the specific video clip in the first video file;
The specific video clip is spliced, corresponding second video file of first video file is generated.
Optionally, the method also includes:
First video file is divided into multiple video sub-segments;
Extract the specific video clip for dividing obtained all or part of video sub-segments.
Optionally, user behavior data when being played according to the first video file history extracts first video file In specific video clip;And/or the attribute information according to the first video file, extract the spy in first video file Determine video clip.
Optionally, the user behavior data when broadcasting according to the first video file history, extracts first video Specific video clip in file, comprising:
Obtain the data of the history playback progress adjustment behavior for the first video file;
The data that behavior is adjusted according to the playback progress, determine effective F.F. period in first video file And/or effective rewind period;
Video content after effective F.F. period in the first preset time period is extracted as specific video clip, And/or the video content in extraction effective rewind period is as specific video clip.
Optionally, the data that behavior is adjusted according to the playback progress determine in first video file effectively F.F. period and/or effective rewind period, comprising:
The data that behavior is adjusted according to the playback progress, determine the F.F. period that multiple historical users generate respectively And/or the rewind period;
The period that multiplicity is higher than the first preset condition is determined as effective F.F. time in the F.F. period Section;The period that multiplicity is higher than the second preset condition is determined as effective rewind period in the rewind period.
Optionally, the user behavior data when broadcasting according to the first video file, extracts first video file In specific video clip, comprising:
Obtain the barrage data generated when the first video file plays;
The quantity for generating the barrage data is extracted in first video file greater than in the period of first threshold Video content as specific video clip.
Optionally, the attribute information according to the first video file extracts the specific view in first video file Frequency segment, comprising:
Obtain the mark of the video focus carried in the first video file;
It is extracted in first video file in the video after the video focus in the second preset time period Hold and is used as specific video clip.
Optionally, the method also includes:
Semantic analysis is carried out to the mark of the video focus, determines that video to be extracted is closed from the video focus Note point;
The video after the video focus in the second preset time period is then extracted in first video file Content includes: as specific video clip
It is extracted in first video file after the video focus to be extracted in second preset time period Video content is as specific video clip.
Optionally, the attribute information according to the first video file extracts first video and asks the specific view in valence Frequency segment, comprising:
The video attribute of the first video file is obtained, the video attribute includes the image color of frame per second and/or video frame Richness;
Frame per second is extracted in first video file is greater than second threshold and/or image color richness greater than third threshold Video content in the period of value is as specific video clip.
Optionally, the method also includes:
It obtains with the matched music of the first video file as background music;
After being spliced the specific video clip, the background music is added, generates first video file Corresponding second video file.
Fig. 9 is the structural schematic diagram of server in the embodiment of the present invention.The server 900 can be due to configuration or performance be different Generate bigger difference, may include one or more central processing units (central processing units, CPU) 922 (for example, one or more processors) and memory 932, one or more storage application programs 942 or The storage medium 930 (such as one or more mass memory units) of data 944.Wherein, memory 932 and storage medium 930 can be of short duration storage or persistent storage.The program for being stored in storage medium 930 may include one or more modules (diagram does not mark), each module may include to the series of instructions operation in server.Further, central processing unit 922 can be set to communicate with storage medium 930, and the series of instructions behaviour in storage medium 930 is executed on server 900 Make.
Terminal 900 can also include one or more power supplys 926, one or more wired or wireless networks connect Mouthfuls 950, one or more input/output interfaces 958, one or more keyboards 956, and/or, one or one with Upper operating system 941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment emphasis is said Bright is the difference from other embodiments, and the same or similar parts in each embodiment may refer to each other.For reality For applying system or device disclosed in example, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, phase Place is closed referring to method part illustration.
It should be appreciated that in this application, " at least one (item) " refers to one or more, and " multiple " refer to two or two More than a."and/or" indicates may exist three kinds of relationships, for example, " A and/or B " for describing the incidence relation of affiliated partner It can indicate: only exist A, only exist B and exist simultaneously tri- kinds of situations of A and B, wherein A, B can be odd number or plural number.Word Symbol "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or"." at least one of following (a) " or its similar expression, refers to Any combination in these, any combination including individual event (a) or complex item (a).At least one of for example, in a, b or c (a) can indicate: a, b, c, " a and b ", " a and c ", " b and c ", or " a and b and c ", and wherein a, b, c can be individually, can also To be multiple.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (11)

1. a kind of video generation method, which is characterized in that the described method includes:
Obtain the first video file;
Extract the specific video clip in first video file;
The specific video clip is spliced, corresponding second video file of first video file is generated.
2. the method according to claim 1, wherein the particular video frequency extracted in first video file Segment, comprising:
First video file is divided into multiple video sub-segments;
Extract the specific video clip for dividing obtained all or part of video sub-segments.
3. method according to claim 1 or 2, which is characterized in that specific in extraction first video file Video clip, comprising:
User behavior data when being played according to the first video file history extracts the specific view of first video file Frequency segment;
And/or the attribute information according to first video file, extract the specific video clip of first video file.
4. according to the method described in claim 3, it is characterized in that, it is described according to the first video file history play when User behavior data extracts the specific video clip of first video file, comprising:
Obtain the data of the history playback progress adjustment behavior for first video file;
The data that behavior is adjusted according to the playback progress, determine in first video file effective F.F. period and/or Effective rewind period;
The video content after effective F.F. period in the first preset time period is extracted as specific video clip, and/ Or, the video content in extraction effective rewind period is as specific video clip.
5. according to the method described in claim 4, it is characterized in that, it is described according to the playback progress adjust behavior data, Determine effective F.F. period and/or effective rewind period in first video file, comprising:
The data that behavior is adjusted according to the playback progress, determine F.F. period that multiple historical users generate respectively and/or The rewind period;
The period that multiplicity is higher than the first preset condition is determined as effective F.F. period in the F.F. period;? The period that multiplicity is higher than the second preset condition is determined as effective rewind period in the rewind period.
6. according to the method described in claim 3, it is characterized in that, it is described according to the first video file history play when user Behavioral data extracts the specific video clip of first video file, comprising:
Obtain the barrage data generated when the first video file plays;
The quantity for generating the barrage data is extracted in first video file greater than the view in the period of first threshold Frequency content is as specific video clip.
7. according to the method described in claim 3, it is characterized in that, the attribute information according to first video file, Extract the specific video clip in first video file, comprising:
Obtain the mark of the video focus carried in first video file;
The video content after the video focus in the second preset time period is extracted in first video file to make For specific video clip.
8. according to the method described in claim 3, it is characterized in that, the attribute information according to first video file, Extract the specific video clip in first video file, comprising:
The video attribute of first video file is obtained, the video attribute includes the image color of frame per second and/or video frame Richness;
Frame per second is extracted in first video file is greater than second threshold and/or image color richness greater than third threshold value Video content in period is as specific video clip.
9. a kind of video-generating device, which is characterized in that described device includes:
First acquisition unit, for obtaining the first video file;
Extraction unit, for extracting the specific video clip in first video file;
Concatenation unit generates corresponding second view of first video file for splicing the specific video clip Frequency file.
10. a kind of for generating the device of video, which is characterized in that include memory and one or more than one Program, perhaps more than one program is stored in memory and is configured to by one or more than one processing for one of them It includes the instruction for performing the following operation that device, which executes the one or more programs:
Obtain the first video file;
Extract the specific video clip in the first video file;
The specific video clip is spliced, corresponding second video file of first video file is generated.
11. a kind of computer-readable medium is stored thereon with instruction, when executed by one or more processors, so that device Execute the video generation method as described in one or more in claim 1 to 8.
CN201811124483.0A 2018-09-26 2018-09-26 A kind of video generation method and device Pending CN109104642A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811124483.0A CN109104642A (en) 2018-09-26 2018-09-26 A kind of video generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811124483.0A CN109104642A (en) 2018-09-26 2018-09-26 A kind of video generation method and device

Publications (1)

Publication Number Publication Date
CN109104642A true CN109104642A (en) 2018-12-28

Family

ID=64867007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811124483.0A Pending CN109104642A (en) 2018-09-26 2018-09-26 A kind of video generation method and device

Country Status (1)

Country Link
CN (1) CN109104642A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166650A (en) * 2019-04-29 2019-08-23 北京百度网讯科技有限公司 Generation method and device, the computer equipment and readable medium of video set
CN110209935A (en) * 2019-05-28 2019-09-06 湖北工业大学 A kind of production method for reviewing net class for the end of term
CN110234037A (en) * 2019-05-16 2019-09-13 北京百度网讯科技有限公司 Generation method and device, the computer equipment and readable medium of video clip
CN110740379A (en) * 2019-10-29 2020-01-31 曾虹恺 system and method for automatically generating complete video based on fragment video
CN110933511A (en) * 2019-11-29 2020-03-27 维沃移动通信有限公司 Video sharing method, electronic device and medium
CN111182358A (en) * 2019-12-30 2020-05-19 腾讯科技(深圳)有限公司 Video processing method, video playing method, device, equipment and storage medium
CN111277861A (en) * 2020-02-21 2020-06-12 北京百度网讯科技有限公司 Method and device for extracting hot spot segments in video
CN111343470A (en) * 2020-02-21 2020-06-26 咪咕视讯科技有限公司 Live playback scheduling method and device and storage medium
CN111479168A (en) * 2020-04-14 2020-07-31 腾讯科技(深圳)有限公司 Method, device, server and medium for marking multimedia content hot spot
CN111711839A (en) * 2020-05-27 2020-09-25 杭州云端文化创意有限公司 Film selection display method based on user interaction numerical value
CN112492370A (en) * 2019-09-12 2021-03-12 上海哔哩哔哩科技有限公司 Progress bar display method and device, computer equipment and readable storage medium
CN112565838A (en) * 2020-11-12 2021-03-26 深圳市易平方网络科技有限公司 Television-based startup processing method, device, terminal and medium
CN112866716A (en) * 2021-01-15 2021-05-28 北京睿芯高通量科技有限公司 Method and system for synchronously decapsulating video file
CN113055741A (en) * 2020-12-31 2021-06-29 科大讯飞股份有限公司 Video abstract generation method, electronic equipment and computer readable storage medium
CN114363673A (en) * 2022-01-10 2022-04-15 北京百度网讯科技有限公司 Video clipping method, model training method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142799A (en) * 2013-05-10 2014-11-12 Lg电子株式会社 Mobile terminal and controlling method thereof
CN104994425A (en) * 2015-06-30 2015-10-21 北京奇艺世纪科技有限公司 Video labeling method and device
CN105519095A (en) * 2014-12-14 2016-04-20 深圳市大疆创新科技有限公司 Video processing processing method, apparatus and playing device
CN106791958A (en) * 2017-01-09 2017-05-31 北京小米移动软件有限公司 Position marker information generation method and device
CN106804000A (en) * 2017-02-28 2017-06-06 北京小米移动软件有限公司 Direct playing and playback method and device
CN107071587A (en) * 2017-04-25 2017-08-18 腾讯科技(深圳)有限公司 The acquisition methods and device of video segment
CN107436921A (en) * 2017-07-03 2017-12-05 李洪海 Video data handling procedure, device, equipment and storage medium
CN107872724A (en) * 2017-09-26 2018-04-03 五八有限公司 A kind of preview video generation method and device
US20180098134A1 (en) * 2016-10-04 2018-04-05 Joaquin Sufuentes Method and System for Associating Recorded Videos with Highlight and Event Tags to Facilitate Replay Services

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104142799A (en) * 2013-05-10 2014-11-12 Lg电子株式会社 Mobile terminal and controlling method thereof
CN105519095A (en) * 2014-12-14 2016-04-20 深圳市大疆创新科技有限公司 Video processing processing method, apparatus and playing device
CN104994425A (en) * 2015-06-30 2015-10-21 北京奇艺世纪科技有限公司 Video labeling method and device
US20180098134A1 (en) * 2016-10-04 2018-04-05 Joaquin Sufuentes Method and System for Associating Recorded Videos with Highlight and Event Tags to Facilitate Replay Services
CN106791958A (en) * 2017-01-09 2017-05-31 北京小米移动软件有限公司 Position marker information generation method and device
CN106804000A (en) * 2017-02-28 2017-06-06 北京小米移动软件有限公司 Direct playing and playback method and device
CN107071587A (en) * 2017-04-25 2017-08-18 腾讯科技(深圳)有限公司 The acquisition methods and device of video segment
CN107436921A (en) * 2017-07-03 2017-12-05 李洪海 Video data handling procedure, device, equipment and storage medium
CN107872724A (en) * 2017-09-26 2018-04-03 五八有限公司 A kind of preview video generation method and device

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166650A (en) * 2019-04-29 2019-08-23 北京百度网讯科技有限公司 Generation method and device, the computer equipment and readable medium of video set
CN110234037A (en) * 2019-05-16 2019-09-13 北京百度网讯科技有限公司 Generation method and device, the computer equipment and readable medium of video clip
CN110234037B (en) * 2019-05-16 2021-08-17 北京百度网讯科技有限公司 Video clip generation method and device, computer equipment and readable medium
CN110209935A (en) * 2019-05-28 2019-09-06 湖北工业大学 A kind of production method for reviewing net class for the end of term
CN112492370A (en) * 2019-09-12 2021-03-12 上海哔哩哔哩科技有限公司 Progress bar display method and device, computer equipment and readable storage medium
US11400382B2 (en) 2019-09-12 2022-08-02 Shanghai Bilibili Technology Co., Ltd. Method and device of displaying a progress bar, computing device, and readable storage medium
CN110740379A (en) * 2019-10-29 2020-01-31 曾虹恺 system and method for automatically generating complete video based on fragment video
CN110933511A (en) * 2019-11-29 2020-03-27 维沃移动通信有限公司 Video sharing method, electronic device and medium
CN111182358A (en) * 2019-12-30 2020-05-19 腾讯科技(深圳)有限公司 Video processing method, video playing method, device, equipment and storage medium
CN111182358B (en) * 2019-12-30 2021-09-28 腾讯科技(深圳)有限公司 Video processing method, video playing method, device, equipment and storage medium
CN111277861B (en) * 2020-02-21 2023-02-24 北京百度网讯科技有限公司 Method and device for extracting hot spot segments in video
CN111343470A (en) * 2020-02-21 2020-06-26 咪咕视讯科技有限公司 Live playback scheduling method and device and storage medium
WO2021164369A1 (en) * 2020-02-21 2021-08-26 北京百度网讯科技有限公司 Method and apparatus for extracting hotspot segment from video
CN111277861A (en) * 2020-02-21 2020-06-12 北京百度网讯科技有限公司 Method and device for extracting hot spot segments in video
CN111479168A (en) * 2020-04-14 2020-07-31 腾讯科技(深圳)有限公司 Method, device, server and medium for marking multimedia content hot spot
CN111479168B (en) * 2020-04-14 2021-12-28 腾讯科技(深圳)有限公司 Method, device, server and medium for marking multimedia content hot spot
CN111711839A (en) * 2020-05-27 2020-09-25 杭州云端文化创意有限公司 Film selection display method based on user interaction numerical value
CN112565838A (en) * 2020-11-12 2021-03-26 深圳市易平方网络科技有限公司 Television-based startup processing method, device, terminal and medium
CN113055741A (en) * 2020-12-31 2021-06-29 科大讯飞股份有限公司 Video abstract generation method, electronic equipment and computer readable storage medium
CN113055741B (en) * 2020-12-31 2023-05-30 科大讯飞股份有限公司 Video abstract generation method, electronic equipment and computer readable storage medium
CN112866716A (en) * 2021-01-15 2021-05-28 北京睿芯高通量科技有限公司 Method and system for synchronously decapsulating video file
CN114363673B (en) * 2022-01-10 2022-12-27 北京百度网讯科技有限公司 Video clipping method, model training method and device
CN114363673A (en) * 2022-01-10 2022-04-15 北京百度网讯科技有限公司 Video clipping method, model training method and device

Similar Documents

Publication Publication Date Title
CN109104642A (en) A kind of video generation method and device
JP7053780B2 (en) Intelligent automatic assistant for TV user dialogue
TWI667917B (en) Multimedia search result display method and device
CA2880304C (en) Methods and devices for terminal control
EP3347832A1 (en) Visualization of automatic summarization using keyword zoom
EP2630594A1 (en) System and method for generating a visual summary of previously viewed multimedia content
CN110278450A (en) Multimedia content playback method and device
CN107147957A (en) Video broadcasting method and device
CN105872573A (en) Video playing method and apparatus
CN112445451A (en) Music playing method and device and electronic equipment
US20230403413A1 (en) Method and apparatus for displaying online interaction, electronic device and computer readable medium
JP2024056690A (en) Intelligent Automated Assistant for TV User Interaction - Patent application

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181228

RJ01 Rejection of invention patent application after publication