A method for adding fancy bullet screen to a video

By separating video and audio, speech recognition, word segmentation, and word spelling, the machine automatically adds fancy bullet comments to videos, solving the problem of low efficiency in existing technologies and achieving efficient addition effects for real-time live streaming.

CN115481625BActive Publication Date: 2026-11-24IPSILON INFORMATION TECH (BEIJING) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110669420.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-16
Publication Date
2026-11-24
Estimated Expiration
2041-06-16

AI Technical Summary

Technical Problem

Existing technologies cannot efficiently add fancy bullet comments to live videos, and manual addition is inefficient.

Method used

By separating video and audio data and performing speech recognition, word segmentation, preprocessing, word spelling, and display steps, the machine can automatically add fancy bullet comments.

Benefits of technology

It enables machines to automatically add fancy bullet comments, improving efficiency and making it possible to add bullet comments to live videos, thus increasing the watchability of live streaming scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115481625B_ABST
    Figure CN115481625B_ABST
Patent Text Reader

Abstract

The purpose of this invention is to provide a method for adding fancy bullet comments to videos, characterized by comprising the following steps: separating audio data from the video; performing speech recognition on the audio; segmenting the speech recognition result into words; constructing words from the segmented words; and displaying fancy bullet comments based on the constructed words. This invention's method for adding fancy bullet comments to videos enables machines to automatically add fancy bullet comments or stickers based on video content, greatly improving efficiency and making it possible to add bullet comments to live video streams.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a video processing technology, and more particularly to a method for adding artistic text, dynamic text, or stickers in real time based on video content. Background Technology

[0002] With the development of computer and network technologies, internet speeds are getting faster and faster, and terminal processing capabilities are becoming increasingly powerful, leading to the widespread adoption of video-based commercial applications. To enhance the viewing experience of video content, adding animated or stylized text as bullet comments, or stickers corresponding to the bullet comment content (hereinafter referred to as "fancy bullet comments"), has become a common practice among video content creators.

[0003] Currently, the main method for adding fancy bullet comments to videos is to use video editing tools and manually specify the content, style, timing, and artistic effects of the bullet comments during the post-production editing process. This method is not only extremely inefficient, but its biggest drawback is that it cannot add fancy bullet comments to some live videos. Summary of the Invention

[0004] In view of the shortcomings of the prior art described above, the purpose of this invention is to provide a method for adding fancy bullet comments to videos, characterized by comprising: the step of separating audio data from the video; the step of performing speech recognition on the audio; the step of segmenting the speech recognition result into words; the step of spelling the segmented words into words; and the step of displaying fancy bullet comments based on the spelling results.

[0005] Prior to this, the method for adding fancy bullet comments to a video described above includes a step of preprocessing the word segmentation results before the step of spelling the words together.

[0006] Prior to this, in the above method for adding fancy bullet comments to a video, the preprocessing step includes the step of filtering the word segmentation results.

[0007] Prior to this, in the above method for adding fancy bullet comments to videos, the filtering steps include filtering based on a blacklist, and / or filtering based on part of speech, and / or filtering based on word length.

[0008] Prior to this, in the above method for adding fancy bullet comments to a video, the preprocessing step includes the step of assigning weights to the word segmentation results.

[0009] Prior to this, in the above method for adding fancy bullet comments to videos, the step of combining the word segmentation results into words only combines the word segmentation results whose word frequency is greater than the first threshold.

[0010] Prior to this, in the above method for adding fancy bullet comments to a video, after the step of composing words from the word segmentation results, the method further includes a step of filtering out the word composition results whose word frequency is less than a second threshold.

[0011] Prior to this, in the above method for adding fancy bullet comments to a video, after the step of composing words from the word segmentation results, the method further includes a step of specifying the bullet comment type for the word composing results.

[0012] Prior to this, in the above method for adding fancy bullet comments to a video, in the step of displaying fancy bullet comments based on the spelling results, only spelling results with a word frequency greater than the third threshold are displayed as fancy bullet comments.

[0013] Prior to this, the method for adding fancy bullet comments to a video described above includes a step of classifying the spelling results before displaying the fancy bullet comments based on the spelling results.

[0014] This invention provides a method for adding fancy bullet comments to videos, enabling machines to automatically add fancy bullet comments or stickers based on video content, greatly improving efficiency and making it possible to add bullet comments to live video results. Attached Figure Description

[0015] Figure 1 The diagram shown is a flowchart of one embodiment of the present invention. Detailed Implementation

[0016] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention.

[0017] Figure 1 The diagram shows a flowchart of one embodiment of the present invention. Step S1 represents the separation of audio data. Many well-known methods exist for separating audio data from video, and there are mature products available, such as FFMpeg and Pazera FreeAudio Extractor. Therefore, the methods for separating audio will not be elaborated upon. It should be noted that for some video formats, such as AVI, MKV, and MP4, which are merely encapsulation standards, the video file contains an independent audio track file. Therefore, for these types of files, the audio separation in step S1 only requires a decompression operation according to the encapsulation protocol.

[0018] Step S2 involves performing speech recognition on the audio. Scenes in videos where fancy comments need to be added are usually related to the dialogue and speech of people in the video. Recognizing the speech in the audio is like filtering out the speech data in the video to further determine the insertion points for the fancy comments. Speech recognition algorithms include DTW, neural network algorithms, combinations of HMM and self-organizing neural networks, etc.

[0019] Step S3 involves segmenting the speech recognition results into words. The speech recognition result is a sentence, and identifying fancy bullet comments requires identifying keywords within the sentence. Segmenting the sentence into words facilitates the identification of these keywords. There are readily available algorithms for segmenting both Chinese and Western languages, such as vocabulary-based methods, forward maximum matching, N-shortest path methods, and statistical model-based methods.

