Bullet screen playback method and device

By obtaining the target code number of the video clip to be played in the edited video and selecting the corresponding target barrage text, the problem of the mismatch between the barrage and the video after editing is solved, and the matching and consistency between the video content and the barrage text is achieved.

CN115529497BActive Publication Date: 2025-06-06TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110709139.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-25
Publication Date
2025-06-06
Estimated Expiration
2041-06-25

AI Technical Summary

Technical Problem

In the prior art, after video editing, the barrage text does not match the video content, resulting in inconsistency during playback.

Method used

By obtaining the target code number of the video clip to be played in the clip, and selecting the target barrage text associated with the code number, ensure that the matching barrage text is played when the video clip to be played.

Benefits of technology

After the video is edited, the barrage text matches the video content to ensure the consistency of the content during playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115529497B_ABST
    Figure CN115529497B_ABST
Patent Text Reader

Abstract

The present application relates to a method and device for playing barrages. The method comprises: in the process of playing a clipped video obtained based on a clipped target video, obtaining the target code number of the video segment to be played in the clipped video; the target code number is the number obtained by logically encoding the video segment in the target video that matches the video segment to be played; selecting the target barrage text associated with the target code number; the target barrage text is the barrage text of the target video and is issued at the video time corresponding to the matching video segment; when the video segment to be played is played, the target barrage text is played as the barrage text of the video segment to be played. This method can ensure that after the video is clipped, the video segment in the clipped video played and the barrage text are still matched.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video playback technology, and in particular to a bullet screen playback method and device. Background Art

[0002] With the continuous development of Internet technology and video technology, more and more users choose to watch videos on browsers or video clients. When watching videos, users can send their associations and feelings about the video content in the form of barrage.

[0003] The current barrage playback method is to obtain and save the barrage text edited by the user and the video time of the video playback when the barrage sending operation is triggered, and save the video time and the barrage text in correspondence, so that when other users watch the video to the video time, the barrage text corresponding to the physical time will be played.

[0004] However, if the video is edited by adding clips or deleting clips, when other users watch the edited video to the time of the video, the barrage text corresponding to the time of the video will also be played, resulting in a mismatch between the played video content and the barrage text. Summary of the invention

[0005] Based on this, it is necessary to provide a barrage playback method and device that can ensure that the barrage text and video content match the above technical problems.

[0006] A bullet screen playback method, characterized in that the method comprises:

[0007] In the process of playing the clipped video obtained based on the clipped target video, obtaining the target coding number of the video segment to be played in the clipped video; the target coding number is the number obtained by logically coding the video segment in the target video that matches the video segment to be played;

[0008] Selecting a target bullet text associated with the target code number; the target bullet text is the bullet text of the target video and is sent at the video time corresponding to the matched video segment;

[0009] When the video segment to be played is played, the target bullet screen text is played as the bullet screen text of the video segment to be played.

[0010] A bullet screen playback device, the device comprising:

[0011] A coding number acquisition module is used to acquire a target coding number of a video segment to be played in the clipped video during the process of playing the clipped video obtained based on the clipped target video; the target coding number is a number obtained by logically encoding a video segment in the target video that matches the video segment to be played;

[0012] A barrage text acquisition module, used to select a target barrage text associated with the target code number; the target barrage text is the barrage text of the target video and is sent at the video time corresponding to the matched video segment;

[0013] The playing module is used to play the target bullet screen text as the bullet screen text of the video segment to be played when the video segment to be played is played.

[0014] In one embodiment, the coding number acquisition module is further used to:

[0015] Obtaining the video time corresponding to the video segment to be played in the clipped video;

[0016] Determine the target code number of the to-be-played segment based on the mapping relationship between the video time corresponding to the to-be-played video segment and the first time number;

[0017] The first time number mapping relationship is used to represent the mapping relationship between the video time corresponding to each video segment in the edited video and the coding number of each video segment in the edited video.

[0018] In a very smooth process, the bullet text acquisition module is also used to:

[0019] Obtaining a first numbered bullet screen mapping relationship corresponding to the edited video; the first numbered bullet screen mapping relationship is used to represent a mapping relationship between a coding number of each video segment in the edited video and a bullet screen text of the target video;

[0020] Based on the first numbered bullet screen mapping relationship, a target bullet screen text associated with the target code number is selected.

[0021] In one embodiment, the bullet text acquisition module is further used to:

[0022] Obtaining a video identifier of the target video;

[0023] Searching for a bullet text set corresponding to the target video according to the video identifier;

[0024] Based on the first numbered bullet screen mapping relationship, a target bullet screen text associated with the target code number is selected from the bullet screen text set.

[0025] In one embodiment, the apparatus further comprises a segment recommendation module, configured to:

[0026] In each video segment in the target video that matches the clipped video, determine the number of bullet screen interaction operations corresponding to each of the matching video segments;

[0027] Determining a recommended video segment from the matched video segments according to the number of barrage interaction operations;

[0028] During the process of playing the edited video, the recommended video clip is recommended.

[0029] In one embodiment, the device further includes a mapping relationship generating module, which is used to:

[0030] Obtaining a second numbered bullet screen mapping relationship corresponding to the target video; the second numbered bullet screen mapping relationship is used to represent a mapping relationship between a coding number of each video segment in the target video and a bullet screen text of the target video;

[0031] After clipping the target video to obtain the clipped video, determining segment difference information between the clipped video and the target video;

[0032] The second-numbered barrage mapping relationship is updated based on the segment difference information to obtain the first-numbered barrage mapping relationship.

[0033] In one embodiment, the mapping relationship generating module is further used to:

[0034] Obtaining a time barrage mapping relationship corresponding to the target video; the time barrage mapping relationship is used to represent a mapping relationship between the video time corresponding to each video clip in the target video and the barrage text of the target video;

[0035] The second numbered barrage mapping relationship is established based on the time barrage mapping relationship, the video time of each video clip in the target video and the corresponding coding number.

[0036] In one embodiment, the mapping relationship generating module is further used to:

[0037] Obtaining a second time number mapping relationship corresponding to the target video; the second time number mapping relationship is used to represent a mapping relationship between a video time corresponding to each video segment in the target video and a coding number of each video segment in the target video;

[0038] The second time number mapping relationship is updated based on the segment difference information to obtain a first time number mapping relationship corresponding to the edited video; the first time number mapping relationship is used to represent a mapping relationship between a video time corresponding to each video segment in the edited video and a coding number of each video segment in the edited video;

[0039] The second-numbered barrage mapping relationship is updated based on the first time-numbered mapping relationship to obtain the first-numbered barrage mapping relationship.

[0040] In one embodiment, the mapping relationship generating module is further used to:

[0041] Dividing the target video into segments to obtain video segments;

[0042] Performing logical coding on each video segment in the target video to obtain a coding number of each video segment in the target video;

[0043] A mapping relationship is established between the obtained code number and the video time corresponding to each video clip in the target video to obtain the second time number mapping relationship.

[0044] In one embodiment, the edited video includes: a video obtained by deleting some video clips in the target video, or a video obtained by adding some video clips to the target video, or a video obtained by deleting some video clips in the target video and adding other some video clips to the target video, or a video obtained by editing some or all of the video clips in the target video.

[0045] In one embodiment, the information implantation module is used to:

[0046] Determining the number of bullet comments in the bullet comment text of each video segment in the target video;

[0047] When the number of barrages corresponding to the matched video clip is greater than the number of barrages corresponding to other video clips in the target video, the information to be embedded is obtained;

[0048] When the video segment to be played is played, the information to be embedded is inserted into the video segment to be played.

[0049] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0050] In the process of playing the clipped video obtained based on the clipped target video, obtaining the target coding number of the video segment to be played in the clipped video; the target coding number is the number obtained by logically coding the video segment in the target video that matches the video segment to be played;

[0051] Selecting a target bullet text associated with the target code number; the target bullet text is the bullet text of the target video and is sent at the video time corresponding to the matched video segment;

[0052] When the video segment to be played is played, the target bullet screen text is played as the bullet screen text of the video segment to be played.

[0053] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0054] In the process of playing the clipped video obtained based on the clipped target video, obtaining the target coding number of the video segment to be played in the clipped video; the target coding number is the number obtained by logically coding the video segment in the target video that matches the video segment to be played;

[0055] Selecting a target bullet text associated with the target code number; the target bullet text is the bullet text of the target video and is sent at the video time corresponding to the matched video segment;

[0056] When the video segment to be played is played, the target bullet screen text is played as the bullet screen text of the video segment to be played.

[0057] A computer program, the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium, the processor of a computer device reading the computer instructions from the computer-readable storage medium, the processor executing the computer instructions, causing the computer device to perform the following steps:

[0058] In the process of playing the clipped video obtained based on the clipped target video, obtaining the target coding number of the video segment to be played in the clipped video; the target coding number is the number obtained by logically coding the video segment in the target video that matches the video segment to be played;

[0059] Selecting a target bullet text associated with the target code number; the target bullet text is the bullet text of the target video and is sent at the video time corresponding to the matched video segment;

[0060] When the video segment to be played is played, the target bullet screen text is played as the bullet screen text of the video segment to be played.

[0061] The above-mentioned barrage playback method and device, in the process of playing a clipped video obtained based on editing the target video, obtains the target coding number of the video segment to be played in the clipped video, wherein the target coding number is the number obtained by logically encoding the video segment in the target video that matches the video segment to be played, and selects the target barrage text associated with the target coding number, wherein the target barrage text is the barrage text of the target video and is issued at the video time corresponding to the matching video segment, so that when the video segment to be played is played, the target barrage text is played as the barrage text of the video segment to be played, ensuring that after the video is edited, the video segment in the played clipped video and the barrage text are still matched.

[0062] A bullet screen playback method, the method comprising:

[0063] Playing a clipped video obtained by clipping a target video; the clipped video includes a video clip obtained by clipping the target video;

[0064] During the process of playing the edited video, when the video segment to be played in the video segments is played, the target barrage text corresponding to the video segment to be played is played; the target barrage text is the barrage text of the target video and is issued at the video time corresponding to the video segment matching the video segment to be played.

[0065] A bullet screen playback device, the device comprising:

[0066] A video playing module, used for playing a clipped video obtained by clipping a target video; the clipped video includes a video clip obtained by clipping the target video;

[0067] A barrage playback module is used to play the target barrage text corresponding to the video segment to be played when the video segment to be played in the video segment is played during the playing of the edited video; the target barrage text is the barrage text of the target video and is issued at the video time corresponding to the video segment matching the video segment to be played.

