Video processing method, device, equipment, storage medium and product

By extracting the target text information and audio feature change information in the video, the video is automatically split, which solves the problem of manual annotation dependence in the existing technology, reduces costs and improves efficiency.

CN116704392BActive Publication Date: 2024-10-15TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210185777.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2024-10-15
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

Existing video splitting technology relies on manual annotation, resulting in high cost and low efficiency, and cannot efficiently process complete videos.

Method used

By extracting the target text information and audio feature change information in the video, the video splitting point is automatically determined and the video is automatically split without manual marking.

Benefits of technology

It reduces labor costs, improves video splitting efficiency, can accurately split video clips, and improves the automation of video processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116704392B_ABST
    Figure CN116704392B_ABST
Patent Text Reader

Abstract

The present application discloses a video processing method, device, equipment, storage medium and product, which belongs to the field of computer technology. The method includes: obtaining a video to be processed; performing text information extraction processing on the video to be processed to obtain target text information and first position information corresponding to the target text information; performing a first splitting process on the video to be processed according to the first position information to obtain a first video clip; determining the audio feature change information corresponding to the first video clip and the second position information corresponding to the audio feature change information; performing a second splitting process on the first video clip according to the second position information to obtain a second video clip. The technical solution provided by the embodiment of the present application can obtain a first video clip by extracting the target text information and its position information in the video to split the video, and then split the first video clip by determining the audio feature change information and its position information to obtain a second video clip, thereby improving the efficiency of video splitting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the mature development of media information technology, video splitting has gradually become an important means of video processing. Video splitting refers to the technology of splitting a complete video into video segments through certain methods.

[0003] In the related art, manual annotation is usually used to select the video splitting points, and then split the video according to the video splitting points to obtain the split video segments. A single annotator needs to watch the video at least once and mark the start and end time of each segment to complete the segmentation of a complete video.

[0004] In the related art, the labor cost required for video splitting is high and the video splitting efficiency is low. Summary of the invention

[0005] The embodiments of the present application provide a video processing method, apparatus, device, storage medium and product, which can improve video splitting efficiency and reduce labor costs.

[0006] According to one aspect of an embodiment of the present application, a video processing method is provided, the method comprising:

[0007] Get the video to be processed;

[0008] Performing text information extraction processing on the video to be processed to obtain target text information and first position information corresponding to the target text information;

[0009] Performing a first splitting process on the video to be processed according to the first position information to obtain a first video segment;

[0010] Determine audio feature change information corresponding to the first video clip and second position information corresponding to the audio feature change information;

[0011] The first video segment is subjected to a second splitting process according to the second position information to obtain a second video segment.

[0012] According to one aspect of an embodiment of the present application, a video processing device is provided, the device comprising:

[0013] A video acquisition module is used to acquire the video to be processed;

[0014] A first position determination module is used to perform text information extraction processing on the video to be processed to obtain target text information and first position information corresponding to the target text information;

[0015] A first video splitting module, configured to perform a first splitting process on the video to be processed according to the first position information to obtain a first video segment;

[0016] A second position determination module, used to determine the audio feature change information corresponding to the first video clip and second position information corresponding to the audio feature change information;

[0017] The second video splitting module is used to perform a second splitting process on the first video segment according to the second position information to obtain a second video segment.

[0018] According to one aspect of an embodiment of the present application, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the above-mentioned video processing method.

[0019] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the above-mentioned video processing method.

[0020] According to one aspect of an embodiment of the present application, a computer program product is provided, the computer program product comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes to implement the above-mentioned video processing method.

[0021] The technical solution provided in the embodiments of the present application can bring the following beneficial effects:

[0022] By extracting the target text information in the video to be processed, the first position information corresponding to the target text information can be determined, so that the first splitting processing can be performed on the video to be processed according to the position of the target text information to obtain a first video segment. By determining the audio feature change information corresponding to the first video segment, the corresponding second position information can also be determined, so that the first video segment can be subjected to a second splitting processing according to the second position information to obtain a more detailed second video segment. The complete video can be split only by extracting the target text information and audio feature change information and determining their corresponding positions. There is no need to manually mark the video splitting positions, which effectively reduces labor costs and improves video splitting efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0024] Figure 1 is a schematic diagram of an application program operating environment provided by an embodiment of the present application;

[0025] Figure 2 This is the process of a video processing method provided by an embodiment of the present application Figure 1 ;

[0026] Figure 3 This is the process of a video processing method provided by an embodiment of the present application Figure 2 ;

[0027] Figure 4 This is the process of a video processing method provided by an embodiment of the present application Figure 3 ;

[0028] Figure 5 A schematic diagram showing an exemplary text information extraction result;

[0029] Figure 6 A schematic diagram of a video frame is exemplarily shown;

[0030] Figure 7 A schematic diagram of a video splitting process is exemplarily shown;

[0031] Figure 8 A schematic diagram showing a video splitting result is exemplified;

[0032] Fig. 9 is a block diagram of a video processing device provided by an embodiment of the present application;

[0033] Fig.10 It is a structural block diagram of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0034] The video processing method provided in the embodiment of the present application involves artificial intelligence technology, which is briefly described below to facilitate understanding by those skilled in the art.

[0035] 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. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0036] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0037] Computer Vision (CV) Computer vision is a science that studies how to make machines "see". To put it more concretely, it refers to machine vision such as using cameras and computers to replace human eyes to identify and measure targets, and further perform graphic processing to make computer processing more suitable for human eye observation or transmission to instrument detection. As a scientific discipline, computer vision studies related theories and technologies, and attempts to establish an artificial intelligence system that can obtain information from images or multidimensional data. Computer vision technology generally includes image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, synchronous positioning and map construction, and other technologies, as well as common biometric recognition technologies such as face recognition and fingerprint recognition. In the embodiment of the present application, the video frames in the video can be processed by image processing, image recognition, OCR, etc., so as to extract the required media information, such as extracting the target text information in the video.

[0038] The key technologies of speech technology include automatic speech recognition technology (ASR), text to speech synthesis technology (TTS) and voiceprint recognition technology. Enabling computers to listen, see, speak and feel is the future development direction of human-computer interaction, among which speech becomes one of the promising human-computer interaction methods in the future. In the embodiment of the present application, the audio data corresponding to the video can be processed by voiceprint recognition, type recognition and other processing to extract the required audio feature information, such as determining the voiceprint features and audio type of the audio data.

[0039] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and self-learning.

[0040] With the research and progress of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned driving, automatic driving, drones, robots, smart medical care, smart customer service, etc. It is believed that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.

[0041] The present application provides a video processing method that can be combined with the above-mentioned artificial intelligence technology to split the complete video without manually selecting the video splitting points and splitting the video, which can effectively reduce labor costs and improve video splitting efficiency. In addition, the embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc.

[0042] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0043] Please refer to Figure 1 , which shows a schematic diagram of an application program running environment provided by an embodiment of the present application. The application program running environment may include: a terminal 10 and a server 20.

[0044] The terminal 10 includes, but is not limited to, electronic devices such as mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, game consoles, e-book readers, multimedia playback devices, wearable devices, and aircraft. The terminal 10 may be installed with a client of an application program.

[0045] In an embodiment of the present application, the above-mentioned application can be any application that can provide video services. Typically, the application is a video application. Of course, in addition to video applications, video services can also be provided in other types of applications. For example, news applications, social applications, interactive entertainment applications, browser applications, shopping applications, content sharing applications, virtual reality (Virtual Reality, VR) applications, augmented reality (Augmented Reality, AR) applications, etc., are not limited to this in the embodiment of the present application. In addition, for different applications, the videos played will also be different, and the corresponding functions will also be different, which can be pre-configured according to actual needs, and the embodiment of the present application is not limited to this. Optionally, a client of the above-mentioned application is running in the terminal 10.

[0046] The server 20 is used to provide background services for the client of the application in the terminal 10. For example, the server 20 can be the background server of the above application. The server 20 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Optionally, the server 20 provides background services for applications in multiple terminals 10 at the same time.

[0047] Optionally, the terminal 10 and the server 20 may communicate with each other via a network 30. The terminal 10 and the server 20 may be directly or indirectly connected via wired or wireless communication, which is not limited in the present application.

[0048] Please refer to Figure 2 , which shows the process of a video processing method provided by an embodiment of the present application Figure 1 The method can be applied to a computer device, which refers to an electronic device with data calculation and processing capabilities. For example, the execution subject of each step can be Figure 1 The server 20 in the application running environment is shown. The method may include the following steps (210-250).

[0049] Step 210, obtaining the video to be processed.

[0050] The above-mentioned videos to be processed include but are not limited to variety show videos, sports event videos, game videos, drama videos, self-made videos, etc.

[0051] Step 220 , performing text information extraction processing on the video to be processed to obtain target text information and first position information corresponding to the target text information.

