Video file processing method and device and computer equipment

By using the video file compression interface and compression monitoring interface on the server, the video compression information is obtained and feedback on the server is solved, and the smoothness and user experience of the client interface is improved.

CN119155464APending Publication Date: 2024-12-17CHINA SOUTHERN POWER GRID BIG DATA SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411243212.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

Existing video file compression methods cause slow feedback on the server, resulting in the problem of stuttering or blanking of the client interface.

Method used

By generating compression tasks on the server and using the video file compression interface and compression monitoring interface, video compression information can be obtained and feedback in real time, and the server information feedback speed is improved.

Benefits of technology

It improves the speed of server information feedback, avoids stuttering and blanking of client interface, and optimizes the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155464A_ABST
    Figure CN119155464A_ABST
Patent Text Reader

Abstract

The invention relates to a video file processing method and device and computer equipment. The method comprises the following steps: in response to a compression request for a source video file sent by a client, generating a compression task corresponding to the source video file through a video file compression interface, and sending a compression task identifier of the compression task to the client; executing the compression task to compress the source video file; and in the process of executing the compression task, in response to an information acquisition request carrying the compression task identifier sent by the client, acquiring video compression information through the compression monitoring interface according to the compression task identifier, and sending the video compression information to the client. By adopting the method, the video compression information can be obtained through the compression monitoring interface in the video compression process, and the video compression information is fed back to the client in time, so that the information feedback speed of the server is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information processing technology, and in particular to a video file processing method, device and computer equipment. Background Art

[0002] With the development of information technology, users have higher and higher requirements for the user experience of applications. Lightweight processing of files, such as compressing video files, helps to improve the speed of interaction between the client and the server, ensure the smoothness of the application, and enable the application to provide users with a better user experience.

[0003] At present, video files are generally compressed by a single compression method, that is, the compression of video files is completed by calling an interface once. However, due to the large amount of information contained in video files, it takes a long time to complete a single compression, which makes the server feedback information slowly, which easily leads to problems such as freezing or blankness of the client interface. Summary of the invention

[0004] Based on this, it is necessary to provide a video file processing method, device and computer equipment to address the above technical problems so as to improve the information feedback speed of the server.

[0005] In a first aspect, the present application provides a video file processing method, which is applied to a server, and the method includes:

[0006] In response to a compression request for a source video file sent by a client, a compression task corresponding to the source video file is generated through a video file compression interface, and a compression task identifier of the compression task is sent to the client;

[0007] Perform compression tasks to compress source video files;

[0008] During the execution of a compression task, in response to an information acquisition request carrying a compression task identifier sent by the client, video compression information is acquired through a compression monitoring interface according to the compression task identifier, and the video compression information is sent to the client; wherein the video compression information includes attribute information of a source video file, or target video information after the source video file is compressed.

[0009] In one of the embodiments, when the compression task is completed, the video compression information includes target video information; when the compression task is not completed, the video compression information includes attribute information of the source video file.

[0010] In one of the embodiments, the target video information includes the target video file compressed from the source video file and the attribute information of the target video file.

[0011] In a second aspect, the present application also provides a video file processing method, which is applied to a client, and the method includes:

[0012] Send a compression request for the source video file to the server, and obtain a compression task identifier based on the compression request feedback from the server;

[0013] In the process of executing the compression task corresponding to the source video file on the server side, sending an information acquisition request carrying the compression task identifier to the server side;

[0014] Obtaining video compression information fed back by the server based on the information acquisition request; wherein the video compression information includes attribute information of the source video file, or target video information after the source video file is compressed;

[0015] Based on the video compression information, the client page is updated; wherein the client page displays a source video area and a target video area; the source video area includes a first playback area of ​​the source video file and a first display area of ​​the attribute information of the source video file; the target video area includes an area for displaying the target video information after the source video file is compressed.

[0016] In one of the embodiments, the target video area includes a second playback area of ​​the target video file after the source video file is compressed, and a second display area of ​​the attribute information of the target video file.

