CN112804312A - File uploading method, file uploading equipment and computer readable medium - Google Patents
File uploading method, file uploading equipment and computer readable medium Download PDFInfo
- Publication number
- CN112804312A CN112804312A CN202011638830.9A CN202011638830A CN112804312A CN 112804312 A CN112804312 A CN 112804312A CN 202011638830 A CN202011638830 A CN 202011638830A CN 112804312 A CN112804312 A CN 112804312A
- Authority
- CN
- China
- Prior art keywords
- file
- verification information
- file verification
- user equipment
- video file
- 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.)
- Granted
Links
Images
Classifications
-
- 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]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/123—Applying verification of the received information received data contents, e.g. message integrity
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The application provides a file uploading method, in the method, network equipment can acquire target file check information of a video file to be uploaded, which is sent by user equipment, and the target file check information is matched with first file check information and second file check information of the stored video file, the first file check information is file check information of the video file before encoding, the second file check information is file check information of the video file after encoding, if the target file check information is successfully matched with any existing file check information, it is indicated that the video file with the same content and from the same source video file is stored in the network equipment, and repeated sending is not needed, so that a double check mechanism is realized, the possibility of repeatedly uploading the video file with the same content is reduced, the uploading efficiency is improved, and the resource overhead is reduced.
Description
Technical Field
The present application relates to the field of information technologies, and in particular, to a file uploading method, device, and computer readable medium.
Background
With the continuous development of internet technology, people increasingly use various social software to transmit or share multimedia files. For example, people may share video files with other users in IM (Instant Messaging) software or publish the video files in short video software, and in these processes, users may upload the video files to a server of the social software first, and the server stores the video files to implement sharing or publishing of the video files.
In order to improve the efficiency of uploading files, the currently adopted method is to query the server side storing the files for the file verification information of the files, such as MD5(Message-Digest Algorithm, fifth edition) code, before uploading the files, and to perform a repeatability check. If the server side is inquired to have the file with the same MD5 code, the server side is indicated to have stored the same file, the same file does not need to be sent again, and the sender is directly informed that the sending is successful, so that the effect of second transmission is achieved.
However, since video files are different from ordinary files, the data volume of the video files is generally large, and in order to reduce the overhead of network resources and server-side storage resources, the video files are often encoded again before uploading, and are compressed into new video files with small data volume by means of reducing resolution, reducing code rate and the like, and then uploaded. In an actual scene, because different software and hardware environments use different encoding solutions when uploading a video file, when the same source video file is uploaded to a server end via different software and hardware encoding, the video file actually received and stored by the server end has different MD5 codes, which results in that even if the MD5 code is used for performing the repeatability check in the scene of uploading the video file, the video file with the same content is repeatedly uploaded.
Disclosure of Invention
An object of the present application is to provide a file uploading method, apparatus, and computer readable medium.
To achieve the above object, some embodiments of the present application provide a file uploading method, which is applied to a network device side, and includes:
the network equipment acquires target file verification information of a video file to be uploaded, which is sent by user equipment;
the network equipment matches the target file verification information with first file verification information and second file verification information of stored video files to obtain a matching result, wherein the first file verification information is file verification information of the stored video files before encoding, and the second file verification information is file verification information of the stored video files after encoding and is provided by historical user equipment for uploading the stored video files during uploading;
if the matching result is that the first file verification information or the second file verification information which is the same as the target file verification information is matched, the network equipment sends an uploading success message to the user equipment;
if the matching result is that the first file verification information or the second file verification information which is the same as the target file verification information is not matched, the network equipment sends an uploading request message to the user equipment, so that the user equipment encodes the video file to be uploaded according to the uploading request message, and sends the encoded video file and the corresponding first file verification information and second file verification information to the network equipment;
the network equipment acquires and stores the video file sent by the user equipment and the corresponding first file verification information and second file verification information.
The embodiment of the application provides another file uploading method, which is applied to a user equipment terminal and comprises the following steps:
the method comprises the steps that user equipment sends target file verification information of a video file to be uploaded to network equipment, so that the network equipment sends an uploading success message or an uploading request message to the user equipment according to the target file verification information;
and the user equipment encodes the video file to be uploaded according to the uploading request message and sends the encoded video file and the corresponding first file verification information and second file verification information to the network equipment.
The embodiment of the application further provides a file uploading method, which comprises the following steps:
the network equipment acquires target file verification information of a multimedia file to be uploaded, which is sent by user equipment;
the network equipment matches the target file verification information with first file verification information and second file verification information of stored multimedia files to obtain a matching result, wherein the first file verification information is file verification information of the stored multimedia files before encoding, and the second file verification information is file verification information of the stored multimedia files after encoding and is provided by historical user equipment which uploads the stored multimedia files during uploading;
if the matching result is that the first file verification information or the second file verification information which is the same as the target file verification information is matched, the network equipment sends an uploading success message to the user equipment;
if the matching result is that the first file verification information or the second file verification information which is the same as the target file verification information is not matched, the network equipment sends an uploading request message to the user equipment, so that the user equipment encodes the multimedia file to be uploaded according to the uploading request message, and sends the encoded multimedia file and the corresponding first file verification information and second file verification information to the network equipment;
the network equipment acquires and stores the multimedia file sent by the user equipment and the corresponding first file verification information and second file verification information.
The embodiment of the application further provides a file uploading method, which comprises the following steps:
the method comprises the steps that user equipment sends target file verification information of a multimedia file to be uploaded to network equipment, so that the network equipment sends an uploading success message or an uploading request message to the user equipment according to the target file verification information;
and the user equipment encodes the multimedia file to be uploaded according to the uploading request message and sends the encoded multimedia file and the corresponding first file verification information and second file verification information to the network equipment.
In addition, the embodiment of the present application further provides a file uploading device, which includes a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein when the computer program instructions are executed by the processor, the device is triggered to execute the file uploading method.
Embodiments of the present application also provide a computer readable medium, on which computer program instructions are stored, where the computer program instructions are executable by a processor to implement the file uploading method.
In a file uploading scheme provided by some embodiments of the present application, when uploading a video file, a user device may provide first file verification information and second file verification information of the video file at the same time, where the first file verification information is file verification information of a stored video file before encoding, and the second file verification information is file verification information of a stored video file after encoding, so that in a subsequent uploading process, a network device may obtain target file verification information of a video file to be uploaded, which is sent by the user device, and match the target file verification information with the first file verification information and the second file verification information of the stored video file, and if the target file verification information matches with any existing file verification information successfully, it indicates that a video file from the same source video file and having the same content has been stored in the network device, repeated sending is not needed, so that a double checking mechanism is realized, the possibility of repeatedly uploading the video files with the same content is reduced, the uploading efficiency is improved, and the resource overhead is reduced.
In addition, in another file uploading scheme provided in the embodiments provided in the present application, the application range may also be extended to any type of multimedia file that needs to be encoded in the uploading process, such as image, voice, and the like, so that a similar mechanism is adopted to implement a double check mechanism in the multimedia file uploading process, thereby reducing the possibility of repeatedly uploading multimedia files with the same content, improving the uploading efficiency, and reducing the resource overhead.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a processing flow chart of a file uploading method provided in an embodiment of the present application;
FIG. 2 is a flowchart of processing performed by a network device in detecting a small micro-file in an embodiment of the present application;
fig. 3 is a schematic diagram of processing logic of comprehensive judgment in the network device according to the target file verification information and the first iteration judgment information in the embodiment of the present application;
fig. 4 is a schematic diagram of another processing logic of comprehensive judgment in the network device according to the target file verification information and the first iteration judgment information in the embodiment of the present application;
fig. 5 is a flowchart of a network device detection process using dual MD5 code detection + iterative detection in the embodiment of the present application;
fig. 6 is a flowchart of processing when a video file is uploaded by using the scheme provided by the embodiment of the present application;
fig. 7 is a schematic structural diagram of a computing device for implementing a file uploading method according to an embodiment of the present application;
the same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In a typical configuration of the present application, the terminal, the devices serving the network each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, which include both non-transitory and non-transitory, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer program instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The embodiment of the application provides a file uploading method, wherein when a user device uploads a video file, first file verification information and second file verification information of the video file can be provided at the same time, wherein the first file verification information is file verification information of the stored video file before encoding, and the second file verification information is file verification information of the stored video file after encoding, and is provided by a historical user device uploading the stored video file during uploading. The history user equipment in this embodiment refers to user equipment that has completed uploading the video file in the same manner before the current uploading. Therefore, in the subsequent uploading process, the network equipment can acquire the target file verification information of the video file to be uploaded, which is sent by the user equipment, and match the target file verification information with the first file verification information and the second file verification information of the stored video file, if the target file verification information is successfully matched with any existing file verification information, the network equipment stores the video file which is from the same source video file and has the same content, and the repeated sending is not needed, so that a double verification mechanism is realized, the possibility of repeatedly uploading the video file with the same content is reduced, the uploading efficiency is improved, and the resource overhead is reduced.
Fig. 1 shows a processing flow of a file uploading method provided by an embodiment of the present application, where the method may be applied in a scenario where a user equipment uploads a video file to a network device, and includes at least the following interactive steps:
step S101, the user equipment sends the target file verification information of the video file to be uploaded to the network equipment.
The user equipment refers to equipment used by a user, and may include but is not limited to various terminal equipment such as a personal computer, a mobile phone, a tablet computer, a smart watch, and the like. The network device may include, but is not limited to, a network host, a single network server, a plurality of network server sets, or a computer set based on Cloud Computing, wherein a Cloud is composed of a large number of hosts or network servers based on Cloud Computing (Cloud Computing), wherein Cloud Computing is one type of distributed Computing, and a virtual computer is composed of a group of loosely coupled computer sets.
The target file verification information is information for performing a repeatability check on the video file to be uploaded, and for example, a Hash value obtained by calculation using algorithms such as MD5 and SHA (Secure Hash Algorithm). In the embodiment of the application, taking the MD5 code obtained by calculating the MD5 algorithm as an example, when the user equipment needs to upload the video file a1, the user equipment may first send the MD5 code MD5-a1 corresponding to the user equipment to the network equipment.
Step S102, the network equipment acquires the target file verification information of the video file to be uploaded, which is sent by the user equipment.
Step S103, the network device matches the target file verification information with the first file verification information and the second file verification information of the stored video file to obtain a matching result.
The stored video file refers to a video file which is uploaded to the network device and stored by the network device before the video file is uploaded. Because the application scenario of the embodiment of the application is an uploading scenario of a video file, since the data volume of the video file is generally large, in order to reduce the overhead of network resources and server-side storage resources, the video file is often encoded again before uploading, and is compressed into a new video file with a small data volume by reducing the resolution, reducing the code rate and the like, and then uploaded. For example, for a video file B1, if the video file B1 is obtained by encoding the video file, the corresponding MD5 code will also change from MD5-B1 to MD5-B1, and the video file actually sent to the network device by the user device and stored by the network device is B1. The MD5-B1 is the first file verification information of the stored video file B1, and the MD5-B1 is the second file verification information of the stored video file B1.
In an actual scenario, a part of the video file may not be encoded during uploading due to the setting of an actual business process or other special reasons, so that the second file verification information of such a video file may be set to be null or set to be the same as the first file verification information. For example, in some embodiments of the present application, it may be set that a video file with a resolution smaller than a certain set value may be directly uploaded without encoding, and if the resolution of the video file B1 is smaller than the set value, the video file B1 may be directly uploaded to a network device, where the first file verification information of the video file B1 is MD5-B1, and the second file verification information may be set to MD5-B1 or null.
After receiving the target file verification information, the network device may match the target file verification information with the first file verification information and the second file verification information of the stored video file. For example, the received video file verification information is MD5-a1, and the first file verification information and the second file verification information of the stored video file in the network device are stored in the file library, then the file library may be searched under the MD5-a1 as a search condition, if the same first file verification information or second file verification information is searched, that is, if any one of the stored first file verification information or second file verification information of the video file is the same as the target file matching information, it indicates that the matching is successful, otherwise, the matching is failed.
Step S103, if the matching is successful, that is, if the matching result is that the first file verification information or the second file verification information that is the same as the target file verification information is matched, it indicates that the same video file or the video file encoded based on the same source video file is already stored in the network device before the uploading. The stored video file and the video file to be uploaded may have certain difference in format, but there is no difference in video content, so that the stored video file can be theoretically used instead of the video file to be uploaded without repeated uploading. Therefore, in this case, the network device sends an upload success message to the user device to inform the user device that the video file has been uploaded successfully, so as to achieve the effect of second transmission.
For example, when the network device matches the MD5-a1 based on the received target video file verification information, the matched video file a1-2 has the same first file verification information MD5-a1, and the second file verification information of the video file is MD5-a 1-2. And at the moment, the matching is determined to be successful, the matching result is that the first file verification information or the second file verification information which is the same as the target file verification information is matched, and the network equipment sends an uploading success message to the user equipment to inform the user equipment that the video file is uploaded successfully. If the access address of the video file needs to be provided to the user equipment after the uploading is successful, the access address of the stored video file a1-2 is directly provided to the user equipment.
Step S104, if the matching fails, that is, if the matching result is that the first file verification information or the second file verification information that is the same as the target file verification information is not matched, it indicates that the same video file or the video file encoded based on the same source video file is not stored in the network device before the current uploading. In this case, the network device may send an upload request message to the user device, and notify the user device to send the video file to be uploaded to the network device for storage.
Step S105, after receiving the upload request message, the user equipment encodes the video file to be uploaded according to the upload request message, and sends the encoded video file and the corresponding first file verification information and second file verification information to the network device.
Still taking the target video file verification information MD5-a1 as an example, if the network device does not match the same first file verification information or second file verification information, the user device receives the upload request message instead of the upload success message. At this time, the user equipment encodes the video file a1 to be uploaded to obtain a new video file a1, and the video contents of the video file a1 and the video file a1 are not encoded, and further, the format is changed, for example, the resolution and the bit rate are reduced, so that the video file is smaller, and resource overhead of transmission and storage is reduced. After the encoding is completed, the user equipment sends the encoded video file a1 and the corresponding first file verification information MD5-a1 and second file verification information MD5-a1 to the network equipment.
Step S106, the network equipment acquires and stores the video file sent by the user equipment and the corresponding first file verification information and second file verification information, and therefore the whole uploading interactive process of the video file is completed. After the first file verification information and the second file verification information of the video file stored by the network equipment are obtained, the matching process of the file verification information in the subsequent uploading process of other video files can be used, so that the double verification mechanism of the scheme is realized, the possibility of repeatedly uploading the video files with the same content is reduced, the uploading efficiency is improved, and the resource overhead is reduced.
If a conventional verification mechanism adopted when uploading a common file is adopted, taking the video file a1 to be uploaded as an example, since the encoded video file a1 is actually uploaded, the network device can only obtain the encoded second file verification information MD5-a 1. If other user devices need to upload the same video file a1 subsequently, the transmitted target file verification information for performing file duplication verification is MD5-a1, which cannot match with the file verification information MD5-a1 of the stored video file a1, and the video file a1 (or videos a1-1, a1-2 in other formats) after encoding a1 still needs to be uploaded repeatedly. After the file uploading scheme provided by the embodiment of the application is adopted, if other subsequent user equipment needs to upload the same video file a1, the content stored in the network equipment has the first file verification information MD5-a1 before being encoded in addition to the video file a1 and the encoded second file verification information MD5-a1 thereof, so that the target file verification information MD5-a1 sent by the subsequent other user equipment can be successfully matched, the stored video file a1 can be used as a result of successful uploading, and the video file encoded by the a1 is prevented from being repeatedly sent.
In some embodiments of the application, the user equipment may further send type determination information of the video file to be uploaded to the network equipment, so that the network equipment may notify the user equipment of which uploading mode is adopted when the user equipment actually uploads the video file according to the type determination information, that is, sending the video file that is not encoded or sending the encoded video file after encoding the video file.
The type judgment information is used for judging whether the video file to be uploaded belongs to the small micro file, and the user equipment can send the type judgment information when sending the target file verification information to the network equipment, and can also independently provide the target file verification information to the network equipment at other time nodes. After the network device obtains the type judgment information of the video file to be uploaded sent by the user device, the network device can judge whether the video file to be uploaded belongs to the small micro file according to the type judgment information, and send different types of uploading request messages to the user device according to different judgment results.
If the video file to be uploaded belongs to the small file, the network device may send a first upload request message to the user device, where the first upload request message is one type of upload request message, and after receiving the first upload request message, the user device may send the uncoded video file and corresponding first file verification information and second file verification information to the network device according to the first upload request message. In this case, since the video file is not encoded, a new video file is not generated, and the second file verification information is not actually generated, so that the second file verification information can be set to null or the first file verification information can be transmitted as the second file verification information.
If the video file to be uploaded does not belong to the small file, the network device sends a second upload request message to the user device, the second upload request message is another type of upload request message, and after receiving the first upload request message, the user device can encode the video file to be uploaded according to the second upload request message and send the encoded video file and corresponding first file verification information and second file verification information thereof to the network device.
Taking the video file C1 to be uploaded as an example, the corresponding target file verification information is MD5-C1, and the user equipment sends the target file verification information MD5-C1 and the corresponding type determination information to the network device. After the network device receives the file, it determines that the matching result is that the same first file verification information or second file verification information does not exist through the matching target file verification information MD5-C1, and therefore, an upload request message is sent to the user device, so that the user device actually executes the upload of the video file. Meanwhile, the network equipment judges that the video file C1 to be uploaded belongs to the small micro file according to the type judgment information, at this time, an upload request message sent to the user equipment is a first upload request message, and the user equipment directly sends the video file C1 and corresponding first file verification information MD5-C1 and second file verification information MD5-C1 to the network equipment according to the received first upload request message. On the contrary, if the network device determines that the video file C1 to be uploaded does not belong to the mini-file according to the type determination information, the upload request message sent to the user device is the second upload request message, and the user device encodes the video file C1 according to the received second upload request message to obtain a new video file C1 for uploading, and uploads the video file C1 to the network device together with the corresponding first file verification information MD5-C1 and the second file verification information MD 5-C1.
In some embodiments of the present application, the type determination information may include a resolution and a bitrate of the video file, and the like, so as to determine whether the video file belongs to the mini file according to the resolution and the bitrate of the video file. In an actual scene, the maximum resolution and the maximum code rate can be compared when the network device dynamically configures the file to be uploaded according to the requirement of the actual service. The network equipment can respectively compare the resolution and the code rate of the video file to be uploaded with the maximum resolution and the maximum code rate, and if the resolution of the video file to be uploaded is smaller than or equal to the maximum resolution and the code rate of the video file to be uploaded is smaller than or equal to the maximum code rate, the video file to be uploaded is determined to belong to a small micro file; otherwise, determining that the video file to be uploaded does not belong to the small micro file.
For example, if the resolution of the video file C1 is 960 × 540 and the bitrate is 400kbps, and the set maximum resolution is 1280 × 720 and the maximum bitrate is 600kbps, since the resolution of the video file C1 is smaller than the maximum resolution and the bitrate is also smaller than the maximum bitrate, the video file C1 belongs to a small micro-file, and the user equipment directly sends the video file C1 and the corresponding first file verification information MD5-C1 and the second file verification information MD5-C1 without encoding. Otherwise, if at least one item is not satisfied, the item can be determined as a non-mini file, and at this time, according to a normal flow, the user equipment encodes the video file C1 to obtain the video file C1, and then sends the encoded video file C1 and the corresponding first file verification information MD5-C1 and second file verification information MD 5-C1.
It will be understood by those skilled in the art that the specific contents of the above-mentioned type of determination information are merely examples, and other forms based on similar principles, which are present or come out later, should be included in the scope of the present application if applicable to the present application, and are included herein by reference. In practical scenarios, the specific content of the type determination information may include any information capable of influencing the size of the video file, such as the video length, the frame rate, and the like, in addition to the resolution and the bitrate described above. Therefore, unnecessary coding processing on the video file can be avoided, and uploading efficiency is improved.
Fig. 2 shows a processing flow of a network device in implementing small micro-file detection in an embodiment of the present application, including the following steps:
step S201, determining whether the maximum resolution is exceeded, for example, the maximum resolution set in the current detection is 960 × 540, if the maximum resolution is exceeded, determining that the file does not belong to the small micro file, and jumping to step S205; if the maximum resolution is not exceeded, the process goes to step S202. In order to enable the user equipment to provide a video file which meets requirements better, the network equipment can provide a suggested coding scheme when the video file to be uploaded is judged not to belong to a small micro file. For example, in the present embodiment, if the resolution determination result is that the resolution exceeds the maximum resolution, a coding scheme for reducing the resolution and the code rate can be provided,
step S202, continuously determining whether the maximum bit rate is exceeded, if the maximum bit rate is exceeded, determining that the video file does not belong to the small micro file, and skipping to step S205, if necessary, providing a suggested coding scheme, such as reducing the bit rate, and the like. If the maximum code rate is not exceeded, step S203 may be skipped.
Step S203, determining whether the video length exceeds the maximum duration limit, for example, in the embodiment, the maximum duration limit may be limited to 2 minutes, if the video length exceeds 2 minutes, it is determined that the video file does not belong to the small micro file, and the step S205 is skipped. Likewise, proposed coding schemes such as reduced resolution and code rate may also be provided. Otherwise, if the video file is considered to belong to the mini file, step S204 is executed.
Step S204, a first uploading request message is returned to the user equipment, which indicates that the video file to be uploaded can be directly uploaded without encoding.
Step S205, a second upload request message is returned to the user equipment, which indicates that the video file to be uploaded can be uploaded only after being encoded. If the suggested coding scheme is provided, information about the coding scheme may be carried in the second upload request, so that the user equipment may encode the video file to be uploaded according to the coding scheme.
Due to the fact that the file uploading scheme provided by the embodiment of the application adopts a double verification mechanism, namely, the matching verification is carried out on the first file verification information and the second file verification information of the video file at the same time, the video file with the same source only has one copy in the network equipment, and the video file cannot be automatically updated. In an actual scene, as the service system is upgraded or the service is changed, the stored video file may be required to have higher definition or an updated encoding algorithm may be adopted.
In order to solve the problem of update iteration of stored video files, in the file uploading scheme provided in the embodiment of the present application, the user equipment may further send first iteration determination information of a video file to be uploaded to the network equipment, so that the network equipment comprehensively determines whether the user equipment is required to upload the video file according to the target file verification information and the first iteration determination information. If the video files with the same source do not exist or the video files with the same source exist but need to be updated iteratively, an uploading request message can be returned, so that the user equipment uploads the video files; otherwise, if the video files with the same source exist and are not subjected to iterative updating, an uploading success message can be returned, so that the user equipment does not need to actually upload the video files.
Thus, as shown in fig. 3, a processing logic of the network device for comprehensively judging according to the target file verification information and the first iteration judgment information may include the following processing steps:
step S301, the network device matches the file verification information based on the target file verification information to obtain a matching result.
Step S302, if the matching result is that the first file verification information or the second file verification information that is the same as the target file verification information is matched, it indicates that the video file having the same source already exists in the network device, and at this time, the network device continues to compare the first iteration determination information with the second iteration determination information of the video file that is successfully matched, and obtains a comparison result. The successfully matched video file is a stored video file having the same first file verification information or second file verification information as the target file verification information, and may be determined based on the matching process of the previous processing step. The network device may send an upload request message or an upload success message to the user equipment according to the comparison result. The comparison result includes two types, one is that the currently stored video file needs to be updated iteratively, and the subsequent processing corresponds to step S303, and the other is that the currently stored video file is retained without being updated iteratively, and the subsequent processing corresponds to step S304.
Step S303, the network device sends an upload request message to the user equipment. If the matching result in step S301 is that the first file verification information or the second file verification information identical to the target file verification information is not matched, step S303 is also executed in the same manner.
Step S304, the network device sends an upload success message to the user equipment.
In some embodiments of the present application, the first iteration determination information and the second iteration information for performing the comparison determination may include one or more of a corresponding encoding format, a resolution, a code rate, a version of an operating system of the user equipment, a processor model of the user equipment, a model of the user equipment, and a brand of the user equipment when the video file is uploaded, and specific contents thereof may be set according to requirements of an actual scene. Since the video file to be uploaded is not actually uploaded at this time, part of the information in the first iterative decision information may not be actually determined at this time, such as the encoding format, the resolution, the bit rate, and the like, and therefore, these information estimation values may be used, such as the encoding format, the resolution, the bit rate, and the like, which will be used when the video file is estimated to be uploaded.
In this embodiment, when determining, the content of each item in the first iteration determination information and the second iteration information may be compared, and the priority of each item is set as follows:
new encoding format > old encoding format;
high resolution > low resolution;
high version operating system > low version operating system;
high code rate > low code rate;
new processor > old processor;
new equipment > old equipment;
mainstream brand device > non-mainstream brand device.
Therefore, the priority between the first iteration judgment information and the second iteration information can be judged, if the priority of the first iteration judgment information is higher than that of the second iteration information, the stored video file needs to be updated in an iteration mode, and otherwise, the stored video file does not need to be updated. Specifically, a weight value may be assigned to each specific content, a priority score may be calculated in a weighted calculation manner, and the priority of the first iteration determination information and the priority of the second iteration determination information may be determined by comparing the scores.
For example, for a video file D1 to be uploaded, after the network device receives the target file verification information MD5-D1 and the first iteration judgment information sent by the network device, if a stored video file D1 has the same first file verification information MD5-D1, the network device may continue to compare the first iteration judgment information of the video file D1 with the second iteration judgment information of the video file D1. In this embodiment, the video file D1 will adopt an updated encoding format and the operating system version is higher, so that the comparison result is that the priority of the first iteration determination information is higher, at this time, the network device will return an upload request message to the user equipment, so that the user equipment will encode the video file D1 and then send the encoded video file and the first file verification information and the second file verification information corresponding to the encoded video file. If the comparison result of the first iteration judgment information and the second iteration judgment information is: the priority is the same or the priority of the second file verification information is higher, at this time, the network device returns an upload success message to the user device to inform the user device that the video file D1 has been successfully uploaded, and the uploading process of the file does not need to be actually executed.
In other embodiments of the present application, the network device may further adopt another processing logic for performing comprehensive judgment according to the target file verification information and the first iteration judgment information, as shown in fig. 4, where the processing logic includes the following steps:
step S401, the network device matches the file verification information based on the target file verification information to obtain a matching result. And if the matching result is that the second file verification information which is the same as the target file verification information is matched, executing step S404, and directly sending an uploading success message to the user equipment.
In an actual scenario, since the second file verification information is the file verification information of the video file after being encoded, if the target file verification information of the video file E1 to be uploaded is the same as the second file verification information of one of the stored video files E1', it indicates that both the target file verification information and the second file verification information are completely the same regardless of the content and the format of the video, and therefore, no matter whether the E1 is encoded before being uploaded, the meaning of using the original file E1 or the encoded file E1 to perform iterative update on the video file E1' of which E1 is completely the same is not great. Therefore, iterative update determination in such a case can be eliminated, and the processing efficiency of the whole uploading process can be improved.
Step S402, if the matching result is that the first file verification information identical to the target file verification information is matched, the network device may compare the first iteration determination information with the second iteration determination information of the successfully matched video file, obtain a comparison result, and send an upload request message or an upload success message to the user equipment according to the comparison result.
If the comparison result is that the priority of the first iteration judgment information is higher, it indicates that the currently stored video file needs to be updated iteratively, and the subsequent processing corresponds to step S403. If the comparison result is that the priority of the second iteration determination information is higher or the priority of the second iteration determination information is the same, it indicates that the currently stored video file is retained, and the iteration update is not performed, and the subsequent processing corresponds to step S404.
Step S403, the network device sends an upload request message to the user equipment.
In step S404, the network device may send an upload success message to the user equipment.
Fig. 5 shows a network device detection process flow based on such processing logic, which employs dual MD5 code detection + iterative detection, and includes the following processing steps:
step S501, the network device inquires in a file library based on a target MD5 code of the video file to be uploaded, and judges whether the video file stored by the network device has a first MD5 which is the same as the target MD5 code. The first MD5 is the MD5 code before encoding the stored video file. If yes, step S502 is executed, and if not, step S503 is executed.
Step S502, the network device performs an iterative update check based on the first iterative determination information of the video file to be uploaded, determines whether iterative update needs to be performed on the stored video file with the same MD5 code, if iterative update needs to be performed, performs step S504, otherwise performs step S505.
Step S503, the network device queries in the file library based on the target MD5 code of the video file to be uploaded, and determines whether the video file stored in the network device has a second MD5 that is the same as the target MD5 code, where the second MD5 is the MD5 code after the video file has been stored. If yes, step S505 is executed, and if not, step S504 is executed.
Step S504, the network device sends an upload request message to the user equipment.
Step S505, the network device sends an upload success message to the user equipment.
In some embodiments of the application, when the network device acquires and stores a video file sent by a user device and corresponding first file verification information and second file verification information thereof, if the network device already stores a video file having the same first file verification information or second file verification information, the stored video file is updated by using the acquired video file, so that iterative update of the stored video file can be realized, and the video file most meeting the current service requirement is always stored in the network device.
Fig. 6 shows a processing flow chart when uploading a video file by using the scheme provided by the embodiment of the application, which includes the following processing steps:
in step S601, the file is repeatedly detected.
And the user equipment carries out file repeatability detection by sending the MD5 code of the video file to be uploaded. The detection mode is that double MD5 codes are adopted for verification, and the network equipment compares the received MD5 codes with double MD5 codes (the original MD5 codes before the video files are coded and the new MD5 codes after the video files are coded) of the video files stored in the database. If the stored video file with the same MD5 code is found, it indicates that there is a duplicate video file, and step S602 is executed; if no stored video file with the same MD5 code is found, it indicates that there is no duplicate video file, and step S603 is executed.
Step S602, iteratively updating and detecting.
The user equipment judges by the network equipment by sending the iterative judgment information of the video file to be uploaded. For example, the iteration decision information may include information related to definition, such as encoding format, resolution, code rate, frame rate, etc., and may further include information related to hardware and software of the user equipment, such as brand of the user equipment, version of the operating system, model of the processor, etc. Comparing the encoding format, resolution, code rate and frame rate which are used when the video file to be uploaded is uploaded, the user equipment brand, operating system version and processor model of the current user equipment with the same information of the stored video file with the same MD5 code (any MD5 code is the same), judging that the stored video file needs to be updated iteratively. The specific updating manner may refer to the foregoing, and is not described herein again, if iterative updating is required, step S603 is executed, otherwise step S606 is executed.
And step S603, detecting the small micro-file.
The user equipment judges by the network equipment by sending the type judgment information of the video file to be uploaded. For example, the type determination information may be any information related to the data amount of the video file, and may include resolution, frame rate, code rate, encoding format, video length, and the like. The network device can select specific information to be compared according to the requirements of an actual scene by setting a comparison threshold value, so as to realize the detection of the small micro-file. If the video file to be uploaded is detected to belong to the small micro file, step S605 is executed, and if the video file to be uploaded is detected to belong to the non-small micro file, step S604 is executed.
In step S604, the video file is encoded.
The user equipment encodes the video file detected to belong to the non-small file, for example, the resolution, code rate and the like of the video file are reduced by re-encoding, so that the compression of the video file is realized, and the computational overhead of transmission and storage is saved.
In step S605, the video file is transmitted. The user equipment transmits the video file, and for small files, the video file is directly transmitted without being coded, and for non-small files, the video file is coded and then transmitted after being coded in step S604.
Step S606, sending a video message. In an actual scene, the video message may be any message indicating a result of the video file uploading process, for example, an upload success message returned to the user equipment that uploads the video file, or a message that a new video sharing is received is sent to the user equipment that is the video sharing object. The video message may include an access address of the video file so that the user can view the video file directly through the received video message.
In addition, the file uploading scheme provided by the embodiment of the application can also expand the application range to any type of multimedia files, such as images, voice and the like, which need to be encoded in the uploading process, so that a similar mechanism is adopted to realize a double check mechanism in the multimedia file uploading process, the possibility of repeatedly uploading the multimedia files with the same content is reduced, the uploading efficiency is improved, and the resource overhead is reduced.
At this time, the embodiment of the present application may provide the following file uploading method, where the following processing is executed at the network device side:
the network equipment acquires target file verification information of a multimedia file to be uploaded, which is sent by user equipment;
and the network equipment matches the target file verification information with first file verification information and second file verification information of the stored multimedia file to obtain a matching result, wherein the first file verification information is file verification information of the stored multimedia file before encoding, and the second file verification information is file verification information of the stored multimedia file after encoding, and is provided by historical user equipment for uploading the stored multimedia file during uploading. Similarly, the history user equipment in this embodiment refers to the user equipment that has completed uploading the multimedia file in the same manner before the uploading.
If the matching result is that the first file verification information or the second file verification information which is the same as the target file verification information is matched, the network equipment sends an uploading success message to the user equipment;
if the matching result is that the first file verification information or the second file verification information which is the same as the target file verification information is not matched, the network equipment sends an uploading request message to the user equipment, so that the user equipment encodes the multimedia file to be uploaded according to the uploading request message, and sends the encoded multimedia file and the corresponding first file verification information and second file verification information to the network equipment;
the network equipment acquires and stores the multimedia file sent by the user equipment and the corresponding first file verification information and second file verification information.
And on the user equipment side, the following processing can be executed:
the method comprises the steps that user equipment sends target file verification information of a multimedia file to be uploaded to network equipment, so that the network equipment sends an uploading success message or an uploading request message to the user equipment according to the target file verification information;
and the user equipment encodes the multimedia file to be uploaded according to the uploading request message and sends the encoded multimedia file and the corresponding first file verification information and second file verification information to the network equipment.
Based on the same inventive concept, the embodiment of the present application further provides a file uploading device, which includes a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein when the computer program instructions are executed by the processor, the device is triggered to execute the aforementioned file uploading method on the user equipment side or the network device side.
In an actual scenario, the user equipment refers to equipment used by a user, and may include but is not limited to various terminal devices such as a personal computer, a mobile phone, a tablet computer, and a smart watch. The network device may include, but is not limited to, a network host, a single network server, a plurality of network server sets, or a computer set based on Cloud Computing, wherein a Cloud is composed of a large number of hosts or network servers based on Cloud Computing (Cloud Computing), wherein Cloud Computing is one type of distributed Computing, and a virtual computer is composed of a group of loosely coupled computer sets.
Fig. 7 shows a structure of a device suitable for implementing the method and/or technical solution in the embodiment of the present application, and the device 700 includes a Central Processing Unit (CPU)701, which can execute various suitable actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage portion 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for system operation are also stored. The CPU 701, the ROM 702, and the RAM703 are connected to each other via a bus 704. An Input/Output (I/O) interface 705 is also connected to the bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, a touch screen, a microphone, an infrared sensor, and the like; an output section 707 including a Display panel such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), an LED Display, an OLED Display, and the like, and a speaker; a storage portion 708 comprising one or more computer-readable media such as a hard disk, optical disk, magnetic disk, semiconductor memory, or the like; and a communication section 709 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet.
In particular, the methods and/or embodiments in the embodiments of the present application may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. The computer program, when executed by a Central Processing Unit (CPU)701, performs the above-described functions defined in the method of the present application.
It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart or block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer-readable medium carries one or more computer program instructions that are executable by a processor to implement the methods and/or aspects of the embodiments of the present application as described above.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In some embodiments, the software programs of the present application may be executed by a processor to implement the above steps or functions. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Claims (14)
1. A method for uploading a file, wherein the method comprises:
the network equipment acquires target file verification information of a video file to be uploaded, which is sent by user equipment;
the network equipment matches the target file verification information with first file verification information and second file verification information of stored video files to obtain a matching result, wherein the first file verification information is file verification information of the stored video files before encoding, and the second file verification information is file verification information of the stored video files after encoding and is provided by historical user equipment for uploading the stored video files during uploading;
if the matching result is that the first file verification information or the second file verification information which is the same as the target file verification information is matched, the network equipment sends an uploading success message to the user equipment;
if the matching result is that the first file verification information or the second file verification information which is the same as the target file verification information is not matched, the network equipment sends an uploading request message to the user equipment, so that the user equipment encodes the video file to be uploaded according to the uploading request message, and sends the encoded video file and the corresponding first file verification information and second file verification information to the network equipment;
the network equipment acquires and stores the video file sent by the user equipment and the corresponding first file verification information and second file verification information.
2. The method of claim 1, wherein the method further comprises:
the method comprises the steps that network equipment obtains first iteration judgment information of a video file to be uploaded, which is sent by user equipment;
if the matching result is that the first file verification information or the second file verification information which is the same as the target file verification information is matched, the network device sends an upload success message to the user device, and the upload success message comprises:
and if the matching result is that the first file verification information or the second file verification information which is the same as the target file verification information is matched, comparing the first iteration judgment information with the second iteration judgment information of the successfully matched video file to obtain a comparison result, and sending an uploading request message or an uploading success message to the user equipment according to the comparison result, wherein the successfully matched video file is a stored video file which has the first file verification information or the second file verification information which is the same as the target file verification information.
3. The method of claim 2, wherein the method further comprises:
the method comprises the steps that network equipment obtains first iteration judgment information of a video file to be uploaded, which is sent by user equipment;
if the matching result is that the first file verification information or the second file verification information which is the same as the target file verification information is matched, the network device sends an upload success message to the user device, and the upload success message comprises:
if the matching result is that second file verification information which is the same as the target file verification information is matched, the network equipment sends an uploading success message to the user equipment;
and if the matching result is that first file verification information identical to the target file verification information is matched, comparing the first iteration judgment information with second iteration judgment information of the successfully matched video file to obtain a comparison result, and sending an uploading request message or an uploading success message to the user equipment according to the comparison result, wherein the successfully matched video file is a stored video file with the first file verification information or the second file verification information identical to the target file verification information.
4. The method according to claim 2 or 3, wherein the acquiring and storing, by the network device, the video file and the corresponding first file verification information and second file verification information thereof sent by the user equipment comprises:
the network equipment acquires and stores a video file sent by user equipment and corresponding first file verification information and second file verification information;
and if the network equipment stores the video file with the same first file verification information or second file verification information, updating the stored video file by using the video file acquired this time.
5. The method of claim 2 or 3, wherein the first iteration decision information and the second iteration decision information comprise one or more of a corresponding encoding format, resolution, bitrate, version of a user equipment operating system, model of a user equipment processor, model of a user equipment, and brand of a user equipment when the video file is uploaded.
6. The method of claim 1, wherein the method further comprises:
the method comprises the steps that network equipment obtains type judgment information of a video file to be uploaded, which is sent by user equipment;
the network device sends an upload request message to the user device, including:
the network equipment judges whether the video file to be uploaded belongs to a small file or not according to the type judgment information;
if the video file belongs to the small micro file, the network equipment sends a first uploading request message to the user equipment, so that the user equipment sends the uncoded video file and corresponding first file verification information and second file verification information to the network equipment according to the first uploading request message, wherein the second file verification information is empty or is the same as the first file verification information;
and if the video file does not belong to the small micro file, the network equipment sends a second uploading request message to the user equipment so that the user equipment encodes the video file to be uploaded according to the second uploading request message, and sends the encoded video file and the corresponding first file verification information and second file verification information to the network equipment.
7. The method of claim 1, wherein the type decision information includes a resolution and a bitrate of a video file;
the network equipment judges whether the video file to be uploaded belongs to the small micro file according to the type judgment information, and the method comprises the following steps:
the network equipment compares the resolution and the code rate of the video file to be uploaded with the maximum resolution and the maximum code rate respectively, and if the resolution of the video file to be uploaded is smaller than or equal to the maximum resolution and the code rate of the video file to be uploaded is smaller than or equal to the maximum code rate, the video file to be uploaded is determined to belong to a small micro file; otherwise, determining that the video file to be uploaded does not belong to the small micro file.
8. A method for uploading a file, wherein the method comprises:
the method comprises the steps that user equipment sends target file verification information of a video file to be uploaded to network equipment, so that the network equipment sends an uploading success message or an uploading request message to the user equipment according to the target file verification information;
and the user equipment encodes the video file to be uploaded according to the uploading request message and sends the encoded video file and the corresponding first file verification information and second file verification information to the network equipment.
9. The method of claim 8, wherein a user equipment sends target file verification information of a video file to be uploaded to a network device, so that the network device sends an upload success message or an upload request message to the user equipment according to the target file verification information, comprising:
the method comprises the steps that user equipment sends target file verification information and first iteration judgment information of a video file to be uploaded to network equipment, so that the network equipment sends an uploading success message or an uploading request message to the user equipment according to the target file verification information and the first iteration judgment information.
10. The method of claim 8, wherein the method further comprises:
the method comprises the steps that user equipment sends type judgment information of a video file to be uploaded to network equipment so that the network equipment determines the type of an uploading request message sent to the user equipment according to the type judgment information, wherein the type of the uploading request message comprises a first uploading request message or a second uploading request message;
the user equipment encodes the video file to be uploaded according to the uploading request message, and sends the encoded video file and the corresponding first file verification information and second file verification information to the network equipment, and the method comprises the following steps:
if the type of the upload request message is a first upload request message, the user equipment sends an uncoded video file and corresponding first file verification information and second file verification information to the network equipment according to the first upload request message, wherein the second file verification information is empty or is the same as the first file verification information;
if the type of the upload request message is a second upload request message, the user equipment encodes the video file to be uploaded according to the second upload request message, and sends the encoded video file and the corresponding first file verification information and second file verification information to the network equipment.
11. A method for uploading a file, wherein the method comprises:
the network equipment acquires target file verification information of a multimedia file to be uploaded, which is sent by user equipment;
the network equipment matches the target file verification information with first file verification information and second file verification information of stored multimedia files to obtain a matching result, wherein the first file verification information is file verification information of the stored multimedia files before encoding, and the second file verification information is file verification information of the stored multimedia files after encoding and is provided by historical user equipment which uploads the stored multimedia files during uploading;
if the matching result is that the first file verification information or the second file verification information which is the same as the target file verification information is matched, the network equipment sends an uploading success message to the user equipment;
if the matching result is that the first file verification information or the second file verification information which is the same as the target file verification information is not matched, the network equipment sends an uploading request message to the user equipment, so that the user equipment encodes the multimedia file to be uploaded according to the uploading request message, and sends the encoded multimedia file and the corresponding first file verification information and second file verification information to the network equipment;
the network equipment acquires and stores the multimedia file sent by the user equipment and the corresponding first file verification information and second file verification information.
12. A method for uploading a file, wherein the method comprises:
the method comprises the steps that user equipment sends target file verification information of a multimedia file to be uploaded to network equipment, so that the network equipment sends an uploading success message or an uploading request message to the user equipment according to the target file verification information;
and the user equipment encodes the multimedia file to be uploaded according to the uploading request message and sends the encoded multimedia file and the corresponding first file verification information and second file verification information to the network equipment.
13. A file upload device comprising a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein the computer program instructions, when executed by the processor, trigger the device to perform the method of any of claims 1 to 12.
14. A computer readable medium having stored thereon computer program instructions executable by a processor to implement the method of any one of claims 1 to 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011638830.9A CN112804312B (en) | 2020-12-31 | 2020-12-31 | File uploading method, equipment and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011638830.9A CN112804312B (en) | 2020-12-31 | 2020-12-31 | File uploading method, equipment and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112804312A true CN112804312A (en) | 2021-05-14 |
CN112804312B CN112804312B (en) | 2023-06-30 |
Family
ID=75808931
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011638830.9A Active CN112804312B (en) | 2020-12-31 | 2020-12-31 | File uploading method, equipment and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112804312B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115361377A (en) * | 2022-08-19 | 2022-11-18 | 中国联合网络通信集团有限公司 | File uploading method, user terminal, network disk server, equipment and medium |
CN116170615B (en) * | 2023-03-01 | 2024-11-15 | 湖南快乐阳光互动娱乐传媒有限公司 | Judgment method, device and equipment for alternate files and readable storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106649360A (en) * | 2015-10-30 | 2017-05-10 | 北京国双科技有限公司 | Data repeatability check method and apparatus |
WO2017101023A1 (en) * | 2015-12-15 | 2017-06-22 | 华为技术有限公司 | Communication method, network device, and user equipment |
CN107786873A (en) * | 2016-08-30 | 2018-03-09 | 山大鲁能信息科技有限公司 | The recorded broadcast method and system of automatic video frequency transcoding package form based on transcoding queue |
WO2018127069A1 (en) * | 2017-01-05 | 2018-07-12 | 华为技术有限公司 | Coding method and device |
WO2018214905A1 (en) * | 2017-05-26 | 2018-11-29 | 贵州白山云科技有限公司 | Data storage method, apparatus, medium and device |
WO2019019936A1 (en) * | 2017-07-28 | 2019-01-31 | 阿里巴巴集团控股有限公司 | File transmission method, apparatus, device and storage medium |
CN111339040A (en) * | 2020-02-27 | 2020-06-26 | 青岛大学 | Cloud storage method, device, equipment and storage medium for data files |
CN111970357A (en) * | 2020-08-14 | 2020-11-20 | 北京金和网络股份有限公司 | Video uploading method, device and system |
-
2020
- 2020-12-31 CN CN202011638830.9A patent/CN112804312B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106649360A (en) * | 2015-10-30 | 2017-05-10 | 北京国双科技有限公司 | Data repeatability check method and apparatus |
WO2017101023A1 (en) * | 2015-12-15 | 2017-06-22 | 华为技术有限公司 | Communication method, network device, and user equipment |
CN107786873A (en) * | 2016-08-30 | 2018-03-09 | 山大鲁能信息科技有限公司 | The recorded broadcast method and system of automatic video frequency transcoding package form based on transcoding queue |
WO2018127069A1 (en) * | 2017-01-05 | 2018-07-12 | 华为技术有限公司 | Coding method and device |
WO2018214905A1 (en) * | 2017-05-26 | 2018-11-29 | 贵州白山云科技有限公司 | Data storage method, apparatus, medium and device |
WO2019019936A1 (en) * | 2017-07-28 | 2019-01-31 | 阿里巴巴集团控股有限公司 | File transmission method, apparatus, device and storage medium |
CN111339040A (en) * | 2020-02-27 | 2020-06-26 | 青岛大学 | Cloud storage method, device, equipment and storage medium for data files |
CN111970357A (en) * | 2020-08-14 | 2020-11-20 | 北京金和网络股份有限公司 | Video uploading method, device and system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115361377A (en) * | 2022-08-19 | 2022-11-18 | 中国联合网络通信集团有限公司 | File uploading method, user terminal, network disk server, equipment and medium |
CN116170615B (en) * | 2023-03-01 | 2024-11-15 | 湖南快乐阳光互动娱乐传媒有限公司 | Judgment method, device and equipment for alternate files and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112804312B (en) | 2023-06-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109544396B (en) | Account recommendation method and device, server, terminal and storage medium | |
US12019652B2 (en) | Method and device for synchronizing node data | |
US9785664B2 (en) | Gathering transaction data associated with locally stored data files | |
CN111382123B (en) | File storage method, device, equipment and storage medium | |
US10693816B2 (en) | Communication methods and systems, electronic devices, and computer clusters | |
CN110018786B (en) | System and method for predicting data storage characteristics | |
CN111093094A (en) | Video transcoding method, device and system, electronic equipment and readable storage medium | |
US10917484B2 (en) | Identifying and managing redundant digital content transfers | |
CN112804312B (en) | File uploading method, equipment and computer readable medium | |
US20170070468A1 (en) | Communication And Notification System For A Social Collaboration Application | |
CN112650804B (en) | Big data access method, device, system and storage medium | |
CN113342759A (en) | Content sharing method, device, equipment and storage medium | |
CN110585724B (en) | Method and device for updating form data in game client | |
CN110414625B (en) | Method and device for determining similar data, electronic equipment and storage medium | |
CN114710482B (en) | File detection method and device, electronic equipment and storage medium | |
US11729349B2 (en) | Method, electronic device, and computer program product for video processing | |
CN110740138A (en) | Data transmission method and device | |
CN113806416B (en) | Method and device for realizing real-time data service and electronic equipment | |
CN115695587A (en) | Service data processing system, method, device and storage medium | |
CN111694869A (en) | Method and device for querying data | |
CN115914228B (en) | Data processing method, device, storage medium and computer program product | |
US20230100936A1 (en) | Method, device, and computer program product for transmitting data for object storage | |
CN114866845B (en) | Information detection method and system based on short video release | |
CN114168762A (en) | Multimedia resource playing method, device, equipment and storage medium | |
US20200401993A1 (en) | Implementation of rolling key to identify systems inventories |
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 |