CN106358058A - Method and system for uploading video files and supporting breakpoint continuous uploading characteristic - Google Patents
Method and system for uploading video files and supporting breakpoint continuous uploading characteristic Download PDFInfo
- Publication number
- CN106358058A CN106358058A CN201610779021.7A CN201610779021A CN106358058A CN 106358058 A CN106358058 A CN 106358058A CN 201610779021 A CN201610779021 A CN 201610779021A CN 106358058 A CN106358058 A CN 106358058A
- Authority
- CN
- China
- Prior art keywords
- server
- video file
- file
- uploading
- information
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/27—Server based end-user applications
- H04N21/274—Storing end-user multimedia data in response to end-user request, e.g. network recorder
- H04N21/2743—Video hosting of uploaded data from client
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Abstract
The invention provides a method for uploading video files and supporting a breakpoint continuous uploading characteristic. The method comprises steps as follows: S1, a to-be-uploaded video file is selected according to a user instruction and address information of the video file is acquired; S2, whether a record exists locally according to the address information, and if yes, an uploading address of a corresponding remote server is acquired according to the address information; if no, the server is configured by use of an initial uploading address, the video file is initialized, and a newly uploaded address returned by the server is acquired and recorded locally; S3, uploaded information of the video file on the server according to the uploading address and remaining bytes of the video file are continuously uploaded to the server according to the uploaded information; or the video file is uploaded to the server according to the newly uploaded address; S4, an uploading result is acquired according to information returned by the server and presented at a client. The method and the system are convenient and effectively realize breakpoint continuous uploading.
Description
Technical field
The present invention relates to a kind of files passe technology, particularly to the method for breakpoint transmission characteristic during uploaded videos file.
Background technology
With the development of Internet education, blog and network direct broadcasting, people are increasing to the demand of video media, pin
The correlation techniques such as the compression of video, transmission, transcoding are also being developed rapidly.The file of video file other text datas relatively general
For outstanding feature be that data volume is big, probably due to the accident collapse of client or restart and lead to upload in upload procedure
Interrupt, when uploading again, upload whole file again, affect Consumer's Experience.
Content of the invention
The present invention proposes a kind of method that video file that is easy, effectively realizing breakpoint transmission uploads.
The technical scheme is that and be achieved in that:
A kind of uploaded videos file the method supporting breakpoint transmission characteristic, including step:
S1, video file to be uploaded is selected according to user instruction, and obtain the address information of this video file;
S2, whether record locally being had according to this address information inspection, if having, being obtained according to this address information corresponding remote
On journey server upper by reference;If no, uploading address-configuration server using initial, initializing this video file, and obtaining
Server return new on by reference, by this new on recorded by reference local;
S3, the information of upload according to this video file on upload address acquisition server, and resumed according to upload information
This video file remainder bytes is to server;Or according to uploading this video file by reference to server on new;
S4, according to server returns information obtain upload result be presented in client.
The uploaded videos file of present invention offer the method supporting breakpoint transmission characteristic are permissible when selecting uploaded videos
First check locally whether be stored in record, judge the information of upload further according to the record existing, such that it is able to upload remainder bytes,
If or new uploaded videos then mate new upper be used for by reference uploading, and the result uploading then can feed back to use in real time
Family is checked;Its detection of method for uploading that the present invention provides all completes in mobile terminal, and is all local operation, easy and simple to handle,
And can effectively realize the function of breakpoint transmission.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, also may be used
So that other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of present invention uploaded videos file the method supporting breakpoint transmission characteristic.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work
Embodiment, broadly falls into the scope of protection of the invention.
Refer to Fig. 1, a kind of uploaded videos file the method supporting breakpoint transmission characteristic, including step:
S1, video file to be uploaded is selected according to user instruction, and obtain the address information of this video file;
S2, whether record locally being had according to this address information inspection, if having, being obtained according to this address information corresponding remote
On journey server upper by reference;If no, uploading address-configuration server using initial, initializing this video file, and obtaining
Server return new on by reference, by this new on recorded by reference local can directly to take when being resumed afterwards
The already present partial video file address on server;On by reference be known upload server address (enterprise or cdn service
Device address), initialization upload server has configured the specific address that file can return to this file of client
S3, the information of upload according to this video file on upload address acquisition server, and resumed according to upload information
This video file remainder bytes is to server;Or according to uploading this video file by reference to server on new;
S4, according to server returns information obtain upload result be presented in client.
Preferably, the http request type that mainly uses and saying during client and server connects in the inventive method
Bright:
Post: submit to post type requests to carry out user validation checking and do initialization for video file to be uploaded and join
Put.
Head: head type requests each time, server returns the head variable of offset, and the current upload of mark completes
Byte number.
Patch: server accepts the data of files passe by patch type requests.All patch requests must use
Content-type:application/offset+octet-stream.
Preferably, if in execution step no, upload address-configuration server using initial, initialize this video file, and
Obtain server return new on by reference, by this new on recorded local step by reference when, its specific step includes:
Step one: according to this video file in server initiation relevant configuration, comprising:
4. request header domain information is set, and parameter includes: ts (millisecond timestamp), userid (user id, enterprises registration user
Id information, for the unique identifier of user), hash (cryptographic Hash, the word pieced together according to ts and writetoken order
Symbol string carry out the calculated value of md5), final-length (file size (unit byte));
5. setting request body parameter, (video expands for title (video title information), cataid (video classification information), ext
Exhibition name), tag (video tab information), desc (video presentation information);
6. execution http post asks to uploading server interface;
Step 2: according to http post request server new on by reference, by this new on recorded by reference local.
Preferably, in execution step according to the step uploading information uploading this video file on address acquisition server
When, its specific step includes:
The request sending http head type to server, request address be on server upper by reference;
Server according to the request of this http head type and on return conditional code and offset value by reference.
Preferably, before execution step s3 uploaded videos file, it further comprises the steps of: and carries out streaming to this video file
Process.In general video file can be more much larger than the other kinds of file data such as text, picture, m's or how many g up to a hundred
Content is all that comparison is normal, so the streaming reading/writing method using http body avoids in client in upload procedure
The too high problem of server end committed memory.
Preferably, in execution step s3, its specific step includes:
Setting request header domain information, writetoken (uploads authorization code, enterprises registration user is used for the upload of backstage upload
Authorization code) and offset (side-play amount, offset head denotation of variable currently goes up the side-play amount that transmitting file completes, offset be 0 or
The integer that person is more than 0);
The body of http is set to the inlet flow of video file;
Execution http patch request uploads the video file of remainder bytes.
Preferably, in execution step s4, it includes following items:
On video during crossing, server returns information obtain this upload size of data, completed upload data big
The parameter informations such as the size of data that little and expectation uploads;
When video uploads successfully, server returns upload and completes information;
When video uploads unsuccessfully, return to step s3 and re-execute.This step obtains uploaded videos again from server
The information of file, for the feasibility of operation, can limit number of retries in client, need when no longer retrying to close stream file.
Preferably, before execution step 1, further comprise the steps of: and video file to be uploaded is compressed process.In visitor
The compression carrying out video on the end of family is processed, and obtains the video file address after compression;Certainly it does not limit and must do at compression
Reason, does not compress, then obtains former video file address.File size when video uploads can be reduced by compression, thus on improving
Pass speed.
In upload procedure, client is surprisingly collapsed or the reason such as is restarted and cause to upload and interrupts, execution step when uploading again
S2, video file before now resuming.
The uploaded videos file of present invention offer the method supporting breakpoint transmission characteristic are permissible when selecting uploaded videos
First check locally whether be stored in record, judge the information of upload further according to the record existing, such that it is able to upload remainder bytes,
If or new uploaded videos then mate new upper be used for by reference uploading, and the result uploading then can feed back to use in real time
Family is checked;Its detection of method for uploading that the present invention provides all completes in mobile terminal, and is all local operation, easy and simple to handle,
And can effectively realize the function of breakpoint transmission.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all essences in the present invention
Within god and principle, any modification, equivalent substitution and improvement made etc., should be included within the scope of the present invention.
Claims (7)
1. a kind of uploaded videos file and support breakpoint transmission characteristic method it is characterised in that include step:
S1, video file to be uploaded is selected according to user instruction, and obtain the address information of this video file;
S2, whether record locally being had according to this address information inspection, if having, corresponding long-range clothes being obtained according to this address information
Business device on upper by reference;If no, uploading address-configuration server using initial, initializing this video file, and obtaining service
Device return new on by reference, by this new on recorded by reference local;
S3, according to the information of upload uploading this video file on address acquisition server, and this resumed according to upload information regard
Frequency file remainder bytes are to server;Or according to uploading this video file by reference to server on new;
S4, according to server returns information obtain upload result be presented in client.
2. as claimed in claim 1 a kind of uploaded videos file and support breakpoint transmission characteristic method it is characterised in that
If execution step is no, upload address-configuration server using initial, initialize this video file, and obtain server return
On new by reference, by this new on recorded local step by reference when, its specific step includes:
Step one: according to this video file in server initiation relevant configuration, comprising:
1. request header domain information is set, and parameter includes: ts, userid, hash, final-length;
2. setting request body parameter, title, cataid, ext, tag, desc;
3. execution http post asks to uploading server interface;
Step 2: according to http post request server new on by reference, by this new on recorded by reference local.
3. as claimed in claim 1 a kind of uploaded videos file and support breakpoint transmission characteristic method it is characterised in that
Execution step according to upload address acquisition server on this video file upload information step when, its specific step bag
Include:
The request sending http head type to server, request address be on server upper by reference;
Server according to the request of this http head type and on return conditional code and offset value by reference.
4. as claimed in claim 1 a kind of uploaded videos file and support breakpoint transmission characteristic method it is characterised in that
Before execution step s3 uploaded videos file, it further comprises the steps of: and carries out Stream Processing to this video file.
5. as claimed in claim 3 a kind of uploaded videos file and support breakpoint transmission characteristic method it is characterised in that
During execution step s3, its specific step includes:
Setting request header domain information, writetoken and offset;
The body of http is set to the inlet flow of video file;
Execution http patch request uploads the video file of remainder bytes.
6. as claimed in claim 3 a kind of uploaded videos file and support breakpoint transmission characteristic method it is characterised in that
During execution step s4, it includes following items:
On video during crossing, server returns information obtain this upload size of data, completed upload size of data and
Expect the parameter informations such as the size of data of upload;
When video uploads successfully, server returns upload and completes information;
When video uploads unsuccessfully, return to step s3 and re-execute.
7. as claimed in claim 1 a kind of uploaded videos file and support breakpoint transmission characteristic method it is characterised in that
Before execution step 1, further comprise the steps of: and video file to be uploaded is compressed process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610779021.7A CN106358058A (en) | 2016-08-31 | 2016-08-31 | Method and system for uploading video files and supporting breakpoint continuous uploading characteristic |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610779021.7A CN106358058A (en) | 2016-08-31 | 2016-08-31 | Method and system for uploading video files and supporting breakpoint continuous uploading characteristic |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106358058A true CN106358058A (en) | 2017-01-25 |
Family
ID=57857205
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610779021.7A Pending CN106358058A (en) | 2016-08-31 | 2016-08-31 | Method and system for uploading video files and supporting breakpoint continuous uploading characteristic |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106358058A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107483975A (en) * | 2017-07-05 | 2017-12-15 | 北京辰安信息科技有限公司 | A kind of method and device of Vehicular video storage |
CN110366042A (en) * | 2019-07-29 | 2019-10-22 | 天闻数媒科技(湖南)有限公司 | A kind of intelligent continuous transmission method based on VOD system |
CN111835867A (en) * | 2020-07-28 | 2020-10-27 | 浪潮云信息技术股份公司 | File uploading method and system |
CN112243017A (en) * | 2019-07-18 | 2021-01-19 | 北京京东尚科信息技术有限公司 | File uploading method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090037520A1 (en) * | 2007-07-30 | 2009-02-05 | Caterpillar Inc. | System and method for secure file transfer |
CN102025961A (en) * | 2009-09-10 | 2011-04-20 | 浙江省公众信息产业有限公司 | Method for distributed deployment of video |
CN103067505A (en) * | 2012-12-30 | 2013-04-24 | 乐视网信息技术(北京)股份有限公司 | Method for uploading files to server |
CN103078883A (en) * | 2011-10-26 | 2013-05-01 | 北大方正集团有限公司 | Asynchronous file transfer device based on FTP (file transfer protocol) |
CN103581242A (en) * | 2012-07-27 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Method, client-side equipment, server and system for uploading files |
CN105227514A (en) * | 2014-05-27 | 2016-01-06 | 北大方正集团有限公司 | Based on document transmission processing method and the browser of browser |
CN105227610A (en) * | 2014-06-30 | 2016-01-06 | 北京金山安全软件有限公司 | File uploading and storing method and device |
-
2016
- 2016-08-31 CN CN201610779021.7A patent/CN106358058A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090037520A1 (en) * | 2007-07-30 | 2009-02-05 | Caterpillar Inc. | System and method for secure file transfer |
CN102025961A (en) * | 2009-09-10 | 2011-04-20 | 浙江省公众信息产业有限公司 | Method for distributed deployment of video |
CN103078883A (en) * | 2011-10-26 | 2013-05-01 | 北大方正集团有限公司 | Asynchronous file transfer device based on FTP (file transfer protocol) |
CN103581242A (en) * | 2012-07-27 | 2014-02-12 | 腾讯科技(深圳)有限公司 | Method, client-side equipment, server and system for uploading files |
CN103067505A (en) * | 2012-12-30 | 2013-04-24 | 乐视网信息技术(北京)股份有限公司 | Method for uploading files to server |
CN105227514A (en) * | 2014-05-27 | 2016-01-06 | 北大方正集团有限公司 | Based on document transmission processing method and the browser of browser |
CN105227610A (en) * | 2014-06-30 | 2016-01-06 | 北京金山安全软件有限公司 | File uploading and storing method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107483975A (en) * | 2017-07-05 | 2017-12-15 | 北京辰安信息科技有限公司 | A kind of method and device of Vehicular video storage |
CN112243017A (en) * | 2019-07-18 | 2021-01-19 | 北京京东尚科信息技术有限公司 | File uploading method and device |
CN110366042A (en) * | 2019-07-29 | 2019-10-22 | 天闻数媒科技(湖南)有限公司 | A kind of intelligent continuous transmission method based on VOD system |
CN111835867A (en) * | 2020-07-28 | 2020-10-27 | 浪潮云信息技术股份公司 | File uploading method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10165321B2 (en) | Facilitating placeshifting using matrix codes | |
CN106656908B (en) | Two-dimensional code processing method and device | |
US9323713B2 (en) | Method for automatic establishing wireless connectivity between a mobile wireless device and a target screen for multimedia data streaming | |
USRE48430E1 (en) | Two-dimensional code processing method and terminal | |
CN106358058A (en) | Method and system for uploading video files and supporting breakpoint continuous uploading characteristic | |
KR101993239B1 (en) | Method and apparatus for managing user device and contents using QR code | |
US20160066007A1 (en) | Video playback method, media device, playback device, and multimedia system | |
JP6351737B2 (en) | Upload form attachment | |
CN104361075A (en) | Image website system and realizing method | |
WO2013033242A1 (en) | Compressing, transcoding, sending, and retrieving video and audio files in a server-based system | |
US20150358653A1 (en) | Method and apparatus for processing audio/video file | |
CN111225058A (en) | File uploading method and related product | |
US11605030B1 (en) | Viewing segments of event media | |
CN109710783B (en) | Picture loading method and device, storage medium and server | |
CN109672710B (en) | File uploading method, system and equipment | |
CN112994900B (en) | File countersigning method, device, client, server and storage medium | |
JP6545439B2 (en) | Operation recording apparatus, operation recording and reproducing system, and program | |
CN107707630B (en) | Method and device for file transmission | |
CN110691266A (en) | On-site broadcasting system | |
CN105657542B (en) | A kind of mosaic service management platform and system | |
TWM443900U (en) | Leased image recognition service system | |
US10999422B2 (en) | Confirming geolocation of a device | |
CN116932286A (en) | Data backup method, device, equipment and storage medium | |
CN109819344A (en) | User feedback method, apparatus, equipment and the storage medium of Streaming Media | |
US20160234507A1 (en) | Image transmission system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170125 |