CN115643453B - Video uploading method, system, user terminal, server and storage medium - Google Patents

Video uploading method, system, user terminal, server and storage medium Download PDF

Info

Publication number
CN115643453B
CN115643453B CN202211661477.5A CN202211661477A CN115643453B CN 115643453 B CN115643453 B CN 115643453B CN 202211661477 A CN202211661477 A CN 202211661477A CN 115643453 B CN115643453 B CN 115643453B
Authority
CN
China
Prior art keywords
video
fragment
request
unique identifier
uploading
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.)
Active
Application number
CN202211661477.5A
Other languages
Chinese (zh)
Other versions
CN115643453A (en
Inventor
徐奇
薛富恩
朱其胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Arc Information Technology Co ltd
Original Assignee
Beijing Arc Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Arc Information Technology Co ltd filed Critical Beijing Arc Information Technology Co ltd
Priority to CN202211661477.5A priority Critical patent/CN115643453B/en
Publication of CN115643453A publication Critical patent/CN115643453A/en
Application granted granted Critical
Publication of CN115643453B publication Critical patent/CN115643453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application relates to a video uploading method, a video uploading system, a user terminal, a server and a storage medium. The method comprises the steps that the unique identification of a plurality of videos to be uploaded is obtained firstly, and the unique identification of the videos to be uploaded is adopted to modify the video name, so that the fragment name of the video fragment of the segmented videos to be uploaded not only comprises a fragment serial number, but also comprises the unique identification; generating a first request and sending the video fragment to a server; the server returns an uploading address of the video fragment; the user terminal generates a second request to request the server to splice all the video fragments according to the fragment serial numbers and the unique identifiers to synthesize a complete video; the problem of confusion caused by the fact that video fragments of different videos are synthesized together is avoided; the stability and reliability of multi-video fragment uploading are ensured.

Description

Video uploading method, system, user terminal, server and storage medium
Technical Field
The present application relates to the field of data transmission processing, and in particular, to a video uploading method, system, user terminal, server, and storage medium.
Background
The video uploading generally refers to the act of sending the video local to the terminal to the server for storage. When the local storage space of the terminal is insufficient, the related video data can be uploaded to the server, so that the occupation of the local storage space of the terminal by the video data is reduced; or the video data is uploaded to a server for storage, so that the backup effect is realized, and the data loss is avoided.
At present, one video file can be uploaded at a time, and a plurality of video files can also be uploaded simultaneously; when a user has a plurality of video files to be uploaded, the user requirements are obviously better met by a mode of simultaneously uploading the plurality of video files, and the uploading efficiency is improved because repeated operation can be reduced.
Each uploading can be directly transmitting the whole video file, or segmenting the video file first and uploading each segmented video segment respectively. The former method is easy to cause the condition of transmission interruption, especially when the video file is large, and simultaneously, because of serial processing, the problem of low transmission efficiency exists; the latter method has more stable transmission because the data volume of each video slice is small, less transmission interruption occurs, and the transmission efficiency is higher based on high concurrent parallel processing.
Therefore, when a plurality of video files need to be uploaded, the plurality of video files are selected to be uploaded simultaneously, and a video slicing mode is adopted, so that an efficient and stable uploading mode is probably needed. However, in the actual situation, multiple video fragments are uploaded, which easily causes the situation that the server is confused when the composite video fragments form a complete video.
Disclosure of Invention
In order to solve the problem that the server is easy to generate synthesis disorder when synthesizing video fragments to form a complete video by uploading multiple video fragments, the application provides a video uploading method, a system, a user terminal, a server and a storage medium.
In a first aspect, the present application provides a video uploading method, which is applied to a user terminal and adopts the following technical scheme:
acquiring unique identifiers corresponding to the videos to be uploaded respectively;
modifying the video name of the video to be uploaded corresponding to the unique identifier based on the unique identifier, so that the modified video name at least comprises the unique identifier; taking the video to be uploaded with the modified video name as the video to be split;
calling a preset video segmentation tool to segment each to-be-segmented video, so that each to-be-segmented video is segmented and at least two video segments are obtained correspondingly, and the segment name of each video segment comprises a segment serial number and a unique identifier corresponding to the to-be-uploaded video;
generating a first request based on the video content data corresponding to the video fragment, the fragment serial number and the unique identifier;
sending the first request to a target server;
receiving a first response message returned by the target server based on the first request; the first response message comprises an uploading address URL distributed by the target server for the video fragment;
generating a second request based on the fragment serial number, the unique identifier and the uploading address URL corresponding to each video fragment;
sending the second request to the target server;
receiving a second response message returned by the target server based on the second request; and the second response message comprises a storage address corresponding to the complete video obtained by the target server through synthesizing based on each video fragment.
By adopting the technical scheme: for a plurality of videos to be uploaded, a user terminal firstly obtains unique identifiers of the videos to be uploaded, and the video names are modified by adopting the unique identifiers of the videos to be uploaded, so that the fragment names of the video fragments of the videos to be uploaded after being segmented not only comprise fragment serial numbers, but also comprise the unique identifiers; generating a first request and sending the video fragment to a server; the server returns an uploading address of the video fragment; after receiving all video fragments of each video to be uploaded and returning to obtain corresponding uploading addresses, the user terminal generates a second request based on fragment serial numbers, unique identifiers and uploading address URLs corresponding to the video fragments so as to request a server to splice the video fragments according to the fragment serial numbers and the unique identifiers to synthesize a complete video; therefore, all video fragments with the same unique identifier can be synthesized together, and the problem of confusion caused by synthesizing the video fragments of different videos is avoided; and the correct synthesis sequence can be ensured according to the sequence number of the fragments; the stability and the reliability of uploading of the multiple video fragments are ensured, and the problem of disordered synthesis and splicing easily generated during video fragment synthesis is avoided.
Optionally, the unique identifier includes a globally unique identifier GUID.
By adopting the technical scheme, the global unique identifier GUID is used as the unique identifier of the video to be uploaded, so that the generation or the acquisition is facilitated.
Optionally, the generating a second request based on the fragment serial number, the unique identifier, and the upload address URL corresponding to each video fragment includes:
for all video fragments with the same unique identifier, sequentially acquiring the uploading address URL corresponding to each video fragment according to the fragment serial number corresponding to each video fragment to form a video fragment sequence array set; and generating one second request based on the video slicing sequence array set.
By adopting the technical scheme, after all video fragments of a certain video to be uploaded return corresponding uploading addresses, a second request of the video to be uploaded can be immediately generated so as to request the server to synthesize all the video fragments of the video to be uploaded; the video uploading efficiency can be improved without waiting for the video segmentation process of other videos to be uploaded or whether the uploading address is returned to be completed.
Optionally, the second request further includes a file type, a video format, a slice size, and a slice number.
By adopting the technical scheme, the specific content contained in the second request is further limited.
Optionally, the video uploading method further includes:
when the first response message is not received after the preset response time is exceeded, judging that the first request is failed to be sent; and regenerating the first request and sending the first request to the target server.
By adopting the technical scheme, when the uploading address of the corresponding video fragment is not obtained in time, the request failure can be judged in time, the first request is triggered to be regenerated to obtain the uploading address of the corresponding video fragment, and the uploading efficiency is ensured.
In a second aspect, the present application provides a video uploading method, which is applied to a server and adopts the following technical scheme:
receiving a first request sent by a user terminal;
analyzing the first request to obtain video content data, fragment serial numbers and unique identifiers of corresponding video fragments;
distributing an uploading address URL for the video fragment to store the video content data of the video fragment;
generating a first response message according to the fragment serial number, the unique identifier and the uploading address URL of the video fragment;
sending the first response message to the user terminal;
receiving a second request sent by the user terminal based on the first response message;
analyzing the second request to obtain the fragment serial number, the unique identifier and the uploading address URL corresponding to each video fragment;
for all video fragments with the same unique identification, sequentially acquiring the video content data corresponding to each video fragment from the corresponding uploading address URL;
sequentially splicing and synthesizing the video fragments according to the fragment serial numbers corresponding to the video fragments to obtain a complete video;
allocating a storage address for the complete video to store the complete video;
and generating a second response message based on the storage address, and sending the second response message to the user terminal.
By adopting the technical scheme, the server can be ensured to synthesize all the video fragments with the same unique identifier together, and the problem of confusion caused by the fact that the video fragments of different videos are synthesized together is avoided; and the correct sequence of synthesis can be ensured according to the sequence number of the fragments; the stability and the reliability of uploading of the multiple video fragments are ensured, and the problem of disordered synthesis and splicing easily generated during video fragment synthesis is avoided.
In a third aspect, the present application provides a video uploading system, which adopts the following technical scheme:
the system comprises a user terminal and a server which are interconnected in a communication way;
the user terminal is used for acquiring unique identifiers corresponding to the videos to be uploaded respectively; modifying the video name of the video to be uploaded corresponding to the unique identifier based on the unique identifier, so that the modified video name at least comprises the unique identifier; taking the video to be uploaded with the modified video name as the video to be split; calling a preset video segmentation tool to segment each to-be-segmented video, so that each to-be-segmented video is segmented and at least two video segments are obtained correspondingly, and the segment name of each video segment comprises a segment serial number and a unique identifier corresponding to the to-be-uploaded video; generating a first request based on the video content data corresponding to the video fragment, the fragment serial number and the unique identifier; sending the first request to the server;
the server is used for receiving a first request sent by the user terminal; analyzing the first request to obtain video content data, fragment serial numbers and unique identifiers of corresponding video fragments; distributing an uploading address URL for the video fragment to store the video content data of the video fragment; generating a first response message according to the fragment serial number, the unique identifier and the uploading address URL of the video fragment; sending the first response message to the user terminal;
the user terminal is used for receiving the first response message; analyzing to obtain the fragment serial number, the unique identifier and the uploading address URL corresponding to the video fragment; generating a second request based on the fragment serial number, the unique identifier and the uploading address URL corresponding to each video fragment; sending the second request to the server;
the server is used for receiving a second request sent by the user terminal; analyzing the second request to obtain the fragment serial number, the unique identifier and the uploading address URL corresponding to each video fragment; for all video fragments with the same unique identification, sequentially acquiring the video content data corresponding to each video fragment from the corresponding uploading address URL; sequentially splicing and synthesizing the video fragments according to the fragment serial numbers corresponding to the video fragments to obtain a complete video; allocating a storage address for the complete video to store the complete video; generating a second response message based on the storage address, and sending the second response message to the user terminal;
the user terminal receives a second response message returned by the server; and analyzing to obtain a storage address corresponding to the complete video, which is obtained by synthesizing the server based on each video fragment.
By adopting the technical scheme, the stability and the reliability of uploading of the multiple video fragments are ensured through mutual interaction processing between the user terminal and the server, and the problem of confusion of synthesis and splicing easily generated during synthesis of the video fragments is avoided.
In a fourth aspect, the present application provides a user terminal, which adopts the following technical solution:
comprising a first processor, a first memory and a computer program stored in the first memory and executable on the first processor, the first processor implementing the video upload method as applied to any of the user terminals as described above when executing the computer program.
By adopting the technical scheme, the user terminal capable of implementing the video uploading method is provided.
In a fifth aspect, the present application provides a server, which adopts the following technical solution:
comprising a second processor, a second memory and a computer program stored in said second memory and executable on said second processor, said second processor implementing the video upload method as applied to the server as above when executing said computer program.
By adopting the technical scheme, the server capable of implementing the video uploading method is provided.
In a sixth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solutions:
the computer storage medium stores a computer program; the computer program, when executed by a processor, implements a video upload method as described above as applied to any of user terminals or as applied to a server.
By adopting the technical scheme, the carrier of the computer program of the video uploading method is provided.
In summary, the present application includes at least the following advantageous technical effects:
1. the stability and the reliability of uploading of the multiple video fragments are ensured, and the problem of disordered synthesis and splicing easily generated during video fragment synthesis is avoided.
2. The video uploading efficiency is improved.
Drawings
Fig. 1 is a block flow diagram of a video uploading method in an embodiment of the present application;
FIG. 2 is a schematic diagram of a user terminal interface in an embodiment of the present application;
fig. 3 is a block flow diagram of another video uploading method in the embodiment of the present application;
fig. 4 is a block diagram of a network architecture of a video uploading system in an embodiment of the present application;
fig. 5 is a block flow diagram of another video uploading method in an embodiment of the present application;
fig. 6 is a block diagram of a user terminal according to an embodiment of the present application;
FIG. 7 is a block diagram of a server in an embodiment of the present application;
description of reference numerals:
61. a first processor; 62. a first memory; 71. a second processor; 72. a second memory.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below with reference to fig. 1-7 and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The embodiment of the application discloses a video uploading method.
Referring to fig. 1, a video uploading method applied to a User terminal (User Equipment) includes the following steps:
s101: and acquiring unique identifiers corresponding to the videos to be uploaded respectively.
Referring to fig. 2, a user may check video files that need to be uploaded to the server for storage, and after the check is completed, all checked video files may be uploaded at the same time. And each video file does not need to be operated respectively, so that repeated operation is reduced, and the use by a user is facilitated.
In an alternative embodiment of the present application, with continuing reference to fig. 2, when the user clicks the "upload" button, the terminal receives the click operation instruction from the user, so as to trigger the upload process.
Specifically, the user terminal takes the video file finally selected by the user as the file to be uploaded; and generating a corresponding unique identifier for each video file to be uploaded according to a preset mode.
It should be understood that the preset mode can be any existing mode as long as a different unique identifier can be generated for each video file. The adopted preset modes are different, and the forms of the correspondingly generated unique identifiers may be different.
In an alternative embodiment of the present application, the Unique Identifier includes a GUID (global Unique Identifier).
S102: modifying the video name of the video to be uploaded corresponding to the unique identifier based on the unique identifier, so that the modified video name at least comprises the unique identifier; and taking the video to be uploaded after the video name is modified as the video to be split.
After the unique identifier GUID of the video to be uploaded is obtained, the key point is to reasonably utilize the unique identifier GUID so as to guide the server to correctly complete the correct synthesis and splicing of the video fragments. Therefore, in the embodiment of the application, the video name of the video to be uploaded is modified by using the unique identifier GUID.
In an optional embodiment of the application, the user terminal directly controls to modify the video name of the video to be uploaded into the unique identifier GUID. The characteristic that the unique identifier GUID is a pure digital identifier can be utilized, the problem that abnormal naming of the video fragments is easily caused when the video to be uploaded is segmented by a third-party video segmentation tool can be avoided, and the uniqueness and normalization of the naming of each segmented video fragment can be ensured; the method is favorable for ensuring the accuracy of the subsequent server synthesis.
And then, taking the video to be uploaded after the video name is modified as the video to be segmented, and calling a preset video segmentation tool to segment each video to be segmented.
S103: and calling a preset video segmentation tool to segment each to-be-segmented video, so that each to-be-segmented video is segmented and at least two video segments are correspondingly obtained, and the segment name of each video segment contains a segment serial number and a unique identifier corresponding to the to-be-uploaded video.
In the optional embodiment of the present application, the preset video segmentation tool may adopt any existing video segmentation tool as long as the to-be-segmented video can be segmented into a plurality of video segments as required, and this embodiment is not limited thereto.
The preset video segmentation tool can segment according to a preset segment size, for example, the preset segment size is 64k, 1M, and the like; the segmentation may also be performed according to a preset video duration, for example, the preset video duration is 10 seconds, 1 minute, and the like. So that the video to be uploaded is usually split into at least two video slices.
Through the video segmentation processing, the fragment name of each video fragment comprises a fragment serial number and a unique identifier GUID corresponding to the video to be uploaded.
S104: and generating a first request based on the video content data, the fragment serial number and the unique identifier corresponding to the video fragment.
It should be understood that the first request is primarily for requesting the server to store video content data for the video clip.
The first request carries the video content data of the requested stored video fragment, the fragment serial number and the unique identifier. It should be understood that the first request may further include other necessary information for implementing the request, including but not limited to information such as a request header, a request key value, a request method, whether asynchronous async is included; the present embodiment does not limit this.
In an alternative embodiment of the present application, the first request may be an XMLHttpRequest request, and the request method may be a post request.
In the optional embodiment of the application, the video segmentation process of the preset video segmentation tool is monitored in real time, each video segment is obtained through segmentation, and a first request corresponding to each video segment is immediately generated so as to send the video content data of the video segment to the server for storage. And completing video segmentation and completing the sending of the first request. In the process of generating the first request by packaging, because each video fragment is packaged independently, the data volume is smaller and the response is faster; meanwhile, after one video fragment is obtained, the video fragment can be immediately packaged without waiting for the segmentation process of other video fragments, so that the video uploading efficiency is higher; the advantage of high concurrency processing can be fully utilized.
S105: the first request is sent to the target server.
Based on the communication connection between the user terminal and the server, the information interaction between the user terminal and the server is realized, and any existing mode can be adopted, which is not described again.
S106: receiving a first response message returned by the target server based on the first request; the first response message contains the upload address URL assigned by the target server for the video clip.
Based on the first request, the server allocates a storage address for the video content data of the video fragment in the first request to temporarily store the video content data; in order to make the user terminal know the temporary storage address, a first response message carrying the upload address URL (i.e., temporary storage address) of the video clip is returned.
In an optional embodiment of the present application, when the first response message is not received after the preset response time is exceeded, it is determined that the first request is failed to be sent; at this time, the corresponding first request is regenerated and sent to the target server. And the abnormal request that the video fragment uploading address is not obtained in time is discovered and processed in time, so that the video uploading efficiency, stability and reliability are ensured.
S107: and generating a second request based on the fragment serial number, the unique identifier and the uploading address URL corresponding to each video fragment.
In the optional embodiment of the application, for all video fragments with the same unique identifier, sequentially acquiring uploading address URLs corresponding to the video fragments according to fragment serial numbers corresponding to the video fragments to form a video fragment sequence array set; a second request is generated based on the video slice order array set. That is, if a plurality of videos to be uploaded are uploaded at the same time, each video to be uploaded generates a second request correspondingly, so as to request the server to synthesize and splice a plurality of video fragments of the video to be uploaded to form a complete video.
The video slice order array set can be seen in table 1 below:
table 1 video slicing order array set example
Unique identification GUID Sequence number of fragments Upload address URL
166e270f-840a-71fe-a457-f204fd794c17 Chunk1 URL1
166e270f-840a-71fe-a457-f204fd794c17 Chunk2 URL2
166e270f-840a-71fe-a457-f204fd794c17 Chunk3 URL3
…… …… ……
And generating a second request by packaging based on the related information of the video fragment sequence array set, so that the second request carries the unique identifiers GUID, the fragment serial numbers and the uploading address URL of all the video fragments with the same unique identifier, and the request server synthesizes and splices all the video fragments of the video to be uploaded to form a complete video. It should be understood that the specific form and packaging process of the second request are not essential to the present invention, and may be implemented in a conventional manner, which is not described in detail herein.
It should be understood that the second request may also contain other necessary information to enable the requesting server to complete the composite splice, including but not limited to file type, video format, tile size, number of tiles, etc.
Wherein, the file type is a video stream type, namely file: (binary).
The video format is configured according to the actual video format of the video to be uploaded, and may be, for example, video or MP4.
The size of the fragment can be flexibly set according to the size of the data of the video to be uploaded and the actual requirement, and the size is not limited; for example to 1M.
The number of the fragments can be obtained according to the video segmentation result. For example, for a video to be uploaded with a size of 1G, if the size of a slice is set to 1M, the number of slices may be 1G/1M =1024, that is, the video to be uploaded is sliced into 1024 video slices.
After all video fragments of a certain video to be uploaded return corresponding uploading addresses, a second request of the video to be uploaded can be generated immediately so as to request a server to synthesize all video fragments of the video to be uploaded; the video uploading efficiency can be improved without waiting for the video segmentation process of other videos to be uploaded or whether the uploading address is returned to be completed or not.
S108: the second request is sent to the target server.
The request may be sent in any conventional manner, which is not described in detail herein.
S109: receiving a second response message returned by the target server based on the second request; the second response message contains the storage address corresponding to the complete video obtained by the target server through synthesis based on the video fragments.
And analyzing the second response message to obtain a storage address corresponding to the complete video, and checking the complete video through the storage address. Specifically, the complete video can be played and downloaded online.
Based on the same design concept, the embodiment also discloses a video uploading method, which is applied to a server and mainly comprises the following steps with reference to fig. 3:
s301, receiving a first request sent by a user terminal.
The first request comprises video content data, a fragment serial number and a unique identifier of a corresponding video fragment. All video fragments of the same video to be uploaded have the same unique identifier but different fragment sequence numbers.
S302, the first request is analyzed to obtain video content data, fragment serial numbers and unique identifiers of corresponding video fragments.
The request analysis method may adopt any existing method, and is not described herein again.
And S303, distributing an uploading address URL for the video fragment to store the video content data of the video fragment.
Based on the first request, a storage address is allocated for the video slice to temporarily store the corresponding video content data.
S304, generating a first response message according to the fragment serial number, the unique identifier and the uploading address URL of the video fragment.
According to a storage address for storing corresponding video content data, and in combination with a fragment serial number of a video fragment and a unique identifier GUID, packaging to generate a first response message, and returning the first response message to the user terminal; and the user terminal is made to know the storage address, namely the uploading address URL, of each video fragment.
S305, the first response message is sent to the user terminal.
S306, receiving a second request sent by the user terminal based on the first response message.
After all video fragments of the video to be uploaded are uploaded, the user terminal generates a video fragment sequence array set so as to send set information of all video fragments of the uploaded video to the server through a second request; and the server synthesizes and splices all the video fragments requested in the set according to the request to obtain the complete video.
And S307, analyzing the second request to obtain the fragment serial number, the unique identifier and the uploading address URL corresponding to each video fragment.
And S308, sequentially acquiring video content data corresponding to each video fragment from the corresponding uploading address URL aiming at all video fragments with the same unique identifier.
And S309, sequentially splicing and synthesizing the video fragments according to the fragment serial numbers corresponding to the video fragments to obtain the complete video.
Specifically, all video segments in the set are sequentially obtained from the corresponding upload address URL according to the segment serial number, for example, starting from the segment serial number chunk1, and then the subsequent video content data is spliced behind the previous video content data.
For example, the video content data of chunk2 is spliced behind the video content data of chunk1, the video content data of chunk3 is spliced behind the video content data of chunk2, \8230 \ 8230;, the video content data of chunk (n) is spliced behind the video content data of chunk (n-1), and the splicing of the whole video file is completed until the last video segment of the video to be uploaded is spliced to the second last video segment, so that the complete video is obtained. The method and the device avoid the problem that the splicing sequence of all video fragments of the same file to be uploaded is wrong, or the problem of confusion of mixed splicing of all video fragments of different videos to be uploaded is solved.
And S310, allocating a storage address for the complete video to store the complete video.
After the complete video is obtained by synthesis and splicing, the server can allocate a storage address for the complete video according to the actual situation or a preset mechanism so as to store the complete video.
And S311, generating a second response message based on the storage address, and sending the second response message to the user terminal.
And then, returning a second response message to the user terminal, so that the user terminal knows the storage position of the complete video, and the subsequent viewing and downloading are facilitated.
Based on the same design concept, the embodiment also discloses a video uploading system.
Referring to fig. 4, a video uploading system includes a user terminal 41 and a server 42 communicatively interconnected; the user terminal 41 and the server 42 interact with each other to implement the following steps of the video uploading method, with reference to fig. 5:
the user terminal is used for acquiring unique identifiers corresponding to the videos to be uploaded respectively;
modifying the video name of the video to be uploaded corresponding to the unique identifier based on the unique identifier, so that the modified video name at least comprises the unique identifier; taking the video to be uploaded with the modified video name as the video to be split;
calling a preset video segmentation tool to segment each to-be-segmented video, so that at least two video segments are correspondingly obtained after each to-be-segmented video is segmented, and the segment name of each video segment comprises a segment serial number and a unique identifier corresponding to the to-be-uploaded video;
generating a first request based on video content data corresponding to the video fragments, the fragment serial numbers and the unique identifier;
sending the first request to a server;
the server is used for receiving a first request sent by the user terminal;
analyzing the first request to obtain video content data, fragment serial numbers and unique identifiers of corresponding video fragments;
distributing an uploading address URL for video slicing to store the video content data of the video slicing;
generating a first response message according to the fragment serial number, the unique identifier and the uploading address URL of the video fragment;
sending the first response message to the user terminal;
the user terminal is used for receiving the first response message;
analyzing to obtain a fragment serial number, a unique identifier and an uploading address URL corresponding to the video fragment;
generating a second request based on the fragment serial number, the unique identifier and the uploading address URL corresponding to each video fragment;
sending the second request to the server;
the server is used for receiving a second request sent by the user terminal;
analyzing the second request to obtain a fragment serial number, a unique identifier and an uploading address URL corresponding to each video fragment;
sequentially acquiring video content data corresponding to each video fragment from the corresponding uploading address URL aiming at all video fragments with the same unique identifier;
sequentially splicing and synthesizing the video fragments according to the fragment serial numbers corresponding to the video fragments to obtain a complete video;
allocating a storage address for the complete video to store the complete video;
generating a second response message based on the storage address, and sending the second response message to the user terminal;
the user terminal receives a second response message returned by the server;
and the server for obtaining the storage address corresponding to the complete video is synthesized based on the video fragments through analysis.
Through the mutual interaction process between the user terminal 41 and the server 42, the specific interaction process can be referred to the above description, and is not described herein again. The stability and the reliability of uploading of the multiple video fragments are ensured, and the problem of disordered synthesis and splicing easily generated during video fragment synthesis is avoided.
Based on the same design concept, the embodiment also discloses a user terminal.
Referring to fig. 6, a user terminal includes:
a first processor 61, a first memory 62 and a computer program stored in the first memory 62 and executable on the first processor 61, the first processor 61 implementing the video upload method as applied to the user terminal as described above when executing the computer program. For details, reference may be made to the above description, which is not repeated herein.
Referring to fig. 7, a server includes:
a second processor 71, a second memory 72 and a computer program stored in the second memory 72 and executable on the second processor 71, when executing the computer program, implementing the video uploading method as applied to the server. For details, reference may be made to the above description, which is not repeated herein.
Based on the same design concept, the application also provides a computer readable storage medium, which stores steps capable of being loaded and executed by a processor to realize the video uploading method.
The computer-readable storage medium includes, for example: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above embodiments are only used to describe the technical solutions of the present application in detail, but the above embodiments are only used to help understanding the method and the core idea of the present application, and should not be construed as limiting the present application. Those skilled in the art should also appreciate that various modifications and substitutions can be made without departing from the scope of the present disclosure.

Claims (9)

1. A video uploading method, comprising:
acquiring unique identifiers corresponding to the videos to be uploaded respectively; the unique identification comprises a globally unique identifier GUID;
modifying the video name of the video to be uploaded corresponding to the unique identifier based on the unique identifier, so that the modified video name at least comprises the unique identifier; taking the video to be uploaded after the video name is modified as the video to be divided;
calling a preset video segmentation tool to segment each to-be-segmented video, so that each to-be-segmented video is segmented and at least two video segments are obtained correspondingly, and the segment name of each video segment comprises a segment serial number and a unique identifier corresponding to the to-be-uploaded video;
generating a first request based on the video content data corresponding to the video fragment, the fragment serial number and the unique identifier;
sending the first request to a target server;
receiving a first response message returned by the target server based on the first request; the first response message comprises an uploading address URL distributed by the target server for the video fragment;
generating a second request based on the fragment serial number, the unique identifier and the uploading address URL corresponding to each video fragment;
sending the second request to the target server;
receiving a second response message returned by the target server based on the second request; and the second response message comprises a storage address corresponding to the complete video obtained by the target server through synthesis based on each video fragment.
2. The video uploading method according to claim 1, wherein the generating a second request based on the fragment serial number, the unique identifier, and the uploading address URL corresponding to each of the video fragments comprises:
for all video fragments with the same unique identification, sequentially acquiring the uploading address URL corresponding to each video fragment according to the fragment serial number corresponding to each video fragment to form a video fragment sequence array set; and generating one second request based on the video slicing sequence array set.
3. The video uploading method of claim 2, wherein the second request further comprises a file type, a video format, a slice size, and a slice number.
4. The video uploading method according to claim 2, further comprising:
when the first response message is not received after the preset response time is exceeded, judging that the first request is failed to be sent; and regenerating the first request and sending the first request to the target server.
5. A video uploading method, comprising:
receiving a first request sent by a user terminal; the first request is generated by: the user terminal acquires unique identifiers corresponding to the videos to be uploaded respectively; the unique identification comprises a globally unique identifier GUID; modifying the video name of the video to be uploaded corresponding to the unique identifier based on the unique identifier, so that the modified video name at least comprises the unique identifier; taking the video to be uploaded with the modified video name as the video to be split; calling a preset video segmentation tool to segment each to-be-segmented video, so that each to-be-segmented video is segmented and at least two video segments are obtained correspondingly, and the segment name of each video segment comprises a segment serial number and a unique identifier corresponding to the to-be-uploaded video; generating the first request based on the video content data corresponding to the video fragment, the fragment serial number and the unique identifier;
analyzing the first request to obtain video content data, fragment serial numbers and unique identifiers of corresponding video fragments;
distributing an uploading address URL for the video fragment to store the video content data of the video fragment;
generating a first response message according to the fragment serial number, the unique identifier and the uploading address URL of the video fragment;
sending the first response message to the user terminal;
receiving a second request sent by the user terminal based on the first response message;
analyzing the second request to obtain the fragment serial number, the unique identifier and the uploading address URL corresponding to each video fragment;
for all video fragments with the same unique identification, sequentially acquiring the video content data corresponding to each video fragment from the corresponding uploading address URL;
sequentially splicing and synthesizing the video fragments according to the fragment serial numbers corresponding to the video fragments to obtain a complete video;
allocating a storage address for the complete video to store the complete video;
and generating a second response message based on the storage address, and sending the second response message to the user terminal.
6. A video uploading system is characterized by comprising a user terminal and a server which are communicated and interconnected;
the user terminal is used for acquiring unique identifiers corresponding to the videos to be uploaded respectively; the unique identification comprises a globally unique identifier GUID; modifying the video name of the video to be uploaded corresponding to the unique identifier based on the unique identifier, so that the modified video name at least comprises the unique identifier; taking the video to be uploaded with the modified video name as the video to be split; calling a preset video segmentation tool to segment each to-be-segmented video, so that each to-be-segmented video is segmented and at least two video segments are obtained correspondingly, and the segment name of each video segment comprises a segment serial number and a unique identifier corresponding to the to-be-uploaded video; generating a first request based on the video content data corresponding to the video fragment, the fragment serial number and the unique identifier; sending the first request to the server;
the server is used for receiving a first request sent by the user terminal; analyzing the first request to obtain video content data, fragment serial numbers and unique identifiers of corresponding video fragments; distributing an uploading address URL for the video fragment to store the video content data of the video fragment; generating a first response message according to the fragment serial number, the unique identifier and the uploading address URL of the video fragment; sending the first response message to the user terminal;
the user terminal is used for receiving the first response message; analyzing to obtain the fragment serial number, the unique identifier and the uploading address URL corresponding to the video fragment; generating a second request based on the fragment serial number, the unique identifier and the uploading address URL corresponding to each video fragment; sending the second request to the server;
the server is used for receiving a second request sent by the user terminal; analyzing the second request to obtain the fragment serial number, the unique identifier and the uploading address URL corresponding to each video fragment; for all video fragments with the same unique identification, sequentially acquiring the video content data corresponding to each video fragment from the corresponding uploading address URL; sequentially splicing and synthesizing the video fragments according to the fragment serial numbers corresponding to the video fragments to obtain a complete video; allocating a storage address for the complete video to store the complete video; generating a second response message based on the storage address, and sending the second response message to the user terminal;
the user terminal receives a second response message returned by the server; and analyzing to obtain a storage address corresponding to the complete video, which is obtained by synthesizing the server based on the video fragments.
7. A user terminal comprising a first processor, a first memory, and a computer program stored in the first memory and executable on the first processor, the first processor implementing the video upload method according to any one of claims 1 to 4 when executing the computer program.
8. A server comprising a second processor, a second memory, and a computer program stored in the second memory and executable on the second processor, the second processor implementing the video upload method of claim 5 when executing the computer program.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program; the computer program when executed by a processor implements the video upload method of any of claims 1 to 4 or 5.
CN202211661477.5A 2022-12-23 2022-12-23 Video uploading method, system, user terminal, server and storage medium Active CN115643453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211661477.5A CN115643453B (en) 2022-12-23 2022-12-23 Video uploading method, system, user terminal, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211661477.5A CN115643453B (en) 2022-12-23 2022-12-23 Video uploading method, system, user terminal, server and storage medium

Publications (2)

Publication Number Publication Date
CN115643453A CN115643453A (en) 2023-01-24
CN115643453B true CN115643453B (en) 2023-03-21

Family

ID=84949787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211661477.5A Active CN115643453B (en) 2022-12-23 2022-12-23 Video uploading method, system, user terminal, server and storage medium

Country Status (1)

Country Link
CN (1) CN115643453B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112312162A (en) * 2020-10-16 2021-02-02 安擎(天津)计算机有限公司 Video server for transmitting video stream
CN112511650A (en) * 2020-12-22 2021-03-16 湖南新云网科技有限公司 Video uploading method, device, equipment and readable storage medium
CN115190352A (en) * 2022-05-18 2022-10-14 上海亘岩网络科技有限公司 Video data storage method and device, computer readable storage medium and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103702235A (en) * 2013-12-24 2014-04-02 乐视网信息技术(北京)股份有限公司 Data processing method and system for content delivery network
US10506045B2 (en) * 2015-01-30 2019-12-10 Pure Storage, Inc. Memory access using deterministic function and secure seed
CN105357593B (en) * 2015-10-30 2019-06-07 努比亚技术有限公司 A kind of methods, devices and systems of uploaded videos
CN109951514B (en) * 2019-01-16 2022-03-25 平安科技(深圳)有限公司 File processing method and system based on cloud storage and computer equipment
CN109982160A (en) * 2019-04-09 2019-07-05 北京奇艺世纪科技有限公司 A kind of method, apparatus, client device and server that video uploads
CN113438499B (en) * 2021-06-29 2023-02-03 北京奇艺世纪科技有限公司 Data uploading and receiving method, device, equipment and storage medium
CN114401454A (en) * 2022-01-17 2022-04-26 北京鼎普科技股份有限公司 Video uploading fragmentation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112312162A (en) * 2020-10-16 2021-02-02 安擎(天津)计算机有限公司 Video server for transmitting video stream
CN112511650A (en) * 2020-12-22 2021-03-16 湖南新云网科技有限公司 Video uploading method, device, equipment and readable storage medium
CN115190352A (en) * 2022-05-18 2022-10-14 上海亘岩网络科技有限公司 Video data storage method and device, computer readable storage medium and electronic equipment

Also Published As

Publication number Publication date
CN115643453A (en) 2023-01-24

Similar Documents

Publication Publication Date Title
CN100551043C (en) A kind of method of fast forwarding and fast rewinding playing video data and streaming media server
CN110213672A (en) Video generation, playback method, system, device, storage medium and equipment
CN103139173A (en) Terminal equipment, media exchange network system, media business downloading method and system
CN106488270A (en) A kind of method and apparatus of direct broadcasting room switching
CN110198493B (en) Media data downloading method, device, computer equipment, storage medium and system
CN103702235A (en) Data processing method and system for content delivery network
CN110290396B (en) Video processing method, device, system, equipment and storage medium
CN111901608A (en) Video program film examination system and method
EP3370166B1 (en) Method and apparatus for model parameter fusion
CN108833934B (en) Method, server and system for acquiring video data
CN115643453B (en) Video uploading method, system, user terminal, server and storage medium
CN111405215A (en) Video storage method and device, cloud server and storage medium
CN110602515B (en) Data processing method based on block chain, server and storage medium
CN109617708B (en) Compression method, device and system for embedded point log
CN101448136B (en) Method for realizing video on-demand function and system thereof
CN111756649A (en) Data transmission method, device, equipment and computer readable storage medium
CN115514759B (en) File forwarding method, electronic device and storage medium
CN107689984B (en) Message pushing method and device, computer equipment and storage medium
CN102611716A (en) Method and device for transmitting media file
CN115834604A (en) Data transmitting terminal, data receiving terminal, synchronization method and computer program product
CN109634908A (en) Data correlation method, data processing equipment and storage medium
CN115378855A (en) Data packet testing method and device, communication device and storage medium
CN112423104A (en) Audio mixing method and system for multi-channel audio in live scene
CN113301100A (en) Data disaster tolerance method, device, equipment and medium based on content distribution network
US8316149B2 (en) Information communication system, server, content holding device, content receiving device, information processing method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant