Video processing method and device, electronic equipment and storage medium

By combining sentiment analysis and audio features, music elements are automatically inserted, solving the problem of time-consuming and tedious background music addition in video editing, and improving the emotional expression of videos and user experience.

CN118890500APending Publication Date: 2024-11-01NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411135469.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

Adding background music to video editing using existing techniques is time-consuming and cumbersome, and novice creators often find it difficult to accurately insert music elements, which affects the emotional expression of the video.

Method used

By acquiring user review data of the target video, performing sentiment analysis, determining keyframes, and automatically adding music elements, and then adjusting them based on audio characteristics, intelligent insertion of music elements is achieved.

Benefits of technology

It improves the emotional delivery of videos, simplifies the workflow for novice creators, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890500A_ABST
    Figure CN118890500A_ABST
Patent Text Reader

Abstract

The invention provides a video processing method and device, electronic equipment and a storage medium, and relates to the technical field of computer processing. The method comprises the following steps: acquiring a target video and multiple pieces of user evaluation data for the target video; performing sentiment analysis processing on the evaluation data of each user to obtain a sentiment analysis result; determining a key frame in the target video and a target type of a to-be-added music element at the key frame according to an emotion analysis result; and according to the target type of the music element to be added at the key frame and the audio feature of the target video, adjusting the audio of the target video to obtain a processed video. The invention provides a mode of automatically adding the music elements in the video, emotion analysis is performed on the evaluation data of each user, the emotional tendency expressed by the evaluation data of the user is identified, and the key frame causing the strong emotional response of the user in the target video is determined, so that the music elements of the appropriate type are added at the key frame, and the user experience is improved. And thus, a processed video is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In the digital media age, video editing is one of the important skills for many creators, and adding appropriate background music during the video editing process can greatly enhance the emotional expression and viewing experience of the video.

[0003] However, for novice creators, when adding background music, they often need to manually insert musical elements such as drum beats. This process is time-consuming and cumbersome, and whether the musical elements can be inserted accurately is also extremely challenging for novice creators. Summary of the invention

[0004] The purpose of this application is to provide a video processing method, device, electronic device and storage medium to address the deficiencies in the above-mentioned prior art, so as to solve the problem that the process of adding music elements to audio in the prior art is time-consuming and cumbersome, and is not conducive to the practice of novice creators.

[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0006] In a first aspect, an embodiment of the present application provides a video processing method, the method comprising:

[0007] Acquire a target video and a plurality of user evaluation data for the target video;

[0008] Performing sentiment analysis on each of the user evaluation data to obtain a sentiment analysis result, wherein the sentiment analysis result includes a sentiment category and / or a sentiment score of each of the user evaluation data;

[0009] Determine, according to the sentiment analysis result, a key frame in the target video and a target type of a music element to be added at the key frame;

[0010] According to the target type of the music element to be added at the key frame and the audio features of the target video, the audio of the target video is adjusted to obtain a processed video.

[0011] In a second aspect, an embodiment of the present application provides a video processing device, the device comprising:

[0012] An acquisition module, used to acquire a target video and a plurality of user evaluation data for the target video;

[0013] A sentiment analysis module, used to perform sentiment analysis on each of the user evaluation data to obtain a sentiment analysis result, wherein the sentiment analysis result includes a sentiment category and / or a sentiment score of each of the user evaluation data;

[0014] A determination module, used to determine the key frames in the target video and the target types of the music elements to be added at the key frames according to the emotion analysis result;

[0015] The adjustment module is used to adjust the audio of the target video according to the target type of the music element to be added at the key frame and the audio characteristics of the target video to obtain a processed video.

[0016] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of the video processing method as described in any one of the first aspects above.

[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the video processing method as described in any one of the first aspects above are executed.

[0018] According to the video processing method, device, electronic device and storage medium of the embodiment of the present application, a target video and multiple user evaluation data for the target video are obtained; the emotional analysis processing is performed on each user evaluation data to obtain the emotional analysis result; according to the emotional analysis result, the key frame in the target video and the target type of the music element to be added at the key frame are determined; according to the target type of the music element to be added at the key frame and the audio characteristics of the target video, the audio of the target video is adjusted to obtain the processed video. According to the embodiment of the present application, by performing emotional analysis on each user evaluation data, the emotional tendency expressed by the user evaluation data is identified, and the key frame in the target video that causes a strong emotional response from the user is further determined. For the key frame, the type of the music element to be added at the key frame is determined in combination with the emotional analysis result, and the audio characteristics of the target video are used to ensure that the newly added music element is more harmoniously integrated to enhance the emotional communication effect of the video. The method of automatically adjusting the music elements in the video based on the emotional analysis results provided by the present application can not only help creators better understand and meet the emotional needs of the audience and improve the user experience, but also for novice creators, there is no need to manually add music elements, and based on the automated implementation process, attractive and rich emotional communication effects can be created. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 A schematic diagram of a process flow of a video processing method provided by an embodiment of the present application is shown;

[0021] Figure 2 A schematic diagram of a process for determining a music element type provided in an embodiment of the present application is shown;

[0022] Figure 3 A schematic diagram showing a flow chart of another method for determining the type of a music element provided in an embodiment of the present application;

[0023] Figure 4 A schematic diagram of a flow chart of an audio adjustment method provided in an embodiment of the present application is shown;

[0024] Figure 5 A schematic diagram of the structure of a video processing device provided in an embodiment of the present application is shown;

[0025] Figure 6 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0026] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0027] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0028] In order to enable those skilled in the art to use the content of this application, the following implementation is provided in combination with the specific application scenario of "adding drum beats according to the rhythm of the sound source drum beats and the user's emotions". For those skilled in the art, the general principles defined here can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application. Although this application is mainly described around the video processing method, it should be understood that this is only an exemplary embodiment.

[0029] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0030] Drum beats are the rhythms produced by the beating of drum instruments in music. They are often an important element for maintaining rhythm and beat. They can inject vitality and power into music, and can also help other instruments and songs maintain a unified rhythm. The application scenario of the video processing method provided in the embodiment of the present application is video editing. According to the audio features corresponding to the audio of the video and the sentiment analysis of user comment data, the key frames and the types of music elements to be added at the key frames are determined, and the sound effects of the music elements added at the key frames are adjusted to obtain the adjusted video, so that the adjusted video has a stronger emotional communication effect.