[0017] In one of the embodiments, the target video information includes the target video file compressed from the source video file and the attribute information of the target video file.

[0018] In one of the embodiments, if the video compression information is the attribute information of the source video file, an information acquisition request carrying the compression task identifier is resent to the server until the acquired video compression information is the target video information.

[0019] In a third aspect, the present application further provides a video file processing device, which is configured in a server, and the device includes:

[0020] A response module, used to respond to a compression request for a source video file sent by a client, generate a compression task corresponding to the source video file through a video file compression interface, and send a compression task identifier of the compression task to the client;

[0021] An execution module, used for executing a compression task to compress a source video file;

[0022] The first acquisition module is used to respond to an information acquisition request carrying a compression task identifier sent by a client during the execution of a compression task, obtain video compression information through a compression monitoring interface according to the compression task identifier, and send the video compression information to the client; wherein the video compression information includes attribute information of a source video file, or target video information after the source video file is compressed.

[0023] In a fourth aspect, the present application further provides a video file processing device, which is configured in a client, and the device includes:

[0024] A first request module, used to send a compression request for a source video file to a server, and obtain a compression task identifier fed back by the server based on the compression request;

[0025] A second request module is used to send an information acquisition request carrying a compression task identifier to the server side during the process of the server side executing the compression task corresponding to the source video file;

[0026] The second acquisition module is used to acquire the video compression information fed back by the server based on the information acquisition request; wherein the video compression information includes the attribute information of the source video file, or the target video information after the source video file is compressed;

[0027] An update module is used to update the client page based on video compression information; wherein the client page displays a source video area and a target video area; the source video area includes a first playback area of ​​a source video file and a first display area of ​​attribute information of the source video file; the target video area includes an area for displaying target video information after compression of the source video file.

[0028] In a fifth aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the video file processing method described in the first aspect and / or the second aspect is implemented.

[0029] In a sixth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the video file processing method described in the first aspect and / or the second aspect is implemented.

[0030] In a seventh aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the video file processing method described in the first aspect and / or the second aspect is implemented.

[0031] In the above-mentioned video file processing method, device and computer equipment, the server generates a compression task corresponding to the source video file through the video file compression interface in response to the compression request for the source video file sent by the client, and sends the compression task identifier of the compression task to the client; executes the compression task to compress the source video file; in the process of executing the compression task, in response to the information acquisition request carrying the compression task identifier sent by the client, obtains the video compression information through the compression monitoring interface according to the compression task identifier, and sends the video compression information to the client. Thus, the method of using only one interface in the traditional video compression method is converted into a method of using the video file compression interface and the compression monitoring interface. In the process of video compression, the video compression information can be obtained through the compression monitoring interface, and the video compression information can be fed back to the client in a timely manner, which improves the information feedback speed of the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0033] Figure 1 A diagram showing an application environment of a video file processing method in an embodiment;

[0034] Figure 2 A schematic diagram of a process flow of a video file processing method in one embodiment;

[0035] Figure 3A is a flow chart of a video file processing method in another embodiment;

[0036] Figure 3B A schematic diagram of a client page in one embodiment;

[0037] Figure 4 is a signaling diagram of a video file processing method in one embodiment;

[0038] Figure 5 is a structural block diagram of a video file processing device in one embodiment;

[0039] Figure 6 is a structural block diagram of a video file processing device in another embodiment;

[0040] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0042] The video file processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the client 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. For example, the server 104 responds to the compression request for the source video file sent by the client 102, generates a compression task corresponding to the source video file through the video file compression interface, and sends the compression task identifier of the compression task to the client 102; the server 104 executes the compression task to compress the source video file, and in the process of executing the compression task, responds to the information acquisition request carrying the compression task identifier sent by the client 102, obtains the video compression information through the compression monitoring interface according to the compression task identifier, and sends the video compression information to the client 102. Among them, the client 102 can be but not limited to various personal computers, laptops, smart phones, tablet computers, Internet of Things devices, etc. The server 104 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.

[0043] In one embodiment, Figure 2 As shown, a video file processing method is provided. In this embodiment, the method is applied to Figure 1 In this embodiment, the method includes the following steps:

[0044] S210, in response to a compression request for a source video file sent by a client, generating a compression task corresponding to the source video file through a video file compression interface, and sending a compression task identifier of the compression task to the client.

[0045] The source video file can be understood as an uncompressed video file. The video file compression interface can be understood as an interactive channel between the video file compression program deployed on the server and the client. It can be understood that in this embodiment, the programming languages ​​supported by the server and the client corresponding to the video file compression interface can be the same or different. For example, the programming language supported by the client can be Java, and the programming language supported by the server can be C++.

[0046] The video file compression program may include a video file compression function. The video file compression function may be an independent function or a nested function. An independent function may be understood as a function that does not include other functions in its function body, and a nested function may be understood as a function that includes other functions in its function body.

[0047] The compression task can be understood as the execution task of the video file compression function for the source video file. The compression task can be an asynchronous task, that is, other tasks can be executed during the execution of the compression task. The compression task identifier can be understood as the unique identifier of the compression task, such as the compression task ID (Identifier).

[0048] In an optional embodiment, the user can select any video file to be compressed through the file compression interface displayed by the client and click OK. At this time, the client will generate a compression request based on the user's video selection and send the compression request to the server where the video file compression program is deployed.

[0049] Correspondingly, after the video file compression interface on the server receives a file compression request sent by the client, it can add the execution task of the video file compression function to the task queue based on the relevant information of the source file contained in the compression request, and send a response message carrying the task ID corresponding to the task to the client.

[0050] S220, executing a compression task to compress the source video file.

[0051] In an optional embodiment, when performing a compression task, the source video file can be parsed, and the parsing result can be substituted into the video file compression function as the actual parameter of the video file compression function; then, the parsing result can be compressed by executing the video file compression function to achieve compression of the source video file.

[0052] S230, in the process of executing the compression task, in response to the information acquisition request carrying the compression task identifier sent by the client, according to the compression task identifier, through the compression monitoring interface, obtain the video compression information, and send the video compression information to the client.

[0053] The information acquisition request can be understood as a request for the client to obtain video compression information from the server. The compression monitoring interface can be understood as an interaction channel between the compression monitoring program deployed on the server and the client. The compression monitoring program may include a compression monitoring function, which can be used to monitor the execution of the compression task and obtain video compression information. The video compression information may include attribute information of the source video file, or target video information after the source video file is compressed.

[0054] In an optional embodiment, if the task compression interface receives an information acquisition request carrying a compression task identifier, the corresponding compression task can be determined from the compression tasks based on the compression task identifier; then, the compression monitoring function can be called to obtain the attribute information of the source video file, or the target video information after the source video file is compressed, based on the execution status of the compression task; finally, based on the information obtained by the compression monitoring function, a response message carrying the attribute information of the source video file or the target video information can be sent to the client.

[0055] In this embodiment, in order to ensure the efficiency of video data stream transmission, the data stream between the client and the server may be processed based on JSON (JavaScript Object Notation, key-value pair data).

[0056] In this embodiment, the server generates a compression task corresponding to the source video file through a video file compression interface in response to a compression request for a source video file sent by a client, and sends a compression task identifier of the compression task to the client; executes the compression task to compress the source video file; in the process of executing the compression task, in response to an information acquisition request carrying the compression task identifier sent by the client, obtains video compression information through a compression monitoring interface according to the compression task identifier, and sends the video compression information to the client. Thus, the method of using only one interface in the traditional video compression method is converted into a method of using a video file compression interface and a compression monitoring interface. In the process of video compression, the video compression information can be obtained through the compression monitoring interface, and the video compression information can be fed back to the client in a timely manner, thereby improving the information feedback speed of the server.

[0057] Based on the technical solutions of the above-mentioned embodiments, the present application also provides an optional embodiment. In this optional embodiment, the step of obtaining the video compression information is refined. Specifically, when the compression task is completed, the video compression information includes the target video information; when the compression task is not completed, the video compression information includes the attribute information of the source video file.

