Summary of the invention
For addressing the above problem, the objective of the invention is to propose a kind of system and method for sharing users terminal video file.The video file of uploading with automatic process user, and realize sharing with other people video frequency program by wireless network and the Internet.
For achieving the above object, the present invention proposes a kind of system of sharing users terminal video file, be used for the video file that user terminal generates is uploaded onto the server, and share, comprising with other user terminal:
The content uploading module is used to receive the source video file of the multiple form of user terminal uploads;
The automatic modular converter of file is connected with described content uploading module, is used for described source video file being converted to the video file of extended formatting and preserving;
Content release module is connected with the automatic modular converter of described file, and the video file that is used for generating after the described automatic conversion is sent to server;
Content is shared module, is used for sending information about described video file to sharing user terminal, receive described response of sharing user terminal after, send described video file to the described user terminal of sharing;
Wherein, the automatic modular converter of described file further comprises:
Transducer in advance is used for the source video file of described multiple form is converted to the video file of consolidation form;
All video converters have been arranged in the video converter tabulation, are used for starting one by one video converter;
The various video transducer is used for the video file after the described conversion is in advance carried out the video conversion, generates the video file of multiple form.
The system of above-mentioned sharing users terminal video file, wherein, the automatic modular converter of described file also comprises:
Import folders is used to store the source video file that sends from described content uploading module;
Export folders is used to preserve video file and the described source video file that video conversion back generates;
The system of above-mentioned sharing users terminal video file, wherein, the automatic modular converter of described file also comprises:
The picture interceptor is used for intercepting image on the particular point in time of the video file after the described conversion in advance, and preserves with picture format.
The system of above-mentioned sharing users terminal video file, wherein, described content uploading module also comprises:
Content, classification module, the video file creating Tag label that is used to each to upload is classified to the described source video file of uploading according to the content of described Tag label.
The system of above-mentioned sharing users terminal video file wherein, also comprises:
The content auditing module is used at several pictures of described source video file intercepting, and preserves the described picture of demonstration.
The system of above-mentioned sharing users terminal video file, wherein, described information comprises: the chained address of described video file in described server, upload user's user terminal number and/or upload user's name.
The system of above-mentioned sharing users terminal video file, wherein, described system also comprises:
The content subscription module is used to subscribe to the video content that the specific user uploads and/or the video content of particular category, when the fresh content of subscription is arranged in the server, sends the information of described video file to the user of described subscription.
The system of above-mentioned sharing users terminal video file, wherein, described user terminal is shared the wireless connections respectively of module and server with described content uploading module, content.
For achieving the above object, the invention allows for a kind of method of sharing users terminal video file, wherein, comprising:
Step 1, the source video file of the multiple form of user terminal uploads;
Step 2 all converts the source video file of multiple form the video file of consolidation form in advance, starts the video file of video converter after to described conversion in advance one by one and carries out the video conversion, generates the video file of multiple form;
Step 3 is sent to server with the video file of described multiple form, and shares user terminal to other and send information about described video file;
Step 4 when the described user terminal of sharing responds, then is sent to described video file the user terminal of described response.
The method of above-mentioned sharing users terminal video file, wherein, described step 2 specifically comprises:
Step 101 obtains the source video file that is stored in the import folders;
Step 102 starts the video file that described transducer in advance all converts the source video file of different-format in the described import folders to consolidation form;
Step 103 starts the video file of described video converter after to described conversion in advance one by one and carries out video conversion, generates the video file of multiple form;
Step 104, the video file that source video file and described various video transducer are generated all is stored in the described export folders.
The method of above-mentioned sharing users terminal video file, wherein, described step 103 also comprises:
Step 111 is transferred the video converter tabulation;
Step 112 according to described tabulation, starts the set point in the enactment document that described video converter also loads and described video converter is bound one by one;
Step 113, described video converter carries out the video conversion according to described set point to described source video file;
Step 114 judges whether that all video converters have all finished the video conversion, if not, returns described step 112, if then enter described step 104.
The method of above-mentioned sharing users terminal video file, wherein, described step 1 also comprises:
According to the Tag label that user or editor fill in the source video file of uploading is classified;
In the predetermined moment, preset time interval and/or preset time section, several pictures of intercepting in the video file of described source, and preserve demonstration.
The method of above-mentioned sharing users terminal video file, wherein, described step 3 also comprises:
Content release module generates the static html page of described video file automatically, and is sent to the step of server; And/or
Content is shared the information that module will comprise the name of uploading the user or upload user's user terminal number and is sent to the step that other share user terminal.
The method of above-mentioned sharing users terminal video file, wherein, described step 4 also comprises:
When sharing the user when could not get on to the Net, described video file is sent to the step of the described user's of sharing E-mail address.
Native system only needs time a few minutes, and a few step shirtsleeve operations just can be dealt into the video content that the user takes in a plurality of friend's mobile phones and mailbox that are far apart ten thousand li.Support the content of various forms to upload to fast in the specific classification, the content auditing module can complete fast examining user's uploaded content, the content distribution module can make user all over the world watch up-to-date uploaded content rapidly, and content is shared module can make the user that the video content of oneself taking is dealt in a plurality of friend's mobile phones and mailbox that are far apart ten thousand li.
Native system can also make between the user and find the content of oneself liking easily by technology such as Tag, the user can form different clubs according to the difference of hobby in addition, they just can find own interested content easily like this, if if certain user to the interested words of other users' works, he can also subscribe to this user's content update by Email or mobile phone.
Native system can also disposablely convert the source video file on the portable terminal browsable all videos form, in the process of video conversion, can control the needed various video files of generation by setting in advance parameters such as screen size, frame number, coded system, encoding rate, this video transfer process does not need manual monitoring simultaneously, after manually starting, can be automatically and continuous running, automatically monitoring needs the source video file of conversion, handle the multiple source video file continuously and change, realize the transfer process of mass.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the invention is elaborated.
Fig. 1 is a system configuration schematic diagram of the present invention.Fig. 2 is the structural representation of the automatic modular converter of file of the present invention.As shown in the figure, system is shared module 150 and is formed by content uploading module 110, content auditing module 120, the automatic modular converter 130 of file, content release module 140 with content.
Content uploading module 110 is used for uploading the source video file that user terminal 100 is uploaded by wireless network and the Internet reception, the user does not need to understand professional knowledges such as FTP, only promptly can be in the web space of system various content uploadings by simple browser operation, the video file format of system's support comprises: the video format that WMV/MPG/RM/AVI/MP4/3GP/DAT/MOV/ASF etc. are whole.Upload user terminal by wireless network login system website, just the video file of 30M size can be uploaded in 30 seconds by the content uploading module and finish.
Content uploading module 110 further comprises content, classification module and content auditing module.Content, classification module adopts Tag mechanism, when the user terminal uploads video file, create a plurality of Tag labels, this Tag label is filled in by user or editor, same content can have a plurality of labels, content, classification module is classified the video file of uploading according to the content of Tag label, and same video file can be assigned in a plurality of classifications owing to different labels.The user can retrieve relevant content according to Tag label classification when selecting video file.
The content of the source video file of uploading for the user generally need be carried out the program audit, editor need be the complete from the beginning to the end audit of program one time, could guarantee that user's uploaded content does not have the thing of reaction pornographic, and in general, if a plurality of users have uploaded a lot of programs simultaneously, editor's audit program just needs a lot of times, send out earlier the custom of afterwards examining by general website, if the words that the content of reaction pornographic is not in time examined will cause serious social influence and serious consequence, general website does not have this ability to bear, thereby often drops into very high cost and employ a lot of editorial staffs to examine program.But this has just caused the manpower waste, waits after a little while and does not need much more so editors because the user uploads content.And in the native system, content auditing module 120 is after the user uploads content, can be on the backstage according to pre-set time interval and time period, perhaps grasp the sectional drawing of the content of 10-30 width of cloth institute uploaded videos rapidly in the specific moment, and be sent to display device and show, to offer editor's examination, improve the efficient of editor's audit program greatly.
The automatic modular converter 130 of file comprises import folders 210 (File Input), be used to preserve the source video file, video file form with the File Compress bag in import folders 210 in source is preserved, the extension name of each File Compress bag is all determined according to the Format Type of video file, so that judge by the extension name of Study document compressed package whether this source file is the file that system can change, if, just accept this source video file and handle, if can not, then stop processing to this document compressed package.
The source video file is with the form of File Compress bag, be placed in the import folders 210, system judges by the extension name of the source video file in the Study document compressed package whether this source file is the file that system can change, if, just accept this source video file and handle, if can not, then stop processing to this document compressed package.
Also comprise autocoding transform engine (Encoding Engine) in the system, transform engine comprises transducer 220 and a plurality of video converter 230 in advance, transducer 220 mainly is video and the audio coding mode that is used to change the source video file in advance, the source video file of different-format is converted in advance to the video file of general format, AVI form for example, this is because different video converters can only be changed several video files of specific format in the transform engine, in order to satisfy the needs of different video transducer, each video converter will make the source video file be converted to the video format that all video converters are all given tacit consent to (acceptance input) earlier, so that can both be further processed.
In the current video conversion field, have the various video transducer, as: QuickTime Pro, NokiaMultimedia Converter, BenQ AV Converter, Xenon, Imtoo 3GP Converter, HelixMobile Producer, Windows Media Player etc., but each video converter can convert the source video file to several limited video formats, can not convert all video formats to, for the source video file being converted to all main flow video formats, transform engine will be from above-mentioned multiple different video converter 230, selecting needed video converter combines, respectively the source video file is changed by each video converter 230 during conversion, to generate multiple different video format file, reach the video format that can comprise all main flows substantially, as: MP4, WMV, 3GP, RM, RMVB, ASF, MOV etc.
In order to realize the process of conversion automatically, also comprised video converter tabulation 240 in the transform engine, arranged all video converters 230 in the tabulation, and the peculiar parameter setting file of each video converter, and with the enactment document and the video converter binding of correspondence.During system works, can call video converter tabulation, the video converter 230 that video converter tabulation 240 is enumerated in the startup table according to the order of sequence one by one loads the set point in the enactment document of binding simultaneously, and the source video file is changed.
In the system file, be set with the multiple parameter of video converter, comprise: execution route, open beginning parameter and export file name thereof etc.The user can also be in enactment document, the output file parameter that conversion generates is set, comprise: audio/video coding (as: MPEG4 in the 3GP form encodes and H.263 encodes), frame per second when video file is play, picture dimension etc., according to the different needs of different mobile terminal to video, in enactment document, set different parameter values, optimized the play quality of video file.
Often also need to obtain the picture of relevant video content in the practical application; also be provided with picture interceptor 270 in the transform engine for this reason; be used for preserving with picture format in specific time point intercepting corresponding image, the particular point in time of intercepting, filename and dimension of picture can be set in enactment document.
The mobile terminal video document that transform engine produced, the picture and the source video file of 270 interceptings of picture interceptor all are kept in the export folders 250 (File Output) with the form of File Compress bag.
Fig. 3 is the flow chart of the automatic modular converter work of file.As shown in the figure, comprise the steps:
Step S100 starts autocoding transform engine (Enconding Engine).
Step S101 extracts the source video file of preserving in the import folders 210.The source video that edits is put into import folders 210 (File Input) with the form of File Compress bag, and this import folders 210 once can be put into a plurality of File Compress bags, and each File Compress bag all comprises the source video file.
When the autocoding transform engine monitors import folders 210 when the File Compress bag is arranged automatically, just successively each File Compress bag is analyzed according to the order of file compressed package in the import folders 210, judge according to the extension name of file in the File Compress bag whether this source video file is the form that can change, if, then accept this source video file, and carry out ensuing processing, if not the form that can change is then skipped the processing to this source file.
Further, when system detects when having a more than source video file or not having the source video file to exist in the source video file folder, system will send error message automatically, and the record position and the content that make a mistake, skip the processing of this compressed package then, termination routine, and handle the program of next File Compress bag.
If by above-mentioned detection, then the source video file in the extraction document compressed package is for further processing.
Step S102, after system has accepted a source file, system will judge whether according to the coded format of source file to activate transducer 220 in advance, if the Voice ﹠ Video coded format after the to be system predefined conversion of transducer in advance of the coded format of source video file, then do not need to activate transducer in advance, directly enter next step.
Step S103, if source file is not the coded format after the conversion of being scheduled to, then system can activate transducer 220 in advance automatically.Transducer 220 can be converted to the source file of various coded formats the Voice ﹠ Video coded format that systematic unity is set in advance, as the AVI form, carries out the processing of next step conveniently to utilize the file after this conversion.
Step S104 according to system's setting in advance, judges whether to need to activate picture interceptor 270.
Step S105 if desired, then activates the picture interceptor, and picture interceptor 270 can remove to intercept the film-pieces at particular point in time and the picture of output specific format and title according to set point.In the default file, time point, filename and dimension of picture are to set with certain rule: weight x height:position_filmname, can use continuous a plurality of different set points to produce many different film sectional drawings like this, the figure sector-meeting that generates is placed in the export folders 250.
Step S106, system activates the autocoding transform engine, at first obtain video converter tabulation 240, comprise all video converters 230 in the table, and the peculiar enactment document of each video converter, comprise in the enactment document this video converter execution route, open parameters such as beginning parameter and spanned file title thereof.
Step S107, the autocoding transform engine starts video converter, and loads the specific set point of affiliated this video converter automatically, according to set point, the source video file through transducer 220 processing is in advance carried out the video conversion, generates new video file.In order to activate transform engine, can in the order line (Command Line) of system, set active program, when needs activation transform engine, this program can start transform engine automatically.
The various video file formats of conversion output have been set in the default value, 3GP form/MP4 form/WMV form for example, with setting different codings again in a kind of form, as the MPEG4 coding being set in the 3GP form and H.263 encoding, the video file that the autocoding transform engine can convert the source video file to a plurality of different-formats or same form different coding according to the form and the coding kind of these settings.Simultaneously, because different mobile terminal screen sizes is different with performance, so the picture dimension when video file is play, frame per second all have different requirements, above-mentioned needs can be by preestablishing in enactment document, the autocoding transform engine can be according to above-mentioned set point, convert the source video file video file of multiple broadcast specification to, the specific requirement when satisfying different mobile terminal and playing.
Step S108, the autocoding transform engine in the automatic modular converter 130 of file make all video converters 230 carry out the video conversion to source file one by one.Convert the source video file to various video formats, audio/video coding and picture dimension, the video file of play frame rate.
Step S109, with the source video file, the picture that video file that all video converter conversions generate and picture interceptor obtain all is kept in the export folders 250, and compression is packaged into a file data bag.
Step S110 judges whether and file data need be wrapped in the server 260 that passes to front end.
Step S111 if need, then wraps file data and passes in the server 260.
Step S112, if do not need, termination routine then.
Content release module 140, by server interface (File Server Interface), export folders 250 is connected with server 260, the packing of the various video files in the export folders 250 and picture is sent to server 260, for website or mobile terminal WAP provide content service.
The video file that automatic modular converter 130 conversions of file are generated is sent in a plurality of servers 260, to guarantee the video file content after in all parts of the country and overseas various places user can both have access to conversion soon, simultaneously, content release module is when sending video file to server 260, will generate the static html page of video file automatically, together be kept in the server 260 with video file, find this video file so that calling party can be more convenient.
Content is shared module 150, with the video file in the server by the Internet and/or wireless network, send to the request visit, watch or download share user terminal 160, this user terminal 160 comprises portable terminal or PC computer.When the user wants the uploaded videos file to share with other user, the name that the user that file sharing module 150 just requires to upload imports oneself and other users' that wish to share this video file the name and/or the number of user terminal, content is shared module 150 after this video file is published in the server 260 through automatic conversion process, can send the prompting message that comprises this video file WAP link and extremely can share the user terminal of this video file, can also comprise the name of uploading the user or the user terminal number of uploading the user in the prompting message, can distinguish and get rid of the link that the stranger sends so that share user terminal 160 so that share the user bold watch the foradownloaded video file.
Sharing user terminal 160 can go to the access server website according to the content of information, browses the content of shared video file, also can directly click the address link of the video file in the information, video file is downloaded in the user terminal browses.
For the user that shares who could not get on to the Net, content is shared module 150 and the video file after the conversion can be sent in the E-mail address of sharing the user.
In addition, also comprise the content subscription module in the system, the user can pass through the subscription designated user uploaded content of RSS or portable terminal, also can other content of specified class.For example, if the party A-subscriber has subscribed to party B-subscriber's special column by portable terminal,, will receive on party A-subscriber's the portable terminal that content shares the information of module when the party B-subscriber has newly when uploading content.The party A-subscriber can browse the program that the party B-subscriber uploads by access server, also can directly click the link in this prompting message, browses party B-subscriber's program by portable terminal.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; being familiar with those of ordinary skill in the art ought can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.