[0052] The target text information is characteristic information associated with the display start position of the target object. Optionally, the target text information includes but is not limited to announcement information, match number information, chapter information, etc. The embodiment of the present application does not limit the specific category of the target text information.

[0053] The first position information is used to represent the display start position of the target object. Optionally, the first position information includes position identification information of the type of timestamp identification, video frame identification, etc.

[0054] The above-mentioned text information extraction processing includes but is not limited to image character recognition processing, voice character recognition processing, and text recognition processing.

[0055] Optionally, image and text recognition processing is performed on the video frames in the video to be processed to obtain image recognition text corresponding to the video frames in the video to be processed, so as to determine the above target text information based on the image recognition text.

[0056] Optionally, speech and text recognition processing is performed on the audio data corresponding to the video to be processed to obtain speech recognition text, so as to determine the above-mentioned target text information based on the speech recognition text.

[0057] Optionally, the video to be processed is subjected to subtitle extraction processing to obtain subtitle information; the subtitle information is subjected to text recognition processing to obtain subtitle recognition text, thereby determining the above target text information according to the subtitle recognition text. In an exemplary embodiment, the video to be processed includes at least one shot segment. Optionally, the above video to be processed is subjected to shot recognition processing to obtain the above at least one shot segment. In a possible implementation, the entire video frame sequence of the video to be processed can be divided into a plurality of shot segments by a neural network, and each shot segment includes a shot start frame number x_start and a shot end frame number x_end. For example, the video frames in the above video to be processed are subjected to clustering processing to obtain the above at least one shot segment. Alternatively, the above video to be processed is input into a shot splitting network model to obtain the above at least one shot segment. Optionally, the above video frame sequence can be represented as x_t (t=0, 1, 2, ..., T), where x_t is the video frame sequence number and T is the sequence number of the last video frame.

[0058] Correspondingly, such as Figure 3 As shown, the implementation process of the above step 220 may include the following steps (221-225): Figure 3 The flow chart of the video processing method provided by one embodiment of the present application is shown as follows Figure 2 .

[0059] Step 221: perform frame extraction processing on at least one shot segment to obtain a video frame sequence.

[0060] Optionally, video frames in each shot segment are extracted as sampled video frames at a preset frequency to obtain the above-mentioned video frame sequence. For example, the middle frame per second in each shot is extracted to obtain the above-mentioned video frame sequence.

[0061] Step 222: Perform text information extraction processing on at least one video frame in the video frame sequence to obtain text information corresponding to the at least one video frame.

[0062] Through the above text information extraction process, the text information corresponding to each of the above at least one video frame can be obtained, so as to facilitate the subsequent process to determine the target video frame containing the target text information according to the recognized text information.

[0063] In an exemplary embodiment, if Figure 4 As shown, the implementation process of the above step 222 may include the following steps (2221-2225): Figure 4 The flow chart of the video processing method provided by one embodiment of the present application is shown as follows Figure 3 .

[0064] Step 2221, performing text recognition processing on at least one video frame to obtain recognized text corresponding to the at least one video frame and a text box corresponding to the recognized text.

[0065] The at least one video frame may contain text information in text mode, and the recognized text corresponding to each video frame can be obtained by performing text recognition processing, such as OCR, on the at least one video frame. The pixel position information (coordinate information) of the recognized text in the video frame can be further determined to determine the text box corresponding to the recognized text. The embodiment of the present application does not limit the shape and type of the text box.

[0066] Optionally, the recognized texts extracted from all the shot segments and the text boxes corresponding to the recognized texts are serialized to obtain recognized text sequences corresponding to each video frame and text box sequences corresponding to the recognized text sequences.

[0067] Step 2222, determine the coverage area between the text box and the target constraint area.

[0068] In a possible implementation, in order to reduce the impact of text information (such as station logos, subtitles, etc.) in some non-essential areas of the video frame on the final result, the above-mentioned target constraint area can be set. The above-mentioned target constraint area is a dynamically determined constraint area, which is used to filter out the recognition text corresponding to the target preset area from all the recognition texts corresponding to the video frame, that is, the recognition text that meets the position constraint conditions. For example, the above-mentioned target constraint area is defined as 2 / 3 of the entire video frame, and 10% is ablated inward from the x-axis and y-axis directions to dynamically determine the target constraint area corresponding to each video frame.

[0069] The above-mentioned coverage area refers to the area of ​​the overlapping area between the text box and the target constraint area. The above-mentioned coverage area can be determined by obtaining the coordinate information of the text box and the coordinate information of the target constraint area.

[0070] Step 2223, based on the coverage area, determine the corresponding coverage ratio between the target constraint area and the text box.

[0071] By comparing the above coverage area with the area of ​​the text box, the above coverage rate can be obtained.

[0072] Step 2224: If the coverage rate is greater than or equal to the coverage rate threshold, the text box is determined to be the target text box.

[0073] Optionally, it is determined one by one whether the coverage rate corresponding to each text box in the text box sequence is greater than or equal to the coverage rate threshold until the last text box is determined. If the coverage rate corresponding to the i-th text box is greater than or equal to the coverage rate threshold, the i-th text box is determined to be the target text box, where i is an integer greater than 0.

[0074] In one example, the coverage threshold may be set to 80% to filter the text box sequence and obtain the target text box.

[0075] Step 2225, determine the text information based on the target text box.

[0076] In a possible implementation, the recognized text corresponding to the target text box is retained as the text information corresponding to the corresponding video frame.

[0077] In one example, if Figure 5 As shown, it exemplarily shows a schematic diagram of a text information extraction result. Figure 5, the area corresponding to the box 51 in the video frame 50 is the above-mentioned target constraint area, and the position and size of the above-mentioned box 51 are determined by dynamic calculation. After the above-mentioned text recognition processing in the video frame 50, the recognized text 52 (italics) and the text box 53 corresponding to the recognized text 52 can be obtained. Optionally, the coverage threshold corresponding to the text box 53 and the box 51 can be set to 80%, and the first step of filtering is performed on the recognized text 51 in the video frame according to the above-mentioned coverage threshold. The text box with a coverage greater than or equal to the coverage threshold can be determined as the above-mentioned target text box, and the text information corresponding to the video frame 50 can be obtained based on the recognized text in the above-mentioned target text box.

[0078] Step 223: If the text information meets the target text condition, the target text information is obtained based on the text information.

[0079] In a possible implementation, a keyword library is obtained. The keyword library is a word library constructed based on a large amount of data statistics and summary information, and is used to identify whether each text information is a target text information. Optionally, the target text information is the program announcement information. The keywords in the keyword library are usually phrases that represent the main meaning of a program, such as lyrics, composer, actors, etc.

[0080] Specifically, after obtaining the text information corresponding to the video frame, the text information is segmented to obtain a segmentation result; the segmentation result includes at least one word corresponding to the video frame; the at least one word is searched in a keyword library, and if the at least one word matches a word in the keyword library, the text information is determined as target text information. The target text condition includes that the at least one word matches a word in the keyword library.

[0081] Step 224: determine the target shot segment corresponding to the target text information in at least one shot segment.

[0082] After the target text information is extracted, the target shot segment needs to be determined by combining the shot start frame and shot end frame corresponding to each shot segment and the result of whether each sampled video frame contains the target text information. Optionally, the shot segment where the video frame corresponding to the target text information is located is determined as the target shot segment.

[0083] In an exemplary embodiment, if Figure 4 As shown, the implementation process of the above step 224 may include the following steps (2241-2245) to determine the shot segment where the video frame corresponding to the above target text information is located.

[0084] Step 2241, determining a target video frame corresponding to the target text information in at least one video frame and a video frame position identifier corresponding to the target video frame.

[0085] For any video frame, if the video frame contains target text information, the video frame type identifier corresponding to the video frame is determined to be the first identifier, otherwise the video frame type identifier corresponding to the video frame is determined to be the second identifier. The above-mentioned first identifier is a characteristic identifier of the target video frame, for example, the first identifier is true; the above-mentioned second identifier is a characteristic identifier of the non-target video frame, for example, the second identifier is false. In this way, each video frame in the video frame sequence has a corresponding video frame type identifier to characterize whether it is a target video frame. In an actual application scenario, the above-mentioned target video frame is an announcement frame, that is, a video frame containing the announcement information of the program.

[0086] For any shot segment among all shot segments corresponding to a single video to be processed, the video frame type recognition result of the corresponding video frame can be recorded as (x_frame, true / false), where x_frame is the video frame position identifier corresponding to the video frame.

[0087] Optionally, the at least one video frame mentioned above can also be input into a trained binary classification model to output a video frame type identifier corresponding to the at least one video frame mentioned above. If the video frame type identifier is a first identifier, it is determined that the video frame contains target text information; if the video frame type identifier is a second identifier, it is determined that the video frame does not contain the target text information.