[0068] In one embodiment, the video clip has a corresponding coding number; the coding number is a number obtained by logically coding the video clip in the target video; the bullet screen playback module is further used to:

[0069] When a to-be-played video segment in the video segments is played, an associated target bullet text is obtained based on a target code number of a video segment matching the to-be-played video segment; the target code number belongs to the code number;

[0070] The target bullet screen text is played as the bullet screen text of the video segment to be played.

[0071] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0072] Playing a clipped video obtained by clipping a target video; the clipped video includes a video clip obtained by clipping the target video;

[0073] During the process of playing the edited video, when the video segment to be played in the video segments is played, the target barrage text corresponding to the video segment to be played is played; the target barrage text is the barrage text of the target video and is issued at the video time corresponding to the video segment matching the video segment to be played.

[0074] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0075] Playing a clipped video obtained by clipping a target video; the clipped video includes a video clip obtained by clipping the target video;

[0076] During the process of playing the edited video, when the video segment to be played in the video segments is played, the target barrage text corresponding to the video segment to be played is played; the target barrage text is the barrage text of the target video and is issued at the video time corresponding to the video segment matching the video segment to be played.

[0077] A computer program, the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium, the processor of a computer device reading the computer instructions from the computer-readable storage medium, the processor executing the computer instructions, causing the computer device to perform the following steps:

[0078] Playing a clipped video obtained by clipping a target video; the clipped video includes a video clip obtained by clipping the target video;

[0079] During the process of playing the edited video, when the video segment to be played in the video segments is played, the target barrage text corresponding to the video segment to be played is played; the target barrage text is the barrage text of the target video and is issued at the video time corresponding to the video segment matching the video segment to be played.

[0080] The above-mentioned barrage playback method and device play a clipped video based on the target video, the clipped video includes a video segment obtained by clipping the target video, and in the process of playing the clipped video, when the segment to be played in the video segment is played, the target barrage text corresponding to the segment to be played is played, wherein the target barrage text is the barrage text of the target video and is issued at the video time corresponding to the video segment matching the video segment to be played, thereby ensuring that after the video is clipped, the video segment in the clipped video played and the barrage text are still matched. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] Figure 1 A diagram showing an application environment of a bullet screen playback method in an embodiment;

[0082] Figure 2 A schematic diagram of a process of a bullet screen playback method in one embodiment;

[0083] Figure 3A This is a schematic diagram of a first time number mapping relationship in an embodiment;

[0084] Figure 3B A schematic diagram of a first time number mapping relationship in another embodiment;

[0085] Figure 3C A schematic diagram of a first time number mapping relationship in another embodiment;

[0086] Figure 4 A schematic diagram of a second time number mapping relationship in an embodiment;

[0087] Figure 5 A schematic diagram of a process of generating a second time number mapping relationship of a target video in one embodiment;

[0088] Figure 6 This is a schematic diagram of the mapping relationship of the first numbered bullet comments in an embodiment;

[0089] Figure 7 A schematic diagram of a playback screen of a clipped video in one embodiment;

[0090] Figure 8 A schematic diagram of a playback screen in another embodiment;

[0091] Fig. 9 This is a schematic diagram of the mapping relationship of the second numbered bullet comments in an embodiment;

[0092] Fig.10 A schematic diagram of time bullet screen mapping relationship in an embodiment;

[0093] Fig.11 A schematic diagram of a flow chart of a bullet screen playback method in another embodiment;

[0094] Fig.12 A schematic diagram of a flow chart of a bullet screen playback method in another embodiment;

[0095] Fig.13 A schematic diagram of logical encoding of a target video in one embodiment;

[0096] Fig.14 A schematic diagram of logic coding for video editing in one embodiment;

[0097] Fig.15 A schematic diagram of logic coding for video editing in another embodiment;

[0098] Fig.16 A schematic diagram of a playback screen in another embodiment;

[0099] Fig.17 A schematic diagram of a bullet screen coding mapping relationship in an embodiment;

[0100] Fig.18 A schematic diagram of a video logic timeline component in one embodiment;

[0101] Fig.19 A schematic diagram of a bullet screen playback system in an embodiment;

[0102] Fig. 20 It is a structural block diagram of a bullet screen playback device in one embodiment;

[0103] Fig.21 It is a structural block diagram of a bullet screen playback device in another embodiment;

[0104] Fig. 22 It is a structural block diagram of a bullet screen playback device in another embodiment;

[0105] Fig.23 is an internal structure diagram of a computer device in one embodiment;

[0106] Fig.24 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0107] In order to make the purpose, technical solution 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 used to limit the present application.

[0108] Cloud storage is a new concept that extends and develops from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to bring together a large number of different types of storage devices (storage devices are also called storage nodes) in the network through application software or application interfaces to work together and provide external data storage and business access functions.

[0109] At present, the storage method of the storage system is: create a logical volume, and when creating a logical volume, allocate physical storage space for each logical volume. The physical storage space may be composed of disks of a storage device or several storage devices. The client stores data on a logical volume, that is, stores the data on the file system. The file system divides the data into many parts, each of which is an object. The object contains not only data but also additional information such as data identification (ID, ID entity). The file system writes each object into the physical storage space of the logical volume, and the file system records the storage location information of each object, so that when the client requests to access the data, the file system can allow the client to access the data according to the storage location information of each object.

[0110] The process of the storage system allocating physical storage space to a logical volume is as follows: based on the estimated capacity of the objects stored in the logical volume (this estimate often has a large margin relative to the actual capacity of the objects to be stored) and the grouping of independent redundant disk arrays (RAID, Redundant Array of Independent Disks), the physical storage space is pre-divided into stripes. A logical volume can be understood as a stripe, thereby allocating physical storage space to the logical volume.

[0111] The bullet screen playback method provided in this application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 and the terminal 106 communicate with the server 104 through the network respectively. Both the terminal 102 and the terminal 106 can obtain video resources from the server 104 through the network for playback. Specifically, the terminal 102 can obtain the target video from the server 104 and play the target video. The terminal 106 can obtain the edited video obtained by editing the target video from the server 104 and play the edited video. In the process of playing the edited video obtained based on the edited target video, the terminal 106 obtains the target coding number of the video segment to be played in the edited video; the target coding number is the number obtained by logically encoding the video segment in the target video that matches the video segment to be played; the terminal 106 can select the target barrage text associated with the target coding number from the server 106; the target barrage text is the barrage text of the target video and is issued at the video time corresponding to the matching video segment; when the terminal 106 plays the video segment to be played, the target barrage text is played as the barrage text of the video segment to be played. Among them, Figure 1 The video play page 110 is the play screen of the target video played by the terminal 102, and the video play page 120 is the play screen of the clip video played by the terminal 106. According to the video play page 110 and the video play page 1120, it can be seen that at the 3rd minute and 32nd second of the same video time, the play screen of the target video is different from the play screen of the clip video, and the barrage text played by the target video at the 3rd minute and 32nd second is also different from the barrage text played by the clip video at the 3rd minute and 32nd second. The barrage text played by the target video at the 3rd minute and 32nd second matches the play screen of the target video played at the 3rd minute and 32nd second, and the barrage text played by the clip video at the 3rd minute and 32nd second matches the play screen of the clip video played at the 3rd minute and 32nd second. In addition, the terminal 102 can also obtain the clip video of the clipped target video from the server 104 and play the clip video, and the terminal 106 can also obtain the target video from the server 104 and play the target video.

[0112] Figure 1In the application environment shown, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services, or a service node in a blockchain system, where each service node in the blockchain system forms a peer-to-peer (P2P, Peer ToPeer) network, and P2P is an application layer protocol running on the Transmission Control Protocol (TCP, Transmission Control Protocol) protocol. The terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a car terminal, a smart TV, etc., but is not limited to this. A client is installed on the terminal, and the client is used to play the video. The terminal and the server can be directly or indirectly connected by wired or wireless communication, and this application is not limited here.

[0113] In one embodiment, Figure 2 As shown, a bullet screen playback method is provided, which is applied to Figure 1 The computer device (which may be a terminal or a server) in the embodiment is used as an example to illustrate, and the following steps are included:

[0114] S202, in the process of playing the edited video obtained based on the edited target video, obtaining the target code number of the video segment to be played in the edited video.

[0115] The target video can also be referred to as the original video of the clipped video being played. Clipping the target video refers to clipping the target video. The clipping process can specifically be deleting, adding or editing the target video. Deleting refers to deleting some video clips in the target video, adding refers to adding some video clips to the target video, and editing refers to editing some or all video clips in the target video. The clipped video includes a video obtained by deleting some video clips in the target video, or a video obtained by adding some video clips to the target video, or a video obtained by deleting some video clips in the target video and adding other video clips to the target video, or a video obtained by editing some or all video clips in the target video.

[0116] Editing part or all of the video clips may be to adjust the frame rate of part or all of the video clips. Adjusting the frame rate means adjusting the playback rate of each video frame in the video clip, which may be to increase or decrease the frame rate. For example, the original video clip contains 20 video frames, the frame rate is 2 frames / second, and the duration required to play the video clip is 10 seconds. The frame rate of the original video clip is adjusted to 4 frames / second to obtain the adjusted video clip, and the duration required to play the adjusted video clip is 5 seconds. The duration required to play the video clip is the duration of the video clip.

[0117] The target coding number is the number obtained by logically coding the video segment in the target video that matches the video segment to be played. The video segment in the target video that matches the video segment to be played can specifically be the same video segment in the target video as the video segment to be played in the edited video. Logical coding refers to coding each video segment according to certain coding rules.

[0118] For example, the target video has a total length of 5 video clips, including video clip A, video clip B, video clip C, video clip D and video clip E. The video clips in the target video are logically encoded, and the encoding number corresponding to each video clip is obtained. The encoding number of video clip A is 1001, the encoding number of video clip B is 2002, the encoding number of video clip C is 3003, the encoding number of video clip D is 4004, and the encoding number of video clip E is 5005; the clipped video is the video obtained by deleting video clips A and D in the target video, that is, the clipped video The video includes video segment B, video segment C and video segment E. Then, during the process of playing the edited video, if the video segment to be played is video segment B, the coding number 2002 corresponding to video segment B is obtained, and the coding number 2002 is determined as the target coding number. If the video segment to be played is video segment C, the coding number 3003 corresponding to video segment C is obtained, and the coding number 3003 is determined as the target coding number. If the video segment to be played is video segment E, the coding number 5005 corresponding to video segment E is obtained, and the coding number 5005 is determined as the target coding number.

