Video file tag generation method, device, intelligent terminal and storage medium

By extracting audio data from video files, identifying keyword information and generating tags, it solves the problem of cumbersome manual setting of video file tags in the existing technology, realizes automatic classification and tag association of video files, and improves user experience.

CN112487248BActive Publication Date: 2024-09-06CHONGQING YIFANG TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202011383749.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-01
Publication Date
2024-09-06
Estimated Expiration
2040-12-01

AI Technical Summary

Technical Problem

In the prior art, the tag information of video files needs to be manually set by the user, resulting in cumbersome and inconvenient operations.

Method used

By obtaining the audio data in the video file, separating the vocal data and background sound data, using speech recognition and melody analysis to determine the keyword information, and matching it with the preset tag database to generate tag information, which is automatically associated with the video file.

Benefits of technology

It realizes automatic labeling of video files, reduces manual operations, improves user experience, and provides a convenient classification method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112487248B
    Figure CN112487248B
Patent Text Reader

Abstract

The present invention discloses a method, device, intelligent terminal and storage medium for generating tags for video files. The method comprises: obtaining audio data in a video file; determining keyword information corresponding to the audio data according to the audio data; generating tag information corresponding to the keyword information according to the keyword information, and associating the tag information with the video file. The present invention can automatically add corresponding tags to video files so as to automatically classify video files, which provides convenience for users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video tag generation, and in particular to a method, device, intelligent terminal and storage medium for generating tags for video files. Background Art

[0002] In the prior art, the tags of video files are basically set manually by users. For example, after downloading the video file, the user manually sets tag information for the video file to classify the video file. However, such operation is very cumbersome and brings inconvenience to the user.

[0003] Therefore, the prior art still needs to be improved and enhanced. Summary of the invention

[0004] The technical problem to be solved by the present invention is that, in view of the above-mentioned defects of the prior art, a method, device, intelligent terminal and storage medium for generating labels for video files are provided, aiming to solve the problem in the prior art that the operation of manually setting label information for the video file is very cumbersome, which brings inconvenience to users.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is as follows:

[0006] In a first aspect, the present invention provides a method for generating tags for a video file, wherein the method comprises:

[0007] Get the audio data in the video file;

[0008] Determining keyword information corresponding to the audio data according to the audio data;

[0009] According to the keyword information, tag information corresponding to the keyword information is generated, and the tag information is associated with the video file.

[0010] In one implementation, obtaining audio data in a video file includes:

[0011] Obtaining the video file;

[0012] The audio and video of the video file are separated to obtain audio data in the video file, wherein the audio data includes dialogue voice data and background sound data.

[0013] In one implementation, determining keyword information corresponding to the audio data according to the audio data includes:

[0014] Acquire the speech voice data in the audio data;

[0015] Performing speech recognition on the speech voice data to determine semantic information corresponding to the voice data;

[0016] According to the semantic information, keyword information corresponding to the semantic information is determined.

[0017] In one implementation, determining keyword information corresponding to the audio data according to the audio data includes:

[0018] Acquire background sound data from the audio data;

[0019] Analyze the background sound data according to the background sound data to determine the melody information corresponding to the background sound data;

[0020] According to the melody information, keyword information corresponding to the audio data is determined.

[0021] In one implementation, determining keyword information corresponding to the audio data according to the melody information includes:

[0022] Acquire singing information in the melody information and emotional features corresponding to the melody information;

[0023] The song information of the background sound data is determined according to the singing voice information and the emotional characteristics, and the song information is used as the keyword information.

[0024] In one implementation, generating tag information corresponding to the keyword information according to the keyword information includes:

[0025] Acquire the key information, and perform data cleaning on the keyword information to obtain effective keywords;

[0026] According to the effective keyword, tag information corresponding to the effective keyword is determined.

[0027] In one implementation, determining the tag information corresponding to the effective keyword according to the effective keyword includes:

[0028] Matching the effective keywords with a preset tag database, wherein the tag database stores a plurality of keywords and tag information corresponding to the plurality of keywords one by one;

[0029] Determine the tag information that successfully matches the effective keyword.

[0030] In a second aspect, an embodiment of the present invention further provides a method for generating tags for a video file, wherein the method comprises:

[0031] An audio data acquisition module, used to acquire audio data in a video file;

[0032] A keyword information acquisition module, used to determine the keyword information corresponding to the audio data according to the audio data;

[0033] The tag information generating module is used to generate tag information corresponding to the keyword information according to the keyword information, and associate the tag information with the video file.

[0034] In a third aspect, an embodiment of the present invention further provides an intelligent terminal, wherein the intelligent terminal includes a memory, a processor, and a label generation program for video files stored in the memory and executable on the processor, and when the label generation program for video files is executed by the processor, the steps of the label generation method for video files as described in any one of the above-mentioned schemes are implemented.

[0035] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a label generation program for a video file is stored. When the label generation program for a video file is executed by a processor, the steps of the label generation method for a video file described in any one of the above-mentioned schemes are implemented.

[0036] Beneficial effect: Compared with the prior art, the present invention provides a method for generating tags for video files. First, the present invention obtains audio data in a video file; then, the keyword information corresponding to the audio data is determined based on the audio data; finally, tag information corresponding to the keyword information is generated based on the keyword information, and the tag information is associated with the video file. It can be seen that the present invention determines the tag information corresponding to the video file through the keyword information corresponding to the audio data in the video file, and associates the tag information with the video file, thereby realizing the classification of the video file without manual operation, which provides convenience for users. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 The present invention provides a flowchart of a specific implementation of the method for generating tags for video files provided in an embodiment of the present invention.

[0038] Figure 2 It is a principle block diagram of a device for generating labels for video files provided by an embodiment of the present invention.

[0039] Figure 3 It is a block diagram of the internal structure principle of the intelligent terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0041] In the prior art, the tags of video files are basically set manually by users. For example, after downloading the video file, the user manually sets tag information for the video file to classify the video file. However, such operation is very cumbersome and brings inconvenience to the user.

[0042] In order to solve the problems of the prior art, this embodiment provides a method for generating tags for video files. Through the method of this embodiment, it is possible to automatically add tag information to video files, and the tag information is determined based on the audio data in the video file. Specifically, this embodiment first obtains the audio data in the video file; then determines the keyword information corresponding to the audio data based on the audio data; finally, based on the keyword information, generates tag information corresponding to the keyword information, and associates the tag information to the video file. It can be seen that the present invention determines the tag information corresponding to the video file through the keyword information corresponding to the audio data in the video file, and associates the tag information to the video file, thereby realizing the classification of the video file without manual operation, which provides convenience for users.

[0043] Exemplary Methods

[0044] The method for generating a label for a video file in this embodiment can be applied to a smart terminal, such as Figure 1 As shown in , the tag generation method of the video file specifically includes the following steps:

[0045] Step S100: Acquire audio data in the video file.

[0046] In this embodiment, the video file can be a video downloaded by a user from a web page or a video player, such as an episode of a TV series or a short video. In order to add tag information to the video file, the video file can be first obtained. Since there are video images and audio data in the video file, and the audio data can embody and reflect the content truly expressed by the video file, and since the audio data has semantics, this embodiment can use semantic recognition technology to analyze the audio data in the video file, so as to determine the tag information corresponding to the audio data, thereby obtaining the tag information of the video file.

[0047] Specifically, the step S100 specifically includes the following steps:

[0048] Step S101, obtaining the video file;

[0049] Step S102: Separate the audio and video of the video file to obtain audio data in the video file, where the audio data includes dialogue voice data and background sound data.

[0050] During specific implementation, after acquiring the video file, this embodiment needs to obtain audio data from the video file. Since the video file includes video data and audio data, this embodiment needs to separate the audio and video of the video file to obtain the audio data in the video file. In one implementation, when separating the video and audio, this embodiment can use segmentation technology to separate the video data and audio data in the video file. Alternatively, this embodiment can also use deep learning technology to pre-build a deep learning network model, which can automatically separate the video data and audio data in the video file, thereby accurately separating the video data and audio data in the video file.

[0051] Since a video file is a video with images and sounds, and the audio data of the video file has lines and voice data and background sound data, for example, in a video file of a segment of a TV series, the actor's lines are the lines and voice data, and the background music played in the segment is the background sound data. Therefore, when analyzing the audio data, it is necessary to analyze the lines and voice data and the background sound data separately. In this way, the keyword information and the corresponding tag information of the audio data can be accurately analyzed.

