Bullet screen display method and device

By automatically tagging video content and triggering barrage special effects in real time, the existing barrage display effect is solved and the problem of poor correlation with video content is achieved, and richer interaction and higher user immersion is achieved.

CN119653191APending Publication Date: 2025-03-18SHANGHAI BILIBILI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411824587.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-11
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

The display effect of existing barrage is single and has poor correlation with video content, which affects the user experience.

Method used

By analyzing the video content, automatically tag keywords, trigger barrage special effects in real time, and display barrage with the video plot to enhance interactivity and relevance.

Benefits of technology

It enriches the display effect of the barrage, improves the immersion and interactivity of users, and improves the dissemination and attractiveness of the video.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119653191A_ABST
    Figure CN119653191A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a bullet screen display method, and the method comprises the steps: playing a target video, and enabling the target video to be associated with a keyword at a preset playing time point; obtaining candidate bullet screens of the target video, wherein the launching time of the candidate bullet screens is within a preset range near the preset playing time point; and under the condition that the candidate bullet screen and the keyword meet a preset condition, displaying the candidate bullet screen with a target special effect. According to the technical scheme provided by the embodiment of the invention, the specific target special effect can be provided for the associated specific bullet screen at the preset time point of video playing, the display effect is enriched, and the interactivity is improved, so that the immersion of a user and the enthusiasm of sending the bullet screen are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to a bullet screen display method, device, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] With the rapid development of video technology, more and more users can watch various video programs through the Internet. In the process of watching video programs, users can interact with anchors or other users by sending barrages. The barrage refers to the subtitles that pop up and move in a predetermined direction when watching videos through the Internet. It is a kind of communication information. There is no fixed word for barrage in English. It is usually called: comment, danmaku, barrage, bullet screen, bullet-screen comment, etc. Barrage allows users to post comments or thoughts, but unlike ordinary video sharing websites that only display them in a dedicated comment area under the player, it will appear in real time on the video screen in the form of sliding subtitles to ensure that all viewers can notice it.

[0003] The existing bullet screen slides from right to left, with a single display effect and poor human-computer interaction, which affects the user experience.

[0004] It should be noted that the above content is not necessarily prior art, nor is it intended to limit the scope of patent protection of this application. Summary of the invention

[0005] The embodiments of the present application provide a bullet screen display method, apparatus, computer device, computer-readable storage medium, and computer program product to solve or alleviate one or more of the technical problems raised above.

[0006] One aspect of an embodiment of the present application provides a bullet screen display method, the method comprising: Playing a target video, wherein the target video is associated with a target keyword at a preset playback time point; Obtain candidate bullet comments for the target video, where the emission time of the candidate bullet comments is within a preset range around the preset playback time point; When a preset condition is satisfied between the candidate bullet screen and the target keyword, the candidate bullet screen is displayed with a target special effect.

[0007] Optionally, the preset playback time point and the target keyword are associated through the following operations: Acquire multiple text contents of the target video, each of which corresponds to a different playback time point; Filtering target text content including the target keyword from multiple text contents; The playback time point of the target text content is determined as the preset playback time point associated with the target keyword.

[0008] Optionally, the target text content includes multiple keywords; the method further includes: According to the priorities of the keywords, the keyword with the highest priority among the multiple keywords is determined as the target keyword.

[0009] Optionally, the preset playback time point and the target keyword are associated through the following operations: Acquire multiple text contents of the target video, each of which corresponds to a different playback time point; Filtering target text content from multiple text contents according to the plot and / or picture content of the target video; Extracting the target keyword from the target text content; The playback time point of the target text content is determined as the preset playback time point associated with the target keyword.

[0010] Optionally, the method further comprises: Obtaining a presentation time period of the target text content on the target video; In the case where the length of the presentation time period is greater than the default length of time, determining the presentation time period to be a preset range around the preset playback time point; In the case that the time length of the presentation time period is not greater than the default time length, a preset range around the preset playback time point is determined according to the default time length starting from the preset playback point.

[0011] Optionally, the preset condition includes a target keyword matching degree; when the candidate bullet screen and the target keyword meet the preset condition, displaying the candidate bullet screen with a target special effect includes: Matching the candidate bullet comments with the target keyword to obtain a target matching degree; When the target matching degree reaches a preset threshold, the candidate bullet comments are displayed with the target special effects.