[0031] Figure 1 A schematic diagram of a video processing method provided by an embodiment of the present application is shown. Figure 1 As shown, the method specifically comprises the following steps:

[0032] S101: Obtain a target video and multiple user evaluation data for the target video.

[0033] Optionally, the target video may be a film or TV video, and the user evaluation data may be evaluation data of the film or TV video by all users on major film and TV platforms and real-time bullet screen data.

[0034] Exemplarily, the data source of the user evaluation data to be captured is determined, and the data source may be a website that allows users to post real-time comments while watching videos, and the comments are displayed on the screen in the form of banners, forming a "bullet screen" effect. On the basis of selecting the target website, the HTTP library is used to send a GET request to the target website to obtain the HTML source code of the target website, and the HTML parsing library is used to read and parse the user evaluation data from the HTML source code. In this process, the user evaluation data may be encapsulated in a specific tag or attribute, so it usually involves finding and locating the specific tag or attribute containing the user evaluation data, and extracting the required user evaluation data from the specific tag or attribute.

[0035] S102: Perform sentiment analysis on each user evaluation data to obtain a sentiment analysis result, where the sentiment analysis result includes a sentiment category and / or a sentiment score of each user evaluation data.

[0036] Optionally, through natural language processing technology, sentiment analysis is performed on each collected user evaluation data. The purpose of this processing is to identify the emotional tendency expressed by the user evaluation data, such as positive, negative or neutral, and then refine the user's emotional tendency, determine the emotional category of the user evaluation data, such as touching, joy, fear, etc., and obtain the sentiment analysis result.

[0037] For example, natural language processing technology is used to perform sentiment analysis on user comment data and real-time barrage data. Based on tools such as bag-of-words models and deep learning models, the emotional color of user evaluation data can be inferred through factors such as vocabulary selection, tone, and context in the user evaluation data.

[0038] S103. Determine the key frames in the target video and the target types of the music elements to be added at the key frames according to the sentiment analysis result.

[0039] Optionally, a key frame in the target video, that is, a moment that causes a strong emotional response from the user, is determined based on the emotion analysis result. For the key frame, it is further determined what type of music element needs to be added at the key frame to enhance or adjust the audience's emotional experience.

[0040] For example, if the emotional tendency of the user evaluation data indicated by the emotional analysis result is positive, cheerful or inspiring music elements can be added at the key frame; if the emotional tendency of the user evaluation data indicated by the emotional analysis result is negative, sad or tense music elements can be added at the key frame.

[0041] S104: According to the target type of the music element to be added at the key frame and the audio features of the target video, the audio of the target video is adjusted to obtain a processed video.

[0042] Optionally, by performing audio analysis on the audio of the target video, the audio features of the target video are determined. For example, by performing frequency-domain analysis on the audio of the target video, the audio waveform corresponding to the audio of the target video is obtained. Based on the information provided by the audio waveform and the target type of the music element to be added at the determined key frame, the audio of the target video is adjusted, and the processed video is output. Among them, the music elements to be added have been optimized according to the user's emotional feedback. Therefore, based on the newly added music elements, the emotional conveyance effect of the video is strengthened, making the processed video better meet the emotional needs of users.

[0043] Based on this, according to the video processing method provided by the embodiments of the present application, by performing emotional analysis on each user evaluation data, the emotional tendency expressed by the user evaluation data is identified, and further the key frames in the target video that cause strong emotional reactions from users are determined. For this key frame, the type of the music element to be added at the key frame is determined in combination with the emotional analysis result, and the newly added music element is ensured to be more harmoniously integrated through the audio features of the target video, so as to strengthen the emotional conveyance effect of the video. The method provided by the present application for automatically adjusting the music elements in the video based on the emotional analysis result can not only help creators better understand and meet the emotional needs of the audience and improve the user experience, but also for novice creators, there is no need to manually add music elements, and works with attractive and rich emotional conveyance effects can be created based on the automated implementation process.

[0044] As a possible implementation manner, the above step S102 performs emotional analysis processing on each user evaluation data to obtain an emotional analysis result, including:

[0045] Preprocess each user evaluation data to obtain the processed user evaluation data; use the pre-trained emotional classification model to perform emotional analysis processing on the processed user evaluation data to obtain the emotional analysis result.

[0046] Optionally, preprocessing each user evaluation data, that is, performing data processing and cleaning on each user evaluation data. This process mainly involves denoising, duplicate removal, word segmentation, stop word filtering, and normalization processing. Among them, denoising refers to removing irrelevant characters and symbols in the user evaluation data, duplicate removal refers to deleting duplicate user evaluation data, word segmentation refers to splitting the user evaluation data into independent words or phrases, stop word filtering refers to removing common but meaningless words, such as "de" (of), "shi" (is), etc., and normalization refers to uniformly converting the text corresponding to the user evaluation data to lowercase and removing redundant spaces and punctuation marks.

[0047] Optionally, a pre-trained sentiment classification model is used for sentiment analysis, the essence of which is to use natural language processing technology to perform sentiment analysis on user comments and barrage data. The obtained sentiment analysis results include the sentiment categories corresponding to each user's evaluation data, but on this basis, the sentiment scores corresponding to the sentiment categories can be further defined.

[0048] Among them, sentiment classification models include Bag of Words, Term Frequency-Inverse Document Frequency (TF-IDF), and deep learning models (Bidirectional Encoder Representations from Transformers, BERT). The Bag of Words model constructs a vocabulary by counting the words that appear in all user evaluation data, ignoring the word order and grammatical structure, and converts each user evaluation data into a word frequency vector. Each dimension in the word frequency vector represents a word, and the value represents the number of times the word appears. TF-IDF calculates the word frequency and inverse document frequency by counting the frequency of each word in each user evaluation data, and converts each user evaluation data into a TF-IDF vector. The higher the TF-IDF value of a word, the more important the word is, which can be used as a basis for determining the sentiment category. The deep learning model converts the user evaluation data into the input format required by the model, extracts the feature vector of the user evaluation data, and inputs the feature vector into the classifier for sentiment analysis to obtain the sentiment category of the user evaluation data.

