Video processing method and device, electronic device and storage medium

CN116546264BActive Publication Date: 2024-08-30BEIJING DUYOU INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310377697.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-10
Publication Date
2024-08-30
Estimated Expiration
2043-04-10

Smart Images

  • Figure CN116546264B
    Figure CN116546264B
Patent Text Reader

Abstract

The present disclosure provides a video processing method and device, an electronic device and a storage medium, which relate to the field of computer technology, and in particular to the field of multimedia technology. The implementation scheme is: obtaining the playback behavior data of the video to be processed; based on the playback behavior data, determining the target video segment where the content segmentation point of the video is located; extracting the audio features of the target video segment; and determining the content segmentation point from the target video segment based on the audio features.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, in particular to the field of multimedia technology, and specifically to a video processing method and device, an electronic device, a computer-readable storage medium, and a computer program product. Background Art

[0002] The same video may include different types of content, such as the opening, main film (the main body of the video), advertisements, and ending credits. Users have different levels of interest in different types of content. By locating different types of content in the video, it is easier for users to browse the content they are interested in.

[0003] The methods described in this section are not necessarily methods that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any method described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art. Summary of the invention

[0004] The present disclosure provides a video processing method and device, an electronic device, a computer-readable storage medium, and a computer program product.

[0005] According to one aspect of the present disclosure, a video processing method is provided, comprising: obtaining playback behavior data of a video to be processed; determining a target video segment where a content segmentation point of the video is located based on the playback behavior data, wherein the type of video content before the content segmentation point is different from the type of video content after the content segmentation point; extracting audio features of the target video segment; and determining the content segmentation point from the target video segment based on the audio features.

[0006] According to one aspect of the present disclosure, a video processing device is provided, including: an acquisition module, configured to acquire playback behavior data of a video to be processed; a first determination module, configured to determine, based on the playback behavior data, a target video segment where a content segmentation point of the video is located, wherein the type of video content before the content segmentation point is different from the type of video content after the content segmentation point; an extraction module, configured to extract audio features of the target video segment; and a second determination module, configured to determine the content segmentation point from the target video segment based on the audio features.

[0007] According to one aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor so that the at least one processor can perform the above method.

[0008] According to one aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to execute the above method.

[0009] According to one aspect of the present disclosure, a computer program product is provided, comprising computer program instructions, which implement the above method when executed by a processor.

[0010] According to one or more embodiments of the present disclosure, efficient and accurate segmentation of video content can be achieved.

[0011] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0013] Figure 1 A schematic diagram showing an exemplary system in which various methods described herein may be implemented according to an embodiment of the present disclosure;

[0014] Figure 2 A flowchart of a video processing method according to an embodiment of the present disclosure is shown;

[0015] Figure 3 A schematic diagram of a video processing system according to an embodiment of the present disclosure is shown;

[0016] Figure 4 An interactive timing diagram of a video processing system according to an embodiment of the present disclosure is shown;

[0017] Figure 5 A flowchart of a video processing process according to an embodiment of the present disclosure is shown;

[0018] Figure 6 A structural block diagram of a video processing device according to an embodiment of the present disclosure is shown; and

[0019] Figure 7 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0020] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0021] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, temporal relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.

[0022] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.

[0023] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0024] When playing a video, users usually skip the opening, ending, advertisements and other contents they are not interested in, and only watch the main film. In the related art, the video producers or operators of the video playback platform usually manually mark the segmentation points of the video content (for example, the positions of the opening, ending, advertisements, etc.), which is inefficient and has high labor costs.

[0025] In view of the above problems, the embodiments of the present disclosure provide a video processing method, which can achieve efficient and accurate segmentation of video content.

[0026] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0027] Figure 1 FIG. 1 is a schematic diagram of an exemplary system 100 in which various methods and apparatuses described herein may be implemented according to an embodiment of the present disclosure. Figure 1, the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105, and 106 may be configured to execute one or more applications.

[0028] In an embodiment of the present disclosure, the client devices 101 , 102 , 103 , 104 , 105 , and 106 and the server 120 may run one or more services or software applications that enable execution of the video processing method of the embodiment of the present disclosure.

[0029] In some embodiments, server 120 may also provide other services or software applications, which may include non-virtualized environments and virtualized environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of client devices 101, 102, 103, 104, 105, and / or 106 under a software as a service (SaaS) model.

[0030] exist Figure 1 In the configuration shown, the server 120 may include one or more components that implement the functions performed by the server 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 may in turn utilize one or more client applications to interact with the server 120 to utilize the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from the system 100. Therefore, Figure 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.

