Video file generation method and device, computer equipment and storage medium

By parsing content and encoding the PPT files uploaded by users, high-quality video files are generated, which solves the problems of inefficient and unstable video quality of manually converting PPT files into videos in the prior art, and achieves high efficiency and security , high-definition video generation.

CN119450055APending Publication Date: 2025-02-14CHINA PING AN LIFE INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411434499.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the prior art, the manual conversion of PPT files into video is inefficient and the video quality is unstable, which cannot meet the financial field's demand for efficient and rapid generation of high-quality videos.

Method used

By receiving the PPT file uploaded by the user, performing sensitive content verification and parsing the file content, generating static content and animation effects, encoding processing based on the preset video encoding algorithm, generating video frames, and compressing and encoding processing, and finally according to The output format and parameters input by the user generate the target video file.

Benefits of technology

It realizes automatic, fast and accurate generation of high-quality video files, improves the processing efficiency of PPT file to video, and ensures video quality, meeting the financial field's needs for efficient, safe and high-definition video generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119450055A_ABST
    Figure CN119450055A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of artificial intelligence, and relates to a video file generation method, which is applied to the field of financial science and technology, and comprises the following steps: receiving a PPT file uploaded by a user through an interface; if the PPT file passes the sensitive content verification, performing content analysis on the PPT file to obtain static content and an animation effect; performing coding processing on the static content and the animation effect based on a video coding algorithm to generate a video frame; performing compression coding on the video frame to obtain a target video frame meeting a preset quality condition; performing file generation processing on the target video frame based on the output format and the output parameter input by the user to obtain a corresponding target video file; and returning the target video file to the user. The invention further provides a video file generation device, computer equipment and a storage medium. In addition, the invention also relates to a block chain technology, and the target video file can be stored in a block chain. According to the method, the processing efficiency of converting the PPT file into the video is improved, and the video quality of the generated video file is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of artificial intelligence development technology and financial technology, and in particular to methods, devices, computer equipment and storage media for generating video files. Background Art

[0002] In the financial field, PPT (PowerPoint) presentations, as an important information transmission and display tool, are widely used in various meetings, trainings, product launches, etc. However, the traditional way of manually converting PPT to video has many shortcomings, which seriously restrict the efficiency and effectiveness of information dissemination in the financial field.

[0003] At present, the conversion of PPT to video in the financial field is mainly completed by manual operation. This process involves multiple steps, including editing, playing, recording, and post-editing of PPT files. This method is highly dependent on manpower and has the following significant problems: 1. Inefficiency: The process of manually converting PPT to video is cumbersome and time-consuming. For the situation in the financial field where a large number of demonstration videos are often required, this conversion method obviously cannot meet the needs of efficiency and speed. 2. Unstable video quality: During the manual conversion process, due to the interference of human factors (such as operational errors, equipment performance differences, etc.), the video quality is often uneven, affecting the audience's viewing experience. Summary of the invention

[0004] The purpose of the embodiments of the present application is to propose a method, device, computer equipment and storage medium for generating a video file to solve the technical problems that the existing manual conversion of PPT to video is inefficient and the video quality is unstable.

[0005] In order to solve the above technical problems, the embodiment of the present application provides a method for generating a video file, which adopts the following technical solution:

[0006] Receive the PPT file to be converted uploaded by the user through the preset interface;

[0007] Perform sensitive content verification on the PPT file;

[0008] If the PPT file passes the sensitive content check, the PPT file is parsed to obtain the corresponding static content and animation effects;

[0009] Encoding the static content and the animation effect based on a preset video encoding algorithm to generate corresponding video frames;

[0010] Performing compression encoding processing on the video frame to obtain a target video frame that meets a preset quality condition;

[0011] Obtaining the output format and output parameters input by the user;

[0012] Performing file generation processing on the target video frame based on the output format and the output parameters to obtain a corresponding target video file;

[0013] The target video file is returned to the user.

[0014] Furthermore, the step of encoding the static content and the animation effect based on a preset video encoding algorithm to generate corresponding video frames specifically includes:

[0015] Extract the page content of each page from the PPT file;

[0016] Performing difference analysis on the page content to obtain corresponding difference analysis information;

[0017] Select a target video encoding algorithm from a plurality of preset video encoding algorithms;

[0018] Based on the difference analysis information, the static content and the animation effect are encoded using the target video encoding algorithm to generate corresponding designated video frames;

[0019] The designated video frame is used as the video frame.

[0020] Furthermore, the step of performing compression encoding processing on the video frame to obtain a target video frame that meets a preset quality condition specifically includes:

[0021] Preprocessing the video frame to obtain a corresponding first video frame;

[0022] Compressing the first video frame based on a preset compression algorithm to obtain a corresponding second video frame;

[0023] Performing quality assessment on the second video frame based on a preset quality assessment algorithm;

[0024] If the second video frame passes the quality assessment, the second video frame is used as the target video frame.

[0025] Furthermore, the step of performing file generation processing on the target video frame based on the output format and the output parameters to obtain a corresponding target video file specifically includes:

[0026] Selecting a corresponding container based on the output format;

[0027] Setting metadata of the container;

[0028] Based on the output parameters, writing the target video frame into the container to obtain a corresponding initial video file;

[0029] Optimizing the initial video file to obtain a corresponding designated video file;

[0030] Verifying the use effect of the designated video file;

[0031] If the designated video file is verified by using the effect, the designated video file is used as the target video file.

[0032] Furthermore, the step of optimizing the initial video file to obtain the corresponding designated video file specifically includes:

[0033] Performing a deblocking process on the initial video file to obtain a corresponding first video file;

[0034] Performing color enhancement processing on the first video file to obtain a corresponding second video file;

[0035] Performing contrast adjustment processing on the second video file to obtain a corresponding third video file;

[0036] The third video file is used as the designated video file.

[0037] Furthermore, the step of returning the target video file to the user specifically includes:

[0038] Uploading the target video file to a preset server;

[0039] Obtaining the URL address of the target video file from the server;

[0040] Generate a target video link corresponding to the target video file based on the URL address;

[0041] The target video link is sent to the user.

[0042] Furthermore, the step of performing sensitive content verification on the PPT file specifically includes:

[0043] Extracting text content from the PPT file;

[0044] Call the preset sensitive word library;

[0045] Determining whether there is a designated sensitive word matching the text content in the sensitive word library;

[0046] If there is no designated sensitive word matching the text content in the sensitive word library, it is determined that the PPT file has passed the sensitive content verification; otherwise, it is determined that the PPT file has not passed the sensitive content verification.

[0047] In order to solve the above technical problems, the embodiment of the present application further provides a device for generating a video file, which adopts the following technical solution:

[0048] A receiving module, used for receiving the PPT file to be converted uploaded by the user through a preset interface;

[0049] A verification module, used to verify sensitive content of the PPT file;

[0050] A parsing module, for parsing the content of the PPT file to obtain corresponding static content and animation effects if the PPT file passes the sensitive content verification;

[0051] An encoding module, used for encoding the static content and the animation effect based on a preset video encoding algorithm to generate corresponding video frames;

[0052] A compression module, used to perform compression encoding processing on the video frame to obtain a target video frame that meets a preset quality condition;

[0053] An acquisition module, used to acquire the output format and output parameters input by the user;

[0054] A generating module, configured to perform file generating processing on the target video frame based on the output format and the output parameters to obtain a corresponding target video file;

[0055] The returning module is used to return the target video file to the user.

[0056] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:

[0057] Receive the PPT file to be converted uploaded by the user through the preset interface;

[0058] Perform sensitive content verification on the PPT file;

[0059] If the PPT file passes the sensitive content check, the PPT file is parsed to obtain the corresponding static content and animation effects;

[0060] Encoding the static content and the animation effect based on a preset video encoding algorithm to generate corresponding video frames;

[0061] Performing compression encoding processing on the video frame to obtain a target video frame that meets a preset quality condition;

[0062] Obtaining the output format and output parameters input by the user;

[0063] Performing file generation processing on the target video frame based on the output format and the output parameters to obtain a corresponding target video file;

[0064] The target video file is returned to the user.

[0065] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:

[0066] Receive the PPT file to be converted uploaded by the user through the preset interface;

[0067] Perform sensitive content verification on the PPT file;

[0068] If the PPT file passes the sensitive content check, the PPT file is parsed to obtain the corresponding static content and animation effects;

[0069] Encoding the static content and the animation effect based on a preset video encoding algorithm to generate corresponding video frames;

[0070] Performing compression encoding processing on the video frame to obtain a target video frame that meets a preset quality condition;

[0071] Obtaining the output format and output parameters input by the user;

[0072] Performing file generation processing on the target video frame based on the output format and the output parameters to obtain a corresponding target video file;

[0073] The target video file is returned to the user.

[0074] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0075] The present application first receives a PPT file to be converted uploaded by a user through a preset interface; and performs a sensitive content check on the PPT file; if the PPT file passes the sensitive content check, the PPT file is parsed to obtain corresponding static content and animation effects; then the static content and the animation effects are encoded based on a preset video encoding algorithm to generate corresponding video frames; then the video frames are compressed and encoded to obtain target video frames that meet preset quality conditions; subsequently, the output format and output parameters input by the user are obtained; and based on the output format and the output parameters, the target video frames are subjected to file generation processing to obtain the corresponding target video file; finally, the target video file is returned to the user. The present application obtains the corresponding static content and animation effects by performing content analysis on the PPT file that has passed the sensitive content verification, and then encodes the static content and the animation effects based on a preset video encoding algorithm to generate corresponding video frames, and then compresses and encodes the video frames to obtain target video frames that meet preset quality conditions, and subsequently performs file generation processing on the target video frames based on the output format and the output parameters input by the user, so as to automatically, quickly and accurately generate the corresponding target video files, so that the PPT files can be converted into the corresponding video files efficiently, safely and with high quality, effectively improving the processing efficiency of PPT files to videos and ensuring the video quality of the obtained target video files. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0077] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;

[0078] Figure 2 A flowchart of an embodiment of a method for generating a video file according to the present application;

[0079] Figure 3 is a structural schematic diagram of an embodiment of a device for generating a video file according to the present application;

[0080] Figure 4 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION

[0081] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.

[0082] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0083] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.