[0049] It should be noted that each model has its own advantages and disadvantages. In this application, a multi-model integration method can be combined, such as combining a bag-of-words model with a deep learning model, and using integrated learning to improve the accuracy and robustness of a single model for sentiment analysis.

[0050] Exemplarily, the sentiment classification model is pre-trained. The model training process includes data preparation, model selection, model training, and model evaluation. Specifically, training samples and sample labels are obtained, and the training samples are divided into a training set and a test set. Among them, the training samples include multiple user evaluation data and barrage data, and the sample labels are used to indicate the emotion category expressed by the training samples. On this basis, a suitable target sentiment analysis model is selected from multiple sentiment analysis models, and the target sentiment analysis model is trained using the training samples and sample labels. During the model training process, the target sentiment analysis model will learn the mapping relationship from barrage data to sentiment labels, and adjust hyperparameters to train the above-mentioned sentiment classification model. In addition, after the training is completed, the performance of the trained sentiment classification model is evaluated using the above-mentioned test set, and evaluation indicators such as model accuracy and recall are calculated to evaluate the performance of the sentiment classification model for unknown data, and whether the sentiment classification model is overfitting or underfitting.

[0051] Based on this, since user evaluation data may contain a variety of expressions and cultural backgrounds, the processed user evaluation data can be subjected to sentiment analysis using a pre-trained sentiment classification model, which can accurately analyze the sentiment tendency corresponding to the user evaluation data and accurately perform sentiment classification.

[0052] Figure 2 A schematic diagram of a method for determining the type of a music element provided in an embodiment of the present application is shown. As a possible implementation method, refer to Figure 2 As shown, the above step S103 determines the key frames in the target video and the target types of the music elements to be added at the key frames according to the emotion analysis results, and specifically includes the following steps:

[0053] S201. Determine the video time point corresponding to each user evaluation data in the target video according to the time information of each user evaluation data.

[0054] Optionally, extract audio data of the target video; determine the time axis of the target video based on the sampling frequency and data length of the audio data, the time axis including multiple consecutive video time points; convert the time information of each user evaluation data into a time point in the target video, and obtain the video time point corresponding to each user evaluation data in the target video.

[0055] For example, when the target video is imported into the editing software, the audio data of the target video is first extracted, and the time axis of the target video is determined by the sampling frequency and data length of the audio data. The time axis is a series of continuous time points, representing the playback timeline of the target video. Among them, the sampling frequency determines the accuracy of the time axis, that is, the interval between two adjacent time points, and the data length determines the total range of the time axis.

[0056] For example, user evaluation data usually contains the timestamp of the evaluation, that is, the comments left by the user when the target video is played to a certain moment, so when converting the time information of each user evaluation data to a time point in the target video, it is necessary to align the timestamp of the user evaluation data with the start time of the target video to ensure that the user evaluation data is accurately mapped to the corresponding playback position of the target video. Based on this conversion process, each user evaluation data is associated with one or more time points on the timeline, so that the synchronization between the user evaluation data and the target video content can be intuitively viewed, which is convenient for subsequent analysis of the user's reaction to certain specific moments in the video.

[0057] It should be noted that the main function of calculating the time axis is to match the audio data with the video time points, which is convenient for further audio analysis and processing. Through the time axis, the time corresponding to each sampling point can be accurately located in the audio waveform, so as to identify the audio peaks and audio troughs, and then determine the bass and treble positions in the audio, so as to automatically mark the music elements.

[0058] S202: Determine at least one emotion peak time point in the target video according to the emotion analysis result of each user evaluation data at each video time point in the target video.

[0059] Optionally, the sentiment analysis result includes a sentiment score, and the sentiment score of each video time point can be determined according to the sentiment score of each user evaluation data at each video time point; the video time points whose sentiment scores meet preset conditions are respectively used as sentiment peak time points.

[0060] Among them, the preset condition is a pre-set threshold or judgment rule, which is used to screen out the time points at which the user's emotional response is relatively strong. For example, each video time point can be sorted according to the emotional score of each video time point, and the video time points in the first n order of arrangement can be respectively used as an emotional peak time point, or if the emotional score of a certain video time point is greater than the emotional scores of several video time points before and after, the video time point can also be used as an emotional peak time point. In addition, an emotional score threshold can also be set, such as 0.7, which is not specifically limited. When the emotional score of a video time point is greater than the preset threshold, the video time point can be used as an emotional peak time point.

[0061] Exemplarily, the sentiment score is usually a specific numerical value used to represent the intensity and direction of the sentiment expressed by the user evaluation data. Specifically, the sentiment score ranges from -1 to +1, where -1 represents a negative sentiment, +1 represents a positive sentiment, and 0 represents a neutral sentiment. At each time point of the target video, the sentiment scores of all user evaluation data corresponding to that time point can be used to calculate an average sentiment score, thereby ensuring that each time point has an associated sentiment score, which reflects the user's overall emotional response to the video content at that time point.

[0062] S203: taking the video frames at each emotion peak time point as a key frame.

[0063] For example, by performing sentiment analysis on user evaluation data, the sentiment peak time point is determined, and the video frame at the sentiment peak time point is used as a key frame. Since the sentiment peak time point is the time point when the user's emotional response in the target video is the strongest, this time point is usually the climax, turning point or a particularly eye-catching moment of the video content, and the video frame at this time point is defined as a key frame, which means that the key frame visually carries important plot or emotional information.

[0064] S204: Determine the target type of the music element to be added at each key frame according to the emotion analysis results of each user evaluation data at each emotion peak time point.