[0031] Client devices 101, 102, 103, 104, 105, and / or 106 may provide an interface that enables a user of the client device to interact with the client device. The client device may also output information to the user via the interface. Figure 1 Only six client devices are depicted, but one skilled in the art will appreciate that the present disclosure may support any number of client devices.

[0032] Client devices 101, 102, 103, 104, 105 and / or 106 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptop computers), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, vehicle-mounted devices, game systems, thin clients, various messaging devices, sensors or other sensing devices, etc. These computer devices may run various types and versions of software applications and operating systems, such as MICROSOFT Windows, APPLE iOS, UNIX-like operating systems, Linux or Linux-like operating systems; or include various mobile operating systems, such as MICROSOFT Windows Mobile OS, iOS, Windows Phone, Android. Portable handheld devices may include cellular phones, smart phones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Game systems may include various handheld game devices, Internet-enabled game devices, etc. Client devices are capable of executing various different applications, such as various Internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and may use various communication protocols.

[0033] The network 110 may be any type of network known to those skilled in the art that may support data communications using any of a variety of available protocols, including but not limited to TCP / IP, SNA, IPX, etc. By way of example only, the one or more networks 110 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a blockchain network, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, Wi-Fi), and / or any combination of these and / or other networks.

[0034] Server 120 may include one or more general purpose computers, dedicated server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.

[0035] The computing units in the server 120 may run one or more operating systems including any of the above operating systems and any commercially available server operating systems. The server 120 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.

[0036] In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and / or 106. Server 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and / or 106.

[0037] In some embodiments, the server 120 may be a server of a distributed system, or a server combined with a blockchain. The server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. A cloud server is a host product in a cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.

[0038] The system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store information such as audio files and video files. The databases 130 may reside in various locations. For example, the database used by the server 120 may be local to the server 120, or may be remote from the server 120 and may communicate with the server 120 via a network-based or dedicated connection. The databases 130 may be of different types. In some embodiments, the databases used by the server 120 may be, for example, relational databases. One or more of these databases may store, update, and retrieve data to and from the databases in response to commands.

[0039] In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the applications may be different types of databases, such as a key-value store, an object store, or a conventional store backed by a file system.

[0040] Figure 1 The system 100 may be configured and operated in various ways to enable the application of various methods and apparatuses described in the present disclosure.