[0084] like Figure 1 As shown, the system architecture 100 may include a terminal device 101, a network 102 and a server 103. The terminal device 101 may be a laptop 1011, a tablet computer 1012 or a mobile phone 1013. The network 102 is used to provide a medium for a communication link between the terminal device 101 and the server 103. The network 102 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0085] The user can use the terminal device 101 to interact with the server 103 through the network 102 to receive or send messages, etc. Various communication client applications can be installed on the terminal device 101, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0086] The terminal device 101 can be any electronic device with a display screen and supporting web browsing. In addition to the laptop computer 1011, tablet computer 1012 or mobile phone 1013, the terminal device 101 can also be an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV), a laptop computer, a desktop computer, etc.

[0087] The server 103 may be a server that provides various services, such as a background server that provides support for a web page displayed on the terminal device 101 .

[0088] It should be noted that the method for generating a video file provided in the embodiment of the present application is generally executed by a server / terminal device, and accordingly, the device for generating a video file is generally arranged in the server / terminal device.

[0089] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0090] Continue to refer Figure 2 , showing a flow chart of an embodiment of the method for generating a video file according to the present application. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted. The method for generating a video file provided in the embodiment of the present application can be applied to any scenario where a PPT file needs to be converted to a video, and the method for generating a video file can be applied to products in these scenarios, for example, the conversion of a PPT file to a video in the field of finance and insurance. The method for generating a video file comprises the following steps:

[0091] Step S201, receiving a PPT file to be converted uploaded by a user through a preset interface.

[0092] In this embodiment, the method for generating a video file is executed on an electronic device (eg Figure 1The server / terminal device shown in the figure) can obtain the PPT file through a wired connection or a wireless connection. It should be noted that the above-mentioned wireless connection method may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future. The executive subject of the present application is specifically a video generation system, or simply referred to as a system. The above-mentioned preset interface may be the front-end interface of the system. The above-mentioned PPT file refers to a PPT (slide) file that needs to be converted to a video. And it is necessary to ensure that the content of the uploaded PPT file is complete, undamaged, and the format is compatible. Exemplarily, in the business scenario of insurance product push of financial insurance, the above-mentioned PPT file may be a PPT file containing content recommended by the insurance product.

[0093] Step S202: Check the PPT file for sensitive content.

[0094] In this embodiment, the specific implementation process of the sensitive content verification of the PPT file will be further described in detail in subsequent specific embodiments of the present application, and will not be elaborated on here.

[0095] Step S203: If the PPT file passes the sensitive content verification, the PPT file is parsed to obtain corresponding static content and animation effects.

[0096] In this embodiment, the process of content parsing of a PPT file includes: loading a PPT file using a PPT parsing library, then traversing each page (slide) in the PPT, and processing each slide separately. Then, identifying the text boxes, titles, notes, etc. in the slide, and extracting the text content therein. Keeping the style information of the text such as font, size, color, etc., so as to restore it in video production. And identifying the pictures and chart elements in the slide, extracting their position and size information. For charts, parsing their data and converting them into image format for display in the video. And analyzing the animation effects in the slide, including entry, exit, emphasis, and action path, etc. And recording the triggering conditions (such as click, automatic play, etc.) and duration of each animation. And using a layout analysis algorithm to identify the overall layout of the slide and the positional relationship of each element. This helps to maintain the relative position and layout consistency between elements in video production. Finally, all the information obtained by parsing (including text, pictures, charts, animation effects, and layout information) is recorded as metadata for subsequent video production and encoding optimization. Metadata includes static content (text, pictures, charts, layout information) and animation effects.

[0097] Step S204: encoding the static content and the animation effect based on a preset video encoding algorithm to generate corresponding video frames.

[0098] In this embodiment, the above-mentioned specific implementation process of encoding the static content and the animation effect based on the preset video encoding algorithm to generate corresponding video frames will be further described in detail in subsequent specific embodiments of the present application and will not be elaborated in detail here.

[0099] Step S205: compress and encode the video frame to obtain a target video frame that meets a preset quality condition.

[0100] In this embodiment, the specific implementation process of the above-mentioned compression encoding processing of the video frame to obtain the target video frame that meets the preset quality conditions will be further described in detail in the subsequent specific embodiments of this application, and will not be elaborated on here.

[0101] Step S206, obtaining the output format and output parameters input by the user.

[0102] In this embodiment, the user can adjust the output parameters such as resolution, frame rate, bit rate of the video according to actual needs, and select the desired video output format (such as MP4, AVI, WMV, etc.) or make custom settings. Among them, in order to ensure the quality of conversion, the video output quality is finely controlled. The user can adjust the output format and output parameters of the video according to needs to meet different display needs and device compatibility. And provide custom output options, so that users can output customized video formats according to specific platforms and needs. In addition, it can also provide a preview function of video generation in one step, so that users can view the video effect before conversion to ensure that their requirements are met.

[0103] Step S207: performing file generation processing on the target video frame based on the output format and the output parameters to obtain a corresponding target video file.

[0104] In this embodiment, the above-mentioned specific implementation process of performing file generation processing on the target video frame based on the output format and the output parameters to obtain the corresponding target video file will be described in further details in subsequent specific embodiments of the present application and will not be elaborated in detail here.

[0105] Step S208: returning the target video file to the user.

[0106] In this embodiment, the specific implementation process of returning the target video file to the user will be described in further detail in subsequent specific embodiments of the present application, and will not be elaborated on here.