[0088] Step 2242: Based on the video frame position identifier, perform interval division processing on at least one video frame to obtain at least one target interval.

[0089] The target interval refers to an interval corresponding to target video frames whose video frame position identifiers meet preset arrangement conditions. Optionally, the target interval includes at least two target video frames whose positions are consecutive.

[0090] After determining the video frame position identifier corresponding to the above target video frame, at least one video frame can be divided into intervals. In the above process, it is determined whether the text information includes the target text information according to the target text condition, so that it can be determined whether the video frame corresponding to the text information is the target video frame according to the judgment result, and the corresponding video frame type identifier is marked. For each video frame arranged in order in the video frame sequence, each video frame corresponds to a video frame type identifier and a video frame position identifier. According to the video frame type identifier and video frame position identifier of each video frame, the video frames with the same video frame type and continuous position in the video frame sequence can be merged to obtain at least one interval. The interval attribute information corresponding to each interval includes an interval start position identifier, an interval end position identifier, and a video frame type identifier corresponding to the interval, which is recorded as (x_start, x_end, baomu_flag). Among them, x_start is the starting position identifier of the interval, that is, the video frame position identifier corresponding to the first video frame corresponding to the interval; x_end is the ending position identifier of the interval, that is, the video frame position identifier corresponding to the last video frame corresponding to the interval; baomu_flag is the same video frame type identifier corresponding to the video frames in the interval, which can be one of the above-mentioned first identifier or second identifier.

[0091] For example, the video frame sequence is [(13, false), (37, false), (61, true), (85, true), (109, true) ...], and the result of performing interval division processing on at least one video frame according to the video frame position identifier and the video frame type identifier of each video frame is [(13, 37, false), (61, 109, true), ...]. According to the above description, the interval formed by at least two target video frames with consecutive positions is the target interval, so the target interval in the above result includes (61, 109, true).

[0092] It should be noted that, in order to increase the robustness of the result, if there are fewer than a threshold (threshold_frames) second identifiers between multiple consecutive first identifiers, these second identifiers will be ignored and multiple cells will be merged.

[0093] Step 2243, obtaining an interval start position identifier corresponding to the target interval and a shot start position identifier corresponding to at least one shot segment.

[0094] After obtaining the interval division result and determining the target interval, the interval start position mark corresponding to the target interval and the lens start position mark corresponding to at least one shot segment can be obtained to fine-tune the interval. The fine-tuning process is described in the subsequent steps. The above-mentioned lens start position mark refers to the video frame position mark corresponding to the first video frame in the shot segment.

[0095] Step 2244, matching the interval start position identifier with the shot start position identifier to obtain a target shot start position identifier corresponding to the interval start position identifier.

[0096] For each target interval, it is necessary to determine the target shot segment corresponding to the target interval. In order to determine the above target shot segment, candidate shot segments whose shot start position identifiers are less than or equal to the interval start position identifier can be obtained, and the shot start position identifiers corresponding to the shot segments that have intersections with the target interval in the candidate shot segments are determined as the target shot start position identifiers.

[0097] Step 2245: determine the shot segment corresponding to the target shot start position identifier as the target shot segment.

[0098] Optionally, the interval start position marker of the target interval may be updated to the target shot start position marker, and the target shot segment is determined according to the updated interval start position marker, that is, the target shot start position marker.

[0099] Step 225: Determine first position information based on the target shot segment.

[0100] Optionally, the shot start position mark corresponding to the target shot segment is used as the first position information, or the video frame position mark corresponding to the shot start frame corresponding to the target shot segment is used as the first position information.

[0101] Optionally, the first position information is used to represent position information of the first video clip.

[0102] Step 230: Perform a first splitting process on the video to be processed according to the first position information to obtain a first video segment.

[0103] Optionally, the first splitting process of the video to be processed can be completed by taking the shot start frame corresponding to each target shot segment as the segment start frame of the first video segment, and obtaining at least two first video segments. For example, the shot start frame of the current target shot segment and the previous frame of the shot start frame of the next target shot segment corresponding to the current target shot segment can be respectively used as the segment start frame and the segment end frame corresponding to the first video segment.

[0104] In a possible implementation, for the j-th shot segment, it can be expressed as (shot_start, shot_end). Wherein, j is an integer greater than 0, shot_start is the shot start position identifier of the j-th shot, and shot_end is the shot end position identifier of the j-th shot. If shot_start>=x_start, or shot_end<=x_end exists in the target interval, the frame number replacement can be performed. Specifically, the interval start position identifier corresponding to the target interval can be updated to the shot start position identifier of the j-th shot, or the interval end position identifier can be updated to the shot end position identifier, thereby obtaining an updated interval sequence. According to the interval start position identifier and the interval end position identifier of the target interval in the interval sequence, a list of information corresponding to multiple first video segments can be generated. Among them, the video frames in the interval from the interval start position identifier of the x-th target interval to the interval start position identifier of the x+1-th target interval minus 1 constitute a first video segment.

[0105] Finally, the output form of the first splitting process can be a tuple list consisting of the video frame position identifiers corresponding to the segment start frame and the segment end frame corresponding to each first video segment, in the form of [(segment_start, segment_end), (segment_start, segment_end), ...]. Wherein, segment_start represents the segment start position identifier corresponding to the first video segment, and segment_end represents the segment end position identifier corresponding to the first video segment. Optionally, there is a default gap of only one frame between the end of the previous first video segment and the beginning of the next first video segment, that is, all the first video segments are continuous by default.

[0106] In an actual application scenario, the video to be processed is a gala variety show video. The basic form of a gala variety show video is a program segment containing announcement information and some other off-site segments. The program types are usually song and dance and language. The off-site segments include opening segments, ending segments, host segments and other off-site segments. The above-mentioned announcement information is used as the target text information for identification and extraction, and then the first video segment is obtained by splitting the complete video according to the first position information corresponding to the announcement information. It usually includes a program segment of a single program and the off-site segment corresponding to the program segment. The actual demand also requires that the program segment and the corresponding off-site segment in the first video segment be further split, so the subsequent steps can be performed.

[0107] The embodiment of the present application uses a neural network to perform text recognition on the video frames extracted from the lens fragments to obtain the text information corresponding to each video frame, and then uses dynamic position constraints and keyword search algorithms to identify the target video frame containing the target text information, and splits the complete video with the lens start frame of the target lens fragment corresponding to the target video frame to obtain the intermediate result, that is, each first video fragment, which has strong robustness. Especially for evening party variety shows, the announcement information is an obvious video splitting feature. The announcement information is used as the target text information and combined with the position constraint to accurately identify the announcement information in the video, and then according to the position information corresponding to the announcement information, the starting position of the program segment is accurately found and segmented to obtain the above-mentioned first video segment, thereby improving the accuracy of video splitting.

[0108] Step 240: Determine the audio feature change information corresponding to the first video clip and the second position information corresponding to the audio feature change information.

[0109] The audio feature change information is used to characterize the change of the audio feature in the first video clip. The second position information is used to characterize the turning position of the audio feature in the first video clip, and the audio feature turning position can be used as the video splitting position corresponding to the subsequent second splitting process.

[0110] After obtaining the above-mentioned first video clip, a more detailed split is required. For example, the program clip in the first video clip needs to be further split from the corresponding off-screen clip, so it is necessary to determine the appropriate video split position. Two major steps are required here. One is to determine the clip type (which can be the program type) in the first video clip. The above clip type can be determined by voting on the audio type label obtained by the neural network identifying the lens clip in the first video clip.

[0111] Optionally, the segment type includes a first segment type and a second segment type, for example, the first segment type is a song and dance type, and the second segment type is a language type. For the first video segment whose segment type is the first segment type, the video splitting position is selected by judging whether the audio type corresponding to each lens segment in the first video segment conforms to a rule. For the first video segment whose segment type is the second segment type, the appropriate video splitting position can be determined according to the voiceprint feature information.

[0112] In an exemplary embodiment, different audio feature change information may be extracted according to the segment type of the first video segment. Accordingly, in this embodiment, the segment type of the first video segment needs to be determined first. Figure 3 As shown, before executing the above step 240, the following steps (260-280) may also be executed.

[0113] Step 260: Obtain shot audio data corresponding to the shot segment in the first video segment.

[0114] In the above process, the first video segment is obtained by dividing the first video segment into shot segments, so the first video segment also includes at least one complete shot segment. The shot audio data refers to the audio data corresponding to the shot segment.

[0115] Step 270: Perform audio type recognition processing on the lens audio data to obtain lens audio type information.

[0116] Optionally, the shot audio data is input into a trained audio type recognition model for audio type recognition processing to obtain shot audio type information. The above audio feature change information includes shot audio type information corresponding to each shot segment, and the shot audio type information is used to characterize the audio type corresponding to the shot segment.