[0041] According to some embodiments, the client device 101-106 may include a client application (e.g., a network disk client, a video client, etc.) for playing a video. Accordingly, the server 120 is a server corresponding to the client application. The server 120 may determine the content segmentation points of the video, such as the end point of the title, the start point of the end, the end point of the advertisement, etc., by executing the data processing method of the embodiment of the present disclosure. The determined content segmentation points of the video may be stored in the database 130 in association with the video. When the client device 101-106 initiates a playback request for the video, the server 120 may return the video data of the video to the user together with its content segmentation points so that the client device 101-106 plays the video. In the process of the client device 101-106 playing the video, the title, the end, and other contents may be automatically or manually (i.e., based on the user's choice) skipped based on the content segmentation points of the video to enhance the user's video playback experience.

[0042] In some embodiments, the client devices 101-106 may also determine the content segmentation points of the video by executing the data processing method of the embodiment of the present disclosure. This embodiment generally requires the client devices 101-106 to have relatively high hardware configuration and computing power.

[0043] Figure 2 2 shows a flow chart of a video processing method 200 according to an embodiment of the present disclosure. As described above, the execution subject of the method 200 is usually a server (for example, the server 120 described above). In some embodiments, the execution subject of the method 200 may also be a client device (for example, the client devices 101-106 described above). Figure 2 As shown, method 200 includes steps S210 - S240 .

[0044] In step S210, the playback behavior data of the video to be processed is obtained.

[0045] In step S220, based on the playback behavior data, the target video segment where the content segmentation point of the video is located is determined. The type of the video content before the content segmentation point is different from the type of the video content after the content segmentation point.

[0046] In step S230, audio features of the target video segment are extracted.

[0047] In step S240 , content segmentation points are determined from the target video segment based on the audio features.

[0048] According to an embodiment of the present disclosure, based on the user's playback behavior data of a certain video, the approximate position of the content segmentation point of the video, that is, the target video segment, is determined. Subsequently, based on the audio features of the target video segment, the precise position of the content segmentation point is determined. In this way, efficient and accurate segmentation of video content can be achieved.

[0049] The following is a detailed description of each step of method 200.

[0050] In step S210, the playback behavior data of the video to be processed is obtained.

[0051] The video to be processed may include different types of video content, including but not limited to the title, the main film (i.e., the main body of the video), the end film, etc. In the embodiment of the present disclosure, the time demarcation points of different types of video content are recorded as content segmentation points. The type of video content before the content segmentation point is different from the type of video content after the content segmentation point. The content segmentation point includes, for example, the title end point (i.e., the main film start point) for separating the title from the main film, and the end start point (i.e., the main film end point) for separating the main film from the end film. In the case where an advertisement is inserted in the main film, the content segmentation point may also include an advertisement end point (i.e., the main film start point) for separating the advertisement from the main film, etc.

[0052] In order to improve the accuracy of video content segmentation, in step S210, it is usually necessary to obtain playback behavior data from multiple users.

[0053] Playback behavior data refers to the behavior data generated by users during the video playback process.

[0054] According to some embodiments, the playback behavior data includes, for example, the number of times a video is played.

[0055] According to some embodiments, the playback behavior data includes the type of interactive operation performed by the user on the video, the playback time point of the video when the user performs the interactive operation on the video, and the like.

[0056] The user's interactive operation on the video may be, for example, a select play operation. The select play operation is used to select the time point from which to start playing the video, that is, the play time point corresponding to the select play operation is the start play time point selected by the user. For example, the select play operation may be an operation of dragging the positioning control in the progress bar, that is, a drag operation. The play time point corresponding to the drag operation is the video time point corresponding to the position of the positioning control when the user ends the drag operation. For another example, the select play operation may be an operation in which the user enters the time point of his or her choice into a text box, that is, a time point input operation. The time point entered by the user is the play time point corresponding to the time point input operation.

[0057] The user's interactive operation on the video may be, for example, an end playback operation. The playback time point corresponding to the end playback operation is the time point at which the video is located when the user ends the video playback, that is, the end playback time point. Specifically, the end playback operation may be, for example, an operation of closing or exiting the video playback interface.

[0058] The user's playback behavior data can reflect the user's interest in the video content, thereby reflecting the change of the video content. Therefore, based on the playback behavior data of multiple users, the location of the content segmentation point can be quickly identified.

[0059] In step S220, based on the playback behavior data, a target video segment where the content segmentation point of the video is located is determined.

[0060] According to some embodiments, as described above, the playback behavior data includes the playback time point of the video when the user performs an interactive operation on the video. Accordingly, step S220 may include the following steps S222-S226.

[0061] In step S222, the video is divided into a plurality of video segments of target duration.

[0062] In step S224, for any video segment among the multiple video segments, the number of interactions of the video segment is determined, wherein the number of interactions is the number of interaction operations at the playback time point in the video segment.

[0063] In step S226, a target video segment is determined from the multiple video segments based on the number of interactions of each of the multiple video segments.

[0064] According to the above embodiment, the user's interactive operation on the video can reflect the user's interest in the video content, thereby reflecting the change of the video content. For example, the user is usually not interested in the video content such as the opening, the end, and the advertisement. When playing the opening and the advertisement, the user is likely to perform a selection and play operation to skip these video contents and enter the main film. When playing the end, the user is likely to perform an end playback operation. Therefore, based on the user's interactive operation, the approximate position of the content segmentation point can be quickly determined.

[0065] In step S222, the video to be processed is divided into a plurality of video segments of the same duration. The duration of each video segment is the target duration. The target duration can be any value, such as 10 seconds, 30 seconds, 1 minute, etc. According to some embodiments, the target duration can be positively correlated with the total duration of the video. That is, the larger the total duration of the video, the larger the target duration is set. This can improve the efficiency of video processing.

[0066] In step S224, the number of interactions of each video segment may be determined based on the user's playback behavior data. The number of interactions of a video segment refers to the number of interactive operations at the playback time point in the video segment.

[0067] According to some embodiments, different types of interactive operations may be selected to identify different types of content segmentation points, thereby improving the accuracy of content segmentation. Accordingly, for different types of content segmentation points, the specific implementation details of steps S224 and S226 are different.

[0068] According to some embodiments, a selection play operation may be used to identify the end point of the title. Accordingly, the play behavior data includes the play time point selected by the user's selection play operation and the continuous play duration of the user starting from the play time point. Accordingly, step S224 may further include steps S2242 and S2244.

[0069] In step S2242, the interactive operation whose continuous playing time is longer than a first threshold is determined as a valid interactive operation. The first threshold may be, for example, 3 seconds, 5 seconds, etc.

[0070] In step S2244, the number of valid interactive operations whose playback time point is in the video segment is determined as the number of interactions.

[0071] Users are usually not interested in the title. If the continuous playback time after the user selects a certain playback time point is long, it means that the user has skipped the title this time, that is, the title end point has been reached. If the continuous playback time after the user selects a certain playback time point is short, and the next playback operation is performed soon, it means that the user has not jumped out of the title this time, that is, the title end point has not been reached. According to the above embodiment, invalid (not jumping out of the title) interactive operations with short continuous playback time can be filtered, thereby improving the accuracy of title recognition.

[0072] According to some embodiments, when the content segmentation point to be identified is a title end point, step S226 may include: determining the video segment with the largest number of interactions within the first time range as the target video segment where the title end point is located. The first time range is a time range from the start point of the video to the first time point. The first time point may be, for example, the 4th minute, the 5th minute, etc. of the video.

[0073] According to the above embodiment, the target video segment where the header end point is located can be determined from the beginning of the video, thereby improving the accuracy of header recognition.

[0074] According to some embodiments, the end playback operation may be selected to identify the end start point. Accordingly, the playback behavior data includes the end playback time point corresponding to the end playback operation. Step S224 may include: determining the number of end playback operations whose end playback time point is located in a certain video segment as the number of interactions of the video segment.

[0075] According to some embodiments, when the content segmentation point to be identified is the end credits start point, step S226 may include: determining the video segment with the largest number of interactions within the second time range as the target video segment where the end credits start point is located. The second time range is the time range from the second time point of the video to the end point. The second time point may be, for example, the fourth minute before the end, the fifth minute before the end, or the like of the video.

[0076] Users are usually not interested in the ending. When a video reaches the end, the user usually chooses to end the current video and continue to play the next video or stop playing the video. According to the above embodiment, the target video segment where the ending start point is located can be determined from the end of the video, thereby improving the accuracy of the ending recognition.

[0077] According to some embodiments, when the content segmentation point to be identified is an advertisement end point, step S224 may include the above steps S2242 and S2244, and step S226 includes: determining the video segment with the largest number of interactions within the third time range as the target video segment where the title end point is located. The first time range is the time range from the above first time point to the second time point.

[0078] Users are usually not interested in ads inserted during the main film. When the ad starts playing, the user usually drags the progress bar to skip the ad content. If the continuous playback time after the user selects a certain playback time point (and drags to a certain position on the progress bar) is long, it means that the user has skipped the ad this time, that is, the ad end point has been reached. If the continuous playback time after the user selects a certain playback time point is short, and the next drag operation is performed soon, it means that the user has not skipped the ad this time, that is, the ad end point has not been reached. According to the above embodiment, invalid (ads are not skipped) interactive operations with short continuous playback time can be filtered, and the target video segment where the ad end point is located can be determined from the middle of the video, thereby improving the accuracy of identifying ads inserted during the main film.

[0079] According to some embodiments, the playback behavior data includes the number of times the video is played. Accordingly, step S220 may be performed in response to the number of times the video is played being greater than a second threshold. That is, in response to the number of times the video is played being greater than the second threshold, the target video segment where the content segmentation point of the video is located is determined based on the playback behavior data. The second threshold may be, for example, 100, 500, etc.

[0080] When the number of video playbacks accumulates to a certain level, the playback behavior data obtained is more and more statistically significant. According to the above embodiment, when the number of video playbacks accumulates to a certain level, the video content segmentation is triggered, which can improve the accuracy of video content segmentation.

[0081] According to some embodiments, the target duration and the second threshold of the number of video playbacks for video segmentation can be determined based on the content segmentation point label of the sample video. For example, the target video segment where the content segmentation point of each sample video is located can be determined through the above steps S222-S226 based on the specified target duration and the second threshold. By comparing the determined target video segment (i.e., the predicted value) with the real target video segment where the content segmentation point is located (i.e., the real value), the recognition accuracy of the target video segment of the sample video under the current target duration and the second threshold can be determined. The target duration and the second threshold with the highest recognition accuracy are determined as the optimal target duration and the second threshold.

[0082] In step S230, audio features of the target video segment are extracted. According to some embodiments, step S230 may include steps S232 and S234.

[0083] In step S232, Fourier transform is performed on the audio data of the target video clip to obtain a frequency spectrum corresponding to the audio data.

[0084] In step S234, feature extraction is performed on the frequency spectrum to obtain audio features.

[0085] According to the above embodiment, by extracting the audio features of the target video segment in the frequency domain, it is possible to retain the fundamental features of the audio data while achieving data compression, thereby improving the efficiency and accuracy of video content segmentation.

[0086] According to some embodiments, the audio feature may be, for example, a Mel Frequency Cepstral Coefficient (MFCC). Step S234 may include: converting the spectrum obtained in step S222 into a Mel spectrum through a Mel-filter bank with same bank area; performing cepstral analysis on the Mel spectrum to obtain the Mel frequency cepstral coefficient. Specifically, the cepstral analysis includes operations such as taking logarithms and discrete cosine transform (DCT). The 2nd to 13th coefficients after discrete cosine transform are used as Mel frequency cepstral coefficients.

[0087] In step S240 , content segmentation points are determined from the target video segment based on the audio features.

[0088] According to some embodiments, the content segmentation points of the video can be determined based on the mapping relationship between the preset audio features and the content segmentation points. According to this embodiment, the precise location of the content segmentation points can be quickly determined. The content segmentation points can be accurate to the second level, for example.

[0089] The mapping relationship between the audio feature and the content segmentation point can be expressed as an expression y=f(x), where the independent variable x is the audio feature and the dependent variable y is the offset time of the content segmentation point in the target video segment.

[0090] According to some embodiments, the mapping relationship between audio features and content segmentation points can be determined based on the content segmentation point label of the sample video and the audio features of the sample target video segment where the content segmentation point label is located. For example, according to the above steps S232-S234, the audio features of the sample target video segment of each sample video are extracted. The data pair (x0, y0) consisting of the audio feature x0 of the sample target video segment and the offset time y0 of the content segmentation point label in the sample target video segment is used as sample data, and the mapping expression y=f(x) between the audio feature x and the content segmentation point y is fitted.

[0091] Figure 3 FIG. 3 is a schematic diagram of a video processing system 300 according to an embodiment of the present disclosure. Figure 3 As shown, the video processing system 300 includes a behavior data collection module 310 , a message queue 320 , a behavior data analysis module 330 , a distributed cache 340 , an audio analysis module 350 and a database 360 ​​.

[0092] The behavior data collection module 310 is used to collect the user's playback behavior data. The playback behavior data can be recorded in the playback log by the video playback SDK (Software Development Kit), and the playback log is written into the asynchronous message queue 320. The playback behavior data includes, for example, the starting position and target position of the user's dragging progress bar behavior, the position where the user ends the video playback, etc.

[0093] The behavior data analysis module 330 consumes the play behavior data in the message queue 320 and temporarily caches the play behavior data in the distributed cache 340. When the amount of cached data reaches a threshold (corresponding to the "second threshold" above), the play behavior data is analyzed to determine the target video segment where the content segmentation point is located.

[0094] The audio analysis module 350 extracts the audio features of the target video clip. Based on the audio features, the precise location of the content segmentation point is determined, and the determined content segmentation point is written into the database 360. The content segmentation point of the video can be provided to users who subsequently play the video, so that they can skip the video content such as the beginning and the end based on the content segmentation point.

[0095] Figure 4 FIG. 1 shows an interactive timing diagram of a video processing system according to an embodiment of the present disclosure. Figure 4 In the illustrated embodiment, the video processing system includes a behavior data collection module 410 , a message queue 420 , a behavior data analysis module 430 , a distributed cache 440 , an audio analysis module 450 , and a database 460 .

[0096] In step S471 , the behavior data collection module 410 collects the playback behavior data of user A while the user (user A) is playing the video.

[0097] In step S472 , the behavior data collection module 410 writes the play behavior data into the message queue 420 .

[0098] In step S473 , the behavior data collection module 410 receives the message returned by the message queue 420 indicating that the play behavior data is written successfully.

[0099] In step S474 , the behavior data analysis module 430 consumes the play behavior data in the message queue 420 , and in step S475 , temporarily stores the play behavior data in the distributed cache 440 .

[0100] In step S476, the amount of data cached in the distributed cache 440 reaches a threshold (corresponding to the "second threshold" above), and the behavior data analysis module 430 analyzes the playback behavior data to determine the target video segment where the content segmentation point is located.

[0101] In step S477 , the audio analysis module 450 obtains the target video segment obtained by the behavior data analysis module 430 , extracts the audio features of the target video segment, and determines the precise position of the content segmentation point based on the audio features.

[0102] In step S478 , the audio analysis module 450 writes the determined content segmentation points into the database 460 .

[0103] In step S479, when other users (user B different from user A mentioned above) watch the video, the video playback platform obtains the content segmentation points of the video from the database 460 and provides them to the client device used by the user, so that the user can automatically skip the beginning and end of the video when the user plays the video.

[0104] Figure 5 FIG. 1 is a flowchart of a video processing process according to an embodiment of the present disclosure. Figure 5 In the illustrated embodiment, the video processing system includes a behavior data collection module 510 , a message queue 520 , a behavior data analysis module 530 , a distributed cache 540 , an audio analysis module 550 , and a database 560 .

[0105] In step S591 , when the user terminal 570 plays a video, the behavior data collection module 510 collects the playback behavior data of the user terminal 570 through the gateway 580 and writes it into the message queue 520 .

[0106] In step S592 , the behavior data analysis module 530 consumes the play behavior data in the message queue 520 , and temporarily stores the play behavior data in the distributed cache 540 .

[0107] In step S593, the behavior data analysis module 530 determines whether the amount of data cached in the distributed cache 540 reaches a threshold (corresponding to the "second threshold" above). If yes, step S594 is executed, and if no, step S592 is returned to continue consuming the playback behavior data in the message queue 520.

[0108] In step S594 , the behavior data analysis module 530 analyzes the playback behavior data to identify the target video segment where the content segmentation point is located.

[0109] In step S595 , the audio analysis module 550 obtains the target video segment obtained by the behavior data analysis module 530 , extracts the audio features of the target video segment, identifies the precise locations of the content segmentation points based on the audio features, and writes the precise locations of the content segmentation points into the database 560 .

[0110] According to an embodiment of the present disclosure, a video processing device is also provided. Figure 6 FIG. 6 shows a structural block diagram of a video processing device 600 according to an embodiment of the present disclosure. Figure 6 As shown, the apparatus 600 includes an acquisition module 610 , a first determination module 620 , an extraction module 630 and a second determination module 640 .

[0111] The acquisition module 610 is configured to acquire the playback behavior data of the video to be processed.

[0112] The first determination module 620 is configured to determine, based on the playback behavior data, a target video segment where a content segmentation point of the video is located, wherein a type of video content before the content segmentation point is different from a type of video content after the content segmentation point.

[0113] The extraction module 630 is configured to extract audio features of the target video segment.

[0114] The second determination module 640 is configured to determine the content segmentation point from the target video segment based on the audio feature.

[0115] According to an embodiment of the present disclosure, based on the user's playback behavior data of a certain video, the approximate position of the content segmentation point of the video, that is, the target video segment, is determined. Subsequently, based on the audio features of the target video segment, the precise position of the content segmentation point is determined. In this way, efficient and accurate segmentation of video content can be achieved.

[0116] According to some embodiments, the playback behavior data includes the playback time point of the video when the user interacts with the video, and wherein the first determination module includes: a division unit, configured to divide the video into multiple video segments of target duration; a first determination unit, configured to determine the number of interactions of any one of the multiple video segments, wherein the number of interactions is the number of interactive operations at the playback time point in the video segment; and a second determination unit, configured to determine the target video segment from the multiple video segments based on the number of interactions of each of the multiple video segments.

[0117] According to some embodiments, the interactive operation includes selecting a playback operation, the playback behavior data also includes a continuous playback duration starting from the playback time point, the content segmentation point includes a title end point, and wherein the first determination unit is further configured to: determine an interactive operation whose continuous playback duration is greater than a first threshold as a valid interactive operation; and determine the number of valid interactive operations whose playback time point is in the video segment as the number of interactions.

[0118] According to some embodiments, the second determination unit is further configured to: determine the video segment with the largest number of interactions within a first time range as the target video segment, wherein the first time range is a time range from the start point of the video to a first time point.

[0119] According to some embodiments, the interactive operation includes an end playback operation, the content segmentation point includes an end credits start point, and wherein the second determination unit is further configured to: determine the video segment with the largest number of interactions within a second time range as the target video segment, wherein the second time range is a time range from a second time point of the video to an end point.

[0120] According to some embodiments, the playback behavior data includes the number of times the video is played, and wherein the first determination module is further configured to: in response to the number of times the video is played being greater than a second threshold, determine the target video segment where the content segmentation point of the video is located based on the playback behavior data.

[0121] According to some embodiments, the extraction module includes: a transformation unit configured to perform Fourier transform on the audio data of the target video clip to obtain a frequency spectrum corresponding to the audio data; and an extraction unit configured to perform feature extraction on the frequency spectrum to obtain the audio feature.

[0122] According to some embodiments, the second determining module is further configured to: determine the content segmentation point based on a mapping relationship between preset audio features and content segmentation points.

[0123] According to some embodiments, the mapping relationship is determined based on the content segmentation point labels of the sample video and the audio features of the sample target video segment where the content segmentation point labels are located.

[0124] It should be understood that Figure 6 The various modules and units of the apparatus 600 shown in FIG. 6 can be compared with those of the reference Figure 2 The steps in the method 200 described above correspond to each other. Therefore, the operations, features and advantages described above for the method 200 are also applicable to the device 600 and the modules and units included therein. For the sake of brevity, some operations, features and advantages are not repeated here.

[0125] Although specific functionality is discussed above with reference to specific modules, it should be noted that the functionality of the various modules discussed herein may be separated into multiple modules, and / or at least some functionality of multiple modules may be combined into a single module.

[0126] It should also be understood that various techniques may be described herein in the general context of software hardware elements or program modules. Figure 6The various units described can be implemented in hardware or in hardware in combination with software and / or firmware. For example, these units can be implemented as computer program codes / instructions, which are configured to be executed in one or more processors and stored in a computer-readable storage medium. Alternatively, these units can be implemented as hardware logic / circuits. For example, in some embodiments, one or more of modules 610-640 can be implemented together in a system on chip (System on Chip, SoC). SoC can include an integrated circuit chip (which includes a processor (e.g., a central processing unit (CPU), a microcontroller, a microprocessor, a digital signal processor (DSP), etc.), a memory, one or more communication interfaces, and / or one or more components in other circuits), and can optionally execute the received program code and / or include embedded firmware to perform functions.

[0127] According to an embodiment of the present disclosure, an electronic device is also provided, including: at least one processor; and a memory communicatively connected to the at least one processor, the memory storing instructions executable by the at least one processor, the instructions being executed by the at least one processor so that the at least one processor can execute the video processing method of the embodiment of the present disclosure.

[0128] According to an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is further provided. The computer instructions are used to enable a computer to execute the video processing method of the embodiment of the present disclosure.

[0129] According to an embodiment of the present disclosure, a computer program product is further provided, including computer program instructions, which implement the video processing method of the embodiment of the present disclosure when executed by a processor.

[0130] refer to Figure 7 , a block diagram of an electronic device 700 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0131] like Figure 7 As shown, the electronic device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0132] Multiple components in the electronic device 700 are connected to the I / O interface 705, including: an input unit 706, an output unit 707, a storage unit 708, and a communication unit 709. The input unit 706 can be any type of device that can input information to the electronic device 700. The input unit 706 can receive input digital or character information and generate key signal input related to user settings and / or function control of the electronic device, and can include but is not limited to a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and / or a remote controller. The output unit 707 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 708 can include but is not limited to a disk, an optical disk. The communication unit 709 allows the electronic device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth device, an 802.11 device, a Wi-Fi device, a WiMAX device, a cellular communication device, and / or the like.