[0107] The present application first receives a PPT file to be converted uploaded by a user through a preset interface; and performs a sensitive content check on the PPT file; if the PPT file passes the sensitive content check, the PPT file is parsed to obtain corresponding static content and animation effects; then the static content and the animation effects are encoded based on a preset video encoding algorithm to generate corresponding video frames; then the video frames are compressed and encoded to obtain target video frames that meet preset quality conditions; subsequently, the output format and output parameters input by the user are obtained; and based on the output format and the output parameters, the target video frames are subjected to file generation processing to obtain the corresponding target video file; finally, the target video file is returned to the user. The present application obtains the corresponding static content and animation effects by performing content analysis on the PPT file that has passed the sensitive content verification, and then encodes the static content and the animation effects based on a preset video encoding algorithm to generate corresponding video frames, and then compresses and encodes the video frames to obtain target video frames that meet preset quality conditions, and subsequently performs file generation processing on the target video frames based on the output format and the output parameters input by the user, so as to automatically, quickly and accurately generate the corresponding target video files, so that the PPT files can be converted into the corresponding video files efficiently, safely and with high quality, effectively improving the processing efficiency of PPT files to videos and ensuring the video quality of the obtained target video files.

[0108] In some optional implementations, step S204 includes the following steps:

[0109] The page content of each page is extracted from the PPT file.

[0110] In this embodiment, the content of each page is extracted from the PPT file by parsing the internal format of the PPT file, including text, pictures, shapes, layouts, animation information, etc. Among them, text extraction includes: reading the text box and text content in each page. Picture extraction includes: identifying and extracting pictures in the page, and recording their position and size. Shape and layout extraction includes: identifying other graphic elements on the page (such as lines, rectangles, circles, etc.) and their properties. Animation information extraction includes: extracting the trigger conditions, type, duration and target object of the animation.

[0111] Perform a difference analysis on the page content to obtain corresponding difference analysis information.

[0112] In this embodiment, for consecutive PPT pages, their contents are compared one by one to perform difference analysis and identify differences. Specifically, text differences are detected by using a text comparison algorithm (such as the longest common subsequence algorithm), including additions, deletions, and modifications. And check whether the picture has been replaced, and record the changes in the position and size of the picture to obtain the corresponding picture differences. By comparing the type, position, size, color and other attributes of the shape, the corresponding shape and layout differences are obtained. By comparing whether the trigger conditions, type, target object, etc. of the animation have changed, the corresponding animation differences are obtained. Each detected difference is marked and the necessary information is recorded to obtain the corresponding difference analysis information.

[0113] Filter out a target video encoding algorithm from multiple preset video encoding algorithms.

[0114] In this embodiment, there is no specific limitation on the selection of the above-mentioned target video encoding algorithm. According to the complexity of the content of the PPT file and the diversity of the animation effects, a suitable video encoding algorithm (such as H.264, H.265, etc.) can be selected from all video encoding algorithms as the above-mentioned target video encoding algorithm. Among them, the selected target encoding algorithm should be able to efficiently process the text, pictures and animation elements in the PPT while maintaining the quality and clarity of the video.

[0115] Based on the difference analysis information, the static content and the animation effect are encoded using the target video encoding algorithm to generate corresponding designated video frames.

[0116] In this embodiment, in the process of encoding the static content and the animation effect using the target video encoding algorithm, the encoding process is optimized by using the above difference analysis information. Specifically, the inter-frame prediction algorithm is improved by using the difference analysis information between consecutive frames to reduce the amount of data to be encoded. Then, the page containing significant differences is used as a key frame and given a higher priority in video encoding. Furthermore, for pages where only some areas have changed, the video encoding efficiency is improved by encoding and updating only these areas instead of the entire page.

[0117] The designated video frame is used as the video frame.

[0118] The present application extracts the page content of each page from the PPT file; then performs a difference analysis on the page content to obtain corresponding difference analysis information; then selects a target video encoding algorithm from a plurality of preset video encoding algorithms; and then, based on the difference analysis information, uses the target video encoding algorithm to encode the static content and the animation effect to generate a corresponding designated video frame, and uses the designated video frame as the video frame. The present application extracts the page content of each page from the PPT file by performing a difference analysis to obtain corresponding difference analysis information, and then, based on the use of the difference analysis information, optimizes the process of encoding the static content and the animation effect using the target video encoding algorithm to generate a video frame, which can effectively reduce redundant information in the process of converting PPT files to videos, and improve the efficiency of video encoding and the quality of the final video file.

[0119] In some optional implementations of this embodiment, step S205 includes the following steps:

[0120] The video frame is preprocessed to obtain a corresponding first video frame.

[0121] In this embodiment, the video frames are preprocessed, including denoising, sharpening, color correction, etc., to improve the encoding efficiency and video quality of the video frames.

[0122] The first video frame is compressed based on a preset compression algorithm to obtain a corresponding second video frame.

[0123] In this embodiment, motion estimation can be performed on the first video frame to find the motion vectors of pixels or blocks between adjacent frames. Then the motion vector is used to reduce inter-frame redundancy and improve compression efficiency. Then the residual within or between frames is transformed and coded (such as DCT transform, wavelet transform, etc.) to convert the image from the spatial domain to the frequency domain. Among them, the transformed coefficients are easier to compress because most of the energy is concentrated in the low-frequency part. Then the transformed coefficients are quantized to reduce the accuracy and dynamic range of the data. Among them, the quantization parameter determines the balance between the compression ratio and the video quality. Subsequently, an entropy coding method (such as Huffman coding, arithmetic coding, etc.) is used to losslessly compress the quantized data. Among them, entropy coding uses the statistical characteristics of data to reduce redundant information. By using an efficient compression algorithm to compress the first video frame, the size of the video file can be effectively reduced and the redundancy of the data can be reduced.