[0012] Optionally, displaying the candidate bullet comments with a target special effect includes: Querying a mapping table according to the target keyword to obtain the target special effect corresponding to the target keyword; The mapping table includes a plurality of candidate keywords and a corresponding plurality of candidate special effects, the target keyword is any one of the plurality of candidate keywords, and the target special effect is one or more combinations of the plurality of candidate special effects.

[0013] Another aspect of an embodiment of the present application provides a bullet screen display device, the device comprising: A playback module, used to play a target video, wherein the target video is associated with a target keyword at a preset playback time point; An acquisition module, used to acquire candidate bullet comments of the target video, wherein the emission time of the candidate bullet comments is within a preset range near the preset playback time point; A display module is used to display the candidate barrage with a target special effect when a preset condition is satisfied between the candidate barrage and the target keyword.

[0014] Another aspect of an embodiment of the present application provides a computer device, including: at least one processor; and a memory communicatively coupled to the at least one processor; Wherein: 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 so that the at least one processor can execute the method as described above.

[0015] Another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method described above is implemented.

[0016] Another aspect of an embodiment of the present application provides a computer program product, including a computer program, which implements the method described above when executed by a processor.

[0017] The embodiment of the present application adopts the above technical solution, which may include the following advantages: when it is detected that the bullet screen is related to the keyword associated with the sending time point, the bullet screen is displayed through a special bullet screen special effect. Thus, the relevance of the bullet screen special effect to the video can be enhanced. Specifically, at the preset time point of the video playback, a specific target special effect is provided for the associated specific bullet screen, enriching the display effect and improving interactivity, thereby enhancing the user's immersion and enthusiasm for sending bullet screens. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] 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.

[0019] Figure 1 The following schematically shows an operating environment diagram of the bullet screen display method according to the first embodiment of the present application; Figure 2 The flowchart of the bullet screen display method according to the first embodiment of the present application is schematically shown; Figure 3 The newly added flow chart of the bullet screen display method according to the first embodiment of the present application is schematically shown; Figure 4 Another newly added flow chart of the bullet screen display method according to the first embodiment of the present application is schematically shown; Figure 5 Schematically shows another newly added flow chart of the bullet screen display method according to the first embodiment of the present application; Figure 6 Schematically shows Figure 2 Flow chart of sub-steps of step S204; Figure 7 A diagram schematically shows an application example of the bullet screen display method according to an embodiment of the present application; Figure 8 A block diagram of a bullet screen display device according to the second embodiment of the present application is schematically shown; and Fig. 9 The hardware architecture diagram of the computer device according to the third embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0021] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0022] In the description of the present application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed, but are only used to facilitate the description of the present application and to distinguish each step, and therefore should not be understood as a limitation on the present application.

[0023] First, the following terms are explained: Danmu: subtitles, pictures, etc. that pop up and move in a predetermined direction when watching a video on the Internet. There is no fixed word for Danmu in English, and it is usually called: comment, danmaku, barrage, bullet screen, bullet-screen comment, etc. Danmu allows viewers to comment or feel, but unlike ordinary video sharing websites that only display comments in the dedicated comment area under the player, it will appear in real time on the video screen in the form of sliding subtitles to ensure that all viewers can notice it.

[0024] Black hole: An object with a hole-like shape or opening or entrance.

[0025] Black hole barrage: associated display materials, such as black hole pictures and special effects in videos. The location of the black hole picture is used as the appearance or disappearance location of other barrage comments. The display material as the appearance location can be called an exit black hole, which can form a visual effect of barrage comments coming out of the hole. The display material as the disappearance location can be called an entrance black hole, which can form a visual effect of barrage comments entering the hole. Black hole pictures can be regular or irregular pictures of specific colors (such as black, red, and combination colors). For example, the display material can be a black picture similar to the shape of a black hole in the universe. For another example, a black hole picture can also have customized pictures of buildings, caves, tunnels, etc. for the exit / entrance.

[0026] CSS: Cascading Style Sheets, is a language used to describe the presentation of HTML (HyperText Markup Language) documents. It can control the layout, color, font and other visual and formatting features of a web page.

[0027] FFmpeg: is an open source multimedia framework used for converting formats, editing videos, merging audio and video, adding subtitles, etc.

[0028] Google Speech-to-Text API: It is a cloud service provided by Google that can convert audio data into text.

[0029] Canvas API: A JavaScript and HTML <canvas>Elements are used to draw graphics, which are used in animation, game screens, data visualization, image editing, and real-time video processing.