[0119] In one embodiment, the terminal can play the clipped video in an online manner. During the process of playing the clipped video in an online manner, the terminal determines the playback progress of the clipped video in real time and reports the determined playback progress of the clipped video to the server, so that the server obtains the target coding number of the to-be-played segment of the clipped video based on the playback progress of the clipped video.

[0120] In one embodiment, the terminal can also play the clipped video in an offline manner. During the process of playing the clipped video in an offline manner, the terminal determines the playback progress of the clipped video in real time, and obtains the target encoding number of the to-be-played segment of the clipped video based on the determined playback progress.

[0121] In one embodiment, S202 specifically includes the following steps: obtaining the video time corresponding to the video segment to be played in the edited video; and determining the target coding number of the segment to be played based on the mapping relationship between the video time corresponding to the video segment to be played and the first time number.

[0122] Among them, the video time corresponding to the video clip to be played refers to the time to be played of the edited video. The video time of the video clip to be played includes the start and end playback time corresponding to the clip to be played. For example, the video length of the edited video is 3 seconds, and the video clip at the 2nd second is currently being played, then the video time of the video clip to be played is the 3rd second. It can be understood that the 3rd second refers to the period from the 3rd second to the 3rd second.

[0123] The first time number mapping relationship is used to represent the mapping relationship between the video time corresponding to each video segment in the edited video and the coding number of each video segment in the edited video. The first time number mapping relationship has a one-to-one correspondence between the video time and the coding number. The first time number mapping relationship can be a time number mapping relationship of the edited video generated based on the segment difference information between the target video and the edited video after the target video is edited.

[0124] Figure 3A The first time number mapping relationship of a clipped video in an embodiment is shown, and the duration of each video segment in the clipped video is 1 second, wherein the code number of the video segment corresponding to the 1st second is 2002, the code number of the video segment corresponding to the 2nd second is 3003, and the code number of the video segment corresponding to the 3rd second is 5005. It can be understood that the 1st second refers to a period of time from the 1st second to the 1st second, the 2nd second refers to a period of time from the 2nd second to the 2nd second, and the 3rd second refers to a period of time from the 3rd second to the 3rd second.

[0125] Figure 3B The first time number mapping relationship of the edited video in another embodiment is shown, and the duration of each video clip in the edited video is 1s (second), wherein the coding number of the video clip corresponding to the 1st second is 1001, the coding number of the video clip corresponding to the 2nd second is 1100, the coding number of the video clip corresponding to the 3rd second is 2002, the coding number of the video clip corresponding to the 4th second is 3003, the coding number of the video clip corresponding to the 5th second is 4004, and the coding number of the video clip corresponding to the 6th second is 5005.

[0126] Figure 3C The first time number mapping relationship of the clipped video in another embodiment is shown, where the duration of video segments A, C and E in the clipped video is 1s (second), the duration of video segment B is 0.5s (second), and the duration of video segment D is 2s (second), wherein the coding number of the video segment corresponding to 0s-1s in the clipped video is 1001, the coding number of the video segment corresponding to 1s-1.5s is 2002, the coding number of the video segment corresponding to 1.5s-2.5s is 3003, the coding number of the video segment corresponding to 2.5s-4.5s is 4004, and the coding number of the video segment corresponding to 4.5-5.5s is 5005.

[0127] In one embodiment, during the process of playing the clipped video, the terminal determines the video time of the video segment to be played in the clipped video in real time, and reports the video time to the server. Based on the received video time, the server determines the target code number of the video segment to be played of the clipped video from the first time number relationship of the stored clipped video. For example, the first time number mapping relationship of the clipped video is Figure 3A The time number mapping relationship shown in FIG. 1 is used. When the terminal is playing the clipped video, if the determined playing time of the video segment to be played is the first second, based on Figure 3A The time number mapping relationship shown in FIG. 1 determines that the target code number of the video segment to be played is 2002. If the determined playing time of the video segment to be played is the 2nd second, then based on Figure 3A The time number mapping relationship shown in FIG. 1 determines that the target code number of the video segment to be played is 3003. If the determined playing time of the video segment to be played is the 3rd second, then based on Figure 3A The time number mapping relationship shown determines that the target code number of the video segment to be played is 5005.

[0128] In one embodiment, when the terminal obtains the clipped video from the server, it also obtains and stores the first time number mapping relationship of the clipped video, and during the offline playback of the clipped video, determines in real time the video time of the video segment to be played in the clipped video, and determines the target coding number of the video segment to be played from the stored first time numbering relationship based on the video time of the video segment to be played.

[0129] In the above embodiment, the computer device can quickly determine the target code number of the video segment to be played based on the video time corresponding to the video segment to be played and the pre-established first time number mapping relationship, and then select the barrage text matching the video segment to be played based on the target code number for playback, thereby improving the efficiency of barrage text selection, thereby avoiding delayed playback of the barrage text, and further ensuring that the video segment and the barrage text in the played video clip are played synchronously.

[0130] In one embodiment, the above-mentioned barrage playback method also includes a process of generating a first time number mapping relationship of a clipped video, which specifically includes the following steps: obtaining a second time number mapping relationship between a target video and a target video, and after clipping the target video to obtain a clipped video, determining the segment difference information between the clipped video and the target video, and updating the second time number mapping relationship based on the segment difference information to obtain a first time number mapping relationship of the clipped video.

[0131] The second time-number mapping relationship is used to represent the mapping relationship between the video time corresponding to each video segment in the target video and the coding number of each video segment in the target video. Figure 4 The second time number mapping relationship of the target video in an embodiment is shown, and the duration of each video segment in the target video is 1s, wherein the coding number of the video segment corresponding to the 1st second is 1001, the coding number of the video segment corresponding to the 2nd second is 2002, the coding number of the video segment corresponding to the 3rd second is 3003, the coding number of the video segment corresponding to the 4th second is 4004, and the coding number of the video segment corresponding to the 5th second is 5005.

[0132] The segment difference information between the edited video and the target video includes the difference between the video segments corresponding to each video time of the edited video and the target video.

[0133] For example, the target video is Figure 4 The video shown in FIG. 1 includes video segments A, video segments B, video segments C, video segments D and video segments E. Video segments A and video segments D in the target video are deleted to obtain a clipped video. Then, segment difference information between the clipped video and the target video is determined, and the clip difference information is used to perform a comparison. Figure 4 The second time number mapping relationship in is updated to obtain Figure 3A The first time number mapping relationship of the clipped video is shown.

[0134] For example, the target video is Figure 4 The video shown in the figure includes video segments A, video segments B, video segments C, video segments D and video segments E. A video segment F is inserted between video segments A and video segments B in the target video to obtain a clipped video. The duration of video segment F is 1 second. Then, the video segment F is logically encoded. If the logical encoding of video segment F is 1100, the segment difference information between the clipped video and the target video is determined, and the clip difference information is used to obtain the clipped video. Figure 4 The second time number mapping relationship in is updated to obtain Figure 3B The first time number mapping relationship of the clipped video is shown.

[0135] For example, the target video is Figure 4The video shown in the figure includes video segments A, video segments B, video segments C, video segments D and video segments E. The duration of each video segment is 1 second. The frame rates of video segments B and video segments D in the target video are adjusted to obtain a clipped video. The duration of video segment B in the clipped video is 0.5 seconds, and the duration of video segment D is 2 seconds. The segment difference information between the clipped video and the target video is determined, and the clip difference information is used to obtain the target video. Figure 4 The second time number mapping relationship in is updated to obtain Figure 3C The first time number mapping relationship of the clipped video is shown.

[0136] In one embodiment, the above-mentioned barrage playback method also includes a process of generating a second time number mapping relationship of the target video, which specifically includes the following steps: dividing the target video into segments to obtain video segments; logically encoding each video segment in the target video to obtain a coding number for each video segment in the target video; establishing a mapping relationship between the obtained coding number and the video time corresponding to each video segment in the target video to obtain a second time number mapping relationship of the target video.

[0137] Specifically, the server divides the target video into segments, and the segments may be divided into segments in sequence with a preset duration as a unit. For example, if the preset duration is 2 seconds, the target video may be divided into multiple video segments of 2 seconds in length.

[0138] After the server divides the target video into segments, it can logically encode the obtained video segments in sequence according to their corresponding video times in the target video to obtain the coding numbers of the video segments in the target video, and establish a mapping relationship between the coding numbers of the video segments and the corresponding video times to obtain the second time number mapping relationship of the target video.

[0139] The video time of a video segment includes the start and end playing time of the video segment. For example, if the video time of the target video is 10 seconds, the target video is divided into segments of 2 seconds in length, and the video time of the first video segment is from the 1st second to the 2nd second, the video time of the second video segment is from the 3rd second to the 4th second, the video time of the third video segment is from the 5th second to the 6th second, the video time of the fourth video segment is from the 7th second to the 8th second, and the video time of the fifth video segment is from the 9th second to the 10th second.

[0140] Figure 5 A schematic diagram showing a second time number mapping relationship for generating a target video in one embodiment is shown. Figure 5The video duration of the target video in is 5 seconds, then the target video is divided into segments with 1 second as the unit duration, and 5 video segments with a duration of 1 second are obtained, specifically video segment A, video segment B, video segment C, video segment D and video segment E, wherein the video time of video segment A is the 1st second, the video time of video segment B is the 2nd second, the video time of video segment C is the 3rd second, the video time of video segment D is the 4th second, and the video time of video segment 5 is the 5th second. Each video segment is logically encoded in chronological order, and video segment A is logically encoded to obtain a coding number of 1001 for video segment A, video segment B is logically encoded to obtain a coding number of 2002 for video segment B, video segment C is logically encoded to obtain a coding number of 3003 for video segment C, video segment D is logically encoded to obtain a coding number of 4004 for video segment D, and video segment E is logically encoded to obtain a coding number of 5005 for video segment E, and a mapping relationship is established between the coding number of each video segment and the corresponding video time, to obtain Figure 4 The second time number mapping relationship of the target video is shown.

[0141] In the above embodiment, the computer device divides the target video into segments, logically encodes each video segment obtained by the division, and establishes a mapping relationship between the code number obtained by the logical encoding and the video time corresponding to each video segment in the target video to obtain a second time number mapping relationship, and then a first time number mapping relationship can be generated based on the second time number mapping relationship, so that when playing the clipped video, the target code number of the segment to be played can be quickly determined based on the first time number mapping relationship, and then the barrage text matching the video segment to be played can be selected based on the target code number for playback, which also improves the efficiency of barrage text selection, thereby avoiding delayed playback of barrage text, and further ensuring that the video segment and barrage text in the clipped video being played are played synchronously.

[0142] S204, selecting the target bullet text associated with the target code number.