[0052] Step S200: Determine keyword information corresponding to the audio data according to the audio data.

[0053] Since the audio data in the video file includes the speech data and the background sound data, it is necessary to analyze the speech data and the background sound data separately when determining the keyword information of the audio data. In this embodiment, the keyword information refers to the keywords used to reflect the type and content of the audio data. Therefore, after obtaining the audio data, this embodiment can analyze the audio data and determine the keyword information corresponding to the audio data, so that the corresponding tag information can be determined according to the keyword information in the subsequent steps.

[0054] In one implementation, step S200 specifically includes the following steps:

[0055] Step S201, obtaining the speech voice data in the audio data;

[0056] Step S202: performing speech recognition on the speech voice data to determine text information corresponding to the voice data;

[0057] Step S203: Determine the semantic information and corresponding keyword information according to the text information and natural language processing technology.

[0058] In specific implementation, the audio data in this embodiment includes the line voice data, and the line voice data includes the video content (i.e., the content shown in the video file). Therefore, this embodiment can perform text recognition on the line voice data through speech recognition to obtain the text information of the line voice data. After the text information is recognized, the text can be semantically understood through natural language processing technology, and text classification, noise elimination, and named entity recognition can be performed to obtain the semantics in the text, and the keyword information in the semantic information can be determined. In this embodiment, the text information recognized from the line voice data is processed again to obtain semantic information, and the semantic information includes the emotional classification and keywords of the audio data. That is, the emotional classification and keywords of the video file are determined.

[0059] In another implementation, the step S200 may further include:

[0060] Step S201, obtaining background sound data in the audio data;

[0061] Step S202: Analyze the background sound data according to the background sound data to determine the melody information corresponding to the background sound data;

[0062] Step S203: Determine keyword information corresponding to the audio data according to the melody information.

[0063] In this embodiment, when the corresponding keyword information is determined in the background sound data in the audio data, this embodiment can analyze the background sound data. Since the background sound data is the background music of the video file, and the keyword information of the background music refers to the song information of the background music. Therefore, this embodiment needs to obtain the song information of the background sound data. This embodiment can first obtain the melody information from the background sound data, and the melody information can reflect the song information of the background sound data to a certain extent. For example, the song corresponding to the background sound data can be identified according to the melody information. Therefore, after obtaining the melody information, this embodiment obtains the singing information in the melody information and the emotional characteristics corresponding to the melody information; according to the singing information and the emotional characteristics, the song information of the background sound data is determined, and the song information is used as the keyword information. In this embodiment, the singing information can reflect which singer sings the background sound data, and the emotional characteristics can reflect the style of the background sound data. For example, it can be determined according to the emotional characteristics whether the background sound data is a slow lyric song or a cheerful rock song. In this way, the keyword information of the background sound data can be determined based on the singing voice information and emotional characteristics, so that in the subsequent steps, the keyword information identified from the lines vocal data and the keyword information identified from the background sound data can be integrated and analyzed to determine the keyword information of the entire audio data.

[0064] Step S300: Generate tag information corresponding to the keyword information according to the keyword information, and associate the tag information with the video file.

[0065] After obtaining the keyword information, the embodiment can analyze the keyword information to determine the tag information corresponding to the keyword information. Since the keyword information is obtained by integrating and analyzing the keyword information identified from the speech voice data and the keyword information identified from the background sound data, the keyword information corresponding to the audio data can be accurately determined. In this way, the tag information obtained according to the keyword information can reflect the type of the video file, which can better realize the classification of the video file.

[0066] In one implementation, step S300 includes:

[0067] Step S301, obtaining the key information, and performing data cleaning on the keyword information to obtain effective keywords;

[0068] Step S302: Determine tag information corresponding to the effective keyword according to the effective keyword.