[0117] Optionally, the audio types include but are not limited to the first audio type, the second audio type, the third audio type, and the fourth audio type. The first audio type may be a music type (music); the second audio type may be a speech type (speech); the third audio type may be an applause type (applause); and the fourth audio type may be other types (others). Optionally, the audio types may be further refined to include music with vocals type, music without vocals type, singing type, and speaking type, thereby improving the accuracy of the audio type recognition model in judging the audio.

[0118] The training samples of the above-mentioned audio type recognition model include sample audios of different lengths. Each sample audio has corresponding label information after multi-label classification, and the above-mentioned label information is used to characterize the audio type of the sample audio. During training, the length of all sample audios is sampled to 10s; during testing, the length of the test audio is not restricted. Based on the above-mentioned sample audios and the corresponding label information, the convolutional neural network (CNN) is trained, and the above-mentioned audio type recognition model is obtained after the training is completed. Optionally, the above-mentioned audio type recognition model is a 14-layer convolutional neural network (CNN14).

[0119] In a possible implementation, Figure 4 As shown, the implementation process of the above step 270 may include the following steps (271-273).

[0120] Step 271, divide the shot audio data into at least two audio data segments.

[0121] Since the length variance between different shot segments may be large, if the shot audio data corresponding to the entire shot segment is input into the audio type recognition model for audio type recognition processing, the accuracy of audio type recognition may decrease, and the identified audio tag may have a low correlation with the actual audio type, resulting in errors in the main audio tag recognition. Therefore, for a single shot segment, the shot audio data corresponding to it can be divided into audio data segments (the number of divisions can not exceed 10) to shorten the audio length recognized by the audio type recognition model, so as to avoid the influence of irrelevant noise on the accuracy of audio type recognition, so as to improve the accuracy of audio type recognition.

[0122] Step 272: Perform audio type recognition processing on at least two audio data segments to obtain segment audio type information corresponding to the at least two audio data segments.

[0123] The following is an illustrative description with reference to examples in specific scenarios. Figure 6 As shown, it exemplarily shows a schematic diagram of a video frame. Figure 6 The video frame 60 shown is a video frame in a shot clip corresponding to the end time of a song and dance program in a variety show video of an evening party. In the picture shown in the video frame 60, the host 61 has already appeared, but the song and dance program performance is not yet completely finished. In addition, for the shot clip corresponding to the end time, it is very likely that the applause of the audience 62 will appear, which may cause the audio type corresponding to the shot clip to be identified as the applause type, while in fact the audio type should be the music type. The embodiment of the present application should pay more attention to the audio tag of the music type.

[0124] In order to ensure the accuracy of identifying the audio type corresponding to the shot audio data, the shot audio data corresponding to a single shot segment can be divided into audio data segments of no more than 10 segments, and then input into the audio type recognition model CNN14 to obtain the audio type labels corresponding to each audio data segment.

[0125] Step 273, determining the shot audio type information based on the clip audio type information.

[0126] Voting is performed on the segment audio type information corresponding to each audio data segment to obtain the audio type corresponding to the shot segment.

[0127] Optionally, after obtaining the audio type tags corresponding to the above-mentioned audio data segments, the audio type tag with the largest number of occurrences among the audio type tags corresponding to the above-mentioned audio data segments is determined and determined as the audio type corresponding to the entire shot segment.

[0128] Step 280: Determine the segment type information corresponding to the first video segment based on the shot audio type information.

[0129] The segment type information is used to indicate the segment type of the first video segment.

[0130] In a possible implementation, the audio type includes a first audio type and a second audio type. Figure 4 As shown, the implementation process of the above step 280 may include the following steps (281-283).

[0131] Step 281: Determine the number of first shot segments and the number of second shot segments in the first video segment based on the shot audio type information.

[0132] The first shot clip refers to a shot clip whose audio type is the first audio type, and the second shot clip refers to a shot clip whose audio type is the second audio type.

[0133] In a possible implementation, the first shot segment refers to a shot segment in which the audio type in the portion before the preset ratio in the first video segment is the first audio type, and the second shot segment refers to a shot segment in which the audio type in the portion before the preset ratio in the first video segment is the second audio type. For example, the preset ratio is 2 / 3. After setting the preset ratio, the interference of the audio data corresponding to the portion after the preset ratio in the first shot segment on the accuracy of the audio type recognition result can be excluded. In some application scenarios, the portion after the preset ratio in the first video segment may be an off-site segment of the program and has nothing to do with the program segment. Therefore, its audio data is noise for the scene of determining the segment type and needs to be excluded.

[0134] Step 282: If the number of the first shot segments is greater than or equal to the number of the second shot segments, determine that the segment type of the first video segment is the first segment type.

[0135] In a possible application scenario, if the number of music-type footage clips is greater than or equal to the number of speech-type footage clips, then the segment type of the first video segment is determined to be a song and dance type.

[0136] Step 283: If the number of the first shot segments is less than the number of the second shot segments, determine that the segment type of the first video segment is the second segment type.

[0137] In a possible application scenario, if the number of music-type shot segments is less than the number of speech-type shot segments, the segment type of the first video segment is determined to be a language type.

[0138] In an exemplary embodiment, after determining the segment type of the first video segment, different operations may be selected to determine the second position information. Figure 3As shown, the implementation process of the above step 240 may include the following steps (241-243).

[0139] Step 241, when the segment type of the first video segment is the first segment type, obtain the shot audio type information corresponding to the shot segment in the first video segment.

[0140] The audio feature change information includes shot audio type information, and the shot audio type information is used to characterize the audio type corresponding to the shot segment.

[0141] When the segment type of the first video segment is the first segment type, the audio type corresponding to each lens segment in the first video segment is obtained. If the audio type corresponding to each lens segment has been determined before, the lens audio type information can be directly reused here; if it has not been determined before, the audio type corresponding to each lens segment can be determined according to the above steps.

[0142] Step 242: If the audio type corresponding to the n consecutive shot segments in the first video segment is the first audio type, and the audio type corresponding to the m consecutive shot segments after the n consecutive shot segments is the second audio type, then determine the last shot segment in the n consecutive shot segments.

[0143] n is an integer greater than 1, m is an integer greater than 0, and the last shot segment refers to the last shot segment among the consecutive n shot segments.

[0144] In a possible application scenario, the first clip type is a song and dance type. For song and dance performances, the characteristic of the entire song and dance program segment is the continuity of the music in the program. The end of the music often means the end of the program, which may be accompanied by non-music audio such as applause and the host's speech. Therefore, in each shot segment in the first video segment, after searching for the condition that there are n consecutive music-type shot segments, there are m consecutive speech-type shot segments (if the number of subsequent shots is less than m, the limit on the number of shots is ignored), then the last shot segment among the above n consecutive shots is determined.

[0145] Step 243: Determine second position information based on the last shot segment.

[0146] Correspondingly, the shot end frame of the last shot segment is used as the search target turning point to obtain the second position information. Optionally, the shot end position mark of the last shot segment is used as the second position information.

[0147] In an exemplary embodiment, if Figure 3 As shown, the implementation process of the above step 240 may also include the following steps (244-248).

[0148] Step 244, when the segment type of the first video segment is the second segment type, obtain audio data corresponding to the first video segment.

[0149] The above audio data refers to the audio data corresponding to the first video clip.

[0150] Step 245: perform voiceprint feature extraction processing on the audio data to obtain a voiceprint identification sequence.

[0151] The voiceprint identification sequence is used to represent the audio feature change information. The above voiceprint identification sequence includes at least one voiceprint identification, and the voiceprint identification is used to represent the sound object. Different voiceprint identifications correspond to different sound objects.

[0152] In a possible application scenario, the second segment type is a language type. Language programs usually have various forms. In addition to language performance as the main form, singing, dancing and other forms are also interspersed. Therefore, the audio type is no longer an explicit classification feature, but the second position information can be determined based on the voiceprint characteristics of the object.

[0153] Optionally, voiceprint features in the complete audio data corresponding to the first video clip are extracted to obtain an ASR voiceprint result, which includes the start time, end time and corresponding voiceprint identifier (voice_i) of each sentence in the first clip, and the voiceprint identifiers may constitute the voiceprint sequence.

[0154] Step 246: determine the voiceprint identifier in the voiceprint identifier sequence that meets the target voiceprint characteristic condition as the target voiceprint identifier.

[0155] Optionally, the target voiceprint feature condition is used to screen the target sounding object, and the target voiceprint identifier is the voiceprint identifier corresponding to the target sounding object. For example, the target sounding object may be an off-site person such as a host, and the end position of the program can be determined by finding the voiceprint identifier corresponding to the off-site person and its corresponding appearance time.

[0156] In a possible implementation, Figure 4 As shown, the implementation process of the above step 246 may include the following steps (2461-2462).

[0157] Step 2461, dividing the voiceprint identification sequence to obtain a first voiceprint identification set and a second voiceprint identification set.