[0143] The target bullet text is the bullet text of the target video and is sent at the video time corresponding to the matched video segment. The target bullet text can be one or more.

[0144] It is understandable that other users can send barrage text in real time when watching the target video, wherein the barrage text generated in the process of watching the video segment in the target video that matches the video segment to be played is the target barrage text associated with the coding number of the video segment to be played, and the duration of the process of watching the video segment in the target video that matches the video segment to be played is the video time corresponding to the matching video segment.

[0145] For example, the target video has a total length of 5 video segments, including video segment A, video segment B, video segment C, video segment D and video segment E, the coding number of video segment A is 1001, the coding number of video segment B is 2002, the coding number of video segment C is 3003, the coding number of video segment D is 4004, and the coding number of video segment E is 5005, and each video code is associated with a corresponding barrage text; the edited video is a video obtained by deleting video segments A and D in the target video, that is, the edited video includes video segments B, video segments C and video segments E. Then, when the terminal is playing the edited video, if the video segment to be played is video segment B, the coding number 2002 corresponding to video segment B is obtained, and the coding number 2002 is determined as the target coding number, and the barrage text associated with the coding number 2002 is obtained, and the barrage text associated with the coding number 2002 is determined as the target barrage text.

[0146] In one embodiment, S204 specifically includes the following steps: obtaining a first-numbered barrage mapping relationship corresponding to the clipped video; and selecting a target barrage text associated with a target code number based on the first-numbered barrage mapping relationship.

[0147] Among them, the first numbered barrage mapping relationship is used to represent the mapping relationship between the code number of each video clip in the edited video and the barrage text of the target video. In the first numbered barrage mapping relationship, the same code number can correspond to one or more barrage texts. Specifically, each barrage text can be uniquely identified by the corresponding barrage identifier. The first numbered barrage mapping relationship can be a mapping relationship between the code number and the barrage identifier. Different code numbers correspond to different barrage identifiers, and the same code number can correspond to multiple barrage identifiers.

[0148] In one embodiment, after determining the target coding number of the video segment to be played of the edited video, the server selects the target barrage identifier associated with the target coding number based on the first-numbered barrage mapping relationship of the stored edited video, obtains the barrage text corresponding to the target barrage identifier, and determines the obtained barrage text as the target barrage text.

[0149] Figure 6FIG. 1 shows a portion of the mapping relationship of the first numbered bullet comments of a clipped video in an embodiment, wherein the video clip with the coding number 2002 of the clipped video is associated with three bullet comment IDs, namely "DY0005", "DY0010" and "DY0053", wherein the bullet comment text corresponding to "DY0001" is "No one, I'm the first", the bullet comment text corresponding to "DY0010" is "Here I come", and the bullet comment text corresponding to "DY0053" is "August 1, 2020, Punch in"; the video clip with code number 3003 is associated with two barrage IDs, namely "DY0022" and "DY0045", of which the barrage text corresponding to "DY0022" is "The heroine is so beautiful", and the barrage text corresponding to "DY0045" is "The beauty of the prosperous age". The video clip with code number 5005 is associated with 1 barrage ID, "DY0008", and the barrage text corresponding to "DY0008" is "A bit boring"; if the target code number is 3003, then based on Figure 6 According to the mapping relationship of the first numbered barrage shown in , the target barrage text associated with the target code number 3003 is selected as "The heroine is so beautiful" and "What a beautiful face in this age".

[0150] In one embodiment, the terminal can also obtain the first number barrage mapping relationship of the edited video while obtaining the first time number mapping relationship of the edited video from the server, and obtain the target coding number of the video segment to be played in the edited video during the playing of the edited video, and based on the stored first number barrage mapping relationship of the edited video, select the target barrage identifier associated with the target coding number, obtain the barrage text corresponding to the target barrage identifier, and determine the obtained barrage text as the target barrage text.

[0151] In one embodiment, after selecting the target barrage identifier associated with the target code number, the terminal sends the determined target barrage identifier to the server. The server obtains the barrage text corresponding to the target barrage identifier based on the received target barrage identifier, and returns the obtained barrage text as the target barrage text to the terminal.

[0152] In the above embodiment, the computer device obtains the first numbered barrage mapping relationship corresponding to the clipped video. Since the first numbered barrage mapping relationship ensures that the numbered barrage mapping relationship before and after the target video clip remains unchanged, the target barrage text associated with the target coding number is selected based on the first numbered barrage mapping relationship, thereby ensuring that the selected target barrage text is the barrage text that matches the video clip to be played.

[0153] S206, when the video segment to be played is played, the target bullet screen text is played as the bullet screen text of the video segment to be played.

[0154] In one embodiment, after obtaining the target barrage text, the server sends the obtained target barrage text to the terminal that plays the clipped video. After receiving the target barrage text, when the terminal plays the video segment to be played, the target barrage text is played as the barrage text of the video segment to be played.

[0155] In one embodiment, the server also stores each barrage text corresponding to the first-numbered barrage mapping relationship and the corresponding playback time in the target video. After obtaining the target barrage text, the server can also sort the obtained target barrage text based on the corresponding playback time of each target barrage text in the target video, and send the target barrage text and the sorting result of the target barrage text to the terminal. After receiving the target barrage text and the sorting result of the target barrage text, when the terminal plays the video segment to be played, the target barrage text is played in sequence as the barrage text of the video segment to be played according to the sorting result of the target barrage text.

[0156] Figure 7 The playback screen of a clip video in one embodiment is shown. Figure 7 It can be seen that the order in which different barrage texts appear in the same playback screen is different.

[0157] In the above-mentioned barrage playback method, when the computer device is playing a clipped video obtained based on the clipped target video, it obtains the target coding number of the video segment to be played in the clipped video, wherein the target coding number is the number obtained by logically encoding the video segment in the target video that matches the video segment to be played, and selects the target barrage text associated with the target coding number, wherein the target barrage text is the barrage text of the target video and is issued at the video time corresponding to the matching video segment, so that when the video segment to be played is played, the target barrage text is played as the barrage text of the video segment to be played, ensuring that after the video is clipped, the video segment in the clipped video played and the barrage text are still matched.

[0158] In one embodiment, a computer device selects a target barrage text associated with a target code number based on a first-numbered barrage mapping relationship, including the following steps: obtaining a video identifier of a target video; searching for a barrage text set corresponding to the target video according to the video identifier; and selecting a target barrage text associated with a target code number from the barrage text set based on the first-numbered barrage mapping relationship.

[0159] The target video identifier is used to uniquely identify the target video, and the identifier can be at least one of letters and numbers. For example, the letters "DY" are the video identifier of a target video. The barrage text set of the target video is the set of all barrage texts corresponding to the target video, including the barrage text and the barrage identifier corresponding to the barrage text.

[0160] In one embodiment, after obtaining the video identifier of the target video, the server searches for a barrage text set that matches the video identifier of the target video from the barrage text sets of the stored target videos, and determines the target barrage identifier associated with the target coding number based on the first-numbered barrage mapping relationship, searches for the barrage text corresponding to the target barrage identifier from the barrage text set, and determines the barrage text corresponding to the target barrage identifier as the target barrage text associated with the target coding number.

[0161] In one embodiment, after determining the target barrage identifier associated with the target coding number based on the first-numbered barrage mapping relationship, the terminal obtains the video identifier of the target video corresponding to the clipped video, generates a barrage text acquisition request based on the video identifier and the target barrage identifier of the target video, and sends the generated barrage text acquisition request to the server. The server parses the received barrage text acquisition request to obtain the video identifier and the target barrage identifier of the target video, searches for a barrage text set that matches the video identifier of the target video from the stored barrage text sets of each target video, searches for the barrage text corresponding to the target barrage identifier from the barrage text set, determines the barrage text corresponding to the target barrage identifier as the target barrage text associated with the target coding number, and returns the determined target barrage text to the terminal.

[0162] In the above embodiment, the computer device obtains the video identifier of the target video, and searches for the barrage text set corresponding to the target video according to the video identifier. Since the first-numbered barrage mapping relationship ensures that the numbered barrage mapping relationship of the same coding number before and after the target video clip remains unchanged, the target barrage text associated with the target coding number is selected from the barrage text set based on the first-numbered barrage mapping relationship, thereby ensuring that the selected target barrage text is the barrage text that matches the video clip to be played.

[0163] In one embodiment, the barrage text set of the target video also records the corresponding playback time of each barrage text in the target video. After obtaining the target barrage text, the server can also select the corresponding playback time of each target barrage text in the target video from the barrage text set, sort the obtained target barrage text, and send the target barrage text and the sorting result of the target barrage text to the terminal together. After receiving the target barrage text and the sorting result of the target barrage text, when the terminal plays the video segment to be played, the target barrage text is played in sequence as the barrage text of the video segment to be played according to the sorting result of the target barrage text.

[0164] In the above embodiment, the computer device sorts the acquired target barrage text in time, and sends the target barrage text and the sorting result of the target barrage text to the terminal, so that when the terminal plays the video segment to be played, the target barrage text is played in sequence as the barrage text of the video segment to be played according to the sorting result of the target barrage text, further ensuring that the real-time played barrage text matches the playback content.

[0165] In one embodiment, the barrage text set of the target video also records the barrage interaction operation number of each barrage text in the target video. After obtaining the target barrage text, the server can also obtain the barrage interaction operation number of each target barrage text from the barrage text, and send the target barrage text and the barrage interaction operation number of the target barrage text to the terminal. After receiving the target barrage text and the barrage interaction operation number of the target barrage text, the terminal plays the target barrage text and the barrage interaction operation number of the target barrage text when playing the video clip to be played.

[0166] Among them, the number of barrage interaction operations refers to the number of interaction operations performed with the barrage text. The interaction operation can be a like operation. For example, when a user is watching the target video, he can like the barrage text being played. For each barrage text, for each additional like operation, the number of barrage interaction operations corresponding to the barrage text increases by 1.

[0167] Specifically, after receiving the target bullet text and the bullet interaction operand of the target bullet text, the terminal rod determines the first target bullet text whose bullet interaction operand reaches the operand threshold, and the second target bullet text whose bullet interaction operand does not reach the operand threshold, and when playing the video clip to be played, the first target bullet text is played in the first play state, and the second target bullet text is played in the second play state. The display states of the bullet text corresponding to the first play state and the second play state are different, for example, the first play state is to display the bullet text in a highlighted state, and the second play state is to display the bullet text in a normal state.