[0069] In specific implementation, this example can perform data cleaning on all obtained keyword information to propose invalid keywords. For example, when there are modal particles in the keywords, the modal particles can be deleted to make the obtained keyword information more accurate. Therefore, after the keyword information is cleaned, valid keywords can be obtained. After obtaining the valid keywords, this embodiment can match the valid keywords with a preset tag database, which stores a number of keywords and tag information corresponding to the keywords one by one; in this way, after matching the valid keywords with the tag database, the tag information that successfully matches the valid keywords can be determined. After obtaining the tag information, the tag information can be associated with the video file, thereby realizing the tagging of the video file. When the video file has the tag information, the video file can be classified.

[0070] In summary, this embodiment provides a method for generating tags for video files. First, this embodiment obtains audio data in a video file; then, the keyword information corresponding to the audio data is determined based on the audio data; finally, tag information corresponding to the keyword information is generated based on the keyword information, and the tag information is associated with the video file. It can be seen that this embodiment determines the tag information corresponding to the video file through the keyword information corresponding to the audio data in the video file, and associates the tag information with the video file, thereby realizing the classification of the video file without manual operation, which provides convenience for users.

[0071] Exemplary Devices

[0072] like Figure 2 As shown in , an embodiment of the present invention provides a device for generating tags for a video file, the device comprising: an audio data acquisition module 10, a keyword information acquisition module 20, and a tag information generation module 30. Specifically, the audio data acquisition module 10 is used to acquire audio data in a video file. The keyword information acquisition module 20 is used to determine keyword information corresponding to the audio data based on the audio data. The tag information generation module 30 is used to generate tag information corresponding to the keyword information based on the keyword information, and associate the tag information with the video file.

[0073] In one implementation, the identification information acquisition unit 10 includes:

[0074] A video acquisition unit, used to acquire the video file;

[0075] The audio-video separation unit is used to separate the audio and video of the video file to obtain the audio data in the video file, wherein the audio data includes the dialogue voice data and the background sound data.

[0076] In one implementation, the keyword information acquisition module 20 includes:

[0077] A vocal data acquisition unit, used to acquire the vocal data of the lines in the audio data;

[0078] A semantic recognition unit, which performs speech recognition on the line vocal data to determine semantic information corresponding to the vocal data;

[0079] The keyword information first acquiring unit is used to determine the keyword information corresponding to the semantic information according to the semantic information.

[0080] In one implementation, the keyword information acquisition module 20 further includes:

[0081] A background sound data acquisition unit, used to acquire the background sound data in the audio data;

[0082] A melody information acquisition unit, configured to analyze the background sound data according to the background sound data, and determine the melody information corresponding to the background sound data;

[0083] The second keyword information obtaining unit is used to determine the keyword information corresponding to the audio data according to the melody information.

[0084] In one implementation, the tag information generating module 30 includes:

[0085] A data cleaning unit, used to obtain the key information and perform data cleaning on the keyword information to obtain effective keywords;

[0086] The label determination unit is used to determine the label information corresponding to the effective keyword according to the effective keyword.

[0087] Based on the above embodiments, the present invention further provides an intelligent terminal, whose principle block diagram can be shown as follows: Figure 3As shown. The intelligent terminal includes a processor, a memory, a network interface, a display screen, and a temperature sensor connected through a system bus. Among them, the processor of the intelligent terminal is used to provide computing and control capabilities. The memory of the intelligent terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the intelligent terminal is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for generating a label for a video file is implemented. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the intelligent terminal is pre-set inside the intelligent terminal to detect the operating temperature of the internal device.

[0088] Those skilled in the art will understand that Figure 3 The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the smart terminal to which the scheme of the present invention is applied. The specific smart terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0089] In one embodiment, a smart terminal is provided, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include instructions for performing the following operations:

[0090] Get the audio data in the video file;

[0091] Determining keyword information corresponding to the audio data according to the audio data;

[0092] According to the keyword information, tag information corresponding to the keyword information is generated, and the tag information is associated with the video file.

[0093] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0094] In summary, the present invention discloses a method for generating tags for video files, an intelligent terminal, and a storage medium, the method comprising: obtaining audio data in a video file; determining keyword information corresponding to the audio data according to the audio data; generating tag information corresponding to the keyword information according to the keyword information, and associating the tag information with the video file. The present invention can automatically add corresponding tags to video files so as to automatically classify video files, which provides convenience for users.