[0058] Among them, the target video information can be understood as the video-related information obtained after compressing the source video; the attribute information can be understood as the related information that can characterize the attributes of the source video file. For example, the attribute information of the source video file may include the file size, file resolution and file bit rate of the source video file.

[0059] In an optional embodiment, if the compression monitoring function detects that the compression task has been completed, video compression information can be generated based on the target video information obtained after compression, and the video compression information can be sent to the client; if the compression monitoring function detects that the compression task has not been completed, video compression information can be generated based on the attribute information of the source video file at the current moment, and the video compression information can be sent to the client.

[0060] It can be understood that, in order to ensure the comprehensiveness of the target video information, in this embodiment, the target video information includes the target video file after the source video file is compressed and the attribute information of the target video file.

[0061] Optionally, when the compression monitoring function detects that the compression task has been completed, it can determine the attribute information of the target video file based on the target video file obtained after compression, and generate target video information based on the target video file and the attribute information of the target video file; subsequently, it can generate video compression information based on the target video information and send the video compression information to the client.

[0062] In this embodiment, by obtaining different video compression information under different execution conditions of the compression task, the server can feedback the video compression information to the client even when the compression task is not completed, thereby improving the speed at which the server feedbacks information, avoiding the problem of being unable to feedback information to the client for a long time due to the incomplete compression of the video file, and optimizing the user experience.

[0063] Based on the technical solutions of the above embodiments, in this embodiment, Figure 3A As shown, another video file processing method is provided. This embodiment uses the method applied to a client as an example. In this embodiment, the method includes the following steps:

[0064] S310, sending a compression request for the source video file to the server, and obtaining a compression task identifier fed back by the server based on the compression request.

[0065] The compression request for the source video file may be understood as a request for the server to compress the source video file.

[0066] Optionally, if the user has a video compression requirement, the client will display a file compression interface to the user, where the file compression interface may include preview images of multiple source video files; subsequently, after the client detects a click operation on any preview image, the client may send a request message carrying the source video file to the server based on the source video file corresponding to the preview image.

[0067] Furthermore, after receiving the request message, the server can generate a compression task corresponding to the source video file based on the relevant information of the source video file, and feedback a response message carrying the compression task identifier to the client; subsequently, after receiving the response message, the client can parse the compression task identifier of the compression task from the response message.

[0068] S320: When the server is executing the compression task corresponding to the source video file, an information acquisition request carrying the compression task identifier is sent to the server.

[0069] Optionally, when the server is executing the compression task corresponding to the source video file, if the user wants to obtain the progress of video compression in real time, the user may send at least one information acquisition request carrying the compression task identifier to the server. The number of times the information acquisition request is sent to the server may be determined based on the video compression information fed back by the server.

[0070] S330, obtaining video compression information fed back by the server based on the information acquisition request.

[0071] Optionally, after the server receives the information acquisition request sent by the client, it will send a response message carrying video compression information to the client based on the compression progress of the source video file; accordingly, the client can parse the video compression information from the response message after receiving the response message.

[0072] It is understandable that in order to ensure the reliability of the video compression information, the video compression information fed back by the server needs to be verified; if the verification result fails, an information acquisition request can be sent to the server again to re-acquire the video compression information until the video compression information passes the verification.

[0073] If the video compression information is the attribute information of the source video file, it is necessary to verify the attribute information of the source video file. Exemplarily, it is possible to verify whether the attribute information of the source video file satisfies a first preset verification condition. If each attribute information of the source video file satisfies the corresponding preset verification condition, the verification result is passed, otherwise the verification result is failed.

[0074] If the video compression information is the target video information, it is necessary to verify the frame number / attribute information of the verification source video file. Exemplarily, when it is determined that the target video file has no frame loss, it is necessary to verify whether the attribute information of the target video meets the second preset verification condition. If the target video file has no frame loss and each attribute information of the target video meets the corresponding second preset verification condition, the test result is passed, otherwise it is failed.