[0168] In the above embodiment, the target barrage text and the barrage interaction operation number of the target barrage text are sent to the terminal. After receiving the target barrage text and the barrage interaction operation number of the target barrage text, when the terminal plays the video clip to be played, the target barrage text and the barrage interaction operation number of the target barrage text are played, so that users watching the clipped video can see the interaction with other users and the video content, further improving the interactivity between the user and the played video.

[0169] In one embodiment, the above-mentioned barrage playback method also includes a process of video clip recommendation, which specifically includes the following steps: determining the number of barrage interaction operations corresponding to each matching video clip in the target video that matches the clip video; determining the recommended video clip from each matching video clip according to the number of barrage interaction operations; and recommending the recommended video clip during the playback of the clip video.

[0170] Among them, the video clip corresponding to the recommended video clip has a large number of barrage interaction operations, and most users have commented on the video clip and interacted with the comments, that is, it is a popular video clip that most users pay attention to and has a high popularity. Therefore, recommending this video clip as a recommended video clip can meet the user's viewing needs for popular video clips.

[0171] Specifically, the computer device obtains the coding number of each video clip in the edited video, and respectively selects the barrage text associated with each coding number, and for multiple barrage texts associated with the same coding number, counts the accumulated barrage interaction operations of the multiple barrage texts, and determines the counted barrage interaction operation number as the barrage interaction operation number of the video clip corresponding to the corresponding coding number, and then determines the recommended video clip based on the barrage interaction operation number, and recommends the determined recommended video clip during the process of playing the edited video on the terminal.

[0172] Among them, determining the recommended video clip based on the barrage interaction operation number can be to determine the video clip whose barrage interaction operation number reaches the recommended operation number threshold as the recommended video clip, or to sort the video clips from large to small according to the barrage interaction operation number to obtain the ranking value of each video clip, and determine the video clip whose ranking value reaches the ranking threshold as the recommended video clip.

[0173] For example, the number of barrage interaction operations of each video clip is sorted, and the number of barrage interaction operations of each video clip after sorting is (400, 350, 320, ..., 300, ..., 100, 50, 15, 0). The server selects the barrage interaction operation number corresponding to the number less than or equal to 10 from the above barrage interaction operation numbers, or selects the barrage interaction operation number corresponding to the top 50%. After completing the selection, the server will select the video clip corresponding to the number of barrage interaction operations corresponding to the number less than or equal to 10, or the barrage interaction operation number corresponding to the top 50%, as the recommended video clip that meets the conditions.

[0174] In one embodiment, a computer device counts the accumulated barrage interaction operations and the number of barrages of multiple barrage texts associated with the same coding number, and then determines a recommended video segment based on the number of barrage interaction operations and the number of barrages, and recommends the determined recommended video segment during the playback of the clipped video.

[0175] Specifically, after obtaining the number of barrage interaction operations and the number of barrages of each video clip, the computer device respectively obtains the first recommendation weight corresponding to the number of interaction operations and the second recommendation weight corresponding to the number of barrages, and then calculates the recommendation score of each video clip based on the number of barrage interaction operations, the number of barrages, the first recommendation weight and the second recommendation weight, and then determines the recommended video clip based on the recommendation score.

[0176] Among them, determining the recommended video clip based on the recommendation score can be to determine the video clip whose recommendation score reaches the recommendation score threshold as the recommended video clip, or to sort the video clips from large to small according to the recommendation score to obtain the ranking value of each video clip, and determine the video clip whose ranking value reaches the ranking threshold as the recommended video clip.

[0177] In one embodiment, after determining the recommended video segment, the server sends the coding number of the recommended video segment to the terminal. After receiving the coding number of the recommended video segment, the terminal determines the video time of the recommended video segment based on the first time coding mapping relationship of the edited video, and marks the recommended video segment at the corresponding position on the playback progress bar based on the video time of the recommended video segment to recommend the recommended video segment.

[0178] Figure 8 The video playback screen in one embodiment is shown, and a recommendation prompt message "There is exciting content here, you can drag it here to watch" is displayed at the corresponding position of the progress bar of the playback screen. The recommendation prompt message is used to recommend the recommended video clip.

[0179] In the above embodiment, the computer device determines the recommended video segment from each video segment of the edited video according to the number of barrage interaction operations, and then recommends the recommended video segment during the process of playing the edited video, thereby satisfying the user's viewing needs for popular video segments.

[0180] In one embodiment, the above-mentioned barrage playback method also includes a process of generating a first-numbered barrage mapping relationship, which specifically includes the following steps: obtaining a second-numbered barrage mapping relationship corresponding to the target video; after clipping the target video to obtain a clipped video, determining the segment difference information between the clipped video and the target video; updating the second-numbered barrage mapping relationship based on the clip difference information to obtain the first-numbered barrage mapping relationship.

[0181] Among them, the second numbered barrage mapping relationship is used to represent the mapping relationship between the coding number of each video clip in the target video and the barrage text of the target video. Fig. 9 The figure shows the second numbered barrage mapping relationship of the target video in an embodiment, wherein the coding numbers of the video clips in the target video are 1001, 2002, 3003, 4004 and 5005 respectively, wherein the barrage identifications associated with the video clip with coding number 1001 are "DY0001", "DY0013" and "DY0047", the barrage identifications associated with the video clip with coding number 2002 are "DY0005", "DY0010" and "DY0053", the barrage identifications associated with the video clip with coding number 3003 are "DY0022" and "DY0045", the barrage identifications associated with the video clip with coding number 4004 are "DY0012" and "DY0028", and the barrage identification associated with the video clip with coding number 5005 is "DY0008".

[0182] The segment difference information between the edited video and the target video includes the difference between the video segments corresponding to each video time of the edited video and the target video.

[0183] For example, the target video is Fig. 9 The video shown in FIG. 1 includes video segments A, video segments B, video segments C, video segments D and video segments E. Video segments A and video segments D in the target video are deleted to obtain a clipped video. Then, segment difference information between the clipped video and the target video is determined, and the clip difference information is used to perform a comparison based on the clip difference information. Fig. 9 The second numbered bullet screen mapping relationship in is updated to obtain Figure 6 The mapping relationship of the first numbered bullet comments of the clipped video is shown.

[0184] In the above embodiment, the computer device determines the segment difference information between the edited video and the target video by obtaining the second numbered barrage mapping relationship corresponding to the target video, and then updates the second numbered barrage mapping relationship based on the segment difference information to obtain the first numbered barrage mapping relationship, thereby ensuring that the numbered barrage mapping relationship for the same coding number before and after the target video is edited remains unchanged, and then when selecting the target barrage text based on the first numbered barrage mapping relationship, it is ensured that the selected target barrage text is the barrage text that matches the video segment to be played.

[0185] In one embodiment, the above-mentioned barrage playback method also includes a process of generating a second numbered barrage mapping relationship, which specifically includes the following steps: obtaining the time barrage mapping relationship corresponding to the target video; establishing a second numbered barrage mapping relationship based on the time barrage mapping relationship, the video time of each video clip in the target video and the corresponding coding number.

[0186] The time barrage mapping relationship is used to represent the mapping relationship between the video time corresponding to each video clip in the target video and the barrage text of the target video. The video time and the corresponding code number of each video clip in the target video can be determined according to the second time number mapping relationship of the target video.

[0187] Specifically, after dividing the target video into multiple video segments, the server determines the video time corresponding to each video segment, and obtains each barrage text and the corresponding playback time of each barrage text in the target video, and establishes a time barrage mapping relationship of the target video based on the video time of the barrage text in the playback time of the target video, and establishes a second numbered barrage mapping relationship based on the time barrage mapping relationship and the second time number mapping relationship of the target video.

[0188] Fig.10 The time bullet screen mapping relationship of the target video in one embodiment is shown. Figure 5 The video duration of the target video in is 5 seconds, then the target video is segmented with a unit duration of 1 second to obtain 5 video segments with a duration of 1 second, specifically video segment A, video segment B, video segment C, video segment D and video segment E, where the video time of video segment A is the 1st second, the video time of video segment B is the 2nd second, the video time of video segment C is the 3rd second, the video time of video segment D is the 4th second, and the video time of video segment 5 is the 5th second. The playback time of the barrage text is the barrage mark within the 1st second. There are "DY0001", "DY0013" and "DY0047", the barrage text is played within the second second and the barrage identification is "DY0005", "DY0010" and "DY0053", the barrage text is played within the third second and the barrage identification is "DY0022" and "DY0045", the barrage text is played within the fourth second and the barrage identification is "DY0012" and "DY0028", the barrage text is played within the fifth second and the barrage identification is "DY0008", and then according to Fig.10 The time barrage mapping relationship of the target video shown and Fig. 9 The second time number mapping relationship of the target video shown is used to establish the second time barrage mapping relationship of the target video.

[0189] In the above embodiment, the computer device obtains the time barrage mapping relationship corresponding to the target video, and establishes a second numbered barrage mapping relationship based on the time barrage mapping relationship, the video time of each video clip in the target video and the corresponding coding number, and then generates a first numbered barrage mapping relationship for the edited video based on the second numbered barrage mapping relationship, ensuring that the numbered barrage mapping relationship for the same coding number before and after the target video is edited remains unchanged, and then when selecting the target barrage text based on the first numbered barrage mapping relationship, it is ensured that the selected target barrage text is the barrage text that matches the video clip to be played.

[0190] In one embodiment, the process in which a computer device updates a second-numbered barrage mapping relationship based on segment difference information to obtain a first-numbered barrage mapping relationship includes the following steps: obtaining a second time number mapping relationship corresponding to a target video; updating the second time number mapping relationship based on the segment difference information to obtain a first time number mapping relationship corresponding to a clipped video; and updating the second-numbered barrage mapping relationship based on the first time number mapping relationship to obtain a first-numbered barrage mapping relationship.

[0191] Among them, the second time number mapping relationship is used to represent the mapping relationship between the video time corresponding to each video clip in the target video and the coding number of each video clip in the target video; the first time number mapping relationship is used to represent the mapping relationship between the video time corresponding to each video clip in the edited video and the coding number of each video clip in the edited video.

[0192] The segment difference information between the edited video and the target video includes the difference between the video segments corresponding to each video time of the edited video and the target video.

[0193] For example, the computer device updates the Figure 4 The second time number mapping relationship shown is obtained Figure 3A After the first time number mapping relationship of the clip video shown, based on Figure 3A The first time number mapping relationship of the clip video shown is Fig. 9 The second numbered bullet screen mapping relationship shown in the figure is updated to obtain Figure 6 The first numbered bullet comment mapping relationship is shown.