[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating tags for a video file, characterized in that: The method comprises: Acquire audio data in a video file, wherein the audio data includes speech voice data and background sound data; Determining keyword information corresponding to the audio data according to the audio data; Wherein, determining the keyword information corresponding to the audio data according to the audio data includes: Analyze the background sound data according to the background sound data to determine the melody information corresponding to the background sound data; obtain singing information in the melody information and the emotional features corresponding to the melody information; determine the song information of the background sound data according to the singing information and the emotional features, and use the song information as the keyword information; Generate tag information corresponding to the keyword information according to the keyword information, and associate the tag information with the video file; The determining, according to the audio data, keyword information corresponding to the audio data includes: Acquire speech voice data in the audio data; perform speech recognition on the speech voice data to determine semantic information corresponding to the voice data; determine keyword information corresponding to the semantic information based on the semantic information; Performing integrated analysis based on the keyword information corresponding to the semantic information identified from the speech voice data and the keyword information corresponding to the song information identified from the background sound data to determine the keyword information of the entire audio data; The keyword information refers to keywords used to reflect the type and content of the audio data; The step of generating tag information corresponding to the keyword information according to the keyword information includes: Acquire the keyword information, and perform data cleaning on the keyword information to obtain effective keywords; determine tag information corresponding to the effective keywords according to the effective keywords; The step of determining the tag information corresponding to the effective keyword according to the effective keyword includes: The effective keyword is matched with a preset tag database, wherein the tag database stores a plurality of keywords and tag information corresponding to the plurality of keywords one by one; and the tag information successfully matched with the effective keyword is determined.

2. The method for generating tags for a video file according to claim 1, characterized in that: The step of obtaining audio data from a video file includes: Obtaining the video file; The audio and video of the video file are separated to obtain the audio data in the video file.

3. A video file tag generation device, characterized in that: The device comprises: An audio data acquisition module, used to acquire audio data in a video file, wherein the audio data includes speech voice data and background sound data; A keyword information acquisition module, used to determine the keyword information corresponding to the audio data according to the audio data. The keyword information acquisition module is specifically used to analyze the background sound data according to the background sound data to determine the melody information corresponding to the background sound data; obtain the singing information in the melody information and the emotional characteristics corresponding to the melody information; determine the song information of the background sound data according to the singing information and the emotional characteristics, and use the song information as the keyword information; Determining the keyword information corresponding to the audio data according to the audio data includes: obtaining speech voice data in the audio data; performing speech recognition on the speech voice data to determine semantic information corresponding to the voice data; and determining the keyword information corresponding to the semantic information according to the semantic information; Determine the keyword information of the entire audio data by integrating and analyzing the keyword information corresponding to the semantic information identified from the speech voice data and the keyword information corresponding to the song information identified from the background sound data; the keyword information refers to the keywords used to reflect the type and content of the audio data; A tag information generating module, used to generate tag information corresponding to the keyword information according to the keyword information, and associate the tag information with the video file; The step of generating tag information corresponding to the keyword information according to the keyword information includes: Acquire the keyword information, and perform data cleaning on the keyword information to obtain effective keywords; determine tag information corresponding to the effective keywords according to the effective keywords; The step of determining the tag information corresponding to the effective keyword according to the effective keyword includes: The effective keyword is matched with a preset tag database, wherein the tag database stores a plurality of keywords and tag information corresponding to the plurality of keywords one by one; and the tag information successfully matched with the effective keyword is determined.

4. An intelligent terminal, characterized in that: The intelligent terminal includes a memory, a processor, and a label generation program for video files stored in the memory and executable on the processor. When the label generation program for video files is executed by the processor, the steps of the label generation method for video files as described in any one of claims 1 to 2 are implemented.

5. A computer-readable storage medium, characterized in that: A video file label generation program is stored thereon, and when the video file label generation program is executed by a processor, the steps of the video file label generation method as described in any one of claims 1-2 are implemented.

Citation Information

Patent Citations

  • Automatic audio / video label labeling method and system

    CN104090955A

  • Audio and video match method and audio and video match device

    CN104142936A

  • Audio-video data processing method and audio-video data processing device

    CN108307229A

  • Video label labeling method and device

    CN110019955A

  • Video recommendation method, server and computer readable storage medium

    CN111212303A