[0030] JavaScript: A prototype-based, multi-paradigm dynamic scripting language used to enhance the interactivity and dynamism of web pages and implement client-side page behavior.

[0031] Mapping table: is a data structure that maps a set of keys to a set of values. In computer science, mapping tables are often called "dictionaries", "hash tables", "associative arrays" or "maps".

[0032] Secondly, in order to facilitate those skilled in the art to understand the technical solutions provided in the embodiments of the present application, the relevant technologies are described below: The inventors have learned that the display effect of bullet comments is usually static or preset, and is simply covered on the video screen, and has no connection with the specific plot and content of the video, resulting in poor interactive effect, inability to fully utilize the video content to enhance the viewing experience, and lack of direct interaction with the video content. As a result, the audience's bullet comment content cannot get more targeted dynamic feedback during the video playback process, thus affecting the audience's viewing experience and sense of participation.

[0033] To this end, the embodiment of the present application provides a technical solution for displaying bullet screens. In this technical solution, (1) by analyzing the video content and automatically tagging keywords, when the audience sends bullet screens at a specific time point, the corresponding bullet screen special effects can be triggered in real time. The combination of bullet screen effects and video plots enhances the interactivity of the video and the audience's sense of participation, making the audience not only a commentator, but also a participant in the interactive experience; (2) by setting a variety of bullet screen special effects, the limitation of the single existing bullet screen effect is broken, so that the bullet screen can be dynamically presented as the video content changes, which increases the fun of watching the video and avoids the singleness and boredom of the bullet screen display effect; (3) by using specific keywords or plots in the video to actively guide the audience to participate in the bullet screen interaction, the audience's enthusiasm and participation are improved. While experiencing more interactive fun, the audience is more likely to share the video on social platforms, thereby increasing the dissemination and attractiveness of the video; (4) through automatic analysis and keyword tagging of video content, this application can realize the association between video content and bullet screen effects without manual intervention, reducing the maintenance cost and operation difficulty of bullet screen special effect management, and at the same time improving the intelligence level of bullet screen special effect matching. See below for details.

[0034] Finally, for ease of understanding, an exemplary operating environment is provided below.

[0035] like Figure 1 As shown, the operating environment diagram includes: a service platform 2 and a client.

[0036] The service platform 2 can be connected to the client terminals ( 4A, 4B, ..., 4N) via the network.

[0037] The service platform 2 can provide various content and bullet screen services for the client. For example, the video and bullet screen are sent to the client via the network. The network includes various network devices, such as routers, switches, multiplexers, hubs, bridges, repeaters, firewalls, proxy devices and / or similar devices. The network may include physical links, such as coaxial cable links, twisted pair cable links, optical fiber links and combinations thereof. The network may include wireless links, such as cellular links, satellite links, Wi-Fi links, etc.

[0038] The service platform 2 may be a single server, a server cluster or a cloud computing service center, which is used to provide various services. For example: The service platform 2 may provide content services. The content services may be configured to provide content such as video, audio, text data and combinations thereof. The content may include content streams (e.g., video streams, audio streams, information streams), content files (e.g., video files, audio files, text files) and / or other data.

[0039] The service platform 2 may be configured to receive a plurality of messages. The plurality of messages may include a plurality of bullet comments associated with the content.

[0040] The service platform 2 may provide a bullet screen service, which may be configured to allow users to comment and / or share comments (i.e. bullet screens) associated with the content. The bullet screens are presented on the same screen together with the content. The bullet screens may be displayed in an overlay above the content and may have animation effects. For example, the bullet screens may scroll (e.g., from right to left, from left to right, from top to bottom, ...), and the animation effect may be implemented based on the transition property of CSS3.

[0041] The client (4A, 4B, ... 4N) may be configured to access the content and services of the service platform 2. The client (4A, 4B, ... 4N) may include an electronic device carrying or externally connected to a display panel, such as a mobile device, a tablet device, a laptop computer, a workstation, a virtual reality device, a gaming device, a digital streaming device, a vehicle client, a smart TV, a set-top box, etc., and may also include a virtualized computing instance. The virtualized computing instance may include a virtual machine, such as a simulation of a computer system, an operating system, a server, etc.