[0133] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as method 200. For example, in some embodiments, the method 200 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the method 200 described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the method 200 in any other appropriate manner (e.g., by means of firmware).

[0134] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0135] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0136] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0137] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0138] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.

[0139] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0140] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0141] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present disclosure is not limited by these embodiments or examples, but is only limited by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples may be omitted or replaced by their equivalent elements. In addition, each step may be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples may be combined in various ways. It is important that with the evolution of technology, many of the elements described herein may be replaced by equivalent elements that appear after the present disclosure.

Claims

1. A video processing method, comprising: Obtain the playback behavior data of the video to be processed; Determining, based on the playback behavior data, a target video segment at which a content segmentation point of the video is located, wherein a type of video content before the content segmentation point is different from a type of video content after the content segmentation point; Extracting audio features of the target video clip includes: Using an equal-area Mel filter to convert the frequency spectrum corresponding to the audio data of the target video clip into a Mel spectrum; and Performing cepstrum analysis on the Mel frequency spectrum to obtain Mel frequency cepstrum coefficients, and using the Mel frequency cepstrum coefficients as the audio features; as well as Based on a preset mapping relationship between audio features and content segmentation points, the content segmentation points are determined from the target video segment, wherein the mapping relationship is a mapping expression with the audio features as independent variables and the offset time of the content segmentation points in the target video segment as dependent variables, and the mapping expression is determined according to the following steps: extracting audio features of a sample target video segment of a sample video; The data pairs consisting of the audio features of the sample target video segment and the offset time of the content segmentation point labels in the sample target video segment are taken as sample data, and the sample data are fitted to obtain the mapping expression.