[0194] In the above embodiment, the computer device obtains the second time number mapping relationship corresponding to the target video; updates the second time number mapping relationship based on the segment difference information to obtain the first time number mapping relationship corresponding to the edited video, and updates the second numbered barrage mapping relationship based on the first time number mapping relationship to obtain the first numbered barrage mapping relationship, thereby ensuring that the numbered barrage mapping relationship for the same coding number before and after the target video is edited remains unchanged, and then when selecting the target barrage text based on the first numbered barrage mapping relationship, it is ensured that the selected target barrage text is the barrage text that matches the video segment to be played.

[0195] In one embodiment, the above-mentioned barrage playback method also includes a process of playing embedded information, which specifically includes the following steps: determining the number of barrages in the barrage text of each video clip in the target video; when the number of barrages corresponding to the matching video clip is greater than the number of barrages corresponding to other video clips in the target video, obtaining the information to be embedded; when playing the video clip to be played, inserting the information to be embedded into the video clip to be played for playback.

[0196] The information to be embedded is media information to be embedded, and the media information may be text, images (including static images and dynamic images), short videos and audio.

[0197] Specifically, after obtaining the video identifier of the target video, the server searches for a barrage text set that matches the video identifier of the target video from the barrage text sets of each stored target video, and determines the barrage text corresponding to each video clip based on the first-numbered barrage mapping relationship, and counts the number of barrages in the barrage text of each video clip. When the number of barrages of the video clip corresponding to the target coding number is greater than the number of barrages corresponding to other video clips in the target video, the media information to be embedded is obtained from the media information library, and when the video clip to be played is played, the media information to be embedded is inserted into the video clip to be played for playback.

[0198] In one embodiment, when the media information is acquired, the media information may also be edited in the editing area.

[0199] For example, if the media information is text, the text can be edited, such as changing the font, adjusting the font size or adjusting the font color; if the media information is an image, the image can be processed, such as cropping the image size, adjusting the contrast or adjusting the brightness; if the media information is a video, the length of the video can be cropped, the video can be transcoded or compressed to reduce the data size; if the media information is audio, the length of the audio can be cropped.

[0200] In one embodiment, the terminal can select a media information implantation area in the to-be-played video segment of the currently played clip video according to the position selection instruction, then implant the media information into the selected media information implantation area, and then synchronously implant the media information into other video frames of the video segment.

[0201] In another embodiment, the terminal embeds the media information into the video segment to be played according to the embeddable coordinate position contained in the segment description information.

[0202] In one embodiment, the terminal obtains the media information embedding area of ​​each video frame of the video segment to be played, and then embeds the media information into the media information embedding area.

[0203] For example, when the media information is text or an image, the text or image is embedded in the media information embedding area. When the media information is video or audio, the video or audio is embedded in the media information embedding area; when playing a video clip with embedded video or audio, if a video clip with embedded video or audio is played, the embedded video is played in the media information embedding area, or the playback page of the embedded audio and the corresponding audio information are displayed.

[0204] In the above embodiment, the computer device determines the number of barrages in the barrage text of each video clip in the target video. When the number of barrages corresponding to the matched video clip is greater than the number of barrages corresponding to other video clips in the target video, the computer device obtains the information to be embedded. When the video clip to be played is played, the information to be embedded is inserted into the video clip to be played for playback. This ensures that the clip itself is not modified, thereby enabling users to process the clipped video, improving the convenience and efficiency of video processing, and promoting users to re-create the clipped video.

[0205] In one embodiment, Fig.11 As shown, a bullet screen playback method is also provided, and the method is applied to Figure 1 The computer device (terminal or server) in the example is used to illustrate, including the following steps:

[0206] S1102, dividing the target video into segments to obtain video segments.

[0207] S1104, logically encode each video segment in the target video to obtain a coding number of each video segment in the target video.

[0208] S1106: Establish a mapping relationship between the obtained code number and the video time corresponding to each video clip in the target video to obtain a second time number mapping relationship.

[0209] S1108, obtaining the time bullet screen mapping relationship corresponding to the target video.

[0210] Among them, the time barrage mapping relationship is used to represent the mapping relationship between the video time corresponding to each video clip in the target video and the barrage text of the target video.

[0211] S1110, based on the time barrage mapping relationship and the second time number mapping relationship, establish a second number barrage mapping relationship.

[0212] S1112, after the target video is clipped to obtain a clipped video, segment difference information between the clipped video and the target video is determined.

[0213] S1114, updating the second time number mapping relationship based on the segment difference information to obtain the first time number mapping relationship corresponding to the edited video.

[0214] S1116, updating the second numbered barrage mapping relationship based on the segment difference information to obtain the first numbered barrage mapping relationship.

[0215] Among them, the first numbered barrage mapping relationship is used to represent the mapping relationship between the coding number of each video clip in the edited video and the barrage text of the target video.

[0216] S1118, in the process of playing the edited video obtained based on the edited target video, obtaining the video time corresponding to the video segment to be played in the edited video.

[0217] S1120: Determine a target code number of the to-be-played segment based on a mapping relationship between the video time corresponding to the to-be-played video segment and the first time number.

[0218] S1122, obtaining the video identifier of the target video corresponding to the clipped video.

[0219] S1124, searching for a bullet text set corresponding to the target video according to the video identifier.

[0220] S1126, based on the first numbered barrage mapping relationship, select the target barrage text associated with the target code number in the barrage text set.

[0221] S1128, when the video segment to be played is played, the target bullet screen text is played as the bullet screen text of the video segment to be played.

[0222] In one embodiment, Fig.12 As shown, a bullet screen playback method is also provided, and the method is applied to Figure 1 The computer device (which may be a terminal) in the embodiment is used as an example to illustrate, and the following steps are included:

[0223] S1202, playing a clipped video obtained by clipping the target video; the clipped video includes a video segment obtained by clipping the target video.

[0224] The target video can also be referred to as the original video of the clipped video being played. Clipping the target video refers to clipping the target video. The clipping process can specifically be deleting, adding or editing the target video. Deleting refers to deleting some video clips in the target video, adding refers to adding some video clips to the target video, and editing refers to editing some or all video clips in the target video. The clipped video includes a video obtained by deleting some video clips in the target video, or a video obtained by adding some video clips to the target video, or a video obtained by deleting some video clips in the target video and adding other video clips to the target video, or a video obtained by editing some or all video clips in the target video.

[0225] Editing part or all of the video clips may be to adjust the frame rate of part or all of the video clips. Adjusting the frame rate means adjusting the playback rate of each video frame in the video clip, which may be to increase or decrease the frame rate. For example, the original video clip contains 20 video frames, the frame rate is 2 frames / second, and the duration required to play the video clip is 10 seconds. The frame rate of the original video clip is adjusted to 4 frames / second to obtain the adjusted video clip, and the duration required to play the adjusted video clip is 5 seconds. The duration required to play the video clip is the duration of the video clip.

[0226] Specifically, the terminal can play the clipped video in an online manner through the installed client, or the terminal can pre-cache the clipped video through the installed client and play the cached clipped video in an offline manner.

[0227] S1204, during the process of playing the edited video, when the video segment to be played in the video segments is played, the target barrage text corresponding to the video segment to be played is played; the target barrage text is the barrage text of the target video and is issued at the video time corresponding to the video segment matching the video segment to be played.

[0228] The video segment in the target video that matches the video segment to be played may specifically be a video segment in the target video that is identical to the video segment to be played in the edited video.

[0229] It is understandable that other users can send barrage text in real time when watching the target video, wherein the barrage text generated in the process of watching the video segment in the target video that matches the video segment to be played is the target barrage text corresponding to the video segment to be played, and the duration of the process of watching the video segment in the target video that matches the video segment to be played is the video time corresponding to the matching video segment.

[0230] For example, the total length of the target video is 5 video segments, including video segment A, video segment B, video segment C, video segment D and video segment E, each video segment corresponds to its own barrage text, and the edited video is the video obtained by deleting video segment A and video segment D in the target video, that is, the edited video includes video segment B, video segment C and video segment E. Then, when the terminal is playing the edited video, if the video segment to be played is video segment B, the barrage text corresponding to video segment B in the target video is obtained, and the barrage text corresponding to video segment B in the target video is determined as the target barrage text corresponding to video segment B in the edited video. When playing the edited video, when video segment B is played, the target barrage text corresponding to video segment B is played.

[0231] In the above embodiment, the terminal plays a clipped video based on the target video, and the clipped video includes a video segment obtained by clipping the target video. During the playing of the clipped video, when the segment to be played in the video segment is played, the target barrage text corresponding to the segment to be played is played, wherein the target barrage text is the barrage text of the target video and is issued at the video time corresponding to the video segment matching the video segment to be played, thereby ensuring that after the video is clipped, the video segment in the clipped video played and the barrage text are still matched.

[0232] In one embodiment, the video segment has a corresponding coding number, which is a number obtained by logically encoding the video segment in the target video. S1204 specifically includes the following steps: when playing the video segment to be played in the video segment, obtaining the associated target barrage text based on the target coding number of the video segment matching the video segment to be played; the target coding number belongs to the coding number; playing the target barrage text as the barrage text of the video segment to be played.

[0233] Among them, logical coding refers to encoding each video clip according to certain coding rules.

[0234] Specifically, when the terminal plays the video segment to be played in the video segment, it obtains the target coding number of the video segment matching the video segment to be played, and obtains the associated target barrage text based on the target coding number, and plays the target barrage text as the barrage text of the video segment to be played.

[0235] For example, the target video has a total length of 5 video clips, including video clip A, video clip B, video clip C, video clip D and video clip E. The video clips in the target video are logically encoded, and the encoding number corresponding to each video clip is obtained. The encoding number of video clip A is 1001, the encoding number of video clip B is 2002, the encoding number of video clip C is 3003, the encoding number of video clip D is 4004, and the encoding number of video clip E is 5005; the edited video is the video clips A and video clip E in the target video. The video obtained by deleting fragment D, that is, the edited video includes video fragment B, video fragment C and video fragment E. Then, when the terminal is playing the edited video, if the video fragment to be played is video fragment B, the coding number 2002 corresponding to the video fragment B is obtained, and the coding number 2002 is determined as the target coding number, and the barrage text associated with the coding number 2002 is obtained, and the barrage text associated with the coding number 2002 is determined as the target barrage text, and the target barrage text is played as the barrage text of the video fragment to be played.

[0236] In one embodiment, when the terminal plays the video segment to be played in the video segment, the process of obtaining the target coding number of the video segment matching the video segment to be played is the same as S202, the process of the terminal obtaining the associated target barrage text based on the target coding number is the same as S204, and the process of the terminal playing the target barrage text as the barrage text of the video segment to be played is the same as S206. The above same contents will not be repeated here.