[0124] The quality of the second video frame is evaluated based on a preset quality evaluation algorithm.

[0125] In this embodiment, the above quality assessment algorithm may specifically adopt algorithms such as SNR, SSIM, etc. The quality assessment algorithm is used to assess the quality of the compressed video to ensure that the video still maintains high clarity and color reproduction after compression.

[0126] If the second video frame passes the quality assessment, the second video frame is used as the target video frame.

[0127] In this embodiment, the quality evaluation result obtained by performing quality evaluation on the second video frame includes whether the second video frame passes the quality evaluation or whether the second video frame fails the quality evaluation. If the second video frame passes the quality evaluation, the second video frame is directly used as the target video frame. If the second video frame fails the quality evaluation, the encoding parameters are adjusted according to the quality evaluation result to optimize the balance between the video quality and the file size. The encoding and quality evaluation process is repeated until a satisfactory result is achieved, thereby obtaining a final target video frame that meets the quality conditions.

[0128] The present application obtains the corresponding first video frame by preprocessing the video frame; then compresses the first video frame based on a preset compression algorithm to obtain the corresponding second video frame; subsequently, quality assessment is performed on the second video frame based on a preset quality assessment algorithm; if the second video frame passes the quality assessment, the second video frame is used as the target video frame. The present application obtains the corresponding first video frame by preprocessing the video frame, and then compresses and performs quality assessment on the first video frame based on the use of a compression algorithm and a quality assessment algorithm, thereby realizing intelligent and accurate completion of the compression processing of the first video frame, effectively reducing the size of the generated video file, reducing the redundancy of the data, and effectively ensuring the video quality of the generated target video frame.

[0129] In some optional implementations, step S207 includes the following steps:

[0130] A corresponding container is selected based on the output format.

[0131] In this embodiment, a matching container may be selected according to a multimedia container format (such as MP4, AVI, WebM, etc.) corresponding to an output format specified by a user.

[0132] The metadata of the container is set.

[0133] In this embodiment, the metadata of the container, including the title, author, creation date, etc., can be set.

[0134] Based on the output parameters, the target video frame is written into the container to obtain a corresponding initial video file.

[0135] In this embodiment, the above output parameters are used as output parameters of the target video frame and the container is configured, and then the target video frame is written into the container, so as to generate a corresponding initial video file.

[0136] The initial video file is optimized to obtain a corresponding designated video file.

[0137] In this embodiment, the above-mentioned specific implementation process of optimizing the initial video file to obtain the corresponding designated video file will be further described in detail in subsequent specific embodiments of the present application, and will not be elaborated on here.

[0138] The use effect of the specified video file is verified.

[0139] In this embodiment, the above-mentioned use effect verification refers to using a video player to play the generated designated video file, verifying its quality, fluency and correctness, and obtaining corresponding use effect verification results. Among them, the effect verification results include verification through use effect, or not verification through use effect.

[0140] If the designated video file is verified by using the effect, the designated video file is used as the target video file.

[0141] This application selects a corresponding container based on the output format and sets the metadata of the container; then based on the output parameters, writes the target video frame into the container to obtain the corresponding initial video file; then optimizes the initial video file to obtain the corresponding designated video file; subsequently verifies the use effect of the designated video file; if the designated video file is verified by the use effect, the designated video file is used as the target video file. This application uses the container corresponding to the output format to quickly generate a customized initial video file that meets user needs, thereby improving the intelligence of constructing the initial video file. In addition, the initial video file will be further optimized and verified for use effect, so as to intelligently improve the video visual quality of the generated video file, making it more suitable for human viewing, thereby improving the user experience.

[0142] In some optional implementations, the optimizing the initial video file to obtain the corresponding designated video file includes the following steps:

[0143] The initial video file is subjected to a deblocking process to obtain a corresponding first video file.

[0144] In this embodiment, the above-mentioned deblocking effect processing refers to reducing or eliminating the block effects caused by video compression, which are usually manifested as obvious boundaries between adjacent blocks. Specifically, by detecting the edge areas of the video file where the block effects are most likely to occur, and then applying filtering techniques such as Wiener filtering, bilateral filtering or block-based adaptive filtering to the detected edge areas, these edges are smoothed to reduce the block effects. In addition, the parameters of the filter (such as strength, window size) can be adjusted according to the degree of the block effect and the characteristics of the video content.

[0145] Performing color enhancement processing on the first video file to obtain a corresponding second video file.

[0146] In this embodiment, the above-mentioned enhanced color processing may include: color space conversion, saturation adjustment, brightness adjustment and color balance processing. Specifically, color space conversion includes converting the video file from the RGB color space to a color space that is more suitable for color processing, such as HSV (hue, saturation, brightness) or YCbCr (brightness, blue color difference, red color difference). Saturation adjustment includes: in the HSV or YCbCr color space, directly adjusting the saturation component to increase the color intensity. Brightness adjustment includes: adjusting the brightness component to ensure that the picture is neither too dark nor overexposed. Color balance includes: adjusting the ratio of the three primary colors of red, green and blue as needed to achieve a better color balance in the video. By performing enhanced color processing on the first video file, the color saturation and brightness of the video can be improved to make the picture more vivid.