[0042] The client (4A, 4B, ... 4N) may include multiple client programs, such as a video APP, a live broadcast APP or a mini program with a built-in bullet screen system. In the embodiment of the present application, the video and other content provided by the service platform 2 can be presented through the client program, and the bullet screen system can present the bullet screen content in a specific way.

[0043] The client (4A, 4B, ... 4N) may include an interface, which may include a touch pad, a touch screen, a mouse, a keyboard or other sensing elements. For example, the input element may be configured to receive user instructions, and the user instructions may enable the client (4A, 4B, ... 4N) to perform various operations, such as inputting bullet comments, etc.

[0044] It should be noted that the above devices are exemplary, and the number and type of devices are adjustable in different scenarios or according to different needs. It should be noted that these embodiments can be implemented in many different forms and should not be construed as being limited to the embodiments described here.

[0045] Embodiment 1 Figure 2 The flowchart of the bullet screen display method according to the first embodiment of the present application is schematically shown.

[0046] like Figure 2 As shown, the bullet screen display method may include steps S200 to S204, wherein: Step S200, playing a target video, wherein the target video is associated with a target keyword at a preset playing time point.

[0047] Step S202, obtaining candidate bullet comments of the target video, wherein the emission time of the candidate bullet comments is within a preset range around the preset playback time point.

[0048] Step S204, when the candidate bullet screen and the target keyword meet a preset condition, display the candidate bullet screen with a target special effect.

[0049] The barrage display method provided in this embodiment displays the barrage through special barrage special effects when it is detected that the barrage is related to the keyword associated with the sending time point. In this way, the relevance of the barrage special effects to the video can be enhanced. Specifically, at the preset time point of video playback, a specific target special effect is provided for a specific barrage with a related relationship, enriching the display effect and improving interactivity, thereby enhancing the user's immersion and enthusiasm for sending barrages.

[0050] The following combination Figure 2 , each step in steps S200~S204 and other optional steps are described in detail.

[0051] Step S200 , play the target video, wherein the target video is associated with the target keyword at a preset play time point.

[0052] The target video can be any type of video on a video website, such as a film or TV series, or a game commentary. The target video is associated with a bullet screen, and there are multiple types of bullet screens, such as ordinary text bullet screens, picture bullet screens, and black hole bullet screens.

[0053] In a specific implementation, the video number, preset play time point and target keyword of the target video may be stored in a data table so as to query the association relationship between them.

[0054] In this embodiment, by associating specific keywords with a video at a specific time point, it is possible to accurately characterize the characteristics of the video at each time point. As a result, different bullet screen effects can be selected according to the characteristics of the video at different time points to increase the fun of the bullet screen effects and the audience's immersion in watching the video. At the same time, using specific keywords or plots in the video to actively guide the audience to participate in the bullet screen interaction improves the audience's enthusiasm and participation. While experiencing more interactive fun, the audience is more likely to share the video on social platforms, thereby increasing the dissemination and attractiveness of the video.

[0055] In an optional embodiment, if Figure 3 As shown, the preset playback time point and the target keyword are associated through the following operations: S300, obtaining multiple text contents of the target video, each of which corresponds to a different playback time point.

[0056] S302: Filter out target text content including the target keyword from multiple text contents.

[0057] S304: Determine the playback time point of the target text content as the preset playback time point associated with the target keyword.

[0058] In specific implementation, the text content can be the subtitles of the video, the audio text, or the subtitles and audio text after processing and merging. FFmpeg can be used to extract the subtitle file in the video, and the Google Speech-to-Text API can be used to perform speech recognition on the video audio to obtain the audio text. Depending on the actual situation, the text content can also be obtained by other means.

[0059] In some embodiments, text content directly containing keywords can be identified as target text content by using a text matching method. In other embodiments, fuzzy matching or semantic matching methods can also be used to identify text content that meets the keyword matching requirements but does not contain keywords as target text content.

[0060] In this embodiment, the preset playback time point and the target keyword are associated by using text content including the target keyword, which can improve the matching degree between the video content and the keyword, and realize the differentiated special effect display of the barrage based on the keyword matching degree and the optimization of user experience.

[0061] In an optional embodiment, the target text content includes a plurality of keywords; the method further includes: According to the priorities of the keywords, the keyword with the highest priority among the multiple keywords is determined as the target keyword.

[0062] In specific implementation, a text content may contain multiple different keywords, and each keyword will correspond to a different special effect. The simultaneous display of multiple different special effects will affect the neatness and clarity of the video screen and affect the audience's viewing experience.