[0065] Optionally, music elements include but are not limited to background music and drum beats. The addition of music elements can have a significant impact on the emotional atmosphere of the target video. The target type of music elements refers to the music style or emotional orientation expected according to the content of the target video and the results of the emotional analysis. Exemplarily, the emotional analysis results of the user evaluation data at and near that time point are referenced at each key frame. If the emotional analysis results of most of the user evaluation data are positive or excited emotions, the type of music element added at the key frame may be fast-paced or high-energy to enhance the positive emotions. Conversely, if the emotional analysis results of the user evaluation data are negative or melancholy emotions, the type of music element added at the key frame may be slow-paced or low-pitched to match the sad or heavy atmosphere in the video.

[0066] Figure 3 FIG. 2 is a flow chart showing another method for determining the type of a music element provided in an embodiment of the present application. As a possible implementation method, refer to Figure 3 As shown, the above step S204 specifically includes the following steps:

[0067] S301 . Determine the emotion category of each user evaluation data at each emotion peak time point according to the emotion analysis result of each user evaluation data at each emotion peak time point.

[0068] Optionally, the emotion category of each user evaluation data at each emotion peak time point is determined according to the emotion score of each user evaluation data at each emotion peak time point and the second mapping relationship between the emotion score and the emotion category.

[0069] For example, the basic classification of emotion categories is positive, negative and neutral. The emotion score represents the intensity and direction of emotion and is an important basis for refining emotion categories. Specific emotion categories such as touching, comedy, and thriller are determined by combining emotion scores and keywords.

[0070] Exemplarily, the second mapping relationship refers to further refinement of the classification after the preliminary sentiment analysis (positive, negative or neutral), for example, when the sentiment score is +0.8, the mapped sentiment category is "joy", and when the sentiment score is -0.6, the mapped sentiment category is "sadness". Therefore, based on determining the sentiment score of each user evaluation data at each sentiment peak time point, the sentiment category of each user evaluation data at each sentiment peak time point can be determined based on the second mapping relationship.

[0071] S302: Determine the emotion category corresponding to each emotion peak time point according to the emotion category of each user evaluation data at each emotion peak time point.

[0072] Exemplarily, when the emotion categories of each user evaluation data at the emotion peak time point are quite different, the dominant emotion category at the emotion peak time point can be used as the emotion category corresponding to the emotion peak time point. Specifically, by calculating the number of user evaluation data corresponding to each emotion category, the emotion category with the most occurrences is used as the dominant emotion category at the emotion peak time point. Alternatively, for the emotion intensity of each user evaluation data, such as the degree of negativity or positivity, a weighted average is taken for each emotion category according to the emotion intensity, and the emotion category with the highest weighted average is selected as the dominant emotion category at the emotion peak time point. It should be noted that the above method of determining the dominant emotion category at the emotion peak time point is not limited to this.

[0073] For example, if no one emotion category is clearly dominant at an emotion peak time point, the emotion peak time point may be marked as a mixed emotion category or multiple parallel emotion categories may be listed.

[0074] S303: Determine the target type of the music element to be added at the key frame at each emotion peak time point according to the first mapping relationship between the emotion category and the music type and the emotion category corresponding to each emotion peak time point.

[0075] Exemplarily, the target type refers to the type of music that needs to be added to match the video content and the user's emotional response. For example, if the emotional category is "excited", the target type may be music with a brisk rhythm and vitality. The first mapping relationship is used to associate different emotional categories with specific music types. For example, if the emotional category is "joy", the corresponding music type is "cheerful and bright", and if the emotional category is "sad", the corresponding music type is "slow and soft", etc. Once the emotional category corresponding to the emotional peak time point is determined, the above-mentioned first mapping relationship can be used to determine the music type of the music element to be added at the key frame at the emotional peak time point.

[0076] Based on this, the sentiment analysis results and preset mapping relationships are used to personalize and intelligently select the music type of the music elements to be added at the key frames, thereby enhancing the appeal and viewing value of the video.

[0077] Figure 4 A schematic diagram of a flow chart of an audio adjustment method provided in an embodiment of the present application is shown. Figure 4 As shown, the above step S104 adjusts the audio of the target video according to the target type of the music element to be added at the key frame and the audio features of the target video to obtain a processed video, which specifically includes the following steps:

[0078] S401. According to the target type of the music element to be added at the key frame, add the music element of the target type at the key frame.

[0079] For example, according to the target type of the music element to be added at the key frame, a music element that meets the target type can be selected or created from the music library, and the music element can be edited and mixed to ensure that the music element is seamlessly integrated into the key frame. It should be noted that adding music elements, such as drum beats, at key frames is not just a simple overlay, but also requires consideration of the volume, pitch, rhythm and matching degree with the video content, as well as how to transition to other music or silent parts in the video.

[0080] In addition to inserting drum beats at keyframes, you can also add additional effects such as dynamic effects, sound effects, subtitles or annotations. The above additions are independent of adding drum beats, but can work together to improve the overall effect of the processed video. For example, you can add subtitles or annotations at keyframes to explain the current emotional state, and insert corresponding drum beats and sound effects at the same time to enhance the user experience.

[0081] For example, the emotional expression and viewing experience of the video can be enhanced by adding subtitles or annotations at key frames. Among them, subtitles are generally displayed in text, used to convey the content of the dialogue in the video, describe the scene or explain important information, etc., which helps users better understand the video content, and in video clips, subtitles can be static or dynamic, that is, subtitles can change with the changes in the video content at the key frames. Annotations refer to additional text or graphic elements that are used to highlight specific details or emotional peaks at key frames, which helps users better understand the key content and emotional turning points in the video, thereby enhancing the expressiveness of the video content.

[0082] For example, when adding subtitles at key frames, you can set the style and animation effects of the subtitles, for example, set the color, font, size and other attributes of the subtitle text to match the overall style of the video. In addition, you can also add animation effects such as fade-in, fade-out and movement to the subtitle text to make it more attractive to users. When adding annotations at key frames, you can insert annotation text or graphics at the key frames, such as arrows, highlight boxes, etc., or use eye-catching colors or animation effects to highlight the annotation content.

[0083] S402: Determine audio peaks and audio troughs in the audio of the target video according to audio features of the target video.