[0147] Perform contrast adjustment processing on the second video file to obtain a corresponding third video file.

[0148] In this embodiment, the above contrast adjustment process may include: histogram equalization, contrast stretching and automatic contrast pair adjustment processing. Among them, histogram equalization includes adjusting the histogram distribution of the image to make the contrast of the image more uniform. This usually includes global histogram equalization and local histogram equalization. Contrast stretching includes expanding the brightness range of the image through linear or nonlinear transformation, thereby enhancing the contrast. This can be achieved by adjusting the minimum and maximum brightness values ​​of the image. Automatic contrast pair adjustment includes an automatic algorithm based on the image content to achieve intelligent adjustment of the contrast of the image while retaining the natural appearance of the image.

[0149] The third video file is used as the designated video file.

[0150] The present application performs a deblocking process on the initial video file to obtain a corresponding first video file; then performs a color enhancement process on the first video file to obtain a corresponding second video file; then performs a contrast adjustment process on the second video file to obtain a corresponding third video file; and subsequently uses the third video file as the designated video file. The present application performs a deblocking process, a color enhancement process, and a contrast adjustment process on the initial video file, thereby achieving fast and accurate optimization of the initial video file, effectively improving the visual quality of the optimized designated video file, and reducing the negative impact of video compression.

[0151] In some optional implementations of this embodiment, step S208 includes the following steps:

[0152] The target video file is uploaded to a preset server.

[0153] In this embodiment, the above-mentioned server may specifically be a cloud storage server.

[0154] Obtain the URL address of the target video file from the server.

[0155] In this embodiment, after the target video file is uploaded, the URL address corresponding to the target video file can be obtained from the server.

[0156] A target video link corresponding to the target video file is generated based on the URL address.

[0157] In this embodiment, for video sharing in a link manner, the URL address can be directly used as a target video link corresponding to the target video file.

[0158] The target video link is sent to the user.

[0159] In this embodiment, the target video link can be sent to the user by email, SMS or interface push.

[0160] In addition, the target video file can also be pushed to the user in an embedded display mode. Specifically, according to the requirements of the target platform (such as a web page, social media, etc.), an embedding code (such as HTML <video>Tags, iframe, etc.), and copy the embed code to the page to play the video directly on the page.

[0161] By displaying video files as links or embedding, the output of the solution is friendly and applicable to each system, realizing multi-system sharing and application. This allows different systems to share converted video materials, avoiding repeated conversion and resource waste, and improving the reuse rate and management efficiency of video materials.

[0162] The present application uploads the target video file to a preset server; then obtains the URL address of the target video file from the server; then generates a target video link corresponding to the target video file based on the URL address; and subsequently sends the target video link to the user. The present application uploads the target video file to the server, and then generates a corresponding target video link based on the URL address of the target video file generated in the server, and then sends the target video link to the user, so that the return processing of the target video file can be completed quickly and intelligently, which is conducive to improving the user experience.

[0163] In some optional implementations of this embodiment, step S202 includes the following steps:

[0164] Extract text content from the PPT file.

[0165] In this embodiment, the text in the image of the PPT file can be recognized by using OCR (optical character recognition) technology, and the text information in the PPT file can be extracted in combination with the PPT parsing library, and the obtained text and text information can be integrated to obtain the corresponding text content. The above text content may include the text on the PPT file, the content of the text box, the notes, and the text in the chart or table that may be embedded.

[0166] Call the preset sensitive word library.

[0167] In this embodiment, a comprehensive set of sensitive word libraries is pre-built based on laws and regulations, industry standards and historical experience, and the sensitive word library is regularly updated to reflect new sensitive words and trends.

[0168] It is determined whether there is a designated sensitive word matching the text content in the sensitive word library.

[0169] In this embodiment, the above text content can be matched with all sensitive words contained in the above sensitive word library to obtain the corresponding word matching result. The word matching result includes: there is no specified sensitive word matching the text content in the sensitive word library, or there is a specified sensitive word matching the text content in the sensitive word library. The matching process can be performed by calculating the word similarity. In addition, if sensitive content is detected in the text content of the PPT file, the system will issue an alarm in time and prevent the video conversion process from continuing.

[0170] If there is no designated sensitive word matching the text content in the sensitive word library, it is determined that the PPT file has passed the sensitive content verification; otherwise, it is determined that the PPT file has not passed the sensitive content verification.

[0171] In this embodiment, in addition to using a sensitive word library to check the sensitive content of the PPT file. Natural language processing technology, such as word segmentation, part-of-speech tagging, named entity recognition, etc., can also be used to conduct in-depth analysis of the text content to check the sensitive content of the PPT file. Alternatively, sensitive content in the text can be identified by training or using an existing machine learning model (such as a text classification model). The machine learning model can be trained based on a large amount of annotated data to improve the accuracy and efficiency of sensitive content identification.