[0075] S340: Update the client page based on the video compression information.

[0076] The client page displays a source video area and a target video area.

[0077] The source video area includes a first play area of ​​the source video file and a first display area of ​​the attribute information of the source video file; the target video area includes an area for displaying the target video information after the source video file is compressed. Further, the display area of ​​the target video information may include a second play area of ​​the target video file and a second display area of ​​the attribute information of the target video file.

[0078] For example, Figure 3B As shown, in the video display interface corresponding to the client, the left side is the first playback area and the right side is the second display area.

[0079] In an optional embodiment, after the source video file is uploaded to the client, a frame of the source video file can be displayed in the first play area and the second play area. For example, the play and pause of the source video file can be controlled by clicking the play control button in the first play area. It is understandable that the client can set the second play video area to be unplayable if the target file information is not obtained.

[0080] In an optional embodiment, after the client obtains the attribute information of the source video file for the first time, it may update the first display area to display the attribute information of the source video file in the first display area, and does not update the second playback area and the second display area. It is understandable that if the client obtains the attribute information of the source video file again, it is possible not to update the first display area.

[0081] In another optional embodiment, after obtaining the target video information, the client can update the second play area, and can control the play and pause of the target video file by clicking the play control button in the second play area. In addition, the second display area can be updated to display the attribute information of the target file in the second display area.

[0082] In this embodiment, the client sends a compression request for a source video file to the server, and obtains a compression task identifier fed back by the server based on the compression request; in the process of the server executing the compression task corresponding to the source video file, an information acquisition request carrying the compression task identifier is sent to the server, and video compression information fed back by the server based on the information acquisition request is obtained, so that the client can obtain the video compression information during the compression process of the video file, and update the client page in a timely manner according to the video compression information, thereby avoiding the problem of client page freeze and blankness caused by video file compression, improving the fluency of client page updates, and ensuring the user experience.

[0083] Based on the technical solutions of the above embodiments, in this embodiment, an optional method of obtaining information is provided. Specifically, if the video compression information is the attribute information of the source video file, an information acquisition request carrying the compression task identifier is resent to the server until the acquired video compression information is the target video information.

[0084] It is understandable that if the video compression information fed back by the server is the attribute information of the source video file, it means that the compression task corresponding to the source video file has not been completed and the client has failed to obtain the target video information. Therefore, it is necessary to resend the information acquisition request to the server until the obtained video compression information is the target video information.

[0085] Optionally, in order to avoid frequent access to the server, which causes excessive load on the server, after the client determines that the video compression information is the attribute information of the source video file, after a first preset time, the client sends an information acquisition request to the server again. Alternatively, if the client fails to update the client page after a second preset time after obtaining the video compression information, the client sends an information acquisition request to the server again. It should be noted that both the first preset time and the second preset time can be set by the technician according to needs or experience, or determined through a large number of experiments, and this application does not impose any limitation on this.

[0086] In this embodiment, by repeatedly acquiring video compression information until the video compression information is target video information, it is possible to ensure that the user can accurately acquire the compressed target video.

[0087] Based on the technical solutions of the above embodiments, the present application also provides an optional embodiment, in which a video file processing method is described in detail.

[0088] Figure 4 The signaling diagram corresponding to the video file processing method in an embodiment is used to illustrate the application of the video file processing method to a system including a terminal and a server. In this embodiment, the method includes the following steps:

[0089] S410: The client sends a compression request for the source video file to the server.

[0090] S420, the server generates a compression task corresponding to the source video file through a video file compression interface in response to the compression request for the source video file sent by the client.

[0091] S430, the server sends a compression task identifier of the compression task to the client, and executes the compression task.

[0092] S440, when the server is executing the compression task corresponding to the source video file, the client sends an information acquisition request carrying a compression task identifier to the server.

[0093] S450, the server obtains video compression information through the compression monitoring interface according to the compression task identifier, and sends the video compression information to the client.

[0094] S460: The client updates the client page based on the video compression information.

