Summary of the invention
The invention provides a kind of video title adding method, a kind of video run-out adding method and related device, to solve the problems of the technologies described above.
According to the first aspect of the embodiment of the present invention, provide a kind of video title adding method, comprising:
When receiving head and adding request, read the cut-off reproduction time information of the head generated;
According to the initial reproduction time information of the audio/video flow that described cut-off reproduction time information amendment obtains;
When recording audio/video file, before described head are carried in described audio/video flow, to generate the audio-video document being added with described head.
According to the second aspect of the embodiment of the present invention, additionally provide a kind of video run-out adding method, comprising:
When receiving recording ending request, read the cut-off reproduction time information of the audio/video flow obtained;
The initial reproduction time information of the run-out generated is revised according to the cut-off reproduction time information of described audio/video flow;
When recording audio/video file, after described run-out is carried in described audio/video flow, to generate the audio-video document being added with described run-out.
According to the third aspect of the embodiment of the present invention, additionally provide a kind of video title adding set, comprising:
Control unit, for when receiving head and adding request, reads the cut-off reproduction time information of the head generated;
Audio/video flow processing unit, is connected to described control unit, for the initial reproduction time information of the audio/video flow according to described cut-off reproduction time information amendment acquisition;
Recording elements, is connected respectively with described control unit and described audio/video flow processing unit, for when recording audio/video file, before described head are carried in described audio/video flow, to generate the audio-video document being added with described head.
Fourth aspect according to an embodiment of the invention, additionally provides a kind of piece of video afterbody adding set, comprising:
Control unit, for when receiving recording ending request, reads the cut-off reproduction time information of the audio/video flow obtained;
Audio/video flow processing unit, is connected to described control unit, for revising the initial reproduction time information of the run-out generated according to the cut-off reproduction time information of described audio/video flow;
Recording elements, is connected respectively with described control unit and described audio/video flow processing unit, when recording audio/video file, after described run-out is carried in described audio/video flow, to generate the audio-video document being added with described run-out.
The technical scheme that embodiments of the invention provide can comprise following beneficial effect:
Compared to prior art, according to video title adding method provided by the invention, video run-out adding method and device, in the process of recording audio/video file, automatically head and/or run-out are added in the audio-video document recorded, quick generation, with the audio-video document of head and/or run-out, does not need user that other process softwares of audio-video document are carried out post-processed, does not need the audio frequency and video treatment technology learning specialty yet, simple to operate, flexibly.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Figure 1 shows that the flow chart of the video title adding method that preferred embodiment according to the present invention provides.
Above-mentioned video title adding method comprises the following steps:
Step 102, when receiving head and adding request, reads the cut-off reproduction time information of the head generated.
These head can be pictures, also can be one section of audio frequency and video, the cut-off reproduction time information of head and head present deadline.
Step 104, according to the initial reproduction time information of the audio/video flow that described cut-off reproduction time information amendment obtains.Due to head will be loaded before audio/video flow, therefore need to do a skew to the beginning and ending time of audio/video flow.Such as head duration is 10 seconds, and so the initial reproduction time of audio/video flow should be the 11st second.
Step 106, when recording audio/video file, before described head are carried in described audio/video flow, to generate the audio-video document being added with described head.
Such scheme can revise the reproduction time information of audio/video flow automatically according to the playing duration of head, and before automatic powder adding is added to audio/video flow, without the need to carrying out post-processed by extra software, decreases operational ton, improve recorded broadcast efficiency.
In above-mentioned steps 102, the obtain manner of head has a variety of, such as, a head storehouse can be pre-set, user can choose head from this head storehouse, head choose complete after, just can trigger head and add request, or different labels is arranged to each head in this head storehouse, user will recording audio/video file time, keyword input frame can be ejected, the key message of the audio-video document that input will be recorded, this key message mates with the label of head by system, and using the head that match as the final head needed, or directly upload images, then according to the Computer image genration head that user uploads, when generating head, trigger head and add request.
After interpolation head, these head can be revised, system is when receiving head amendment request, according to the head in the cut-off reproduction time information deletion audio-video document of the former head recorded before, and new head are carried in the position at former head place, wherein, the playing duration of new head is identical with the playing duration of deleted head.
Further illustrate below in conjunction with Fig. 2 and Fig. 3 and add scheme according to head of the present invention, Figure 2 shows that the head adding procedure schematic diagram that preferred embodiment according to the present invention provides.
1, first enter teaser or tail and interface is set, with reference to figure 3, input picture, and presentative time is set, by the teaser or tail generation module of plug-in unit control module by the parameters of user notice backstage, be responsible for generating head by this run-out generation module.
2, teaser or tail generation module is after generation head, generates completion notice to plug-in unit control module feedback.
3, plug-in unit control module can notify that Flv Mux mixed flow module reads the cut-off reproduction time information of head.
4, Flv Mux mixed flow module reads success or failed message to plug-in unit control module feedback.The mixed processing of Flv Mux mixed flow module in charge audio/video flow, and the initial reproduction time information revising audio/video flow according to the cut-off reproduction time information of the head read, and audio, video data is transferred to FILE Writer recorded file module.
5, after plug-in unit control module receives the reading success message from Flv Mux mixed flow module feedback, head are write audio-video document, the routing information of head generated before carrying in this notice by plug-in unit control module notice FILE Writer recorded file module.
FILE Writer recorded file module, when recording audio/video file, obtains head according to routing information, and before head are carried in audio/video flow, to generate the audio-video document being added with head.
Therefore, head are write the audio-video document that will record by File Write recorded file module, then start real-time streams to record, during recording, the reproduction time of head before the reproduction time of real-time streams adds by Flv Mux mixed flow module, until user clicks stopping, entering and add run-out flow process.
6, File Write recorded file module is to the write head success of plug-in unit control module feedback or failed message.
Head can be generate according to the picture of user's input, and ready-made short-sighted frequency also can be adopted as head.
In order to increase the flexibility of recording, triggering can be arranged suspend the mode of recording and trigger the mode terminating recording, when suspending recording, run-out can not be entered and add handling process, wait for the recording of next stage, when recovery is recorded, continue in breakpoint to record, when user triggers end recording, enter run-out and add handling process, see Fig. 4, if do not continue to add run-out, then can exit.
It should be noted that, suspend the mode recorded can be click, long by, horizontally slip, the mode of operation such as to draw a circle, the mode terminating to record can be the mode of operation such as to double-click, slide up and down, and is not limited only to mode listed above.
If at the end of recording, user wishes to change head, then user again can enter as shown in Figure 3 the interface that arranges (this arranges the distortion that can there be other modes at interface, be not limited only to the pattern shown in figure), user can select to delete head, plug-in unit control module is when receiving head amendment request, according to the head in the audio-video document that the cut-off reproduction time information deletion of former head has recorded, and new head are carried in the position at former head place, wherein, the playing duration of new head is identical with the playing duration of deleted head.
Following composition graphs 4 and Fig. 5 describe in detail and add processing procedure according to run-out of the present invention.
As shown in Figure 4, the run-out adding method in the present embodiment can comprise the following steps:
Step 402, when receiving recording ending request, reads the cut-off reproduction time information of the audio/video flow obtained.
Step 404, revises the initial reproduction time information of the run-out generated according to the cut-off reproduction time information of audio/video flow.
Step 406, when recording audio/video file, after run-out is carried in audio/video flow, to generate the audio-video document being added with run-out.This run-out can be a pictures, also can be one section of audio frequency and video.
The generating mode of run-out has multiple, only enumerates several mode at this, but mode cited below being not limited only to.
The first:
Preset target thing characteristic; The view data matched with above-mentioned object characteristic is extracted from the video data the audio/video flow obtained; Generate for the run-out after being added into audio/video flow according to this view data.
This object can be any object, such as face, computer display screen, desk, spheroid etc., the characteristic of these objects can be preserved in advance, in recording process, to the image zooming-out of this object be comprised out, and be integrated into run-out, make the theme of this run-out meet the theme of recorded audio-video document.Extract the image process comprising object to be specially and the characteristic of object to be mated with the image of real-time recording, namely what matching degree was greater than preset value thinks that this image comprises this object, and extracts this image to generate run-out.
Therefore, above-mentioned employing said method, in the process of adding run-out, without the need to manually selecting head or uploading pictures, automatically can generate run-out according to the audio, video data recorded, decreasing operating procedure.
The second:
According to the Computer image genration run-out of user's input.User according to the theme of recorded audio-video document, can upload one or more picture at the interface that arranges as shown in Figure 3, and backstage generates run-out according to pre-defined rule automatically.This pre-defined rule can be the picture becoming to preset size by picture processing, and each pictures presented for 3 seconds, and increased the background music preset.
In addition, conveniently recording, in recording process, when receiving time-out recording request, reading the breakpoint reproduction time information of the audio/video flow obtained; When receiving startup recording request, using described breakpoint reproduction time information as the starting point reproduction time information of the audio/video flow of rear acquisition.When suspending recording, not needing to add run-out, only when terminating to record, just automatically adding run-out.Because herein is provided the mode of operation suspended and record, facilitate user to suspend recording at any time, and arbitrarily can not add run-out, this mode of operation can click pause button, or length presses screen.
Similarly, after automatically adding run-out, also can delete this run-out to modify, modify to run-out in the interface that arranges that user still can enter as shown in Figure 3, system is when receiving run-out amendment request, according to the former run-out in the cut-off reproduction time information deletion audio-video document of audio/video flow, and new run-out is carried in the position at former run-out place.
Please refer to Fig. 5, show the execution mode of another kind of run-out adding method, Fig. 5 and Fig. 2 is corresponding, and Fig. 2 is head adding procedures, and Fig. 5 is run-out adding procedure.
1, plug-in unit control module is confirmed whether to generate run-out to generation teaser or tail module.
2, generate teaser or tail module and return confirmation or failed message to plug-in unit control module.
3, at the end of recording, the initial reproduction time information of plug-in unit control module notice FLV Mux mixed flow module amendment run-out, the deadline of audio/video flow is informed to FLV Mux mixed flow module by plug-in unit control module, the cut-off reproduction time of such as audio/video flow is 100 seconds, and so the initial reproduction time of run-out is modified to 101 seconds.
4, FLV Mux mixed flow module returns successfully or failed message to plug-in unit control module.
5, run-out writes in audio-video document by plug-in unit control module notice File Write recorded file module.
6, File Write recorded file module is to the write success of plug-in unit control module feedback or failed message, and so far flow process terminates.Because the time increases progressively in order, therefore the final audio-video document picture generated is naturally level and smooth.
Please refer to Fig. 6, in Software Implementation, this video title adds 600 can comprise control unit 602, audio/video flow processing unit 604 and recording elements 606.
Control unit 602, for when receiving head and adding request, reads the cut-off reproduction time information of the head generated;
Audio/video flow processing unit 604, is connected to described control unit 602, for the initial reproduction time information of the audio/video flow according to described cut-off reproduction time information amendment acquisition;
Recording elements 606, is connected respectively with described control unit 602 and described audio/video flow processing unit 604, for when recording audio/video file, before described head are carried in described audio/video flow, to generate the audio-video document being added with described head.
It should be noted that, the control unit 602 in Fig. 6 corresponds to the plug-in unit control module in Fig. 2, and audio/video flow processing unit 604 corresponds to the FLV Mux mixed flow module in Fig. 2, and recording elements 606 corresponds to the File Write recorded file module in Fig. 2.
Please refer to Fig. 7, in Software Implementation, this video run-out adds 700 can comprise control unit 702, audio/video flow processing unit 704 and recording elements 706.
Control unit 702, for when receiving recording ending request, reads the cut-off reproduction time information of the audio/video flow obtained;
Audio/video flow processing unit 704, is connected to described control unit 702, for revising the initial reproduction time information of the run-out generated according to the cut-off reproduction time information of described audio/video flow;
Recording elements 706, is connected respectively with described control unit 702 and described audio/video flow processing unit 704, when recording audio/video file, after described run-out is carried in described audio/video flow, to generate the audio-video document being added with described run-out.
It should be noted that, the control unit 702 in Fig. 7 corresponds to the plug-in unit control module in Fig. 5, and audio/video flow processing unit 704 corresponds to the FLV Mux mixed flow module in Fig. 5, and recording elements 706 corresponds to the File Write recorded file module in Fig. 5.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present invention program.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Accordingly, the present invention also provides a kind of terminal, described terminal includes memory, and one or more than one program, one of them or more than one program are stored in memory, and are configured to perform described more than one or one program package containing the instruction for carrying out following operation by more than one or one processor:
When receiving head and adding request, read the cut-off reproduction time information of the head generated;
According to the initial reproduction time information of the audio/video flow that described cut-off reproduction time information amendment obtains;
When recording audio/video file, before described head are carried in described audio/video flow, to generate the audio-video document being added with described head.And
When receiving recording ending request, read the cut-off reproduction time information of the audio/video flow obtained;
The initial reproduction time information of the run-out generated is revised according to the cut-off reproduction time information of described audio/video flow;
When recording audio/video file, after described run-out is carried in described audio/video flow, to generate the audio-video document being added with described run-out.
Accordingly, the present invention also provides a kind of server, described server includes memory, and one or more than one program, one of them or more than one program are stored in memory, and are configured to perform described more than one or one program package containing the instruction for carrying out following operation by more than one or one processor:
When receiving head and adding request, read the cut-off reproduction time information of the head generated;
According to the initial reproduction time information of the audio/video flow that described cut-off reproduction time information amendment obtains;
When recording audio/video file, before described head are carried in described audio/video flow, to generate the audio-video document being added with described head.And
When receiving recording ending request, read the cut-off reproduction time information of the audio/video flow obtained;
The initial reproduction time information of the run-out generated is revised according to the cut-off reproduction time information of described audio/video flow;
When recording audio/video file, after described run-out is carried in described audio/video flow, to generate the audio-video document being added with described run-out.
According to video title adding method provided by the invention, video run-out adding method and device, in the process of recording audio/video file, automatically head and/or run-out are added in the audio-video document recorded, quick generation is with the audio-video document of head and/or run-out, do not need user that other process softwares of audio-video document are carried out post-processed, the audio frequency and video treatment technology learning specialty is not needed yet, simple to operate, flexibly.
These are only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.