[0158] The first voiceprint identifier set refers to a set of voiceprint identifiers corresponding to the target moment and before the target moment in the first video clip, and the second voiceprint identifier set refers to a set of voiceprint identifiers corresponding to after the target moment in the first video clip.

[0159] Step 2462: Determine the voiceprint identifier that only appears in the second voiceprint identifier set as the target voiceprint identifier.

[0160] In a possible application scenario, the voiceprint identifiers covered by the first 2 / 3 part and the last 1 / 3 part of the first video clip are respectively selected to form two sets, namely the first voiceprint identifier set and the second voiceprint identifier set, and the voiceprint identifiers appearing in each of the two sets are counted. Finally, the voiceprint identifiers in the two sets are compared, and the voiceprint identifier newly appearing in the second voiceprint identifier set corresponding only to the last 1 / 3 part is determined as the target voiceprint identifier. Optionally, the data of the target voiceprint identifier is less than or equal to the target sound object number threshold, for example, the target sound object number threshold is 4.

[0161] In another possible implementation, Figure 4 As shown, the implementation process of the above step 246 may also include the following steps (2463-2464).

[0162] Step 2463, obtaining the last appearance time of the voiceprint identifier in the voiceprint identifier sequence in the first video clip.

[0163] By using the last appearance time of the voiceprint identifier, it is also possible to determine whether the sound-making object corresponding to the voiceprint identifier is the target object.

[0164] Step 2464, determine the voiceprint identifier whose last appearance time meets the preset time condition as the target voiceprint identifier.

[0165] Optionally, the preset time condition includes that the last occurrence time is greater than or equal to a preset occurrence time threshold. The target voiceprint feature condition includes the preset time condition.

[0166] Optionally, the target voiceprint identifier may also be a voiceprint identifier that only appears in the second voiceprint identifier set and whose last appearance time meets a preset time condition.

[0167] Step 247, obtaining the earliest appearance time corresponding to the target voiceprint identifier in the first video clip.

[0168] Step 248, determining second location information based on the earliest occurrence time.

[0169] According to the earliest appearance time corresponding to the target voiceprint identifier in the first video clip, a shot segment corresponding to the earliest appearance time is determined, and based on the shot segment, the second position information is determined.

[0170] In a possible implementation, the shot start position identifier of the shot segment corresponding to the earliest appearance time is used as the second position information.

[0171] In another possible implementation, the shot end position identifier of the previous shot segment corresponding to the shot segment corresponding to the earliest appearance time is used as the second position information.

[0172] In an exemplary embodiment, when the segment type of the first video segment is the second segment type, the scene position information of off-site personnel (target person object) such as the host may also be detected, and the second position information may be determined based on the scene position information. For example, the face position of the target person object may be detected, and the face position may be used to represent the scene position information.

[0173] Step 250: Perform a second splitting process on the first video segment according to the second position information to obtain a second video segment.

[0174] When the second position information is the shot end position mark corresponding to the last shot segment, or the shot end position mark of the previous shot segment corresponding to the shot segment corresponding to the earliest appearance time, the first video segment is split into a program segment and an off-program segment. The above two shot end position marks are used to represent the end position of the program segment. Among them, the above second video segment includes the above program segment and the off-program segment.

[0175] In the above case, the video segmentation result can be finally expressed as [segment_start, program_end, segment_start, program_end, ...], wherein segment_start is a segment start position marker corresponding to the first video segment, and program_end is a program segment end position marker.

[0176] When the second position information is a shot start position mark of the shot segment corresponding to the earliest appearance time, the first video segment is split into a program segment and an off-program segment. The shot start position mark is used to indicate the start position of the off-program segment.

[0177] The video processing method provided by the embodiment of the present application is exemplarily described below by using an example. Figure 7 As shown, it exemplarily shows a schematic diagram of a video splitting process. Figure 7The video segmentation process shown can use two modules: a video rough cutting large segment module 71 and a large segment fine cutting module 72. Both modules are based on the fact that the video is segmented into continuous shot segments, that is, the basic input units of the two modules are shot segments. Therefore, for the input video to be processed 70, it is input into the shot segmentation network to obtain multiple shot segments, and then the multiple shot segments are input into the video rough cutting large segment module 71 for the first segmentation process. The operations performed in the video rough-cut large segment module 71 are as follows: extract frames from multiple shot segments to obtain sampled video frames in each shot segment; after obtaining the sampled video frames, perform OCR processing on the sampled video frames to obtain OCR recognition results, which include recognized text in the sampled video frames and text boxes corresponding to the recognized text; then perform dynamic position constraints on the text boxes corresponding to the recognized text in the OCR recognition results to obtain target text boxes whose text box positions meet the position constraint conditions; then perform keyword recognition and extraction processing on the recognized text corresponding to the target text box to determine whether the recognized text includes the target keyword; if the target keyword is included, it can be determined that the sampled video frame includes the target text information, and then the shot segment corresponding to the sampled video frame is determined to be the target shot segment, and the above-mentioned target shot segment is used as the starting shot segment of the first video segment, so as to complete the first splitting processing of the video to be processed and obtain the first video segment.

[0178] In some application scenarios, the target text information is program announcement information. By identifying the program announcement information, the corresponding program start shot segment, i.e., the target shot segment, can be determined. The first video segment obtained by segmenting the target shot segment can be a large segment including a single program segment and an off-site segment of the program corresponding to the program segment.

[0179] After obtaining the first video segment, the first video segment is input to the large segment fine cutting module 72 for second splitting processing. The operations performed in the large segment fine cutting module 72 are as follows: the segment type of each first video segment is determined, and the segment type of the first video segment is determined according to the audio type of the lens segment of each first video segment, and the segment type includes but is not limited to the first segment type and the second segment type; for example, the first segment type is a song and dance type, and the second segment type is a voice type; and then, for different types of first video segments, different strategies are selected to determine the second position information, so as to segment out the second video segment.

[0180] For the first video clip of the first clip type, if the audio type corresponding to the n consecutive lens clips in the first video clip is the first audio type, and the audio type corresponding to the m consecutive lens clips after the n consecutive lens clips is the second audio type, it can be said that the audio feature between the last lens clip in the n consecutive lens clips and the subsequent m consecutive lens clips has changed, and the second position information used to characterize the moment when the audio feature changes can be determined. For example, the first clip type is a song and dance type. When the audio type label of the lens changes from music to speech continuously (>=3), the end position of the song and dance program clip can be determined, and if there is applause in the two, it will be ignored.

[0181] For the first video segment of the second segment type, it is possible to determine whether a new voiceprint identifier appears after the target moment in the first video segment, or to determine the voiceprint identifier that appears after the target moment threshold. Both of the above voiceprint identifiers can be determined as the target voiceprint identifier, and the above second position information can be determined according to the appearance time of the target voiceprint identifier. For example, if the second segment type is a language type, the end position of the language program segment can be determined by determining whether a new voiceprint identifier appears and its appearance time after the last 1 / 3 of the total length of the first video segment, or by determining the voiceprint identifier that lasts until the end of the entire first video segment and its appearance time.

[0182] Through the shot splitting network and the above two modules, the segmentation position information in the complete video can be effectively obtained, and the complete video can be split into more detailed second video segments. For example, the above process can effectively identify the segmentation points of each program in the evening party variety video, and obtain program segments and off-site segments such as host segments. In a possible application scenario, the above-mentioned video to be processed is an evening party variety video. The basic form is a program segment containing announcement information and some non-program segments (other segments besides the program segment). The program types are usually two types: singing and dancing and language. The non-program segments include the opening content, the ending content, the host and other off-site segments.

[0183] In one example, if Figure 8 As shown, it exemplarily shows a schematic diagram of a video splitting result. Through the above video processing method, the video 80 to be processed can be split to obtain the starting frame number and the ending frame number of each segment. The starting frame number of the video 80 to be processed is x_0, and the ending frame number is x_n. Figure 8, the video clip circled by the first dotted frame 81 is the first video clip obtained by the first splitting process, and its corresponding starting frame number is x_a, and the ending frame number is x_c-1. Wherein, x_c is the starting frame number of the next first video clip corresponding to the first video clip. In a possible scenario, if the original video is a party variety video, then the first video clip contains a single program clip and off-site clips such as the host clip after the program clip. The video clip circled by the second dotted frame 82 is a second video clip obtained by the second splitting process, and its corresponding starting frame number is x_a, and the ending frame number is x_b-1. Wherein, x_b is the starting frame number of the next second video clip corresponding to the second video clip. In a possible scenario, the second video clip is a single complete program clip in the party variety video, and does not contain off-site clips such as the host clip after the program clip.

