Bullet screen display method, device, electronic device and storage medium
By acquiring and generating a set of barrages within the barrage display interval of the target video, the problem of low barrage generation and display efficiency in the prior art is solved, and the effect of automatic generation and display is achieved.
Patent Information
- Application Number
- CN202211417608.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-11
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2042-11-11
AI Technical Summary
In the prior art, the generation and display efficiency of barrage screens is low, and users need to manually enter barrage screen content.
By determining the barrage display interval of the target video, a set of barrage corresponding to the interval is obtained, and a target barrage is generated and displayed based on the set. The specific steps include determining the barrage display interval, obtaining the barrage collection, generating the target barrage and displaying it in the specified interval.
The efficiency of barrage generation and display is improved, and the automatic generation and display of barrage based on video clips is realized.
Smart Images

Figure CN116193183B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a bullet screen display method, device, electronic device and storage medium. Background Art
[0002] In the prior art, when users watch a video, they usually comment on the video clip by sending a bullet screen. At present, the existing bullet screen display process includes: first, the user clicks an input box or a button for editing a bullet screen, then edits the bullet screen to be input in the input box, and after completing the bullet screen editing, clicks a button for sending the bullet screen to present the edited bullet screen.
[0003] However, the above-mentioned bullet comment generation solution usually requires the user to manually input the bullet comment content, resulting in low efficiency in the generation and display of the bullet comment. Summary of the invention
[0004] In view of this, in order to solve some or all of the above-mentioned technical problems, the embodiments of the present application provide a bullet screen display method, device, electronic device and storage medium.
[0005] In a first aspect, an embodiment of the present application provides a bullet screen display method, the method comprising:
[0006] Determine a bullet screen display interval of a target video, wherein the bullet screen display interval represents a video segment for displaying the bullet screen to be generated;
[0007] Obtaining a barrage set corresponding to the video clip, wherein the barrages in the barrage set are generated barrages;
[0008] Based on the barrage set, generating a target barrage for display in the barrage display interval;
[0009] The target bullet screen is displayed in the bullet screen display interval.
[0010] In a possible implementation, generating a target bullet screen for display in the bullet screen display interval based on the bullet screen set includes:
[0011] Determine the number of barrage operations for each barrage in the barrage set;
[0012] Based on the determined number of barrage operations, determining a barrage subset from the barrage set;
[0013] Based on the bullet screen subset, a target bullet screen is generated for display in the bullet screen display interval.
[0014] In a possible implementation, determining a bullet screen subset from the bullet screen set based on the determined number of bullet screen operations includes:
[0015] From the barrage set, determine the barrages whose barrage operation times are greater than or equal to a first threshold, and obtain a barrage subset; or
[0016] A preset number of barrages are selected from the barrage set in descending order of the number of barrage operations to obtain a barrage subset.
[0017] In a possible implementation, obtaining a bullet comment set corresponding to the video clip includes:
[0018] Obtaining a first bullet comment set of the video clip sent via a target platform;
[0019] Determine a first number of barrages included in the first barrage set;
[0020] determining whether the first number is greater than or equal to a second threshold;
[0021] When the first number is greater than or equal to the second threshold, the first barrage set is determined as the barrage set corresponding to the video clip.
[0022] In a possible implementation, obtaining the bullet comment set corresponding to the video clip further includes:
[0023] When the first number is less than the second threshold, obtaining a second bullet comment set of the video clip sent through each platform in a first preset platform set, wherein the first preset platform set includes the target platform;
[0024] Determining a second number of barrages included in the second barrage set;
[0025] determining whether the second number is greater than or equal to the second threshold;
[0026] When the second number is greater than or equal to the second threshold, the second barrage set is determined as the barrage set corresponding to the video clip.
[0027] In a possible implementation, obtaining the bullet comment set corresponding to the video clip further includes:
[0028] When the second number is less than the second threshold, obtaining a third barrage set sent by each platform in a second preset platform set, wherein the second preset platform set includes the target platform;
[0029] The third barrage set is determined as the barrage set corresponding to the video clip.
[0030] In a possible implementation, displaying the target bullet screen in the bullet screen display interval includes:
[0031] Determine a target display mode that matches the barrage set;
[0032] In the barrage display interval, the target barrage is displayed according to the target display mode.
[0033] In a second aspect, an embodiment of the present application provides a bullet screen display device, the device comprising:
[0034] A determination unit, configured to determine a bullet screen display interval of a target video, wherein the bullet screen display interval represents a video segment for displaying the bullet screen to be generated;
[0035] An acquisition unit, configured to acquire a barrage set corresponding to the video clip, wherein the barrages in the barrage set are generated barrages;
[0036] A generating unit, configured to generate a target bullet screen for display in the bullet screen display interval based on the bullet screen set;
[0037] A display unit is used to display the target bullet screen in the bullet screen display interval.
[0038] In a possible implementation, generating a target bullet screen for display in the bullet screen display interval based on the bullet screen set includes:
[0039] Determine the number of barrage operations for each barrage in the barrage set;
[0040] Based on the determined number of barrage operations, determining a barrage subset from the barrage set;
[0041] Based on the bullet screen subset, a target bullet screen is generated for display in the bullet screen display interval.
[0042] In a possible implementation, determining a bullet screen subset from the bullet screen set based on the determined number of bullet screen operations includes:
[0043] From the barrage set, determine the barrages whose barrage operation times are greater than or equal to a first threshold, and obtain a barrage subset; or
[0044] A preset number of barrages are selected from the barrage set in descending order of the number of barrage operations to obtain a barrage subset.
[0045] In a possible implementation, obtaining a bullet comment set corresponding to the video clip includes:
[0046] Obtaining a first bullet comment set of the video clip sent via a target platform;
[0047] Determine a first number of barrages included in the first barrage set;
[0048] determining whether the first number is greater than or equal to a second threshold;
[0049] When the first number is greater than or equal to the second threshold, the first barrage set is determined as the barrage set corresponding to the video clip.
[0050] In a possible implementation, obtaining the bullet comment set corresponding to the video clip further includes:
[0051] When the first number is less than the second threshold, obtaining a second bullet comment set of the video clip sent through each platform in a first preset platform set, wherein the first preset platform set includes the target platform;
[0052] Determining a second number of barrages included in the second barrage set;
[0053] determining whether the second number is greater than or equal to the second threshold;
[0054] When the second number is greater than or equal to the second threshold, the second barrage set is determined as the barrage set corresponding to the video clip.
[0055] In a possible implementation, obtaining the bullet comment set corresponding to the video clip further includes:
[0056] When the second number is less than the second threshold, obtaining a third barrage set sent by each platform in a second preset platform set, wherein the second preset platform set includes the target platform;
[0057] The third barrage set is determined as the barrage set corresponding to the video clip.
[0058] In a possible implementation, displaying the target bullet screen in the bullet screen display interval includes:
[0059] Determine a target display mode that matches the barrage set;
[0060] In the barrage display interval, the target barrage is displayed according to the target display mode.
[0061] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0062] Memory for storing computer programs;
[0063] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method of any embodiment of the barrage display method of the first aspect of the present application is implemented.
[0064] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method of any embodiment of the barrage display method of the first aspect described above is implemented.
[0065] In a fifth aspect, an embodiment of the present application provides a computer program, which includes a computer-readable code. When the computer-readable code runs on a device, the processor in the device implements a method as in any embodiment of the barrage display method of the first aspect mentioned above.
[0066] The bullet screen display method provided in the embodiment of the present application can determine the bullet screen display interval of the target video, wherein the bullet screen display interval represents a video segment for displaying the bullet screen to be generated, and then obtain a bullet screen set corresponding to the video segment, wherein the bullet screen in the bullet screen set is a generated bullet screen, and then, based on the bullet screen set, generate a target bullet screen for display in the bullet screen display interval, and finally, display the target bullet screen in the bullet screen display interval. Thus, the target bullet screen can be automatically generated and displayed based on the bullet screen set corresponding to the video segment represented by the bullet screen display interval of the target video, thereby improving the efficiency of bullet screen generation and display. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1A A flowchart of a bullet screen display method provided in an embodiment of the present application;
[0068] Figure 1B For Figure 1A A schematic diagram of an application scenario;
[0069] Figure 2 A flowchart of another bullet screen display method provided in an embodiment of the present application;
[0070] Figure 3 A flowchart of another bullet screen display method provided in an embodiment of the present application;
[0071] Figure 4 A schematic diagram of the structure of a bullet screen display device provided in an embodiment of the present application;
[0072] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0073] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application.
[0074] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present application are only used to distinguish between different steps, devices, modules and other objects, and do not represent any specific technical meanings, nor do they indicate the logical order between them.
[0075] It should also be understood that in this embodiment, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0076] It should also be understood that any component, data or structure mentioned in the embodiments of the present application can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0077] In addition, the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0078] It should also be understood that the description of the various embodiments in this application focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0079] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0080] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the above-mentioned technologies, methods, and equipment should be considered as part of the specification.
[0081] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0082] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. To facilitate the understanding of the embodiments of the present application, the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0083] Figure 1A A flowchart of a bullet screen display method provided in an embodiment of the present application. Figure 1A As shown, the method specifically includes:
[0084] Step 101, determining a bullet screen display interval of a target video, wherein the bullet screen display interval represents a video segment for displaying the bullet screen to be generated.
[0085] In this embodiment, the target video may be a video to which a bullet screen can be sent. As an example, the target video may be a non-live video, such as a movie, a recorded video, or the like.
[0086] Here, the target video can be divided according to a preset duration (e.g., 20 seconds) to obtain multiple video clips. Each video clip can correspond to a target video of a playback time period. For example, if the target video is divided into video clip 1, video clip 2, and video clip 3, there are 3 video clips in total. Then, video clip 1 can correspond to a target video of 0-20 seconds, video clip 2 can correspond to a target video of 20-40 seconds, and video clip 3 can correspond to a target video of 40-60 seconds.
[0087] The bullet comment display interval may be a video segment in the above video segment that is used to display the bullet comment to be generated.
[0088] In practice, the above-mentioned bullet screen display interval can be determined according to the time when the user sends the bullet screen.
[0089] Step 102, obtaining a barrage set corresponding to the video clip, wherein the barrage in the barrage set is a generated barrage.
[0090] In this embodiment, as an example, the barrage set corresponding to the video clip may include but is not limited to at least one of the following: all or part of the barrage of the video clip in the target video, all or part of the barrage of another video clip released after cutting, editing, etc. of the video clip in the target video, and all or part of the barrage of the video clip sent through the target platform (for example, the platform that released the target video).
[0091] Step 103: Based on the barrage set, generate a target barrage for display in the barrage display interval.
[0092] The target barrage may be a barrage for display in the barrage display interval.
[0093] In this embodiment, a set of a preset number of barrages in the barrage set whose sending time is closest to the current time can be determined as the target barrage.
[0094] Step 104: display the target bullet message in the bullet message display interval.
[0095] In some optional implementations of this embodiment, the above step 104 may be performed in the following manner to display the target bullet screen in the bullet screen display interval:
[0096] First, determine a target display mode that matches the bullet screen set.
[0097] The target display mode may be a display mode that matches the bullet chat set. As an example, the target display mode may include at least one of the following: display shape, display duration, display position, display animation effect, etc. The display shape may include shapes corresponding to emoticon images such as love, heart, thumbs up, cheer, and speechless.
[0098] As an example, the barrage set may be semantically analyzed to obtain a semantic analysis result, and then a target display mode matching the barrage set may be determined. For example, if the barrage set includes "praise", then the following may be generated: Figure 1B The target display method shown (including the content of the displayed barrage "praise" and the display shape in the diagram).
[0099] As another example, the barrage set may be input into a pre-trained classification model, and a target display mode matching the barrage set may be determined according to a result output by the classification model.
[0100] Afterwards, in the barrage display interval, the target barrage is displayed according to the target display method.
[0101] It can be understood that in the above optional implementation, the target barrage can be displayed in the barrage display interval according to the target display method matching the barrage set, thereby enriching the display method of the barrage.
[0102] The following is an illustrative description of the embodiments of the present application, but it should be noted that the embodiments of the present application may have the features described below, but the following description does not constitute a limitation on the scope of protection of the embodiments of the present application.
[0103] In this example, first, the content being played (that is, the target video mentioned above) and the historical barrage hot words (such as the barrage set mentioned above, or the barrage subset described later) can be obtained and analyzed.
[0104] Afterwards, obtain the barrage (that is, the barrage set) of the corresponding content (that is, the target video mentioned above) at each time stamp.
[0105] Here, we use 20 seconds as an analysis interval to analyze the popular bullet comments (those with a frequency greater than the threshold) within this interval. For each bullet comment, if the user seconded +1, it can be regarded as another bullet comment with the same content.
[0106] Next, based on the analysis results, popular bullet comments (that is, the above-mentioned bullet comment set or bullet comment subset) recommendations are automatically generated.
[0107] Specifically, a complete video (such as the target video mentioned above) can be cut into many 20-second intervals, and the popular bullet comments in each interval are counted separately, and different intervals do not affect each other. Afterwards, the top 5 bullet comment hot words in this interval are generated based on the data statistics. For example, the system counts the [0, 20) second interval, and the top 5 bullet comment texts are "My youth is back", "Famous scene", "I am dying of laughter", "I kneel down", and "Who else". The top 5 bullet comment texts in the [20, 40) second interval are "Awesome", "Professional", "Talent", "I surrender", "Who else", and so on.
[0108] Among them, if the statistical number of barrage texts (for example, the number of barrage operations described later) does not exceed the threshold (that is, the second threshold described later), you can first use an automated script to go to other platforms (that is, the first preset platform set described later) to crawl the barrage of the video (that is, the above-mentioned target video) in the corresponding segment interval. If the statistical number still does not exceed the threshold, then start the barrage of all content on the entire network (that is, the third barrage set described later).
[0109] Then, after the user clicks the text box, the page will show recommended bullet comments, which may include the recommended bullet comments for the current interval (e.g., [20, 40) seconds) and the next interval (e.g., [40, 60) seconds). For example, up to 10 bullet comments may be displayed.
[0110] Finally, a matching barrage shape (that is, the above-mentioned target display method) can be automatically generated based on the contents of the top 5 barrage texts (that is, the above-mentioned barrage set).
[0111] The user can choose the form in which the top 5 recommended bullet comments are presented. For example, if the top 5 comments are "praise", the user can choose to display the recommended bullet comment "praise" in the form of a word cloud of praise and accompanied by micro-animation (such as Figure 1B As shown in the figure), a single person can simulate the effect of multiple people posting bullet comments, and express emotions with more vivid images, which has a better interactive effect. Here, the preset word cloud shape is also dynamically generated based on the recommended top 5 bullet comment texts. For example, the model can be trained by the background server AI (Artificial Intelligence). Among them, the above model can correspond to many shapes, such as love, heart, like, cheer, speechless, etc.
[0112] Therefore, through the method described in the above example, the cost of manually editing barrage can be further reduced, and a single person can create the effect of a multi-person barrage wall, and can choose which word cloud to display, enriching the way of generating and displaying barrage.
[0113] The bullet screen display method provided in the embodiment of the present application can determine the bullet screen display interval of the target video, wherein the bullet screen display interval represents a video segment for displaying the bullet screen to be generated, and then obtain a bullet screen set corresponding to the video segment, wherein the bullet screen in the bullet screen set is a generated bullet screen, and then, based on the bullet screen set, generate a target bullet screen for display in the bullet screen display interval, and finally, display the target bullet screen in the bullet screen display interval. Thus, the target bullet screen can be automatically generated and displayed based on the bullet screen set corresponding to the video segment represented by the bullet screen display interval of the target video, thereby improving the efficiency of bullet screen generation and display.
[0114] Figure 2 A flowchart of another bullet screen display method provided in an embodiment of the present application. Figure 2 As shown, the method specifically includes:
[0115] Step 201, determining a bullet screen display interval of a target video, wherein the bullet screen display interval represents a video segment for displaying the bullet screen to be generated.
[0116] In this embodiment, step 201 and Figure 1A Step 101 in the corresponding embodiment is basically the same and will not be described again here.
[0117] Step 202, obtaining a barrage set corresponding to the video clip, wherein the barrage in the barrage set is a generated barrage.
[0118] In this embodiment, step 202 and Figure 1A Step 102 in the corresponding embodiment is basically the same and will not be described again here.
[0119] Step 203, determining the number of barrage operations of each barrage in the barrage set.
[0120] In this embodiment, the number of barrage operation times may include but is not limited to at least one of the following: the number of times the barrage is sent, the number of times a seconding is made (for example, each time a seconding is made, the number of barrage operation times may be considered to be accumulated once).
[0121] Step 204: determine a bullet screen subset from the bullet screen set based on the determined number of bullet screen operations.
[0122] In this embodiment, the barrage subset may include one or more barrages in the barrage set.
[0123] In some optional implementations of this embodiment, any of the following methods (method 1 or method 2) may be used to perform the above step 204, so as to determine a bullet screen subset from the bullet screen set based on the determined number of bullet screen operations:
[0124] Method 1: From the barrage set, determine the barrages whose barrage operation times are greater than or equal to the first threshold, and obtain a barrage subset.
[0125] Method 2: Select a preset number (eg, 3 or 5) of barrages from the barrage set in descending order of the number of barrage operations to obtain a barrage subset.
[0126] It can be understood that in the above optional implementation, the barrage in the determined barrage subset is more likely to be the barrage that the current user wants to send, and therefore, a target barrage that better meets the user's expectations can be generated through subsequent steps.
[0127] Step 205: Based on the bullet screen subset, generate a target bullet screen for display in the bullet screen display interval.
[0128] In this embodiment, each bullet screen in the bullet screen subset may be used to form a target bullet screen. Alternatively, at least two bullet screens whose similarity is less than or equal to a preset threshold are determined from the bullet screen subset, and the at least two bullet screens are determined as target bullet screens.
[0129] Step 206: Display the target bullet message in the bullet message display interval.
[0130] In this embodiment, step 206 and Figure 1A Step 104 in the corresponding embodiment is basically the same and will not be described again here.
[0131] It should be noted that, in addition to the above contents, this embodiment may also include Figure 1A The corresponding technical features described in the corresponding embodiments are realized Figure 1AFor details, please refer to the technical effect of the barrage display method shown in Figure 1A For the sake of brevity, the relevant description is not repeated here.
[0132] The barrage display method provided in the embodiment of the present application determines the target barrage based on a barrage subset determined by the number of barrage operations, and can generate a target barrage that better meets the user's expectations.
[0133] Figure 3 A flow chart of another bullet screen display method provided for an embodiment of the present application. This method can be applied to one or more electronic devices such as smart phones, laptops, desktop computers, portable computers, servers, etc. In addition, the execution subject of this method can be hardware or software. When the above-mentioned execution subject is hardware, the execution subject can be one or more of the above-mentioned electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the above-mentioned execution subject is software, this method can be implemented as multiple software or software modules, or as a single software or software module. It is not specifically limited here.
[0134] Specifically, if Figure 3 As shown, the method specifically includes:
[0135] Step 301, determining a bullet screen display interval of a target video, wherein the bullet screen display interval represents a video segment for displaying the bullet screen to be generated.
[0136] In this embodiment, step 301 and Figure 1A Step 101 in the corresponding embodiment is basically the same and will not be described again here.
[0137] Step 302, obtaining a first bullet comment set of the video clip sent via a target platform.
[0138] In this embodiment, the first barrage set may be a set of barrages of the video clip sent via the target platform.
[0139] The target platform may be a platform for publishing the target video, for example, a video playback website, an application, etc.
[0140] Step 303: determine the first number of barrages included in the first barrage set.
[0141] In this embodiment, the first number may be the number of barrages included in the first barrage set.
[0142] Step 304: determine whether the first number is greater than or equal to a second threshold.
[0143] In this embodiment, the second threshold value may be a predetermined value, for example, the second threshold value may be 2, 3, etc. The second threshold value may be equal to or different from the first threshold value.
[0144] Step 305: When the first number is greater than or equal to the second threshold, the first barrage set is determined as the barrage set corresponding to the video clip, wherein the barrages in the barrage set are generated barrages.
[0145] Step 306: Based on the barrage set, generate a target barrage for display in the barrage display interval.
[0146] In this embodiment, step 306 and Figure 1A Step 103 in the corresponding embodiment is basically the same and will not be described again here.
[0147] Step 307: display the target bullet message in the bullet message display interval.
[0148] In this embodiment, step 307 and Figure 1A Step 104 in the corresponding embodiment is basically the same and will not be described again here.
[0149] In some optional implementations of this embodiment, after executing the above step 304, the following steps may also be executed:
[0150] Step one: when the first number is less than the second threshold, obtain a second bullet comment set of the video clip sent through each platform in a first preset platform set, wherein the first preset platform set includes the target platform.
[0151] The first preset platform set may include multiple platforms. The multiple platforms may independently publish videos (including target videos). For example, the first preset platform set may include video playback website 1, video playback software 1, video playback website 2, etc. In some cases, the first preset platform set may be a full network platform with a video publishing function in a certain region.
[0152] Step 2: determine the second number of barrages included in the second barrage set.
[0153] Among them, the above-mentioned second number can be the number of barrages included in the second barrage set.
[0154] Step three: determine whether the second number is greater than or equal to the second threshold.
[0155] Step 4: When the second number is greater than or equal to the second threshold, determine the second barrage set as the barrage set corresponding to the video clip.
[0156] It can be understood that in the above-mentioned optional implementation method, when the number of barrages included in the first barrage set is relatively small, and when the number of barrages of the video clip sent through each platform in the first preset platform set is relatively large, the second barrage set can be determined as the barrage set corresponding to the video clip to ensure that the target barrage generated subsequently is more in line with the user's expectations.
[0157] In some application scenarios of the above optional implementation, after executing the above step 3, the following steps may also be executed:
[0158] First, when the second number is less than the second threshold, a third barrage set sent by each platform in a second preset platform set is obtained, wherein the second preset platform set includes the target platform.
[0159] The second preset platform set may include multiple platforms. The multiple platforms may independently publish videos (including the target video). For example, the second preset platform set may include video playback website 1, video playback software 1, video playback software 2, etc. In some cases, the second preset platform set may be a network-wide platform in a certain region that has a video publishing function.
[0160] The third barrage set may be a set of barrages sent by each platform in the second preset platform set.
[0161] Afterwards, the third barrage set is determined as the barrage set corresponding to the video clip.
[0162] It can be understood that in the above application scenario, when the number of barrages included in the first barrage set is small, and the number of barrages of the video clip sent through each platform in the first preset platform set is small, and the number of barrages sent by each platform in the second preset platform set is large, the third barrage set can be determined as the barrage set corresponding to the video clip to ensure that the target barrage generated subsequently is more in line with user expectations.
[0163] It should be noted that, in addition to the contents recorded above, this embodiment may also include the technical features described in the above embodiments, so as to achieve the technical effects of the barrage display method shown above. Please refer to the above description for details. For the sake of brevity, it will not be repeated here.
[0164] The barrage display method provided in the embodiment of the present application can determine the first barrage set as the barrage set corresponding to the video clip when the number of barrages included in the first barrage set is large, so as to ensure that the target barrage generated subsequently is more in line with the user's expectations.
[0165] Figure 4A structural diagram of a bullet screen display device provided in an embodiment of the present application. Specifically comprising:
[0166] A determination unit 401 is used to determine a bullet screen display interval of a target video, wherein the bullet screen display interval represents a video segment for displaying the bullet screen to be generated;
[0167] An acquisition unit 402 is used to acquire a bullet comment set corresponding to the video clip, wherein the bullet comments in the bullet comment set are generated bullet comments;
[0168] A generating unit 403, configured to generate a target bullet screen for display in the bullet screen display interval based on the bullet screen set;
[0169] The display unit 404 is used to display the target bullet screen in the bullet screen display interval.
[0170] In a possible implementation, generating a target bullet screen for display in the bullet screen display interval based on the bullet screen set includes:
[0171] Determine the number of barrage operations for each barrage in the barrage set;
[0172] Based on the determined number of barrage operations, determining a barrage subset from the barrage set;
[0173] Based on the bullet screen subset, a target bullet screen is generated for display in the bullet screen display interval.
[0174] In a possible implementation, determining a bullet screen subset from the bullet screen set based on the determined number of bullet screen operations includes:
[0175] From the barrage set, determine the barrages whose barrage operation times are greater than or equal to a first threshold, and obtain a barrage subset; or
[0176] A preset number of barrages are selected from the barrage set in descending order of the number of barrage operations to obtain a barrage subset.
[0177] In a possible implementation, obtaining a bullet comment set corresponding to the video clip includes:
[0178] Obtaining a first bullet comment set of the video clip sent via a target platform;
[0179] Determine a first number of barrages included in the first barrage set;
[0180] determining whether the first number is greater than or equal to a second threshold;
[0181] When the first number is greater than or equal to the second threshold, the first barrage set is determined as the barrage set corresponding to the video clip.
[0182] In a possible implementation, obtaining the bullet comment set corresponding to the video clip further includes:
[0183] When the first number is less than the second threshold, obtaining a second bullet comment set of the video clip sent through each platform in a first preset platform set, wherein the first preset platform set includes the target platform;
[0184] Determining a second number of barrages included in the second barrage set;
[0185] determining whether the second number is greater than or equal to the second threshold;
[0186] When the second number is greater than or equal to the second threshold, the second barrage set is determined as the barrage set corresponding to the video clip.
[0187] In a possible implementation, obtaining the bullet comment set corresponding to the video clip further includes:
[0188] When the second number is less than the second threshold, obtaining a third barrage set sent by each platform in a second preset platform set, wherein the second preset platform set includes the target platform;
[0189] The third barrage set is determined as the barrage set corresponding to the video clip.
[0190] In a possible implementation, displaying the target bullet screen in the bullet screen display interval includes:
[0191] Determine a target display mode that matches the barrage set;
[0192] In the barrage display interval, the target barrage is displayed according to the target display mode.
[0193] The bullet screen display device provided in this embodiment can be as follows Figure 4 The barrage display device shown in can execute all the steps of the barrage display methods described above, thereby achieving the technical effects of the barrage display methods described above. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0194] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 5The electronic device 500 shown includes: at least one processor 501, a memory 502, at least one network interface 504 and other user interfaces 503. The various components in the electronic device 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 505 is not shown in FIG. Figure 5 Various buses are labeled as bus system 505 .
[0195] The user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0196] It can be understood that the memory 502 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0197] In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and an application program 5022 .
[0198] Among them, the operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present application can be included in the application 5022.
[0199] In this embodiment, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application 5022, the processor 501 is used to execute the method steps provided by each method embodiment, for example, including:
[0200] Determine a bullet screen display interval of a target video, wherein the bullet screen display interval represents a video segment for displaying the bullet screen to be generated;
[0201] Obtaining a barrage set corresponding to the video clip, wherein the barrages in the barrage set are generated barrages;
[0202] Based on the barrage set, generating a target barrage for display in the barrage display interval;
[0203] The target bullet screen is displayed in the bullet screen display interval.
[0204] The method disclosed in the above embodiment of the present application can be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 501. The above processor 501 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.
[0205] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the above functions of the present application, or a combination thereof.
[0206] For software implementation, the technology described above in this article can be implemented by a unit that performs the functions described above in this article. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0207] The electronic device provided in this embodiment may be Figure 5 The electronic device shown in can execute all the steps of the above-mentioned bullet screen display methods, thereby achieving the technical effects of the above-mentioned bullet screen display methods. Please refer to the above related description for details. For the sake of concise description, it will not be repeated here.
[0208] The embodiment of the present application also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0209] When one or more programs in the storage medium can be executed by one or more processors, the bullet screen display method executed on the electronic device side can be implemented.
[0210] The processor is used to execute the bullet screen display program stored in the memory to implement the following steps of the bullet screen display method executed on the electronic device side:
[0211] Determine a bullet screen display interval of a target video, wherein the bullet screen display interval represents a video segment for displaying the bullet screen to be generated;
[0212] Obtaining a barrage set corresponding to the video clip, wherein the barrages in the barrage set are generated barrages;
[0213] Based on the barrage set, generating a target barrage for display in the barrage display interval;
[0214] The target bullet screen is displayed in the bullet screen display interval.
[0215] The professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0216] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0217] The specific implementation methods described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation method of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. In addition, for the aforementioned embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present invention.
Claims
1. A bullet screen display method, characterized in that: The method comprises: Determine a bullet screen display interval of a target video, wherein the bullet screen display interval represents a video segment for displaying the bullet screen to be generated, and the video segment is a segment obtained by pre-dividing the target video; Obtaining a barrage set corresponding to the video clip, wherein the barrages in the barrage set are generated barrages; Based on the barrage set, generating a target barrage for display in the barrage display interval; Displaying the target bullet screen in the bullet screen display interval; Determining the bullet screen display interval of the target video includes: The time when the user sends the barrage is obtained, and the barrage display interval is determined according to the time.
2. The method according to claim 1, characterized in that The generating, based on the bullet screen set, a target bullet screen for displaying in the bullet screen display interval includes: Determine the number of barrage operations for each barrage in the barrage set; Based on the determined number of barrage operations, determining a barrage subset from the barrage set; Based on the bullet screen subset, a target bullet screen is generated for display in the bullet screen display interval.
3. The method according to claim 2, characterized in that The determining a bullet screen subset from the bullet screen set based on the determined number of bullet screen operations includes: From the barrage set, determine the barrages whose barrage operation times are greater than or equal to a first threshold, and obtain a barrage subset; or A preset number of barrages are selected from the barrage set in descending order of the number of barrage operations to obtain a barrage subset.
4. The method according to claim 1, characterized in that The obtaining of a bullet comment set corresponding to the video clip includes: Obtaining a first bullet comment set of the video clip sent via a target platform; Determine a first number of barrages included in the first barrage set; determining whether the first number is greater than or equal to a second threshold; When the first number is greater than or equal to the second threshold, the first barrage set is determined as the barrage set corresponding to the video clip.
5. The method according to claim 4, characterized in that The obtaining of the bullet comment set corresponding to the video clip further includes: When the first number is less than the second threshold, obtaining a second bullet comment set of the video clip sent through each platform in a first preset platform set, wherein the first preset platform set includes the target platform; Determining a second number of barrages included in the second barrage set; determining whether the second number is greater than or equal to the second threshold; When the second number is greater than or equal to the second threshold, the second barrage set is determined as the barrage set corresponding to the video clip.
6. The method according to claim 5, characterized in that The obtaining of the bullet comment set corresponding to the video clip further includes: When the second number is less than the second threshold, obtaining a third barrage set sent by each platform in a second preset platform set, wherein the second preset platform set includes the target platform; The third barrage set is determined as the barrage set corresponding to the video clip.
7. The method according to any one of claims 1 to 6, characterized in that: Displaying the target bullet screen in the bullet screen display interval includes: Determine a target display mode that matches the barrage set; In the barrage display interval, the target barrage is displayed according to the target display mode.
8. A bullet screen display device, characterized in that: The device comprises: A determination unit, configured to determine a bullet screen display interval of a target video, wherein the bullet screen display interval represents a video segment for displaying the bullet screen to be generated, and the video segment is a segment obtained by pre-dividing the target video; An acquisition unit, configured to acquire a barrage set corresponding to the video clip, wherein the barrages in the barrage set are generated barrages; A generating unit, configured to generate a target bullet screen for display in the bullet screen display interval based on the bullet screen set; A display unit, configured to display the target bullet screen in the bullet screen display interval; Determining the bullet screen display interval of the target video includes: The time when the user sends the barrage is obtained, and the barrage display interval is determined according to the time.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Barrage message display method, barrage message providing method and equipment
CN107690078A
Bullet screen generation method, system and device based on online education and storage medium
CN111614986A
Bullet screen processing method, device and system
CN113316015A
Bullet screen rendering method and device, storage medium and electronic equipment
CN114173198A
Bullet screen display method and device and computer readable storage medium
CN114915832A