[0172] This application extracts text content from the PPT file; then calls a preset sensitive word library; subsequently determines whether there is a specified sensitive word matching the text content in the sensitive word library; if there is no specified sensitive word matching the text content in the sensitive word library, then the PPT file is determined to have passed the sensitive content verification, otherwise the PPT file is determined to have failed the sensitive content verification. This application extracts text content from the PPT file, and then based on the use of a sensitive word library, it can quickly and accurately complete the sensitive content verification process for the PPT file, ensuring the accuracy of the sensitive content verification results obtained, and then helping to identify and shield bad content in the PPT file to ensure the security and compliance of the text content of the PPT file.

[0173] In some optional implementations, the user information obtained is subject to the user's consent and complies with relevant laws and policies.

[0174] In addition, the non-Company software tools or components that appear in the embodiments of the present application are merely examples and do not represent actual use.

[0175] In addition, this application also provides a backend management platform to provide users with centralized management and customized configuration services. Users can upload PPT files, set conversion parameters, view conversion progress, etc. on the backend management platform to achieve a full range of PPT file to video services. The backend management platform also provides conversion history and statistical analysis functions to facilitate users to analyze and manage data.

[0176] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0177] It should be emphasized that in order to further ensure the privacy and security of the above-mentioned target video file, the above-mentioned target video file can also be stored in a node of a blockchain.

[0178] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0179] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0180] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0181] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0182] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0183] Further references Figure 3 , as a response to the above Figure 2 The present application provides an embodiment of a device for generating a video file, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0184] like Figure 3 As shown, the video file generation device 300 described in this embodiment includes: a receiving module 301, a verification module 302, a parsing module 303, an encoding module 304, a compression module 305, an acquisition module 306, a generation module 307 and a return module 308. Among them:

[0185] The receiving module 301 is used to receive the PPT file to be converted uploaded by the user through a preset interface;

[0186] Verification module 302, used to perform sensitive content verification on the PPT file;

[0187] The parsing module 303 is used to parse the content of the PPT file to obtain corresponding static content and animation effects if the PPT file passes the sensitive content verification;

[0188] The encoding module 304 is used to encode the static content and the animation effect based on a preset video encoding algorithm to generate corresponding video frames;

[0189] The compression module 305 is used to perform compression encoding processing on the video frame to obtain a target video frame that meets a preset quality condition;

[0190] An acquisition module 306 is used to acquire the output format and output parameters input by the user;

[0191] A generating module 307, configured to perform file generation processing on the target video frame based on the output format and the output parameters to obtain a corresponding target video file;

[0192] The returning module 308 is used to return the target video file to the user.

[0193] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the method for generating a video file in the aforementioned implementation mode, and are not described in detail here.

[0194] In some optional implementations of this embodiment, the encoding module 304 includes:

[0195] A first extraction submodule is used to extract the page content of each page from the PPT file;

[0196] An analysis submodule, used to perform difference analysis on the page content to obtain corresponding difference analysis information;

[0197] A screening submodule, used to screen out a target video encoding algorithm from a plurality of preset video encoding algorithms;

[0198] An encoding submodule, configured to encode the static content and the animation effect using the target video encoding algorithm based on the difference analysis information to generate corresponding designated video frames;

[0199] The first determining submodule is configured to use the designated video frame as the video frame.

[0200] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the method for generating a video file in the aforementioned implementation mode, and are not described in detail here.

[0201] In some optional implementations of this embodiment, the compression module 305 includes:

[0202] A preprocessing submodule, used to preprocess the video frame to obtain a corresponding first video frame;

[0203] A compression submodule, configured to compress the first video frame based on a preset compression algorithm to obtain a corresponding second video frame;

[0204] An evaluation submodule, configured to perform quality evaluation on the second video frame based on a preset quality evaluation algorithm;

[0205] The second determination submodule is configured to use the second video frame as the target video frame if the second video frame passes the quality assessment.

[0206] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the method for generating a video file in the aforementioned implementation mode, and are not described in detail here.

[0207] In some optional implementations of this embodiment, the generating module 307 includes:

[0208] A selection submodule, used for selecting a corresponding container based on the output format;

[0209] A setting submodule, used to set metadata of the container;

[0210] A writing submodule, used for writing the target video frame into the container based on the output parameters to obtain a corresponding initial video file;

[0211] An optimization submodule, used for optimizing the initial video file to obtain a corresponding designated video file;

[0212] A verification submodule, used to verify the use effect of the specified video file;

[0213] The third determining submodule is configured to use the designated video file as the target video file if the designated video file is verified by using the effect.

[0214] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the method for generating a video file in the aforementioned implementation mode, and are not described in detail here.

[0215] In some optional implementations of this embodiment, the optimization submodule includes:

[0216] A first processing unit, configured to perform a deblocking process on the initial video file to obtain a corresponding first video file;

[0217] A second processing unit, configured to perform color enhancement processing on the first video file to obtain a corresponding second video file;

[0218] A third processing unit, configured to perform contrast adjustment processing on the second video file to obtain a corresponding third video file;

[0219] A determining unit is configured to use the third video file as the designated video file.

[0220] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the method for generating a video file in the aforementioned implementation mode, and are not described in detail here.

[0221] In some optional implementations of this embodiment, the returning module 308 includes:

[0222] An uploading submodule, used for uploading the target video file to a preset server;

[0223] An acquisition submodule, used for acquiring the URL address of the target video file from the server;

[0224] A generating submodule, used for generating a target video link corresponding to the target video file based on the URL address;

[0225] The sending submodule is used to send the target video link to the user.