[0184] To summarize, the technical solution provided by the embodiment of the present application can determine the first position information corresponding to the target text information by extracting the target text information in the video to be processed, so that the first splitting processing can be performed on the video to be processed according to the position of the target text information to obtain a first video segment, and the audio feature change information corresponding to the first video segment can also be determined by determining the second position information corresponding to the first video segment, so that the first video segment can be subjected to a second splitting processing according to the second position information to obtain a more detailed second video segment, and the complete video can be split only by extracting the target text information and the audio feature change information and determining their corresponding positions, without manually marking the video splitting positions, effectively reducing labor costs and improving video splitting efficiency.

[0185] In a typical application scenario, such as the splitting scenario of evening party variety shows, the technical solution provided by the embodiment of the present application introduces neural networks and multimodal information in the video, and simultaneously utilizes information such as images, texts, and audios in the video, and effectively combines the neural networks of the three modalities of images, texts, and audios to perform feature extraction and analysis. The evening party variety show video can be split in two stages to obtain program segments and off-site segments of the program. First, according to the image information of each video frame in the video, a complete input video is divided into lens segments, and then the text information of the video frames is sampled in each lens segment and keyword search is performed. The announcement information is determined by matching keywords, and according to the first position information corresponding to the announcement information, each lens segment is combined to obtain a first video segment containing the program segment and the subsequent off-site segment of the program. Then, through the audio feature change information in the first video segment, such as the voiceprint feature change information and the audio type change information corresponding to the lens, the audio feature change position is identified and used as a specific split point, and the separation of the program segment and the off-site segment of the host and other programs is completed. There is no need to manually mark the video splitting points, which reduces the labor cost and improves the accuracy and efficiency of video splitting.

[0186] In addition, the technical solution provided in the embodiment of the present application can be applied to the media AI middle station. The multimodal information extraction neural network configured in the embodiment of the present application and the video clips obtained by splitting the multimodal information obtained from the video have high accuracy and strong robustness, which is convenient for video service providers such as TV stations to perform subsequent functions such as video cataloging and video classification, effectively reducing labor costs.

[0187] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0188] Please refer to Fig. 9 , which shows a block diagram of a video processing device provided by an embodiment of the present application. The device has the function of implementing the above-mentioned video processing method, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be a computer device, or can be set in a computer device. The device 900 may include: a video acquisition module 910, a first position determination module 920, a first video splitting module 930, a second position determination module 940, and a second video splitting module 950.

[0189] The video acquisition module 910 is used to acquire the video to be processed.

[0190] The first position determination module 920 is used to perform text information extraction processing on the video to be processed to obtain target text information and first position information corresponding to the target text information.

[0191] The first video splitting module 930 is used to perform a first splitting process on the video to be processed according to the first position information to obtain a first video segment.

[0192] The second position determination module 940 is configured to determine the audio feature change information corresponding to the first video clip and second position information corresponding to the audio feature change information.

[0193] The second video splitting module 950 is used to perform a second splitting process on the first video segment according to the second position information to obtain a second video segment.

[0194] In an exemplary embodiment, the video to be processed includes at least one shot segment, and the first position determination module 920 includes: a shot frame extraction unit, a text extraction unit, a target text determination unit, a target shot determination unit, and a first position determination unit.

[0195] The shot frame extraction unit is used to perform frame extraction processing on the at least one shot segment to obtain a video frame sequence.

[0196] The text extraction unit is used to perform text information extraction processing on at least one video frame in the video frame sequence to obtain text information corresponding to the at least one video frame.

[0197] The target text determination unit is configured to obtain the target text information based on the text information if the text information meets the target text condition.

[0198] The target shot determining unit is used to determine the target shot segment corresponding to the target text information in the at least one shot segment.

[0199] The first position determining unit is configured to determine the first position information based on the target shot segment.

[0200] In an exemplary embodiment, the target shot determination unit includes: a target frame determination subunit, a target interval division subunit, a position marker acquisition subunit, a position marker matching subunit, and a target shot determination subunit.

[0201] The target frame determination subunit is used to determine the target video frame corresponding to the target text information in the at least one video frame and the video frame position identifier corresponding to the target video frame.

[0202] The target interval division subunit is used to perform interval division processing on the at least one video frame based on the video frame position identifier to obtain at least one target interval, wherein the target interval refers to the interval corresponding to the target video frame whose video frame position identifier meets the preset arrangement condition.

[0203] The position marker acquisition subunit is used to acquire the interval start position marker corresponding to the target interval and the shot start position marker corresponding to the at least one shot segment.

[0204] The position mark matching subunit is used to match the interval start position mark with the shot start position mark to obtain a target shot start position mark corresponding to the interval start position mark.

[0205] The target shot determination subunit is used to determine the shot segment corresponding to the target shot start position identifier as the target shot segment.

[0206] In an exemplary embodiment, the text extraction unit includes: a text recognition subunit, a coverage area determination subunit, a coverage rate determination subunit, a target text box determination subunit, and a text information extraction subunit.

[0207] The text recognition subunit is used to perform text recognition processing on the at least one video frame to obtain the recognized text corresponding to the at least one video frame and the text box corresponding to the recognized text.

[0208] The coverage area determination subunit is used to determine the coverage area between the text box and the target constraint area.

[0209] The coverage ratio determination subunit is used to determine the corresponding coverage ratio between the target constraint area and the text box based on the coverage area.

[0210] The target text box determination subunit is used to determine that the text box is a target text box if the coverage rate is greater than or equal to a coverage rate threshold.

[0211] The text information extraction subunit is used to determine the text information based on the target text box.

[0212] In an exemplary embodiment, the second position determining module includes: an audio type acquiring unit, a first lens determining unit, and a second position determining unit.

[0213] An audio type acquisition unit is used to obtain the shot audio type information corresponding to the shot segment in the first video segment when the segment type of the first video segment is the first segment type, and the audio feature change information includes the shot audio type information, and the shot audio type information is used to characterize the audio type corresponding to the shot segment.

[0214] The first shot determination unit is used to determine the last shot segment in the n consecutive shot segments if the audio type corresponding to n consecutive shot segments in the first video segment is the first audio type, and the audio type corresponding to m consecutive shot segments after the n consecutive shot segments is the second audio type, wherein n is an integer greater than 1, m is an integer greater than 0, and the last shot segment refers to the last shot segment in the n consecutive shot segments.

[0215] The second position determining unit is configured to determine the second position information based on the last shot segment.

[0216] In an exemplary embodiment, the second position determination module further includes: an audio data acquisition unit, a voiceprint feature extraction unit, a target voiceprint determination unit, and a time acquisition unit.

[0217] The audio data acquisition unit is used to acquire audio data corresponding to the first video segment when the segment type of the first video segment is the second segment type.

[0218] The voiceprint feature extraction unit is used to perform voiceprint feature extraction processing on the audio data to obtain a voiceprint identification sequence, and the voiceprint identification sequence is used to represent the audio feature change information.

[0219] The target voiceprint determining unit is used to determine the voiceprint identifier in the voiceprint identifier sequence that meets the target voiceprint characteristic condition as the target voiceprint identifier.

[0220] The time acquisition unit is used to acquire the earliest appearance time corresponding to the target voiceprint identifier in the first video segment.

[0221] The second position determining unit is further configured to determine the second position information based on the earliest occurrence time.

[0222] In an exemplary embodiment, the target voiceprint determination unit includes: a voiceprint sequence division subunit and a target voiceprint determination subunit.

[0223] The voiceprint sequence division subunit is used to divide the voiceprint identification sequence to obtain a first voiceprint identification set and a second voiceprint identification set. The first voiceprint identification set refers to a set consisting of voiceprint identifications corresponding to a target moment in the first video clip and before the target moment, and the second voiceprint identification set refers to a set consisting of voiceprint identifications corresponding to after the target moment in the first video clip.

[0224] The target voiceprint determination subunit is configured to determine a voiceprint identifier that only appears in the second voiceprint identifier set as the target voiceprint identifier.

[0225] In an exemplary embodiment, the target voiceprint determination unit further includes: a time acquisition subunit.

[0226] The time acquisition subunit is used to obtain the last appearance time of the voiceprint identifier in the voiceprint identifier sequence in the first video clip.

[0227] The target voiceprint determination subunit is further configured to determine the voiceprint identifier whose last appearance time meets a preset time condition as the target voiceprint identifier.

[0228] In an exemplary embodiment, the device 900 further includes: a shot audio acquisition module, a shot type identification module, and a segment type determination module.

[0229] The shot audio acquisition module is used to acquire the shot audio data corresponding to the shot segment in the first video segment.

[0230] The lens type identification module is used to perform audio type identification processing on the lens audio data to obtain the lens audio type information.

[0231] A segment type determination module is used to determine segment type information corresponding to the first video segment based on the shot audio type information, wherein the segment type information is used to characterize the segment type of the first video segment.

[0232] In an exemplary embodiment, the shot type identification module includes: an audio segment division unit, an audio segment identification unit, and an audio type determination unit.