[0095] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0096] Based on the same inventive concept, the embodiment of the present application also provides a video file processing device for implementing the video file processing method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more video file processing device embodiments provided below can refer to the limitations of the video file processing method above, and will not be repeated here.

[0097] In an exemplary embodiment, Figure 5 As shown, a video file processing device is provided, which can be configured on a server side. The device includes: a response module 510, an execution module 520 and a first acquisition module 530, wherein:

[0098] The response module 510 is used to respond to the compression request for the source video file sent by the client, generate a compression task corresponding to the source video file through the video file compression interface, and send a compression task identifier of the compression task to the client.

[0099] The execution module 520 is used to execute the compression task to compress the source video file.

[0100] The first acquisition module 530 is used to respond to an information acquisition request carrying a compression task identifier sent by the client during the execution of a compression task, obtain video compression information through a compression monitoring interface according to the compression task identifier, and send the video compression information to the client; wherein the video compression information includes attribute information of a source video file, or target video information after the source video file is compressed.

[0101] In one of the embodiments, when the compression task is completed, the video compression information includes target video information; when the compression task is not completed, the video compression information includes attribute information of the source video file.

[0102] In one of the embodiments, the target video information includes the target video file compressed from the source video file and the attribute information of the target video file.

[0103] In an exemplary embodiment, Figure 6 As shown, a video file processing device is provided, which can be configured on a client, and the device includes: a first request module 610, a second request module 620, a second acquisition module 630 and an update module 640, wherein:

[0104] The first request module 610 is used to send a compression request for a source video file to the server, and obtain a compression task identifier fed back by the server based on the compression request.

[0105] The second request module 620 is used to send an information acquisition request carrying a compression task identifier to the server when the server executes the compression task corresponding to the source video file.

[0106] The second acquisition module 630 is used to acquire the video compression information fed back by the server based on the information acquisition request; wherein the video compression information includes the attribute information of the source video file, or the target video information after the source video file is compressed.

[0107] Update module 640 is used to update the client page based on the video compression information; wherein the client page displays a source video area and a target video area; the source video area includes a first playback area of ​​the source video file and a first display area of ​​the attribute information of the source video file; the target video area includes an area for displaying the target video information after the source video file is compressed.

[0108] In one of the embodiments, the target video area includes a second playback area of ​​the target video file after the source video file is compressed, and a second display area of ​​the attribute information of the target video file.

[0109] In one of the embodiments, the target video information includes the target video file compressed from the source video file and the attribute information of the target video file.

[0110] In one of the embodiments, the second request module is further used to resend an information acquisition request carrying a compression task identifier to the server if the video compression information is attribute information of a source video file, until the acquired video compression information is target video information.

[0111] Each module in the above video file processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0112] In an exemplary embodiment, a computer device is provided, the internal structure of which can be shown as follows: Figure 7 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a video file processing method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0113] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0114] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0115] In response to a compression request for a source video file sent by a client, a compression task corresponding to the source video file is generated through a video file compression interface, and a compression task identifier of the compression task is sent to the client;

[0116] Perform compression tasks to compress source video files;

[0117] During the execution of a compression task, in response to an information acquisition request carrying a compression task identifier sent by the client, video compression information is acquired through a compression monitoring interface according to the compression task identifier, and the video compression information is sent to the client; wherein the video compression information includes attribute information of a source video file, or target video information after the source video file is compressed.

[0118] In one embodiment, when the compression task is completed, the video compression information includes target video information; when the compression task is not completed, the video compression information includes attribute information of the source video file.

[0119] In one embodiment, the target video information includes the target video file after the source video file is compressed and the attribute information of the target video file.

[0120] In an exemplary embodiment, a computer device is also provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0121] Send a compression request for the source video file to the server, and obtain a compression task identifier based on the compression request feedback from the server;

[0122] In the process of executing the compression task corresponding to the source video file on the server side, sending an information acquisition request carrying the compression task identifier to the server side;