[0226] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the method for generating a video file in the aforementioned implementation mode, and are not described in detail here.

[0227] In some optional implementations of this embodiment, the verification module 302 includes:

[0228] A second extraction submodule is used to extract text content from the PPT file;

[0229] The calling submodule is used to call the preset sensitive word library;

[0230] A judgment submodule, used to judge whether there is a designated sensitive word matching the text content in the sensitive word library;

[0231] The determination submodule is used to determine that the PPT file has passed the sensitive content verification if there is no designated sensitive word matching the text content in the sensitive word library, and otherwise determine that the PPT file has not passed the sensitive content verification.

[0232] In this embodiment, the operations performed by the above modules or units correspond one-to-one to the steps of the method for generating a video file in the aforementioned implementation mode, and are not described in detail here.

[0233] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.

[0234] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components 41-43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0235] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.

[0236] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as computer-readable instructions of a method for generating a video file, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.

[0237] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run computer-readable instructions stored in the memory 41 or process data, such as computer-readable instructions for running the method for generating the video file.

[0238] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.

[0239] The present application also provides another embodiment, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by at least one processor to enable the at least one processor to perform the steps of the method for generating a video file as described above.

[0240] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0241] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.< / video>

Claims

1. A method for generating a video file, characterized in that: The steps include: Receive the PPT file to be converted uploaded by the user through the preset interface; Perform sensitive content verification on the PPT file; If the PPT file passes the sensitive content check, the PPT file is parsed to obtain the corresponding static content and animation effects; Encoding the static content and the animation effect based on a preset video encoding algorithm to generate corresponding video frames; Performing compression encoding processing on the video frame to obtain a target video frame that meets a preset quality condition; Obtaining the output format and output parameters input by the user; Performing file generation processing on the target video frame based on the output format and the output parameters to obtain a corresponding target video file; The target video file is returned to the user.

2. The method for generating a video file according to claim 1, characterized in that: The step of encoding the static content and the animation effect based on a preset video encoding algorithm to generate corresponding video frames specifically includes: Extract the page content of each page from the PPT file; Performing difference analysis on the page content to obtain corresponding difference analysis information; Select a target video encoding algorithm from a plurality of preset video encoding algorithms; Based on the difference analysis information, the static content and the animation effect are encoded using the target video encoding algorithm to generate corresponding designated video frames; The designated video frame is used as the video frame.

3. The method for generating a video file according to claim 1, characterized in that: The step of performing compression encoding processing on the video frame to obtain a target video frame that meets the preset quality condition specifically includes: Preprocessing the video frame to obtain a corresponding first video frame; Compressing the first video frame based on a preset compression algorithm to obtain a corresponding second video frame; Performing quality assessment on the second video frame based on a preset quality assessment algorithm; If the second video frame passes the quality assessment, the second video frame is used as the target video frame.

4. The method for generating a video file according to claim 1, characterized in that: The step of performing file generation processing on the target video frame based on the output format and the output parameters to obtain a corresponding target video file specifically includes: Selecting a corresponding container based on the output format; Setting metadata of the container; Based on the output parameters, writing the target video frame into the container to obtain a corresponding initial video file; Optimizing the initial video file to obtain a corresponding designated video file; Verifying the use effect of the designated video file; If the designated video file is verified by using the effect, the designated video file is used as the target video file.

5. The method for generating a video file according to claim 4, characterized in that: The step of optimizing the initial video file to obtain the corresponding designated video file specifically includes: Performing a deblocking process on the initial video file to obtain a corresponding first video file; Performing color enhancement processing on the first video file to obtain a corresponding second video file; Performing contrast adjustment processing on the second video file to obtain a corresponding third video file; The third video file is used as the designated video file.

6. The method for generating a video file according to claim 1, characterized in that: The step of returning the target video file to the user specifically includes: Uploading the target video file to a preset server; Obtaining the URL address of the target video file from the server; Generate a target video link corresponding to the target video file based on the URL address; The target video link is sent to the user.

7. The method for generating a video file according to claim 1, characterized in that: The step of performing sensitive content verification on the PPT file specifically includes: Extracting text content from the PPT file; Call the preset sensitive word library; Determining whether there is a designated sensitive word matching the text content in the sensitive word library; If there is no designated sensitive word matching the text content in the sensitive word library, it is determined that the PPT file has passed the sensitive content verification; otherwise, it is determined that the PPT file has not passed the sensitive content verification.

8. A device for generating a video file, characterized in that: include: A receiving module, used for receiving the PPT file to be converted uploaded by the user through a preset interface; A verification module, used to verify sensitive content of the PPT file; A parsing module, for parsing the content of the PPT file to obtain corresponding static content and animation effects if the PPT file passes the sensitive content verification; An encoding module, used for encoding the static content and the animation effect based on a preset video encoding algorithm to generate corresponding video frames; A compression module, used to perform compression encoding processing on the video frame to obtain a target video frame that meets a preset quality condition; An acquisition module, used to acquire the output format and output parameters input by the user; A generating module, configured to perform file generating processing on the target video frame based on the output format and the output parameters to obtain a corresponding target video file; The returning module is used to return the target video file to the user.

9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the method for generating a video file according to any one of claims 1 to 7 when executing the computer-readable instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the method for generating a video file according to any one of claims 1 to 7 are implemented.