[0084] Exemplarily, the audio feature of the target video is an audio waveform. Based on the audio waveform, using a signal processing algorithm, such as an envelope detection method, the audio peaks and audio troughs in the audio can be determined, and then audio features such as rhythm and intensity can be extracted according to the positions of the audio peaks and audio troughs. The bass position and the accent position in the audio can be identified and marked by the height of the audio peaks and audio troughs. This processing process can be implemented through audio filters, such as high-pass filters and low-pass filters, or through effect plug-ins in audio synthesis software.

[0085] For example, in the audio processing process of determining the audio features of the target video, the gain value of the audio signal can be adjusted using a custom enhancement and attenuation function, wherein enhancement refers to increasing the amplitude of the audio signal, attenuation refers to reducing the amplitude of the audio signal, and the gain value is used to characterize the magnitude of enhancement or attenuation.

[0086] S403: Determine adjustment properties of the music element added at the key frame according to the audio peaks and the audio troughs, and adjust the music element added at the key frame based on the adjustment properties to obtain a processed video.

[0087] Optionally, determining the adjustment attribute of the music element added at the key frame according to the audio peaks and the audio troughs includes: determining the type of the sound range position where the key frame is located based on the audio peaks and the audio troughs, and determining the adjustment attribute according to the type of the sound range position. The sound range position type includes a bass type and a treble type, and the adjustment attribute includes enhancing the sound effect and reducing the sound effect.

[0088] Exemplarily, after determining the key frame, it is necessary to further determine whether the key frame is in the bass position or the accent position, that is, to determine the type of range position where the key frame is located, and then determine whether to enhance or weaken the effect of the music element added at the key frame according to the type of range position where the key frame is located.

[0089] Optionally, the music elements added at the key frames are adjusted based on the adjustment properties to obtain a processed video, including: if the adjustment property is to enhance the sound effect, then the preset enhanced audio is superimposed at the key frame to enhance the drum beats added at the key frame; if the adjustment property is to reduce the sound effect, then the drum beats added at the key frame are reduced.

[0090] For example, if the key frame is in the accent position, the corresponding adjustment attribute is to enhance the sound effect, then the drum beat effect added at the key frame is enhanced; if the key frame is in the bass position, the corresponding adjustment attribute is to reduce the sound effect, then the drum beat effect added at the key frame is weakened.

[0091] Based on this, music elements are added at key frames according to the target type of the music elements to be added at the key frames, so as to deepen the user's emotional connection with the video content through the power of music, which can effectively enhance the overall audio-visual experience of the video.

[0092] Based on the same inventive concept, a video processing device corresponding to the video processing method is also provided in the embodiment of the present application. Since the principle of solving the problem by the video processing device in the embodiment of the present application is similar to the above-mentioned video processing method in the embodiment of the present application, the implementation of the video processing device can refer to the implementation of the video processing method, and the repeated parts will not be repeated.

[0093] Reference Figure 5 , which is a schematic diagram of the structure of a video processing device provided in an embodiment of the present application, the video processing device 500 includes: an acquisition module 501, a sentiment analysis module 502, a determination module 503 and an adjustment module 504, wherein:

[0094] An acquisition module 501 is used to acquire a target video and a plurality of user evaluation data for the target video;

[0095] Sentiment analysis module 502, used to perform sentiment analysis on each user evaluation data to obtain sentiment analysis results, where the sentiment analysis results include sentiment categories and / or sentiment scores of each user evaluation data;

[0096] A determination module 503 is used to determine the key frames in the target video and the target types of the music elements to be added at the key frames according to the emotion analysis results;

[0097] The adjustment module 504 is used to adjust the audio of the target video according to the target type of the music element to be added at the key frame and the audio characteristics of the target video to obtain a processed video.

[0098] Based on this, according to the video processing device of the embodiment of the present application, by performing sentiment analysis on each user's evaluation data, the emotional tendency expressed by the user's evaluation data is identified, and the key frames in the target video that cause strong emotional reactions in the user are further determined. For the key frame, the type of music element to be added at the key frame is determined in combination with the sentiment analysis result, and the audio characteristics of the target video are used to ensure that the newly added music element is more harmoniously integrated to enhance the emotional communication effect of the video. The method of automatically adjusting the music elements in the video based on the sentiment analysis results provided by the present application can not only help creators better understand and meet the emotional needs of the audience and improve the user experience, but also for novice creators, there is no need to manually add music elements, and based on the automated implementation process, attractive and rich emotional communication works can be created.

[0099] In a possible implementation manner, the determination module 503 is specifically configured to:

[0100] Determine the video time point corresponding to each user evaluation data in the target video according to the time information of each user evaluation data;

[0101] Determine at least one emotion peak time point in the target video according to the emotion analysis results of each user evaluation data at each video time point in the target video;

[0102] The video frames at each emotion peak time point are taken as a key frame;

[0103] According to the sentiment analysis results of each user evaluation data at each sentiment peak time point, the target type of the music element to be added at each key frame is determined.

[0104] In a possible implementation manner, the determination module 503 is specifically configured to:

[0105] Extract audio data from the target video;

[0106] Determine the time axis of the target video according to the sampling frequency and data length of the audio data, where the time axis includes a plurality of continuous video time points;

[0107] The time information of each user evaluation data is converted into a time point in the target video to obtain the video time point corresponding to each user evaluation data in the target video.

[0108] In a possible implementation manner, the sentiment analysis result includes: a sentiment score; the above-mentioned determination module 503 is specifically used to:

[0109] Determine the sentiment score of each video time point according to the sentiment score of each user evaluation data at each video time point;

[0110] The video time points whose emotion scores meet the preset conditions are respectively regarded as emotion peak time points.

[0111] In a possible implementation manner, the determination module 503 is specifically configured to:

[0112] Determine the emotion category of each user evaluation data at each emotion peak time point according to the emotion analysis result of each user evaluation data at each emotion peak time point;

[0113] Determine the emotion category corresponding to each emotion peak time point according to the emotion category of each user evaluation data at each emotion peak time point;

[0114] According to the first mapping relationship between the emotion category and the music type and the emotion category corresponding to each emotion peak time point, the target type of the music element to be added at the key frame at each emotion peak time point is determined.