[0233] The audio segment division unit is used to divide the shot audio data into at least two audio data segments.

[0234] The audio segment identification unit is used to perform audio type identification processing on the at least two audio data segments to obtain segment audio type information corresponding to the at least two audio data segments.

[0235] The audio type determination unit is used to determine the shot audio type information based on the segment audio type information.

[0236] In an exemplary embodiment, the audio type includes a first audio type and a second audio type, and the segment type determination module includes: a quantity determination unit, a first segment type determination unit, and a second segment type determination unit.

[0237] A quantity determination unit is used to determine the number of first shot segments and the number of second shot segments in the first video segment based on the shot audio type information, wherein the first shot segment refers to the shot segment whose audio type is the first audio type, and the second shot segment refers to the shot segment whose audio type is the second audio type.

[0238] The first segment type determining unit is configured to determine that the segment type of the first video segment is the first segment type if the number of the first shot segments is greater than or equal to the number of the second shot segments.

[0239] The second segment type determining unit is configured to determine that the segment type of the first video segment is the second segment type if the number of the first shot segments is less than the number of the second shot segments.

[0240] To summarize, the technical solution provided by the embodiment of the present application can determine the first position information corresponding to the target text information by extracting the target text information in the video to be processed, so that the first splitting processing can be performed on the video to be processed according to the position of the target text information to obtain a first video segment, and the audio feature change information corresponding to the first video segment can also be determined by determining the second position information corresponding to the first video segment, so that the first video segment can be subjected to a second splitting processing according to the second position information to obtain a more detailed second video segment, and the complete video can be split only by extracting the target text information and the audio feature change information and determining their corresponding positions, without manually marking the video splitting positions, effectively reducing labor costs and improving video splitting efficiency.

[0241] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0242] Please refer to Fig.10 , which shows a structural block diagram of a computer device provided by an embodiment of the present application. The computer device may be a server for executing the above-mentioned video processing method. Specifically:

[0243] The computer device 1000 includes a central processing unit (CPU) 1001, a system memory 1004 including a random access memory (RAM) 1002 and a read only memory (ROM) 1003, and a system bus 1005 connecting the system memory 1004 and the central processing unit 1001. The computer device 1000 also includes a basic input / output system (I / O (Input / Output) system) 1006 for facilitating information transmission between various components in the computer, and a large-capacity storage device 1007 for storing an operating system 1013, application programs 1014, and other program modules 1015.

[0244] The basic input / output system 1006 includes a display 1008 for displaying information and an input device 1009 such as a mouse and a keyboard for user inputting information. The display 1008 and the input device 1009 are connected to the central processing unit 1001 through an input / output controller 1010 connected to the system bus 1005. The basic input / output system 1006 may also include an input / output controller 1010 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 1010 also provides output to a display screen, a printer, or other types of output devices.

[0245] The mass storage device 1007 is connected to the central processing unit 1001 through a mass storage controller (not shown) connected to the system bus 1005. The mass storage device 1007 and its associated computer readable medium provide non-volatile storage for the computer device 1000. That is, the mass storage device 1007 may include a computer readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.

[0246] Without loss of generality, computer readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash memory or other solid-state storage technologies, CD-ROM, DVD (Digital Video Disc) or other optical storage, cassettes, magnetic tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media are not limited to the above. The above-mentioned system memory 1004 and mass storage device 1007 can be collectively referred to as memory.

[0247] According to various embodiments of the present application, the computer device 1000 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 1000 can be connected to the network 1012 through the network interface unit 1011 connected to the system bus 1005, or the network interface unit 1011 can be used to connect to other types of networks or remote computer systems (not shown).

[0248] The memory further includes a computer program, which is stored in the memory and configured to be executed by one or more processors to implement the above video processing method.

[0249] In an exemplary embodiment, a computer-readable storage medium is also provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and when the at least one instruction, the at least one program, the code set or the instruction set is executed by a processor, the above-mentioned video processing method is implemented.

[0250] Optionally, the computer readable storage medium may include: ROM (Read Only Memory), RAM (Random Access Memory), SSD (Solid State Drives) or optical disks, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0251] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned video processing method.

[0252] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.

[0253] In addition, in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0254] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A video processing method, characterized in that: The method comprises: Acquire a video to be processed; the video to be processed includes at least one shot segment; Performing text information extraction processing on the video to be processed to obtain target text information and first position information corresponding to the target text information; performing text information extraction processing on the video to be processed to obtain target text information and first position information corresponding to the target text information includes: Performing frame extraction processing on the at least one shot segment to obtain a video frame sequence; performing text information extraction processing on at least one video frame in the video frame sequence to obtain text information corresponding to the at least one video frame; if the text information meets the target text condition, obtaining the target text information based on the text information; determining a target shot segment corresponding to the target text information in the at least one shot segment; and determining the first position information based on the target shot segment; Performing a first splitting process on the video to be processed according to the first position information to obtain a first video segment; Determine audio feature change information corresponding to the first video clip and second position information corresponding to the audio feature change information; The first video segment is subjected to a second splitting process according to the second position information to obtain a second video segment.

2. The method according to claim 1, characterized in that The step of determining a target shot segment corresponding to the target text information in the at least one shot segment includes: Determine a target video frame corresponding to the target text information in the at least one video frame and a video frame position identifier corresponding to the target video frame; Based on the video frame position identifier, the at least one video frame is divided into intervals to obtain at least one target interval, where the target interval refers to an interval corresponding to the target video frame whose video frame position identifier meets a preset arrangement condition; Acquire an interval start position identifier corresponding to the target interval and a shot start position identifier corresponding to the at least one shot segment; Matching the interval start position identifier with the shot start position identifier to obtain a target shot start position identifier corresponding to the interval start position identifier; The shot segment corresponding to the target shot starting position identifier is determined as the target shot segment.

3. The method according to claim 1, characterized in that The performing text information extraction processing on at least one video frame in the video frame sequence to obtain text information corresponding to the at least one video frame includes: Performing text recognition processing on the at least one video frame to obtain recognized text corresponding to the at least one video frame and a text box corresponding to the recognized text; Determine the coverage area between the text box and the target constraint area; Based on the coverage area, determining a corresponding coverage ratio between the target constraint area and the text box; If the coverage rate is greater than or equal to the coverage rate threshold, determining that the text box is a target text box; Based on the target text box, the text information is determined.

4. The method according to claim 1, characterized in that: The determining the audio feature change information corresponding to the first video clip and the second position information corresponding to the audio feature change information includes: In the case where the segment type of the first video segment is the first segment type, obtaining lens audio type information corresponding to the lens segment in the first video segment, wherein the audio feature change information includes the lens audio type information, and the lens audio type information is used to characterize the audio type corresponding to the lens segment; the segment type is determined by voting on the audio type label obtained by the neural network identifying the lens segment in the first video segment; If the audio type corresponding to n consecutive shot segments in the first video segment is the first audio type, and the audio type corresponding to m consecutive shot segments after the n consecutive shot segments is the second audio type, then determining the last shot segment in the n consecutive shot segments, where n is an integer greater than 1, and m is an integer greater than 0, and the last shot segment refers to the last shot segment in the n consecutive shot segments; The second position information is determined based on the last shot segment.

5. The method according to claim 4, characterized in that The determining of the audio feature change information corresponding to the first video clip and the second position information corresponding to the audio feature change information further includes: When the segment type of the first video segment is the second segment type, obtaining audio data corresponding to the first video segment; Performing voiceprint feature extraction processing on the audio data to obtain a voiceprint identification sequence, wherein the voiceprint identification sequence is used to represent the audio feature change information; Determine the voiceprint identifier in the voiceprint identifier sequence that meets the target voiceprint characteristic condition as the target voiceprint identifier; Obtaining the earliest appearance time of the target voiceprint identifier in the first video clip; Based on the earliest occurrence time, the second position information is determined.

6. The method according to claim 5, characterized in that The step of determining the voiceprint identifier in the voiceprint identifier sequence that meets the target voiceprint characteristic condition as the target voiceprint identifier includes: The voiceprint identification sequence is divided and processed to obtain a first voiceprint identification set and a second voiceprint identification set, wherein the first voiceprint identification set refers to a set consisting of voiceprint identifications corresponding to a target moment in the first video clip and before the target moment, and the second voiceprint identification set refers to a set consisting of voiceprint identifications corresponding to after the target moment in the first video clip; The voiceprint identifier that only appears in the second voiceprint identifier set is determined as the target voiceprint identifier.

7. The method according to claim 5, characterized in that The step of determining the voiceprint identifier in the voiceprint identifier sequence that meets the target voiceprint characteristic condition as the target voiceprint identifier includes: Obtaining the last appearance time of the voiceprint identifier in the voiceprint identifier sequence in the first video clip; The voiceprint identifier whose last appearance time meets the preset time condition is determined as the target voiceprint identifier.