[0123] Obtaining video compression information fed back by the server based on the information acquisition request; wherein the video compression information includes attribute information of the source video file, or target video information after the source video file is compressed;

[0124] Based on the video compression information, the client page is updated; wherein the client page displays a source video area and a target video area; the source video area includes a first playback area of ​​the source video file and a first display area of ​​the attribute information of the source video file; the target video area includes an area for displaying the target video information after the source video file is compressed.

[0125] In one embodiment, the target video area includes a second play area of ​​the target video file after the source video file is compressed, and a second display area of ​​the attribute information of the target video file.

[0126] In one embodiment, the target video information includes the target video file after the source video file is compressed and the attribute information of the target video file.

[0127] In one embodiment, if the video compression information is the attribute information of the source video file, an information acquisition request carrying the compression task identifier is resent to the server until the acquired video compression information is the target video information.

[0128] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0129] In response to a compression request for a source video file sent by a client, a compression task corresponding to the source video file is generated through a video file compression interface, and a compression task identifier of the compression task is sent to the client;

[0130] Perform compression tasks to compress source video files;

[0131] During the execution of a compression task, in response to an information acquisition request carrying a compression task identifier sent by the client, video compression information is acquired through a compression monitoring interface according to the compression task identifier, and the video compression information is sent to the client; wherein the video compression information includes attribute information of a source video file, or target video information after the source video file is compressed.

[0132] In one embodiment, when the compression task is completed, the video compression information includes target video information; when the compression task is not completed, the video compression information includes attribute information of the source video file.

[0133] In one embodiment, the target video information includes the target video file after the source video file is compressed and the attribute information of the target video file.

[0134] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0135] Send a compression request for the source video file to the server, and obtain a compression task identifier based on the compression request feedback from the server;

[0136] In the process of executing the compression task corresponding to the source video file on the server side, sending an information acquisition request carrying the compression task identifier to the server side;

[0137] Obtaining video compression information fed back by the server based on the information acquisition request; wherein the video compression information includes attribute information of the source video file, or target video information after the source video file is compressed;

[0138] Based on the video compression information, the client page is updated; wherein the client page displays a source video area and a target video area; the source video area includes a first playback area of ​​the source video file and a first display area of ​​the attribute information of the source video file; the target video area includes an area for displaying the target video information after the source video file is compressed.

[0139] In one embodiment, the target video area includes a second play area of ​​the target video file after the source video file is compressed, and a second display area of ​​the attribute information of the target video file.

[0140] In one embodiment, the target video information includes the target video file after the source video file is compressed and the attribute information of the target video file.

[0141] In one embodiment, if the video compression information is the attribute information of the source video file, an information acquisition request carrying the compression task identifier is resent to the server until the acquired video compression information is the target video information.

[0142] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0143] In response to a compression request for a source video file sent by a client, a compression task corresponding to the source video file is generated through a video file compression interface, and a compression task identifier of the compression task is sent to the client;

[0144] Perform compression tasks to compress source video files;

[0145] During the execution of a compression task, in response to an information acquisition request carrying a compression task identifier sent by the client, video compression information is acquired through a compression monitoring interface according to the compression task identifier, and the video compression information is sent to the client; wherein the video compression information includes attribute information of a source video file, or target video information after the source video file is compressed.

[0146] In one embodiment, when the compression task is completed, the video compression information includes target video information; when the compression task is not completed, the video compression information includes attribute information of the source video file.

[0147] In one embodiment, the target video information includes the target video file after the source video file is compressed and the attribute information of the target video file.

[0148] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0149] Send a compression request for the source video file to the server, and obtain a compression task identifier based on the compression request feedback from the server;

[0150] In the process of executing the compression task corresponding to the source video file on the server side, sending an information acquisition request carrying the compression task identifier to the server side;

[0151] Obtaining video compression information fed back by the server based on the information acquisition request; wherein the video compression information includes attribute information of the source video file, or target video information after the source video file is compressed;