[0063] In view of this, in this embodiment, only the barrage special effects corresponding to the highest priority keywords in the text content can be displayed at the same time, which can effectively avoid picture confusion, ensure the clarity of the video content and the viewing comfort of the audience, and enhance the overall viewing experience.

[0064] In an optional embodiment, if Figure 4 As shown, the preset playback time point and the target keyword can also be associated through the following operations: S400, obtaining multiple text contents of the target video, each of which corresponds to a different playback time point.

[0065] S402: Filter out target text content from multiple text contents according to the plot and / or picture content of the target video.

[0066] S404: extract the target keyword from the target text content.

[0067] S406: Determine the playback time point of the target text content as the preset playback time point associated with the target keyword.

[0068] In some embodiments, the plot and pictures of the target video can be parsed by a pre-trained model or algorithm to obtain the target text content and keywords that best represent the characteristics of the video. In other embodiments, the target text content and keywords can also be obtained by other methods.

[0069] In actual use, the pre-set keywords have limited coverage and may not be updated in a timely manner, and cannot represent the core content of the plot or pictures of certain videos, resulting in poor correlation between the keywords and the video content.

[0070] Therefore, in this embodiment, the preset playback time point and the target keyword are determined according to the specific plot and picture conditions of the target video. In this way, the core content of the video can be accurately captured, the correlation between the keyword and the video content can be improved, and the relevance of the bullet screen special effects can be enhanced. At the same time, the combination of the bullet screen effect and the video plot makes the audience not only a commentator, but also a participant in the interactive experience, which enhances the interactivity of the video and the audience's sense of participation.

[0071] Step S202 , obtain candidate bullet comments of the target video, and the emission time of the candidate bullet comments is within a preset range around the preset playback time point.

[0072] The barrage sent by viewers when watching videos is highly correlated with the video content (such as video plot, video screen, etc.) when the barrage is sent.

[0073] In this embodiment, the barrages with launch times near the preset playback time point are determined as candidate barrages, so that target barrages that need to be displayed with specific barrage special effects can be subsequently screened out, which can ensure the synchronization and relevance of the target barrages with the current video content, thereby improving the audience's viewing experience and interaction quality.

[0074] In an optional embodiment, if Figure 5 As shown, the method also includes: S500: Obtain a presentation time period of the target text content on the target video.

[0075] S502: When the length of the presentation time period is greater than a default length of time, determine that the presentation time period is a preset range around the preset playback time point.

[0076] S504: When the duration of the presentation time period is not greater than the default duration, a preset range around the preset playback time point is determined according to the default duration starting from the preset playback point.

[0077] In specific implementation, the default time length may be set to 3s. The default time length may also be set to other values ​​according to actual needs.

[0078] In this embodiment, by comparing the display time of the text content on the video screen with the preset default time length, it can be ensured that the keyword can at least affect the bullet screen special effects of the bullet screen within a certain time range. In this way, the amount of bullet screens with specific bullet screen special effects can be increased, the display effect of the video screen can be guaranteed, and the interest of the video and the viewing experience of the audience can be improved.

[0079] Step S204 , when the preset conditions are met between the candidate barrage and the target keyword, the candidate barrage is displayed with the target special effects.

[0080] In specific implementation, the preset condition may be that the candidate bullet screen contains the target keyword, the candidate bullet screen contains words similar to the target keyword, or the content of the candidate bullet screen is similar to the keyword, etc. According to actual needs, the preset condition may also be other conditions.

[0081] In actual use, the target special effect can be an animation effect achieved through front-end technologies such as CSS, JavaScript, and Canvas API, and has a strong correlation with the target keyword. For example, the "black hole bullet screen" special effect corresponding to the target keyword "black hole" can be achieved by using the Canvas API to draw a gradually shrinking circle on the screen to simulate the effect of sucking the bullet screen. For another example, the "upward bullet screen" special effect corresponding to the target keyword "walk up" can be set to scroll the bullet screen from bottom to top through CSS animation. According to the actual situation, other available technical means can also be used to produce target special effects.

[0082] In some embodiments, the preset condition may be that the candidate bullet comments contain the target keyword. For example, if the keyword at a certain time point of the video is "black hole", the candidate bullet comments containing the word "black hole" will trigger the "black hole bullet comment" special effect: the bullet comment will be instantly moved from one position on the screen to another position on the screen and continue to move during the movement of the bullet comment.