[0115] In a possible implementation manner, the sentiment analysis result includes: a sentiment score; the above-mentioned determination module 503 is specifically used to:

[0116] The emotion category of each user evaluation data at each emotion peak time point is determined according to the emotion score of each user evaluation data at each emotion peak time point and the second mapping relationship between the emotion score and the emotion category.

[0117] In a possible implementation manner, the adjustment module 504 is specifically configured to:

[0118] According to the target type of the music element to be added at the key frame, adding the music element belonging to the target type at the key frame;

[0119] Determine the audio peaks and audio troughs in the audio of the target video according to the audio features of the target video;

[0120] According to the audio peaks and the audio troughs, the adjustment properties of the music elements added at the key frames are determined, and the music elements added at the key frames are adjusted based on the adjustment properties to obtain a processed video.

[0121] In a possible implementation manner, the adjustment module 504 is specifically configured to:

[0122] Based on the audio peaks and the audio troughs, determining the type of the sound range position where the key frame is located, the sound range position type includes a bass type and a treble type;

[0123] According to the type of the sound range position, an adjustment attribute is determined, and the adjustment attribute includes enhancing the sound effect and reducing the sound effect.

[0124] In a possible implementation manner, the adjustment module 504 is specifically configured to:

[0125] If the adjustment property is to enhance the sound effect, the preset enhanced audio is superimposed at the keyframe to enhance the drum beats added at the keyframe;

[0126] If the adjustment property is to reduce the sound effect, the drum beat added at the keyframe will be reduced.

[0127] In a possible implementation manner, the adjustment module 504 is further configured to add subtitles and / or annotations at key frames.

[0128] In a possible implementation manner, the sentiment analysis module 502 is specifically used to:

[0129] Preprocessing each user evaluation data to obtain processed user evaluation data;

[0130] The pre-trained sentiment classification model is used to perform sentiment analysis on the processed user evaluation data to obtain the sentiment analysis results.

[0131] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0132] The present application embodiment also provides an electronic device 600, such as Figure 6 As shown, it is a schematic diagram of the structure of an electronic device 600 provided in an embodiment of the present application, including: a processor 601, a memory 602, and optionally, a bus 603. The memory 602 stores machine-readable instructions executable by the processor 601. When the electronic device 600 is running, the processor 601 communicates with the memory 602 through the bus 603. When the machine-readable instructions are executed by the processor 601, the following processing is performed:

[0133] Obtain a target video and multiple user evaluation data for the target video;

[0134] Performing sentiment analysis on each user's evaluation data to obtain a sentiment analysis result, wherein the sentiment analysis result includes a sentiment category and / or a sentiment score of each user's evaluation data;

[0135] Determine the key frames in the target video and the target types of the music elements to be added at the key frames according to the sentiment analysis results;

[0136] According to the target type of the music element to be added at the key frame and the audio features of the target video, the audio of the target video is adjusted to obtain a processed video.

[0137] In a possible implementation manner, when the processor 601 executes an instruction to determine a key frame in a target video and a target type of a music element to be added at the key frame according to a result of sentiment analysis, the processor 601 is specifically configured to:

[0138] Determine the video time point corresponding to each user evaluation data in the target video according to the time information of each user evaluation data;

[0139] Determine at least one emotion peak time point in the target video according to the emotion analysis results of each user evaluation data at each video time point in the target video;

[0140] The video frames at each emotion peak time point are taken as a key frame;

[0141] According to the sentiment analysis results of each user evaluation data at each sentiment peak time point, the target type of the music element to be added at each key frame is determined.

[0142] In a possible implementation manner, when the processor 601 executes an instruction to determine, according to the time information of each user evaluation data, a video time point corresponding to each user evaluation data in the target video, the processor 601 is specifically configured to:

[0143] Extract audio data from the target video;

[0144] Determine the time axis of the target video according to the sampling frequency and data length of the audio data, where the time axis includes a plurality of continuous video time points;

[0145] The time information of each user evaluation data is converted into a time point in the target video to obtain the video time point corresponding to each user evaluation data in the target video.

[0146] In a possible implementation, the sentiment analysis result includes: a sentiment score; when the processor 601 executes an instruction to determine at least one sentiment peak time point in the target video according to the sentiment analysis result of each user evaluation data at each video time point in the target video, it is specifically used to:

[0147] Determine the sentiment score of each video time point according to the sentiment score of each user evaluation data at each video time point;

[0148] The video time points whose emotion scores meet the preset conditions are respectively regarded as emotion peak time points.

[0149] In a possible implementation manner, when the processor 601 executes an instruction to determine the target type of the music element to be added at each key frame according to the emotion analysis result of each user evaluation data at each emotion peak time point, it is specifically used to:

[0150] Determine the emotion category of each user evaluation data at each emotion peak time point according to the emotion analysis result of each user evaluation data at each emotion peak time point;

[0151] Determine the emotion category corresponding to each emotion peak time point according to the emotion category of each user evaluation data at each emotion peak time point;

[0152] According to the first mapping relationship between the emotion category and the music type and the emotion category corresponding to each emotion peak time point, the target type of the music element to be added at the key frame at each emotion peak time point is determined.

[0153] In a possible implementation manner, the sentiment analysis result includes: a sentiment score; when the processor 601 executes an instruction to determine the sentiment category of each user evaluation data at each sentiment peak time point according to the sentiment analysis result of each user evaluation data at each sentiment peak time point, it is specifically used to:

[0154] The emotion category of each user evaluation data at each emotion peak time point is determined according to the emotion score of each user evaluation data at each emotion peak time point and the second mapping relationship between the emotion score and the emotion category.

[0155] In a possible implementation manner, when the processor 601 executes the instruction of adjusting the audio of the target video according to the target type of the music element to be added at the key frame and the audio features of the target video to obtain the processed video, it is specifically used to:

[0156] According to the target type of the music element to be added at the key frame, adding the music element belonging to the target type at the key frame;

[0157] Determine the audio peaks and audio troughs in the audio of the target video according to the audio features of the target video;

[0158] According to the audio peaks and the audio troughs, the adjustment properties of the music elements added at the key frames are determined, and the music elements added at the key frames are adjusted based on the adjustment properties to obtain a processed video.