[0152] Based on the video compression information, the client page is updated; wherein the client page displays a source video area and a target video area; the source video area includes a first playback area of ​​the source video file and a first display area of ​​the attribute information of the source video file; the target video area includes an area for displaying the target video information after the source video file is compressed.

[0153] In one embodiment, the target video area includes a second play area of ​​the target video file after the source video file is compressed, and a second display area of ​​the attribute information of the target video file.

[0154] In one embodiment, the target video information includes the target video file after the source video file is compressed and the attribute information of the target video file.

[0155] In one embodiment, if the video compression information is the attribute information of the source video file, an information acquisition request carrying the compression task identifier is resent to the server until the acquired video compression information is the target video information.

[0156] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0157] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0158] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0159] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A video file processing method, It is characterized in that Applied to the server, the method includes: In response to a compression request for a source video file sent by a client, generating a compression task corresponding to the source video file through a video file compression interface, and sending a compression task identifier of the compression task to the client; Executing the compression task to compress the source video file; During the execution of the compression task, in response to the information acquisition request carrying the compression task identifier sent by the client, video compression information is acquired through the compression monitoring interface according to the compression task identifier, and the video compression information is sent to the client; wherein the video compression information includes attribute information of the source video file, or target video information after the source video file is compressed.

2. The method according to claim 1, It is characterized in that In the case where the compression task is completed, the video compression information includes the target video information; in the case where the compression task is not completed, the video compression information includes the attribute information of the source video file.

3. The method according to claim 1 or 2, It is characterized in that The target video information includes the target video file compressed from the source video file and the attribute information of the target video file.

4. A video file processing method, It is characterized in that Applied to a client, the method comprises: Sending a compression request for a source video file to a server, and obtaining a compression task identifier fed back by the server based on the compression request; In the process of the server executing the compression task corresponding to the source video file, sending an information acquisition request carrying the compression task identifier to the server; Obtaining video compression information fed back by the server based on the information acquisition request; wherein the video compression information includes attribute information of the source video file, or target video information after the source video file is compressed; Based on the video compression information, the client page is updated; wherein the client page displays a source video area and a target video area; the source video area includes a first playback area of ​​the source video file and a first display area of ​​the attribute information of the source video file; the target video area includes an area for displaying the target video information after the source video file is compressed.

5. The method according to claim 4, It is characterized in that The target video area includes a second playback area of ​​the target video file after the source video file is compressed, and a second display area of ​​the attribute information of the target video file.

6. The method according to claim 5, It is characterized in that The target video information includes the target video file compressed from the source video file and the attribute information of the target video file.

7. The method according to claim 4, It is characterized in that If the video compression information is attribute information of a source video file, the method includes: Resending the information acquisition request carrying the compression task identifier to the server until the acquired video compression information is the target video information.

8. A video file processing device, It is characterized in that Configured in the server, the device includes: A response module, used for responding to a compression request for a source video file sent by a client, generating a compression task corresponding to the source video file through a video file compression interface, and sending a compression task identifier of the compression task to the client; An execution module, used for executing the compression task to compress the source video file; The first acquisition module is used to respond to the information acquisition request carrying the compression task identifier sent by the client during the execution of the compression task, obtain video compression information through the compression monitoring interface according to the compression task identifier, and send the video compression information to the client; wherein the video compression information includes attribute information of the source video file, or target video information after the source video file is compressed.

9. A video file processing device, It is characterized in that Configured in the client, the device includes: A first request module, used to send a compression request for a source video file to a server, and obtain a compression task identifier fed back by the server based on the compression request; A second request module is used to send an information acquisition request carrying a compression task identifier to the server side during the process of the server side executing the compression task corresponding to the source video file; The second acquisition module is used to acquire the video compression information fed back by the server based on the information acquisition request; wherein the video compression information includes the attribute information of the source video file, or the target video information after the source video file is compressed; An update module is used to update the client page based on video compression information; wherein the client page displays a source video area and a target video area; the source video area includes a first playback area of ​​a source video file and a first display area of ​​attribute information of the source video file; the target video area includes an area for displaying target video information after compression of the source video file.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.