Video file synthetic method, system, medium and electronic equipment
Technical field
The present invention relates to Internet technical fields, in particular to a kind of video file synthetic method, system, medium
And electronic equipment.
Background technique
With the development of communication technology, variation constantly occurs for the Social behaviors of people and demand.Currently, " barrage culture "
It rises, user is happy to make comments and read in real time other users while viewing video, the multimedia messages such as caricature
Comment carries out social that is, by way of barrage.
In order to meet the needs of users, each video website provides barrage function one after another, shows while playing video
The comment of user is left a message, and the mutual innervation between the user of viewing video is increased.However, this interaction forms are single, user comment
It is dull in content, lack user's viscosity.
Therefore, in long-term research and development, inventor largely grind to the voice remark problem in social media
One of study carefully, proposes a kind of video file synthetic method based on voice remark, to solve the above technical problems.
Summary of the invention
The purpose of the present invention is to provide a kind of video file synthetic method, system, medium and electronic equipments, are able to solve
At least one technical problem mentioned above.Concrete scheme is as follows:
Specific embodiment according to the present invention, in a first aspect, the present invention provides a kind of video file synthetic method, packet
It includes: obtaining by the current all voice remarks of comment picture, wherein described by comment picture includes one or more picture;Institute
Stating in current all voice remarks selects multiple target voices to comment on;The multiple target voice is sent to comment on to server-side, with
Server-side is set to identify that the target voice comments on the corresponding picture, and by multiple picture synthetic video files;It receives
The video file that the server-side is sent.
Specific embodiment according to the present invention, second aspect, the present invention provide a kind of video file synthesis system, packet
Include: obtaining module, for obtaining by the current all voice remarks of comment picture, wherein it is described by comment picture include one or
Plurality of pictures;Selecting module, for selecting multiple target voices to comment in current all voice remarks;Sending module,
It comments on for sending the multiple target voice to server-side, so that server-side identifies that the target voice comment is corresponding described
Picture, and by multiple picture synthetic video files;Receiving module, the video text sent for receiving the server-side
Part.
Specific embodiment according to the present invention, the third aspect, the present invention provide a kind of computer readable storage medium,
On be stored with computer program, when described program is executed by processor realize as above described in any item video file synthesis sides
Method.
Specific embodiment according to the present invention, fourth aspect, the present invention provide a kind of electronic equipment, comprising: one or
Multiple processors;Storage device, for storing one or more programs, when one or more of programs are by one or more
When a processor executes, so that one or more of processors realize as above described in any item video file synthetic methods.
Compared with prior art, the above scheme of the embodiment of the present invention is by selecting multiple voice remarks, and by multiple languages
The picture that sound comment is directed to synthesizes a new continuous animation picture, that is, forms video file, can increase the abundant more of interaction
Coloured silk;Further increase user's viscosity.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 shows a kind of implementation flow chart of video file synthetic method according to an embodiment of the present invention;
It obtains Fig. 2 shows according to an embodiment of the present invention by the method flow of the current all voice remarks of comment picture
Figure;
Fig. 3 is shown according to an embodiment of the present invention selects multiple target voices to comment in current all voice remarks
The method flow diagram of opinion;
Fig. 4, which is shown, according to another embodiment of the present invention selects multiple target languages in current all voice remarks
The method flow diagram of sound comment;
Fig. 5 shows the server-side according to an embodiment of the present invention and identifies that the target voice comments on the corresponding figure
Piece, and by the method flow diagram of multiple picture synthetic video files;
Fig. 6 shows the method flow diagram for issuing the video file manually according to an embodiment of the present invention;
Fig. 7 shows a kind of structural schematic diagram of video file synthesis system according to an embodiment of the present invention;
Fig. 8 shows the structural schematic diagram of server device according to an embodiment of the present invention;
Fig. 9 shows the electronic equipment attachment structure schematic diagram of embodiment according to the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into
It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
All other embodiment, shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodiments
The present invention.In the embodiment of the present invention and the "an" of singular used in the attached claims, " described " and "the"
It is also intended to including most forms, unless the context clearly indicates other meaning, " a variety of " generally comprise at least two.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, indicate
There may be three kinds of relationships, for example, A and/or B, can indicate: individualism A, exist simultaneously A and B, individualism B these three
Situation.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
It will be appreciated that though may be described in embodiments of the present invention using term first, second, third, etc..,
But these ... it should not necessarily be limited by these terms.These terms be only used to by ... distinguish.For example, not departing from implementation of the present invention
In the case where example range, first ... can also be referred to as second ..., and similarly, second ... can also be referred to as the
One ....
Depending on context, word as used in this " if ", " if " can be construed to " ... when " or
" when ... " or " in response to determination " or " in response to detection ".Similarly, context is depended on, phrase " if it is determined that " or " such as
Fruit detection (condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when detection (statement
Condition or event) when " or " in response to detection (condition or event of statement) ".
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
Include, so that commodity or device including a series of elements not only include those elements, but also including not clear
The other element listed, or further include for this commodity or the intrinsic element of device.In the feelings not limited more
Under condition, the element that is limited by sentence "including a ...", it is not excluded that in the commodity or device for including the element also
There are other identical elements.
The alternative embodiment that the invention will now be described in detail with reference to the accompanying drawings.
Embodiment 1
As shown in fig.1, being a kind of implementation flow chart of video file synthetic method provided in an embodiment of the present invention, application
In client.The video file synthetic method, includes the following steps:
S100 is obtained by the current all voice remarks of comment picture, wherein described by comment picture includes one or more
Picture.
In this step, the voice remark is recorded by a voice remark component of client, wherein when described
When the browsing pages stay time of client reaches preset threshold, content area periphery is delivered in the browsing pages and shows institute
State voice remark component.In the present embodiment, user is during Client browse delivers content, when the page of user's browsing stops
When duration being stayed to reach preset threshold, show the voice remark component to user, and the voice remark component be shown in it is described
The lower section for delivering content area keeps user's simple interface clear.User by show voice remark component record, when with
Family, which is loosed one's grip or reached, generates voice remark when the voice remark component maximum records duration, and by it is described by comment picture and
The voice remark is stored to server-side or cloud.
In the present embodiment, referring to Fig. 2, described obtain by the current all voice remarks of comment picture, comprising:
S101 provides comment synthesis control.Wherein, the position of the comment synthesis control is unlimited.Preferably, institute's commentary
It is set to around the voice remark component by synthesis control.
S102, in response to the operation of the comment synthesis control, the client is obtained from server-side to be worked as by comment picture
Preceding all voice remarks, and shown by a user selection interface.It is described to be delivered by comment picture for user
One picture is also possible to the set for the plurality of pictures that user delivers, such as six palace trrellis diagram pieces, nine grids picture.
S110 selects multiple target voices to comment in current all voice remarks;
In this step, described to select multiple target voices to comment in current all voice remarks, comprising: in institute
It states and comment object is selected to comment in current all voice remarks for multiple target voices by same picture in comment picture
By;Or,
Select comment object to be described by the multiple of pictures different in comment picture in current all voice remarks
Target voice comment.It, can also be with that is, the comment of the multiple target voice can be the comment carried out to same photo
It is the comment that different photos are carried out.
Specifically, the method for selecting multiple target voice comments in current all voice remarks is unlimited.This
In embodiment, the comment of the multiple target voice passes through client automatic identification and selects, specifically, referring to Fig. 3, it is described
Multiple target voices are selected to comment in current all voice remarks, comprising:
S111 calls the timestamp of current all voice remarks;
S112 selects the comment time identical voice remark according to the timestamp;
S113 identifies that there are content multiple target voices of relevance to comment in the voice remark.
Preferably, the multiple target voice comment can be directly selected by user.Specifically, referring to Fig. 4, described in institute
Stating in current all voice remarks selects multiple target voices to comment on, comprising:
S114, provides the user interface for selecting voice remark, and the user interface includes multiple selection controls.Specifically
, to one selection control of each voice remark setting.
S115 obtains multiple target voice comments in response to the operation to control is selected described in the user interface.Tool
Body, user can play out each voice remark, artificially select comment content to have by selection control described in touch-control and close
Multiple voice remarks of connection property, to obtain multiple target voice comments.
S120 sends the multiple target voice and comments on to server-side, so that server-side identifies the target voice comment
The corresponding picture, and by multiple picture synthetic video files;
Step S120 is being executed, after obtaining multiple target voice comments, the comment of the multiple target voice is sent to clothes
Business end carries out Video Composition.Specifically, referring to Fig. 5, the server-side identifies that the target voice comments on the corresponding figure
Piece, and by multiple picture synthetic video files, comprising:
S121 receives the multiple target voice comment;
S122 identifies the picture that the target voice comment content is directed to.Specifically, identifying the target language in server-side
Before sound comments on the step of corresponding picture, the server-side is cut by default rule to picture has been delivered, raw
At multiple sub-pictures, and it is tagged to every sub-pictures, it stores to a database.It is received in the server-side the multiple
After target voice comment, the server-side matches in the database obtains the corresponding subgraph of the multiple target voice comment
Piece.
Multiple described pictures are synthesized a video file by S123.Specifically, server-side can be by algorithm by multiple figures
Piece synthesizes a continuous motion picture, and the target voice is commented on while being blended into the motion picture in the synthesis process
In, it is corresponding with the picture.Wherein, the broadcasting form of the video file includes two kinds:
The first, is when it is same picture that the comment of the multiple target voice is corresponding, the video file playing process
Middle image shows that content can be constant, and voice remark is continuously played.
Second, when it is different pictures that the comment of the multiple target voice is corresponding, the video file playing process
Described in difference picture continuously played as multiple video frames, the voice remark is used as background sound effect and the view simultaneously
Frequency frame is corresponding to be played.
In another embodiment, the multiple target voice can be commented on and be divided before synthetic video file by the server-side
Written form is not converted to.Multiple target voice comments described in the video file of the synthesis play in the form of subtitles, do not have
There is audio.
S130 receives the video file that the server-side is sent.
Specifically, client receives the video file that server-side has synthesized, it is stored in local.
Further, the video file synthetic method comprising steps of
S140 issues the video file.Specifically, the video file can be issued manually or automatically.Wherein, it please refers to
Fig. 6, it is described to issue the video file manually, comprising:
S141 provides a video distribution control.Wherein, the video distribution control is set to the user selection interface.
S142 issues the video file in response to the operation of the video distribution control.Wherein, user passes through touch-control
The video distribution control carries out issuing the video file, which can be shown in voice remark region.
Video file synthetic method provided in an embodiment of the present invention is commented multiple voices by selecting multiple voice remarks
A new continuous animation picture is synthesized by the picture being directed to, the rich and varied property of interaction can be increased;Further increase user
Viscosity.
Embodiment 2
Referring to Fig. 7, the embodiment of the present invention provides a kind of video file synthesis system 700, which includes: to obtain
Module 710, selecting module 720, sending module 730 and receiving module 740.
The acquisition module 710, for obtaining by the current all voice remarks of comment picture, wherein described to be schemed by comment
Piece includes one or more picture.
Specifically, the voice remark is recorded by a voice remark component of client, wherein as the client
When the browsing pages stay time at end reaches preset threshold, content area periphery is delivered in the browsing pages and shows institute's predicate
Sound comments on component.In the present embodiment, user is during Client browse delivers content, when the page of user's browsing stops
It is long when reaching preset threshold, the voice remark component is shown to user, and the voice remark component is shown in described deliver
The lower section of content area keeps user's simple interface clear.User is recorded by the voice remark component shown, when user pine
Hand or the maximum for reaching the voice remark component generate voice remark when recording duration.
In the present embodiment, the acquisition module 710 can provide comment synthesis control.The position of the comment synthesis control
It sets unlimited.Preferably, the comment synthesis control is set to around the voice remark component.The acquisition module 710 can be with
Operation in response to the comment synthesis control obtains all voice remarks current by comment picture from server-side, and passes through one
User selection interface is shown.The picture that can be delivered by comment picture for user, is also possible to user and delivers
Plurality of pictures set, such as six palace trrellis diagram pieces, nine grids picture.
The selecting module 720, for selecting multiple target voices to comment in current all voice remarks.Specifically
, the selecting module 720 can select comment object to be described by comment picture in current all voice remarks
Multiple target voices of same picture are commented on;It is described that comment object can also be selected in current all voice remarks
By multiple target voices comment of pictures different in comment picture.That is, the comment of the multiple target voice can be pair
The comment that same photo carries out is also possible to the comment carried out to different photos.
Specifically, the selecting module 720 selects multiple target voice comments in current all voice remarks
Method is unlimited.In the present embodiment, the selecting module 720 with automatic identification and can select the multiple target voice to comment on.Into
One step, the selecting module 720 include:
Submodule 721 is called, for calling the timestamp of current all voice remarks;
Submodule 722 is selected, for selecting the comment time identical voice remark according to the timestamp;
Identify submodule 723, there are content multiple target voices of relevance to comment in the voice remark for identification.
In another embodiment, the selecting module 720 can provide the user interface for selecting voice remark, the use
Family interface includes multiple selection controls.Specifically, to one selection control of each voice remark setting.The selecting module 720 can
In response to commenting on the multiple target voices of operation acquisition for selecting control described in the user interface.Specifically, user can
Each voice remark is played out, artificially selects comment content with multiple languages of relevance by selection control described in touch-control
Sound comment, to obtain multiple target voice comments.
The sending module 730 is commented on for sending the multiple target voice to server-side, so that server-side identifies institute
It states target voice and comments on the corresponding picture, and by multiple picture synthetic video files.
After the selecting module 720 obtains the comment of multiple target voices, the sending module 730 is by the multiple target
Voice remark is sent to server-side and carries out Video Composition.Specifically, referring to Fig. 8, the server-side includes:
Receiving module 800, for receiving the multiple target voice comment;
Identification module 810, the picture that the target voice comment content is directed to for identification.Specifically, in the identification
Before module 810 identifies that the target voice comments on the corresponding picture, the server-side is by default rule to having delivered
Picture is cut, and generates multiple sub-pictures, and tagged to every sub-pictures, is stored to a database.In the reception
After module 800 receives the multiple target voice comment, the identification module 810 is matched in the database described in acquisition
Multiple target voices comment on corresponding sub-pictures.
Synthesis module 820, for multiple described pictures to be synthesized a video file.Specifically, the synthesis module 820 can
Multiple described pictures are synthesized into a continuous motion picture by algorithm, the target voice is commented on simultaneously in the synthesis process
It is blended into the motion picture, it is corresponding with the picture.Wherein, the broadcasting form of the video file includes two kinds:
The first, is when it is same picture that the comment of the multiple target voice is corresponding, the video file playing process
Middle image shows that content can be constant, and voice remark is continuously played.
Second, when it is different pictures that the comment of the multiple target voice is corresponding, the video file playing process
Described in difference picture continuously played as multiple video frames, the voice remark is used as background sound effect and the view simultaneously
Frequency frame is corresponding to be played.
In another embodiment, the synthesis module 820 can be incited somebody to action before synthetic video file by a conversion module 830
The multiple target voice comment is respectively converted into written form.Multiple target voices described in the video file of the synthesis are commented
By playing in the form of subtitles, without audio.
The receiving module 740, the video file sent for receiving the server-side.Specifically, the reception
Module 740 receives the video file that server-side is sent, and is stored in local.
Further, the video file synthesis system includes a release module 750, for issuing the video file.Tool
Body, the release module 750 can manually or automatically issue the video file.The release module 750 can provide one
Video distribution control.Wherein, the video distribution control is set to the user selection interface.The release module 750 can be with
Video file described in operation issue in response to the video distribution control.Wherein, user passes through video distribution control described in touch-control
Part carries out issuing the video file, which can be shown in voice remark region.
Video file synthesis system 700 provided in an embodiment of the present invention is by selecting multiple voice remarks, and by multiple languages
The picture that sound comment is directed to synthesizes a new continuous animation picture, can increase the rich and varied property of interaction;It further increases
User's viscosity.
Embodiment 3
The embodiment of the present disclosure provides a kind of nonvolatile computer storage media, and the computer storage medium is stored with
The video file synthesis side in above-mentioned any means embodiment can be performed in computer executable instructions, the computer executable instructions
Method.
Embodiment 4
The present embodiment provides a kind of electronic equipment, which synthesizes for video file, the electronic equipment, comprising: extremely
A few processor;And the memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by one processor, and described instruction is by described at least one
Manage device execute so that at least one described processor can:
It obtains by the current all voice remarks of comment picture, wherein described by comment picture includes one or more picture;
Multiple target voices are selected to comment in current all voice remarks;
It sends the multiple target voice to comment on to server-side, so that server-side identifies that the target voice comment is corresponding
The picture, and by multiple picture synthetic video files;
Receive the video file that the server-side is sent.
Embodiment 5
Below with reference to Fig. 9, it illustrates the structural schematic diagrams for the electronic equipment for being suitable for being used to realize the embodiment of the present disclosure.This
Terminal device in open embodiment can include but is not limited to such as mobile phone, laptop, digit broadcasting receiver,
PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle mounted guidance
Terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electronic equipment shown in Fig. 9
An only example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 9, electronic equipment may include processing unit (such as central processing unit, graphics processor etc.) 901,
Random access storage device can be loaded into according to the program being stored in read-only memory (ROM) 902 or from storage device 908
(RAM) program in 903 and execute various movements appropriate and processing.In RAM 903, it is also stored with electronic device institute
The various programs and data needed.Processing unit 901, ROM 902 and RAM 903 are connected with each other by bus 904.Input/defeated
(I/O) interface 905 is also connected to bus 904 out.
In general, following device can connect to I/O interface 905: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph
As the input unit 906 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration
The output device 907 of dynamic device etc.;Storage device 908 including such as tape, hard disk etc.;And communication device 909.Communication device
909, which can permit electronic equipment, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 9, which is shown, to be had respectively
The electronic equipment of kind device, it should be understood that being not required for implementing or having all devices shown.It can be alternatively real
Apply or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communication device 909, or from storage device 908
It is mounted, or is mounted from ROM 902.When the computer program is executed by processing unit 901, the embodiment of the present disclosure is executed
Method in the above-mentioned function that limits.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated,
In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to
Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit
Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned
Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not
It is fitted into the electronic equipment.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof
Machine program code, above procedure design language include object oriented program language-such as Java, Smalltalk, C+
+, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can
Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package,
Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part.
In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN)
Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service
Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard
The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions, for example, the
One acquiring unit is also described as " obtaining the unit of at least two internet protocol addresses ".