[0083] In other embodiments, the preset condition may be that the candidate bullet comments contain words similar to the target keyword. For example, if the keyword at a certain time point in the video is "swallow", the candidate bullet comments containing words such as "swallow" and "swallow" will trigger the "swallow bullet comment" special effect: the bullet comments will be gathered to the specified area, and the bullet comments entering the specified area will be hidden, so as to achieve the visual effect that the bullet comments are gradually swallowed by the specified area.

[0084] In other embodiments, the preset condition may be that the content of the candidate barrage is similar to the keyword. For example, if the keyword at a certain time point in the video is "walking up", then candidate barrages such as "If you want to see a thousand miles, you must climb to a higher level" and "When you are on the top of the mountain, you will see all the small mountains" will trigger the "walking up barrage" special effect: the barrage moves from the bottom of the screen to the top.

[0085] In this embodiment, a specific bullet screen special effect is used to display bullet screens with a high degree of relevance to the video. This can enhance the interactivity and fun of bullet screens, break the limitation of a single bullet screen effect, and enable bullet screens to be dynamically presented as the video content changes, thereby enhancing the immersiveness of watching the video, making the video more vivid and attractive, and improving the audience's viewing experience.

[0086] In an optional embodiment, the preset condition includes a target keyword matching degree, such as Figure 6 As shown, step S204 includes: S600, matching the candidate bullet comments with the target keyword to obtain a target matching degree.

[0087] S602, when the target matching degree reaches a preset threshold, display the candidate bullet comments with the target special effects.

[0088] In some embodiments, a specific model can be obtained based on LLM, NLP and other training to evaluate the target matching degree between the candidate bullet comments and the target keyword. In other embodiments, the target matching degree can also be obtained by calling a third-party dedicated or shared large language model. According to actual needs, other available methods can also be used to obtain the target matching degree.

[0089] In this embodiment, the barrage with a high degree of matching with the keyword is displayed through a specific special effect, which can achieve the association of video content with the barrage effect without human intervention, thereby improving the intelligence level of the barrage special effect matching.

[0090] In an optional embodiment, step S204 includes: Querying a mapping table according to the target keyword to obtain the target special effect corresponding to the target keyword; The mapping table includes a plurality of candidate keywords and a corresponding plurality of candidate special effects, the target keyword is any one of the plurality of candidate keywords, and the target special effect is one or more combinations of the plurality of candidate special effects.

[0091] In specific implementation, the mapping table may also include information such as video ID, video time point corresponding to the keyword, etc. The administrator may modify or update the mapping table by calling an API interface, etc. According to actual needs, the mapping table may also include other information, and the administrator may also modify or update the mapping table by other means.

[0092] In this embodiment, by recording the correspondence between target keywords and target special effects (one-to-one, or one-to-many) in a mapping table, an automated barrage display effect can be achieved, while reducing the maintenance cost and operational difficulty of barrage special effect management.

[0093] In order to make this application easier to understand, the following Figure 7 An exemplary application is provided. S11, playing animation video A (ie, target video).

[0094] S12, when the animation video is played to 1 minute and 14 seconds, it is detected that the subtitle M in the video includes two keywords "walking up" and "swallowing".

[0095] S13. Among "go upward" and "swallow", the one with higher priority is "go upward", and "go upward" is determined as the target keyword here.

[0096] S14. Querying the mapping table, it is known that the keyword "go upward" corresponds to the special effect of "upward moving bullet screen".

[0097] S15. The display time of subtitle M is 4s, exceeding the default time length (3S). 30 candidate bullet screens sent within the display time of subtitle M are obtained.

[0098] S16. Among the 30 candidate bullet screens, 10 candidate bullet screens directly include the word "go upward", 5 candidate bullet screens include the word "go upward" which has a similar meaning to "go upward", and there is also 1 candidate bullet screen of "I will climb to the summit", which contains the meaning of "go upward". These 16 candidate bullet screens are displayed with the special effect of "upward moving bullet screen" and scroll from the lower part to the upper part of the video screen.

[0099] S17. According to the plot of the animated video A, the subtitle N at 11 minutes and 45 seconds of the animated video A is the climax part (i.e., the target text content), and the keyword "black hole" is extracted from it, and "black hole" is determined as the target keyword here.

[0100] S18. Querying the mapping table, it is known that the keyword "black hole" corresponds to the special effect of "black hole bullet screen".