[0159] In a possible implementation manner, when the processor 601 executes the instruction for determining the adjustment attribute of the music element added at the key frame according to the audio peaks and the audio troughs, it is specifically configured to:

[0160] Based on the audio peaks and the audio troughs, determining the type of the sound range position where the key frame is located, the sound range position type includes a bass type and a treble type;

[0161] According to the type of the sound range position, an adjustment attribute is determined, and the adjustment attribute includes enhancing the sound effect and reducing the sound effect.

[0162] In a possible implementation manner, when the processor 601 executes the instruction of adjusting the music element added at the key frame based on the adjustment attribute to obtain the processed video, it is specifically used to:

[0163] If the adjustment property is to enhance the sound effect, the preset enhanced audio is superimposed at the keyframe to enhance the drum beats added at the keyframe;

[0164] If the adjustment property is to reduce the sound effect, the drum beat added at the keyframe will be reduced.

[0165] In a possible implementation manner, the processor 601 is further configured to add subtitles and / or annotations at key frames.

[0166] In a possible implementation manner, when the processor 601 executes an instruction to perform sentiment analysis on user evaluation data to obtain a sentiment analysis result, it is specifically configured to:

[0167] Preprocessing each user evaluation data to obtain processed user evaluation data;

[0168] The pre-trained sentiment classification model is used to perform sentiment analysis on the processed user evaluation data to obtain the sentiment analysis results.

[0169] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps are performed:

[0170] Obtain a target video and multiple user evaluation data for the target video;

[0171] Performing sentiment analysis on each user's evaluation data to obtain a sentiment analysis result, wherein the sentiment analysis result includes a sentiment category and / or a sentiment score of each user's evaluation data;

[0172] Determine the key frames in the target video and the target types of the music elements to be added at the key frames according to the sentiment analysis results;

[0173] According to the target type of the music element to be added at the key frame and the audio features of the target video, the audio of the target video is adjusted to obtain a processed video.

[0174] In a possible implementation manner, when the processor executes an instruction to determine a key frame in a target video and a target type of a music element to be added at the key frame according to a result of sentiment analysis, the processor is specifically configured to:

[0175] Determine the video time point corresponding to each user evaluation data in the target video according to the time information of each user evaluation data;

[0176] Determine at least one emotion peak time point in the target video according to the emotion analysis results of each user evaluation data at each video time point in the target video;

[0177] The video frames at each emotion peak time point are taken as a key frame;

[0178] According to the sentiment analysis results of each user evaluation data at each sentiment peak time point, the target type of the music element to be added at each key frame is determined.

[0179] In a possible implementation manner, when the processor executes an instruction to determine, according to the time information of each user evaluation data, a video time point corresponding to each user evaluation data in the target video, the processor is specifically configured to:

[0180] Extract audio data from the target video;

[0181] Determine the time axis of the target video according to the sampling frequency and data length of the audio data, where the time axis includes a plurality of continuous video time points;

[0182] The time information of each user evaluation data is converted into a time point in the target video to obtain the video time point corresponding to each user evaluation data in the target video.

[0183] In a possible implementation, the sentiment analysis result includes: a sentiment score; when the processor executes an instruction to determine at least one sentiment peak time point in the target video according to the sentiment analysis result of each user evaluation data at each video time point in the target video, it is specifically used to:

[0184] Determine the sentiment score of each video time point according to the sentiment score of each user evaluation data at each video time point;

[0185] The video time points whose emotion scores meet the preset conditions are respectively regarded as emotion peak time points.

[0186] In a possible implementation manner, when the processor executes an instruction to determine the target type of the music element to be added at each key frame according to the emotion analysis results of each user evaluation data at each emotion peak time point, it is specifically used to:

[0187] Determine the emotion category of each user evaluation data at each emotion peak time point according to the emotion analysis result of each user evaluation data at each emotion peak time point;

[0188] Determine the emotion category corresponding to each emotion peak time point according to the emotion category of each user evaluation data at each emotion peak time point;

[0189] According to the first mapping relationship between the emotion category and the music type and the emotion category corresponding to each emotion peak time point, the target type of the music element to be added at the key frame at each emotion peak time point is determined.

[0190] In a possible implementation, the sentiment analysis result includes: a sentiment score; when the processor executes an instruction to determine the sentiment category of each user evaluation data at each sentiment peak time point according to the sentiment analysis result of each user evaluation data at each sentiment peak time point, it is specifically used to:

[0191] The emotion category of each user evaluation data at each emotion peak time point is determined according to the emotion score of each user evaluation data at each emotion peak time point and the second mapping relationship between the emotion score and the emotion category.

[0192] In a possible implementation manner, when the processor executes the instruction of adjusting the audio of the target video according to the target type of the music element to be added at the key frame and the audio features of the target video to obtain the processed video, it is specifically used to:

[0193] According to the target type of the music element to be added at the key frame, adding the music element belonging to the target type at the key frame;

[0194] Determine the audio peaks and audio troughs in the audio of the target video according to the audio features of the target video;

[0195] According to the audio peaks and the audio troughs, the adjustment properties of the music elements added at the key frames are determined, and the music elements added at the key frames are adjusted based on the adjustment properties to obtain a processed video.

[0196] In a possible implementation manner, when the processor executes the instruction for determining the adjustment attribute of the music element added at the key frame according to the audio peaks and the audio troughs, it is specifically configured to:

[0197] Based on the audio peaks and the audio troughs, determining the type of the sound range position where the key frame is located, the sound range position type includes a bass type and a treble type;

[0198] According to the type of the sound range position, an adjustment attribute is determined, and the adjustment attribute includes enhancing the sound effect and reducing the sound effect.

[0199] In a possible implementation manner, when the processor executes the instruction of adjusting the music element added at the key frame based on the adjustment attribute to obtain the processed video, it is specifically used to:

[0200] If the adjustment property is to enhance the sound effect, the preset enhanced audio is superimposed at the keyframe to enhance the drum beats added at the keyframe;