2. The method according to claim 1, wherein: The playback behavior data includes a playback time point of the video when the user performs an interactive operation on the video, and wherein, based on the playback behavior data, determining a target video segment where a content segmentation point of the video is located includes: Dividing the video into multiple video segments of target duration; For any video segment among the multiple video segments, determining the number of interactions of the video segment, wherein the number of interactions is the number of interaction operations at a playback time point in the video segment; and The target video segment is determined from the multiple video segments based on the number of interactions of each of the multiple video segments.

3. The method according to claim 2, wherein: The interactive operation includes a selection play operation, the play behavior data also includes a continuous play duration starting from the play time point, the content segmentation point includes a title end point, and wherein determining the number of interactions of the video segment includes: Determine an interactive operation whose continuous playback duration is greater than a first threshold as a valid interactive operation; and The number of valid interactive operations whose playback time points are in the video segment is determined as the number of interactions.

4. The method according to claim 3, wherein: The determining the target video segment from the multiple video segments based on the number of interactions of the multiple video segments respectively comprises: The video segment with the largest number of interactions within a first time range is determined as the target video segment, wherein the first time range is a time range from the start point of the video to a first time point.

5. The method according to any one of claims 2 to 4, wherein: The interactive operation includes an end playback operation, the content segmentation point includes an end start point, and wherein determining the target video segment from the multiple video segments based on the number of interactions of each of the multiple video segments includes: The video segment with the largest number of interactions within a second time range is determined as the target video segment, wherein the second time range is a time range from a second time point to an end point of the video.