[0237] In the above embodiment, when the terminal plays the video segment to be played in the video segment, it obtains the associated target barrage text based on the target coding number of the video segment matching the video segment to be played; and plays the target barrage text as the barrage text of the video segment to be played, ensuring that after the video is edited, the video segment in the edited video played and the barrage text still match.

[0238] The present application also provides an application scenario, and the application scenario applies the above-mentioned bullet screen playback method. Specifically, the application of the bullet screen playback method in the application scenario is as follows:

[0239] refer to Fig.13 For a 10-second target video, it is segmented into segments, and the duration of each segment is 1 second. Then, each video segment is logically encoded to obtain the code number corresponding to each video segment. The mapping relationship between video time and code number is expressed as follows:

[0240] 1s=》1001, 2s=》2002, 3s=》3003, 4s=》4004, 5s=》5005,

[0241] 6s=》6006, 7s=》7007, 8s=》8008, 9s=》9009, 10s=》100001

[0242] Here, "1s="1001" means that the encoding number of the video segment corresponding to the 1st second is 1001, and the same applies to other video segments.

[0243] against Fig.13 The target video shown can be edited by adding video clips or deleting video clips. The following takes situation 1 as a scenario for adding video clips, and takes situation 2 as a scenario for deleting video clips:

[0244] Scenario 1: In Fig.13 Add 3 seconds of advertising content between the 5th and 6th seconds of the target video shown. Fig.14 , the coding numbers corresponding to the various video clips in the clipped video are obtained, and the specific mapping relationship between the video time and the coding number is expressed as follows:

[0245] 1s=》1001, 2s=》2002, 3s=》3003, 4s=》4004, 5s=》5005,

[0246] 6s=》5300, 7s=》5500, 8s=》5700, 9s=》6006, 10s=》7007,

[0247] 11s=》8008, 12s=》9009, 13s=》100001

[0248] Among them, "1s="1001" means that the code number of the video segment corresponding to the 1st second is 1001, and the same applies to other video segments. The code numbers of the video segments corresponding to the target video in the edited video remain unchanged, and new code numbers are generated for the newly added video segments.

[0249] Scenario 2: Deletion Fig.13 3, 4, and 5 second video clips of the target video shown, refer to Fig.15 , the coding numbers corresponding to the various video clips in the clipped video are obtained, and the specific mapping relationship between the video time and the coding number is expressed as follows:

[0250] 1s=》1001, 2s=》2002, 3s=》6006, 4s=》7007, 5s=》8008,

[0251] 6s=》9009, 7s=》100001

[0252] Among them, "1s="1001" means that the code number of the video segment corresponding to the 1st second is 1001, and the same applies to other video segments. The code numbers of the video segments corresponding to the target video in the edited video remain unchanged, and the corresponding code numbers of the deleted 3-second video segments are also deleted.

[0253] For any target video, Fig.13 In a similar way, each video segment in the target video is encoded, and a correlation relationship between the barrage generated when the user watches the target video and the encoding number of the video segment is established, for example, Fig.16 The target video "Assassination of Novelist" shown in the figure has a comment A at 1 minute and 36 seconds, "Earned money, free play. Haha, like", and the code number of the video clip corresponding to 1 minute and 36 seconds of the target video is 6006. Then, a mapping relationship between the comment and the code number can be established. Fig.17 , the target video "Assassination of Novelist" is subsequently edited to obtain the edited "Assassination of Novelist". During the playback of the edited "Assassination of Novelist", when the video clip with the code number 6006 is played, based on Fig.17 The mapping relationship between the barrage and the code number shown is used to obtain barrage A "Earned money, free to play. Haha, like", and play it.

[0254] This application also provides a video logic timeline component, reference Fig.18 The logical timeline component maintains the mapping relationship between the video time and the code number of the target video. When the target video is edited, the video logical timeline component needs to be notified, and the mapping relationship between the video time and the code number is adjusted through the video logical timeline component. This component has at least the following two functions:

[0255] Function 1: Get the video ID and encoding number based on the video ID and video time;

[0256] Function 2: Get the video ID and video time based on the video ID and encoding number.

[0257] The present application also provides a bullet screen playback system, which includes a video logic time first component, referring to Fig.19, when the video playback client plays the target video "Assassination of Novelist" with video id 123456789, when the video time is 96s, the video id and video time are sent to the bullet screen background module to request bullet screen. The bullet screen background module sends the received video id "123456789" and video time "96s" to the video logic timeline component. The video logic timeline component obtains the corresponding video id "123456789" and code number "6006" based on the received video id "123456789" and video time "96s", and sends the video id "123456789" and code number "6006" to the video logic timeline component. ” is fed back to the barrage background module, and the barrage background module searches for the barrage corresponding to the video id "123456789" and the code number "6006" from the database based on the received video id "123456789" and the code number "6006", and the found barrage id is "13141516", and the corresponding barrage content is "Earned money, free play. Haha, like", and then the barrage background module sends the found barrage id "13141516" and the barrage content "Earned money, free play. Haha, like" to the video playback client, and the video playback client plays the received barrage content "Earned money, free play. Haha, like".

[0258] It should be understood that although Figure 2 , Fig.11 and Fig.12 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 , Fig.11 and Fig.12 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0259] In one embodiment, Fig. 20 As shown, a bullet screen playback device is provided. The device can adopt a software module or a hardware module, or a combination of the two to become a part of a computer device. The device specifically includes: a code number acquisition module 2002, a bullet screen text acquisition module 2004 and a playback module 2006, wherein:

[0260] The coding number acquisition module 2002 is used to acquire the target coding number of the video segment to be played in the clipped video during the process of playing the clipped video obtained based on the clipped target video; the target coding number is the number obtained by logically encoding the video segment in the target video that matches the video segment to be played;

[0261] The bullet text acquisition module 2004 is used to select the target bullet text associated with the target code number; the target bullet text is the bullet text of the target video and sent at the video time corresponding to the matched video segment;

[0262] The playing module 2006 is used to play the target bullet screen text as the bullet screen text of the video segment to be played when the video segment to be played is played.

[0263] The above-mentioned barrage playback device, during the process of playing a clipped video obtained based on editing the target video, obtains the target coding number of the video segment to be played in the clipped video, wherein the target coding number is the number obtained by logically encoding the video segment in the target video that matches the video segment to be played, and selects the target barrage text associated with the target coding number, wherein the target barrage text is the barrage text of the target video and is issued at the video time corresponding to the matching video segment, so that when the video segment to be played is played, the target barrage text is played as the barrage text of the video segment to be played, thereby ensuring that after the video is edited, the video segment in the played clipped video and the barrage text are still matched.

[0264] In one embodiment, the coding number acquisition module 2002 is also used to: obtain the video time corresponding to the video segment to be played in the edited video; determine the target coding number of the segment to be played based on the mapping relationship between the video time corresponding to the video segment to be played and the first time number; wherein the first time number mapping relationship is used to represent the mapping relationship between the video time corresponding to each video segment in the edited video and the coding number of each video segment in the edited video.

[0265] In a very smooth process, the barrage text acquisition module 2004 is also used to: obtain the first-numbered barrage text mapping relationship corresponding to the edited video; the first-numbered barrage text mapping relationship is used to represent the mapping relationship between the coding number of each video clip in the edited video and the barrage text of the target video; based on the first-numbered barrage text mapping relationship, select the target barrage text associated with the target coding number.

[0266] In one embodiment, the barrage text acquisition module 2004 is also used to: obtain the video identifier of the target video; search for the barrage text set corresponding to the target video according to the video identifier; and select the target barrage text associated with the target code number in the barrage text set based on the first numbered barrage mapping relationship.

[0267] In one embodiment, Fig.21 As shown, the apparatus further includes a segment recommendation module 2008, which is used to:

[0268] In each video segment in the target video that matches the edited video, the number of barrage interaction operations corresponding to each matched video segment is determined; from each matched video segment, a recommended video segment is determined according to the number of barrage interaction operations; and in the process of playing the edited video, the recommended video segment is recommended.

[0269] In one embodiment, Fig.21 As shown, the device also includes a mapping relationship generation module 2010, which is used to: obtain a second numbered barrage mapping relationship corresponding to the target video; the second numbered barrage mapping relationship is used to represent the mapping relationship between the coding number of each video segment in the target video and the barrage text of the target video; after clipping the target video to obtain a clipped video, determine the segment difference information between the clipped video and the target video; update the second numbered barrage mapping relationship based on the clip difference information to obtain the first numbered barrage mapping relationship.

[0270] In one embodiment, the mapping relationship generation module 2010 is also used to: obtain the time barrage mapping relationship corresponding to the target video; the time barrage mapping relationship is used to represent the mapping relationship between the video time corresponding to each video clip in the target video and the barrage text of the target video; based on the time barrage mapping relationship, the video time of each video clip in the target video and the corresponding coding number, establish a second numbered barrage mapping relationship.

[0271] In one embodiment, the mapping relationship generation module 2010 is also used to: obtain a second time number mapping relationship corresponding to the target video; the second time number mapping relationship is used to represent the mapping relationship between the video time corresponding to each video clip in the target video and the coding number of each video clip in the target video; based on the clip difference information, the second time number mapping relationship is updated to obtain the first time number mapping relationship corresponding to the edited video; the first time number mapping relationship is used to represent the mapping relationship between the video time corresponding to each video clip in the edited video and the coding number of each video clip in the edited video; based on the first time number mapping relationship, the second number barrage mapping relationship is updated to obtain the first number barrage mapping relationship.

[0272] In one embodiment, the mapping relationship generation module 2010 is also used to: divide the target video into segments to obtain video segments; logically encode each video segment in the target video to obtain a coding number for each video segment in the target video; establish a mapping relationship between the obtained coding number and the video time corresponding to each video segment in the target video to obtain a second time number mapping relationship.

[0273] In one embodiment, the clipped video includes: a video obtained by deleting some video clips in the target video, or a video obtained by adding some video clips to the target video, or a video obtained by deleting some video clips in the target video and adding other some video clips to the target video, or a video obtained by editing some or all of the video clips in the target video.

[0274] In one embodiment, if Fig.21 As shown, the device also includes an information implantation module 2012, which is used to: determine the number of barrages in the barrage text of each video segment in the target video; when the number of barrages corresponding to the matched video segment is greater than the number of barrages corresponding to other video segments in the target video, obtain the information to be implanted; when playing the video segment to be played, insert the information to be implanted into the video segment to be played for playback.