[0020] Step S4 represents word concatenation. Word segmentation results are typically small-granular and have limited semantic expression; therefore, they cannot often be directly used as the basis for adding fancy bullet comments. For example, if the audio in a video contains the phrase "I like cats," the word segmentation result is "I / like / cats." For fancy bullet comments, "cat" is clearly a keyword. In this example, displaying a cute cartoon cat sticker as a fancy bullet comment without word concatenation wouldn't cause much of a problem. However, if the audio in the video contains "I hate cats," "cat" is still a keyword for fancy bullet comments in the word segmentation result. In this case, directly displaying a cute cartoon cat sticker as a fancy bullet comment would be inappropriate. The word concatenation step can directly concatenate the word segmentation results based on basic semantics and parts of speech, as in the example above. However, to achieve better results, some preprocessing of the word segmentation results can be performed, and then different word concatenation strategies can be selected based on different business needs. Preprocessing can refer to:

[0021] The screening process and screening strategies can be adjusted according to different business needs. Common strategies include: screening based on a blacklist; screening based on parts of speech, such as screening out conjunctions, measure words, prepositions, auxiliary words and other function words, and screening out English words, numbers, pronouns, locative nouns, time nouns, abstract nouns and other content words; screening based on word length (words exceeding a certain number of characters are discarded), etc.

[0022] The assignment step, assigning a value to a word, refers to assigning a weight to the word. The common way to assign weights is to use the word frequency as the weight, or as the basis for weight allocation.

[0023] The preprocessed word segmentation results can be used for concatenation. Each word can have pre-concatenation words and post-concatenation words. Concatenation can be performed on only a subset of words, for example, only words with a frequency exceeding a certain threshold can be concatenated. Some concatenated results should be discarded, such as those that have lost semantic meaning or have too many characters. The specific criteria for discarding can vary depending on the business type. Whether semantic meaning has been lost can be determined by judging the word frequency of the concatenated result—if the word frequency of the concatenated result is extremely low, it can be considered that the concatenated result has no semantic meaning.

[0024] The word frequency in the above steps is based on statistics from historical data. If the word is not included in the historical data, a default value can be set for it.

[0025] Step S44 is the step of specifying the type of bullet comment (e.g., whether it is cursive text or stickers). For example, specifying that a particular word should be prioritized for use as a sticker, so that when that word is ultimately confirmed to be used as a cursive bullet comment, the bullet comment will appear in the form of a sticker.

[0026] Step S5 involves displaying the fancy bullet comments. Whether the spelling results are displayed as corresponding fancy bullet comments, and what kind of bullet comments are displayed, can be determined based on the needs. For example, if there are too many spelling results, displaying each result as a bullet comment would affect the viewing experience. In this case, an intuitive strategy is to statistically analyze the frequency of the spelling results based on historical data, and if it is below a certain threshold, it should not be displayed. Alternatively, the spelling results can be categorized. For example, if the spelling result contains negative meaning, only negative-type fancy text effects or stickers will be displayed; if the spelling result belongs to the cosmetics category, it will be displayed as a thumbnail of the advertised product.

[0027] Using the methods described above, the addition of fancy bullet comments can be automated, greatly improving efficiency. Furthermore, due to machine intervention, the process of adding fancy bullet comments is extremely time-consuming, making it applicable to real-time video streaming scenarios and significantly enhancing the watchability of the live broadcast.

[0028] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. All equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.

Claims

1. A method for adding fancy bullet comments to a video, characterized in that, include: The step of separating the audio data from the video; The steps of performing speech recognition on the audio; The step of segmenting the speech recognition results into words; The step of performing word concatenation on the word segmentation results includes: concatenating words in the word segmentation results whose word frequency is greater than a first threshold to obtain the word concatenation results; The step of classifying the spelling results; The steps for displaying fancy bullet comments based on the spelling results include: when the spelling results contain negative semantics, displaying negative-type fancy text effects or stickers; when the spelling results belong to the cosmetics category, displaying thumbnails of the advertised products, and the fancy bullet comments include artistic text, dynamic text, or stickers.

2. The method for adding fancy bullet comments to a video according to claim 1, characterized in that, Before the step of spelling words from the segmented results, a preprocessing step is also included for the segmented results.

3. The method for adding fancy bullet comments to a video according to claim 2, characterized in that, The preprocessing steps include the step of filtering the word segmentation results.

4. The method for adding fancy bullet comments to a video according to claim 3, characterized in that, In the screening steps described above, the screening criteria include screening based on a blacklist, and / or screening based on part of speech, and / or screening based on word length.

5. The method for adding fancy bullet comments to a video according to claim 2, characterized in that, The preprocessing steps include assigning weights to the word segmentation results.

6. The method for adding fancy bullet comments to a video according to claim 1, characterized in that, In the step of combining the segmented words into words, only the segmented words with a frequency greater than the first threshold are combined into words.

7. The method for adding fancy bullet comments to a video according to claim 1, characterized in that, After performing the word-segmentation process on the word segmentation results, the semantic meaning of the words in the spliced ​​results is determined by judging the word frequency of the spliced ​​results.

8. The method for adding fancy bullet comments to a video according to claim 1, characterized in that, In the step of displaying fancy bullet comments based on the spelling results, only spelling results with a word frequency greater than the third threshold are displayed as fancy bullet comments.

Citation Information

Patent Citations

  • Method and device for displaying barrage

    CN108566565A