[0201] If the adjustment property is to reduce the sound effect, the drum beat added at the keyframe will be reduced.

[0202] In a possible implementation manner, the processor is further configured to: add subtitles and / or annotations at key frames.

[0203] In a possible implementation manner, when the processor executes an instruction to perform sentiment analysis on user evaluation data to obtain a sentiment analysis result, it is specifically used to:

[0204] Preprocessing each user evaluation data to obtain processed user evaluation data;

[0205] The pre-trained sentiment classification model is used to perform sentiment analysis on the processed user evaluation data to obtain the sentiment analysis results.

[0206] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0207] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or part of the technical solution that contributes to the prior art or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Me mory), disk or optical disk and other media that can store program code.

[0208] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.

Claims

1. A video processing method, It is characterized in that include: Acquire a target video and a plurality of user evaluation data for the target video; Performing sentiment analysis on each of the user evaluation data to obtain a sentiment analysis result, wherein the sentiment analysis result includes a sentiment category and / or a sentiment score of each of the user evaluation data; Determine, according to the sentiment analysis result, a key frame in the target video and a target type of a music element to be added at the key frame; According to the target type of the music element to be added at the key frame and the audio features of the target video, the audio of the target video is adjusted to obtain a processed video.

2. The video processing method according to claim 1, It is characterized in that Determining the key frames in the target video and the target types of the music elements to be added at the key frames according to the emotion analysis result includes: Determining, according to the time information of each of the user evaluation data, a video time point corresponding to each of the user evaluation data in the target video; Determine at least one emotion peak time point in the target video according to the emotion analysis result of each user evaluation data at each video time point in the target video; Taking the video frames at each emotion peak time point as a key frame; According to the sentiment analysis results of each user evaluation data at each sentiment peak time point, the target type of the music element to be added at each key frame is determined.

3. The video processing method according to claim 2, It is characterized in that The step of determining, based on the time information of each user evaluation data, a video time point corresponding to each user evaluation data in the target video includes: Extracting audio data of the target video; Determine the time axis of the target video according to the sampling frequency and data length of the audio data, wherein the time axis includes a plurality of consecutive time points of the video; The time information of each user evaluation data is converted into a time point in the target video to obtain a video time point corresponding to each user evaluation data in the target video.

4. The video processing method according to claim 2, It is characterized in that The step of determining at least one emotion peak time point in the target video according to the emotion analysis result of each user evaluation data at each video time point in the target video comprises: Determining the emotion score of each video time point according to the emotion score of each user evaluation data at each video time point; The video time points whose emotion scores meet preset conditions are respectively used as the emotion peak time points.

5. The video processing method according to claim 2, It is characterized in that Determining the target type of the music element to be added at each key frame according to the emotion analysis result of each user evaluation data at each emotion peak time point includes: Determining the emotion category of each user evaluation data at each emotion peak time point according to the emotion analysis result of each user evaluation data at each emotion peak time point; Determining the emotion category corresponding to each emotion peak time point according to the emotion category of each user evaluation data at each emotion peak time point; According to the first mapping relationship between the emotion category and the music type and the emotion category corresponding to each emotion peak time point, the target type of the music element to be added at the key frame at each emotion peak time point is determined.

6. The video processing method according to claim 5, It is characterized in that Determining the emotion category of each user evaluation data at each emotion peak time point according to the emotion analysis result of each user evaluation data at each emotion peak time point includes: The emotion category of each user evaluation data at each emotion peak time point is determined according to the emotion score of each user evaluation data at each emotion peak time point and the second mapping relationship between the emotion score and the emotion category.

7. The video processing method according to claim 1, It is characterized in that The step of adjusting the audio of the target video according to the target type of the music element to be added at the key frame and the audio features of the target video to obtain a processed video includes: According to the target type of the music element to be added at the key frame, adding the music element belonging to the target type at the key frame; Determine, according to the audio features of the target video, audio peaks and audio troughs in the audio of the target video; According to the audio peaks and the audio troughs, the adjustment properties of the music elements added at the key frames are determined, and based on the adjustment properties, the music elements added at the key frames are adjusted to obtain a processed video.

8. The video processing method according to claim 7, It is characterized in that The step of determining the adjustment property of the music element added at the key frame according to the audio peak and the audio trough includes: Based on the audio peak and the audio trough, determining the type of the sound range position where the key frame is located, the type of the sound range position including a bass type and a treble type; The adjustment attribute is determined according to the sound range position type, and the adjustment attribute includes enhancing sound effect and reducing sound effect.

9. The video processing method according to claim 8, It is characterized in that The step of adjusting the music element added at the key frame based on the adjustment attribute to obtain a processed video includes: If the adjustment attribute is enhanced sound effect, a preset enhanced audio is superimposed at the key frame to enhance the drum beat added at the key frame; If the adjustment attribute is to reduce the sound effect, the drum beat added at the key frame is reduced.

10. The video processing method according to claim 1, It is characterized in that Also includes: Subtitles and / or annotations are added at the key frames.

11. The video processing method according to claim 1, It is characterized in that The sentiment analysis is performed on each of the user evaluation data to obtain a sentiment analysis result, including: Preprocessing each of the user evaluation data to obtain processed user evaluation data; The sentiment classification model obtained by pre-training is used to perform sentiment analysis on the processed user evaluation data to obtain the sentiment analysis result.

12. A video processing device, It is characterized in that include: An acquisition module, used to acquire a target video and a plurality of user evaluation data for the target video; A sentiment analysis module, used to perform sentiment analysis on each of the user evaluation data to obtain a sentiment analysis result, wherein the sentiment analysis result includes a sentiment category and / or a sentiment score of each of the user evaluation data; A determination module, used to determine the key frames in the target video and the target types of the music elements to be added at the key frames according to the emotion analysis result; The adjustment module is used to adjust the audio of the target video according to the target type of the music element to be added at the key frame and the audio characteristics of the target video to obtain a processed video.

13. An electronic device, It is characterized in that include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor executes the machine-readable instructions to perform the steps of the video processing method according to any one of claims 1 to 11.

14. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the video processing method according to any one of claims 1 to 11 are executed.