[0275] In one embodiment, Fig. 22 As shown, a bullet screen playback device is provided. The device can adopt a software module or a hardware module, or a combination of the two to become a part of a computer device. The device specifically includes: a video playback module 2202 and a bullet screen playback module 2204, wherein:

[0276] The video playing module 2202 is used to play a clipped video obtained by clipping the target video; the clipped video includes a video segment obtained by clipping the target video;

[0277] The barrage playback module 2204 is used to play the target barrage text corresponding to the video segment to be played when the video segment to be played is played in the process of playing the clipped video; the target barrage text is the barrage text of the target video and is issued at the video time corresponding to the video segment matching the video segment to be played.

[0278] In the above embodiment, the barrage playback device plays a clipped video based on the target video, and the clipped video includes a video segment obtained by clipping the target video. In the process of playing the clipped video, when the segment to be played in the video segment is played, the target barrage text corresponding to the segment to be played is played, wherein the target barrage text is the barrage text of the target video and is issued at the video time corresponding to the video segment matching the video segment to be played, thereby ensuring that after the video is clipped, the video segment in the clipped video played and the barrage text are still matched.

[0279] In one embodiment, the video segment has a corresponding coding number; the coding number is the number obtained by logically encoding the video segment in the target video; the barrage playback module 2204 is also used for: when playing the video segment to be played in the video segment, obtaining the associated target barrage text based on the target coding number of the video segment matching the video segment to be played; the target coding number belongs to the coding number; playing the target barrage text as the barrage text of the video segment to be played.

[0280] For the specific definition of the bullet screen playback device, please refer to the definition of the bullet screen playback method above, which will not be repeated here. Each module in the above-mentioned bullet screen playback device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0281] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.23 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store video data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a bullet screen playback method is implemented.

[0282] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.24As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a bullet screen playback method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0283] Those skilled in the art will understand that Fig.23 or Fig.24 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0284] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0285] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0286] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.

[0287] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0288] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0289] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A bullet screen playback method, It is characterized in that The method comprises: In the process of playing a clipped video obtained based on clipping a target video, the video time corresponding to the video segment to be played in the clipped video is obtained; based on the video time corresponding to the video segment to be played and a first time number mapping relationship, the target code number of the video segment to be played is determined; the first time number mapping relationship is a mapping relationship between the video time and the code number of the clipped video generated based on the segment difference information between the target video and the clipped video after the target video is clipped; the code number is a number obtained by logically encoding each video segment in the target video before the target video is clipped; Based on the first numbered barrage mapping relationship corresponding to the clipped video, determine the target barrage identifier associated with the target coding number, and select the target barrage text associated with the target barrage identifier in the barrage text set of the target video; the target barrage text is the barrage text of the target video and sent at the video time corresponding to the matched video clip; the first numbered barrage mapping relationship is the mapping relationship between the coding number and the barrage identifier; When the video segment to be played is played, the target bullet screen text is played as the bullet screen text of the video segment to be played.

2. The method according to claim 1, It is characterized in that The step of selecting a target bullet-screen text associated with the target bullet-screen identifier from the bullet-screen text set of the target video includes: Obtaining a video identifier of the target video; Searching for a bullet text set corresponding to the target video according to the video identifier; A target bullet-screen text associated with the target bullet-screen identifier is selected from the bullet-screen text set.

3. The method according to claim 1, It is characterized in that The method further comprises: In each video segment in the target video that matches the clipped video, determine the number of bullet screen interaction operations corresponding to each of the matching video segments; Determining a recommended video segment from the matched video segments according to the number of barrage interaction operations; During the process of playing the edited video, the recommended video clip is recommended.

4. The method according to claim 1, It is characterized in that The method further comprises: Obtaining a second numbered bullet screen mapping relationship corresponding to the target video; the second numbered bullet screen mapping relationship is used to represent a mapping relationship between a coding number of each video segment in the target video and a bullet screen text of the target video; After clipping the target video to obtain the clipped video, determining segment difference information between the clipped video and the target video; The second-numbered barrage mapping relationship is updated based on the segment difference information to obtain the first-numbered barrage mapping relationship.

5. The method according to claim 4, It is characterized in that The method further comprises: Obtaining a time barrage mapping relationship corresponding to the target video; the time barrage mapping relationship is used to represent a mapping relationship between the video time corresponding to each video clip in the target video and the barrage text of the target video; The second numbered barrage mapping relationship is established based on the time barrage mapping relationship, the video time of each video clip in the target video and the corresponding coding number.

6. The method according to claim 4, It is characterized in that The updating the second numbered bullet screen mapping relationship based on the segment difference information to obtain the first numbered bullet screen mapping relationship includes: Obtaining a second time number mapping relationship corresponding to the target video; the second time number mapping relationship is used to represent a mapping relationship between a video time corresponding to each video segment in the target video and a coding number of each video segment in the target video; The second time number mapping relationship is updated based on the segment difference information to obtain a first time number mapping relationship corresponding to the edited video; the first time number mapping relationship is used to represent a mapping relationship between a video time corresponding to each video segment in the edited video and a coding number of each video segment in the edited video; The second-numbered barrage mapping relationship is updated based on the first time-numbered mapping relationship to obtain the first-numbered barrage mapping relationship.

7. The method according to claim 6, It is characterized in that The method further comprises: Dividing the target video into segments to obtain video segments; Performing logical coding on each video segment in the target video to obtain a coding number of each video segment in the target video; A mapping relationship is established between the obtained code number and the video time corresponding to each video clip in the target video to obtain the second time number mapping relationship.

8. The method according to any one of claims 1 to 7, It is characterized in that The edited video includes: a video obtained by deleting some video clips in the target video, or a video obtained by adding some video clips to the target video, or a video obtained by deleting some video clips in the target video and adding other some video clips to the target video, or a video obtained by editing some or all of the video clips in the target video.

9. The method according to any one of claims 1 to 7, It is characterized in that The method further comprises: Determining the number of bullet comments in the bullet comment text of each video segment in the target video; When the number of barrages corresponding to the matched video clip is greater than the number of barrages corresponding to other video clips in the target video, the information to be embedded is obtained; When the video segment to be played is played, the information to be embedded is inserted into the video segment to be played.

10. A bullet screen playback device, It is characterized in that The device comprises: A coding number acquisition module is used to acquire the video time corresponding to the video segment to be played in the clipped video during the process of playing the clipped video obtained based on the clipped target video; determine the target coding number of the video segment to be played based on the video time corresponding to the video segment to be played and the first time number mapping relationship; the first time number mapping relationship is the mapping relationship between the video time and the coding number of the clipped video generated based on the segment difference information between the target video and the clipped video after the target video is clipped; the coding number is the number obtained by logically encoding each video segment in the target video before the target video is clipped; A barrage text acquisition module is used to determine the target barrage identifier associated with the target coding number based on the first numbered barrage mapping relationship corresponding to the clipped video, and select the target barrage text associated with the target barrage identifier in the barrage text set of the target video; the target barrage text is the barrage text of the target video and is sent at the video time corresponding to the matched video clip; the first numbered barrage mapping relationship is the mapping relationship between the coding number and the barrage identifier; The playing module is used to play the target bullet screen text as the bullet screen text of the video segment to be played when the video segment to be played is played.

11. The device according to claim 10, It is characterized in that The bullet text acquisition module is also used for: Obtaining a video identifier of the target video; Searching for a bullet text set corresponding to the target video according to the video identifier; A target bullet-screen text associated with the target bullet-screen identifier is selected from the bullet-screen text set.

12. The device according to claim 10, It is characterized in that The device also includes a segment recommendation module, which is used to: In each video segment in the target video that matches the clipped video, determine the number of bullet screen interaction operations corresponding to each of the matching video segments; Determining a recommended video segment from the matched video segments according to the number of barrage interaction operations; During the process of playing the edited video, the recommended video clip is recommended.

13. The device according to claim 10, It is characterized in that The device also includes a mapping relationship generating module, which is used to: Obtaining a second numbered bullet screen mapping relationship corresponding to the target video; the second numbered bullet screen mapping relationship is used to represent a mapping relationship between a coding number of each video segment in the target video and a bullet screen text of the target video; After clipping the target video to obtain the clipped video, determining segment difference information between the clipped video and the target video; The second-numbered barrage mapping relationship is updated based on the segment difference information to obtain the first-numbered barrage mapping relationship.

14. The device according to claim 13, It is characterized in that The mapping relationship generating module is further used for: Obtaining a time barrage mapping relationship corresponding to the target video; the time barrage mapping relationship is used to represent a mapping relationship between the video time corresponding to each video clip in the target video and the barrage text of the target video; The second numbered barrage mapping relationship is established based on the time barrage mapping relationship, the video time of each video clip in the target video and the corresponding coding number.

15. The device according to claim 13, It is characterized in that The mapping relationship generation module is also used for: Obtaining a second time number mapping relationship corresponding to the target video; the second time number mapping relationship is used to represent a mapping relationship between a video time corresponding to each video segment in the target video and a coding number of each video segment in the target video; The second time number mapping relationship is updated based on the segment difference information to obtain a first time number mapping relationship corresponding to the edited video; the first time number mapping relationship is used to represent a mapping relationship between a video time corresponding to each video segment in the edited video and a coding number of each video segment in the edited video; The second-numbered barrage mapping relationship is updated based on the first time-numbered mapping relationship to obtain the first-numbered barrage mapping relationship.

16. The device according to claim 15, It is characterized in that The mapping relationship generating module is used for: Dividing the target video into segments to obtain video segments; Performing logical coding on each video segment in the target video to obtain a coding number of each video segment in the target video; A mapping relationship is established between the obtained code number and the video time corresponding to each video clip in the target video to obtain the second time number mapping relationship.

17. The device according to any one of claims 11 to 16, It is characterized in that The edited video includes: a video obtained by deleting some video clips in the target video, or a video obtained by adding some video clips to the target video, or a video obtained by deleting some video clips in the target video and adding other some video clips to the target video, or a video obtained by editing some or all of the video clips in the target video.

18. The device according to any one of claims 11 to 16, It is characterized in that The device also includes an information implantation module, which is used to: Determining the number of bullet comments in the bullet comment text of each video segment in the target video; When the number of barrages corresponding to the matched video clip is greater than the number of barrages corresponding to other video clips in the target video, the information to be embedded is obtained; When the video segment to be played is played, the information to be embedded is inserted into the video segment to be played.

19. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.

20. A computer-readable storage medium storing a computer program, It is 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 9 are implemented.

Citation Information

Patent Citations

  • Live broadcast video clipping method and device associated with bullet screens

    CN106060644A

  • Bullet screen information display method and device, computer equipment and storage medium

    CN112533051A