[0101] S19. The display time of subtitle N is 1s, not exceeding the default time length (3S). 40 candidate bullet screens sent within 3S after the display of subtitle N are obtained.

[0102] S20. All 40 candidate bullet screens contain the word "black hole", and these 40 bullet screens are displayed with the special effect of "black hole bullet screen", and a gradually shrinking circle is drawn on the screen to simulate the effect of sucking in the candidate bullet screens.

[0103] Embodiment 2 Figure 8 Schematically shows a block diagram of a bullet screen display device according to Embodiment 2 of the present application. The device can be divided into one or more program modules. One or more program modules are stored in a storage medium and executed by one or more processors to complete the embodiments of the present application. The program modules referred to in the embodiments of the present application refer to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. As Figure 8 shown, the device 1000 may include: a playback module 1100, an acquisition module 1200, and a display module 1300, where: The playback module 1100 is used to play a target video, and the target video is associated with a target keyword at a preset playback time point; An acquisition module 1200 is used to acquire candidate bullet comments of the target video, wherein the emission time of the candidate bullet comments is within a preset range around the preset playback time point; The display module 1300 is used to display the candidate barrage with a target special effect when a preset condition is satisfied between the candidate barrage and the target keyword.

[0104] In an optional embodiment, the apparatus 1000 further includes a keyword association module, which is used to: Acquire multiple text contents of the target video, each of which corresponds to a different playback time point; Filtering target text content including the target keyword from multiple text contents; The playback time point of the target text content is determined as the preset playback time point associated with the target keyword.

[0105] In an optional embodiment, the target text content includes multiple keywords, and the device 1000 further includes a keyword determination module, which is used to: According to the priorities of the keywords, the keyword with the highest priority among the multiple keywords is determined as the target keyword.

[0106] In an optional embodiment, the apparatus 1000 further includes a keyword extraction module, which is used to: Acquire multiple text contents of the target video, each of which corresponds to a different playback time point; Filtering target text content from multiple text contents according to the plot and / or picture content of the target video; Extracting the target keyword from the target text content; The playback time point of the target text content is determined as the preset playback time point associated with the target keyword.

[0107] In an optional embodiment, the apparatus 1000 further includes a time determination module, configured to: Obtaining a presentation time period of the target text content on the target video; In the case where the length of the presentation time period is greater than the default length of time, determining the presentation time period to be a preset range around the preset playback time point; In the case that the time length of the presentation time period is not greater than the default time length, a preset range around the preset playback time point is determined according to the default time length starting from the preset playback point.

[0108] In an optional embodiment, the preset condition includes a target keyword matching degree, and the display module 1300 is further used to: Matching the candidate bullet comments with the target keyword to obtain a target matching degree; When the target matching degree reaches a preset threshold, the candidate bullet comments are displayed with the target special effects.

[0109] In an optional embodiment, the display module 1300 is further used for: Querying a mapping table according to the target keyword to obtain the target special effect corresponding to the target keyword; The mapping table includes a plurality of candidate keywords and a corresponding plurality of candidate special effects, the target keyword is any one of the plurality of candidate keywords, and the target special effect is one or more combinations of the plurality of candidate special effects.

[0110] Embodiment 3 Fig. 9 The schematic diagram of the hardware architecture of a computer device 10000 suitable for implementing the bullet screen display method according to the third embodiment of the present application is schematically shown. In some embodiments, the computer device 10000 may be a terminal device such as a smart phone, a wearable device, a tablet computer, a personal computer, a vehicle terminal, a game console, a virtual device, a workbench, a digital assistant, a set-top box, a robot, etc. In other embodiments, the computer device 10000 may be a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or a server cluster composed of multiple servers), etc. Fig. 9 As shown, the computer device 10000 includes but is not limited to: a memory 10010, a processor 10020, and a network interface 10030 that can communicate with each other through a system bus. Among them: The memory 10010 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (such as SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10010 can be an internal storage module of the computer device 10000, such as a hard disk or memory of the computer device 10000. In other embodiments, the memory 10010 can also be an external storage device of the computer device 10000, such as a plug-in hard disk equipped on the computer device 10000, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 10010 can also include both the internal storage module of the computer device 10000 and its external storage device. In this embodiment, the memory 10010 is generally used to store the operating system and various application software installed in the computer device 10000, such as the program code of the bullet screen display method, etc. In addition, the memory 10010 can also be used to temporarily store various data that have been output or will be output.

[0111] In some embodiments, the processor 10020 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other chips. The processor 10020 is generally used to control the overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is used to run the program code stored in the memory 10010 or process data.

[0112] The network interface 10030 may include a wireless network interface or a wired network interface, and the network interface 10030 is generally used to establish a communication link between the computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 10000 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.

[0113] It should be pointed out that Fig. 9 Only a computer device having components 10010 - 10030 is shown, but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0114] In this embodiment, the barrage display method stored in the memory 10010 can also be divided into one or more program modules and executed by one or more processors (such as processor 10020) to complete the embodiment of the present application.