6. The method according to claim 1, wherein: The playback behavior data includes the number of times the video is played, and wherein, based on the playback behavior data, determining the target video segment where the content segmentation point of the video is located includes: In response to the number of times of playback being greater than a second threshold, a target video segment where a content segmentation point of the video is located is determined based on the playback behavior data.

7. The method according to claim 1, wherein: The extracting the audio features of the target video clip comprises: Performing Fourier transform on the audio data of the target video clip to obtain a frequency spectrum corresponding to the audio data; and Feature extraction is performed on the frequency spectrum to obtain the audio feature.

8. A video processing device, comprising: An acquisition module, configured to acquire playback behavior data of a video to be processed; A first determination module is configured to determine, based on the playback behavior data, a target video segment where a content segmentation point of the video is located, wherein a type of video content before the content segmentation point is different from a type of video content after the content segmentation point; The extraction module is configured to extract the audio features of the target video segment through the following steps: Using an equal-area Mel filter to convert the frequency spectrum corresponding to the audio data of the target video clip into a Mel spectrum; and Performing cepstrum analysis on the Mel frequency spectrum to obtain Mel frequency cepstrum coefficients, and using the Mel frequency cepstrum coefficients as the audio features; as well as The second determination module is configured to determine the content segmentation point from the target video segment based on a mapping relationship between a preset audio feature and a content segmentation point, wherein the mapping relationship is a mapping expression with the audio feature as an independent variable and an offset time of the content segmentation point in the target video segment as a dependent variable, and the mapping expression is determined according to the following steps: extracting audio features of a sample target video segment of a sample video; The data pairs consisting of the audio features of the sample target video segment and the offset time of the content segmentation point labels in the sample target video segment are taken as sample data, and the sample data are fitted to obtain the mapping expression.