8. The method according to any one of claims 4 to 7, characterized in that: The method further comprises: Acquire shot audio data corresponding to the shot segment in the first video segment; Performing audio type recognition processing on the lens audio data to obtain the lens audio type information; Based on the shot audio type information, segment type information corresponding to the first video segment is determined, where the segment type information is used to characterize the segment type of the first video segment.

9. The method according to claim 8, characterized in that The performing audio type identification processing on the lens audio data to obtain the lens audio type information includes: Dividing the shot audio data into at least two audio data segments; Performing audio type recognition processing on the at least two audio data segments to obtain segment audio type information corresponding to the at least two audio data segments; Based on the segment audio type information, the shot audio type information is determined.

10. The method according to claim 9, characterized in that The audio type includes a first audio type and a second audio type, and determining the segment type information corresponding to the first video segment based on the shot audio type information includes: Based on the shot audio type information, determine the number of first shot segments and the number of second shot segments in the first video segment, wherein the first shot segment refers to a shot segment whose audio type is the first audio type, and the second shot segment refers to a shot segment whose audio type is the second audio type; If the number of the first shot segments is greater than or equal to the number of the second shot segments, determining that the segment type of the first video segment is the first segment type; If the number of the first shot segments is less than the number of the second shot segments, the segment type of the first video segment is determined to be the second segment type.

11. A video processing device, characterized in that: The device comprises: A video acquisition module, used to acquire a video to be processed; the video to be processed includes at least one shot segment; The first position determination module is used to perform text information extraction processing on the video to be processed to obtain target text information and first position information corresponding to the target text information; the first position determination module includes: a shot frame extraction unit, a text extraction unit, a target text determination unit, a target shot determination unit, and a first position determination unit; the shot frame extraction unit is used to perform frame extraction processing on the at least one shot segment to obtain a video frame sequence; the text extraction unit is used to perform text information extraction processing on at least one video frame in the video frame sequence to obtain text information corresponding to the at least one video frame; the target text determination unit is used to obtain the target text information based on the text information if the text information meets the target text condition; the target shot determination unit is used to determine the target shot segment corresponding to the target text information in the at least one shot segment; the first position determination unit is used to determine the first position information based on the target shot segment; A first video splitting module, configured to perform a first splitting process on the video to be processed according to the first position information to obtain a first video segment; A second position determination module, used to determine the audio feature change information corresponding to the first video clip and second position information corresponding to the audio feature change information; The second video splitting module is used to perform a second splitting process on the first video segment according to the second position information to obtain a second video segment.

12. The device according to claim 11, characterized in that The target shot determination unit includes: a target frame determination subunit, a target interval division subunit, a position mark acquisition subunit, a position mark matching subunit, and a target shot determination subunit; The target frame determination subunit is used to determine the target video frame corresponding to the target text information in the at least one video frame and the video frame position identifier corresponding to the target video frame; The target interval division subunit is used to perform interval division processing on the at least one video frame based on the video frame position identifier to obtain at least one target interval, where the target interval refers to an interval corresponding to the target video frame whose video frame position identifier meets the preset arrangement condition; The position mark acquisition subunit is used to acquire the interval start position mark corresponding to the target interval and the shot start position mark corresponding to the at least one shot segment; The position mark matching subunit is used to match the interval start position mark with the shot start position mark to obtain a target shot start position mark corresponding to the interval start position mark; The target shot determination subunit is used to determine the shot segment corresponding to the target shot start position identifier as the target shot segment.

13. The device according to claim 11, characterized in that The text extraction unit includes: a text recognition subunit, a coverage area determination subunit, a coverage rate determination subunit, a target text box determination subunit, and a text information extraction subunit; The text recognition subunit is used to perform text recognition processing on the at least one video frame to obtain the recognized text corresponding to the at least one video frame and the text box corresponding to the recognized text; The coverage area determination subunit is used to determine the coverage area between the text box and the target constraint area; The coverage ratio determination subunit is used to determine the corresponding coverage ratio between the target constraint area and the text box based on the coverage area; The target text box determination subunit is used to determine that the text box is a target text box if the coverage rate is greater than or equal to a coverage rate threshold; The text information extraction subunit is used to determine the text information based on the target text box.

14. The device according to claim 11, characterized in that The second position determination module includes: an audio type acquisition unit, a first lens determination unit, and a second position determination unit; The audio type acquisition unit is used to acquire, when the segment type of the first video segment is the first segment type, lens audio type information corresponding to the lens segment in the first video segment, the audio feature change information includes the lens audio type information, and the lens audio type information is used to characterize the audio type corresponding to the lens segment; the segment type is determined by voting on the audio type label obtained by the neural network identifying the lens segment in the first video segment; The first shot determination unit is configured to determine a last shot segment in the n consecutive shot segments if the audio type corresponding to n consecutive shot segments in the first video segment is the first audio type, and the audio type corresponding to m consecutive shot segments after the n consecutive shot segments is the second audio type, wherein n is an integer greater than 1, m is an integer greater than 0, and the last shot segment refers to the last shot segment in the n consecutive shot segments; The second position determining unit is configured to determine the second position information based on the last shot segment.

15. The device according to claim 14, characterized in that The second position determination module further includes: an audio data acquisition unit, a voiceprint feature extraction unit, a target voiceprint determination unit, and a time acquisition unit; The audio data acquisition unit is configured to acquire audio data corresponding to the first video segment when the segment type of the first video segment is a second segment type; The voiceprint feature extraction unit is used to perform voiceprint feature extraction processing on the audio data to obtain a voiceprint identification sequence, and the voiceprint identification sequence is used to represent the audio feature change information; The target voiceprint determination unit is used to determine the voiceprint identifier that meets the target voiceprint characteristic condition in the voiceprint identifier sequence as the target voiceprint identifier; The time acquisition unit is used to acquire the earliest appearance time corresponding to the target voiceprint identifier in the first video clip; The second position determining unit is further configured to determine the second position information based on the earliest occurrence time.

16. The device according to claim 15, characterized in that The target voiceprint determination unit includes: a voiceprint sequence division subunit and a target voiceprint determination subunit; The voiceprint sequence division subunit is used to divide the voiceprint identification sequence to obtain a first voiceprint identification set and a second voiceprint identification set, wherein the first voiceprint identification set refers to a set consisting of voiceprint identifications corresponding to a target moment in the first video clip and before the target moment, and the second voiceprint identification set refers to a set consisting of voiceprint identifications corresponding to after the target moment in the first video clip; The target voiceprint determination subunit is configured to determine a voiceprint identifier that only appears in the second voiceprint identifier set as the target voiceprint identifier.

17. The device according to claim 15, characterized in that The target voiceprint determination unit further includes: a moment acquisition subunit; The time acquisition subunit is used to acquire the last appearance time of the voiceprint identifier in the voiceprint identifier sequence in the first video segment; The target voiceprint determination subunit is further configured to determine the voiceprint identifier whose last appearance time meets a preset time condition as the target voiceprint identifier.

18. The device according to any one of claims 14 to 17, characterized in that The device further comprises: a shot audio acquisition module, a shot type identification module, and a segment type determination module; The shot audio acquisition module is used to acquire shot audio data corresponding to the shot segment in the first video segment; The lens type recognition module is used to perform audio type recognition processing on the lens audio data to obtain the lens audio type information; The segment type determination module is used to determine segment type information corresponding to the first video segment based on the shot audio type information, where the segment type information is used to characterize the segment type of the first video segment.

19. The device according to claim 18, characterized in that The shot type identification module includes: an audio segment division unit, an audio segment identification unit, and an audio type determination unit; The audio segment division unit is used to divide the shot audio data into at least two audio data segments; The audio segment identification unit is used to perform audio type identification processing on the at least two audio data segments to obtain segment audio type information corresponding to the at least two audio data segments; The audio type determination unit is used to determine the shot audio type information based on the segment audio type information.

20. The device according to claim 19, characterized in that The audio type includes a first audio type and a second audio type, and the segment type determination module includes: a quantity determination unit, a first segment type determination unit, and a second segment type determination unit; The quantity determination unit is used to determine the number of first shot segments and the number of second shot segments in the first video segment based on the shot audio type information, wherein the first shot segments refer to shot segments whose audio type is the first audio type, and the second shot segments refer to shot segments whose audio type is the second audio type; The first segment type determination unit is configured to determine that the segment type of the first video segment is the first segment type if the number of the first shot segments is greater than or equal to the number of the second shot segments; The second segment type determination unit is configured to determine that the segment type of the first video segment is the second segment type if the number of the first shot segments is less than the number of the second shot segments.

21. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the video processing method according to any one of claims 1 to 10.

22. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the video processing method as described in any one of claims 1 to 10.

23. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes to implement the video processing method according to any one of claims 1 to 10.