[0115] Embodiment 4 An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the barrage display method in the embodiment are implemented.

[0116] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the computer-readable storage medium may be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. Of course, the computer-readable storage medium may also include both an internal storage unit of a computer device and an external storage device thereof. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed on a computer device, such as the program code of the bullet screen display method in the embodiment. In addition, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.

[0117] Embodiment 5 An embodiment of the present application also provides a computer program product, including a computer program, which implements the method in the above embodiment when executed by a processor.

[0118] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by general-purpose computer devices, they can be concentrated on a single computer device, or distributed on a network composed of multiple computer devices, optionally, they can be implemented by executable program codes of computer devices, so that they can be stored in a storage device and executed by the computer device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0119] It should be noted that the above are only preferred embodiments of the present application, and the patent protection scope of the present application is not limited thereto. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.< / canvas>

Claims

1. A bullet screen display method, characterized in that: The method comprises: Playing a target video, wherein the target video is associated with a target keyword at a preset playback time point; Obtain candidate bullet comments for the target video, where the emission time of the candidate bullet comments is within a preset range around the preset playback time point; When a preset condition is satisfied between the candidate bullet screen and the target keyword, the candidate bullet screen is displayed with a target special effect.

2. The method according to claim 1, characterized in that The preset playback time point and the target keyword are associated through the following operations: Acquire multiple text contents of the target video, each of which corresponds to a different playback time point; Filtering target text content including the target keyword from multiple text contents; The playback time point of the target text content is determined as the preset playback time point associated with the target keyword.

3. The method according to claim 2, characterized in that The target text content includes multiple keywords; The method further comprises: According to the priorities of the keywords, the keyword with the highest priority among the multiple keywords is determined as the target keyword.

4. The method according to claim 1, characterized in that The preset playback time point and the target keyword are associated through the following operations: Acquire multiple text contents of the target video, each of which corresponds to a different playback time point; Filtering target text content from multiple text contents according to the plot and / or picture content of the target video; Extracting the target keyword from the target text content; The playback time point of the target text content is determined as the preset playback time point associated with the target keyword.

5. The method according to claim 2, 3 or 4, characterized in that: The method further comprises: Obtaining a presentation time period of the target text content on the target video; In the case where the length of the presentation time period is greater than the default length of time, determining the presentation time period to be a preset range around the preset playback time point; In the case that the time length of the presentation time period is not greater than the default time length, a preset range around the preset playback time point is determined according to the default time length starting from the preset playback point.

6. The method according to any one of claims 1 to 4, characterized in that: The preset conditions include target keyword matching degree; When the candidate bullet screen and the target keyword meet a preset condition, displaying the candidate bullet screen with a target special effect includes: Matching the candidate bullet comments with the target keyword to obtain a target matching degree; When the target matching degree reaches a preset threshold, the candidate bullet comments are displayed with the target special effects.

7. The method according to any one of claims 1 to 4, characterized in that: Displaying the candidate bullet comments with target special effects includes: Querying a mapping table according to the target keyword to obtain the target special effect corresponding to the target keyword; The mapping table includes a plurality of candidate keywords and a corresponding plurality of candidate special effects, the target keyword is any one of the plurality of candidate keywords, and the target special effect is one or more combinations of the plurality of candidate special effects.

8. A bullet screen display device, characterized in that: The device comprises: A playback module, used to play a target video, wherein the target video is associated with a target keyword at a preset playback time point; An acquisition module, used to acquire candidate bullet comments of the target video, wherein the emission time of the candidate bullet comments is within a preset range near the preset playback time point; The display module is used to display the candidate barrage with a target special effect when a preset condition is satisfied between the candidate barrage and the target keyword.

9. A computer device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein: 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.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.