9. The device according to claim 8, wherein: The playback behavior data includes the playback time point of the video when the user performs an interactive operation on the video, and wherein the first determination module includes: a dividing unit, configured to divide the video into a plurality of video segments of target duration; A first determining unit is configured to determine, for any video segment among the multiple video segments, a number of interactions of the video segment, wherein the number of interactions is the number of interaction operations at a playback time point in the video segment; and The second determining unit is configured to determine the target video segment from the multiple video segments based on the number of interactions of each of the multiple video segments.

10. The device according to claim 9, wherein: The interactive operation includes a selection play operation, the play behavior data also includes a continuous play duration starting from the play time point, the content segmentation point includes a title end point, and wherein the first determination unit is further configured to: Determine an interactive operation whose continuous playback duration is greater than a first threshold as a valid interactive operation; and The number of valid interactive operations whose playback time points are in the video segment is determined as the number of interactions.

11. The device according to claim 10, wherein: The second determining unit is further configured to: The video segment with the largest number of interactions within a first time range is determined as the target video segment, wherein the first time range is a time range from the start point of the video to a first time point.

12. The device according to any one of claims 9 to 11, wherein: The interactive operation includes an end playback operation, the content segmentation point includes an end start point, and wherein the second determining unit is further configured to: The video segment with the largest number of interactions within a second time range is determined as the target video segment, wherein the second time range is a time range from a second time point to an end point of the video.

13. The device according to claim 8, wherein: The playback behavior data includes the number of times the video is played, and wherein the first determination module is further configured to: In response to the number of times of playback being greater than a second threshold, a target video segment where a content segmentation point of the video is located is determined based on the playback behavior data.

14. The device according to claim 8, wherein: The extraction module comprises: a transform unit configured to perform Fourier transform on the audio data of the target video clip to obtain a frequency spectrum corresponding to the audio data; and The extraction unit is configured to perform feature extraction on the frequency spectrum to obtain the audio feature.

15. An electronic device, comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

16. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1-7.

17. A computer program product comprising computer program instructions, wherein: The computer program instructions implement the method of any one of claims 1 to 7 when executed by a processor.

Citation Information

Patent Citations

  • Video clip determining method and device

    CN109547859A

  • Video clip detection method and device, equipment and storage medium

    CN113347489A