Data processing method, device and equipment and computer readable storage medium

By identifying and displaying comment data between similar videos in video applications, the problem of low video display effect and comment data efficiency is solved, and a richer user experience and information sharing is achieved.

CN120277237APending Publication Date: 2025-07-08TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410030395.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-05
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

In existing video applications, the display effect of video content and the display efficiency of comment data are low, and the content similarity relationship between videos cannot be effectively utilized.

Method used

By obtaining the content similarity relationship between the first video and the second video, if the first video has comment sharing permission, the comment data of the second video is displayed when the first video is output, the video features are identified and the similarity is determined, so as to realize the correlation display of the comment data.

Benefits of technology

It improves the display effect of videos and the display efficiency of comment data, enhances the user experience, and enriches the viewer's information and views by sharing comment data between similar videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120277237A_ABST
    Figure CN120277237A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method, apparatus and device, and a computer readable storage medium. The method comprises the steps of obtaining a first video; if a content similarity relationship exists between the first video and the second video and the first video has a comment sharing permission for the comment data, displaying the comment data when the first video is output; the comment data is published for the second video. By adopting the method, the display effect of the first video can be improved, and the display efficiency of the comment data can also be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technologies, and in particular, to a data processing method, apparatus, device, and computer-readable storage medium. Background Art

[0002] With the continuous development of Internet technologies, various applications have emerged like mushrooms after rain, such as video applications that can enrich people's spare time.

[0003] People can output videos through video applications on terminal devices. However, in the prior art, video applications can only display content associated with the currently output video. Obviously, the existing display content reduces the display effect of the video. Summary of the Invention

[0004] Embodiments of this application provide a data processing method, apparatus, device, and computer-readable storage medium, which can not only improve the display effect of the first video but also improve the display efficiency of comment data.

[0005] On the one hand, embodiments of this application provide a data processing method, including:

[0006] Obtain a first video;

[0007] If there is a content similarity relationship between the first video and a second video, and the first video has comment sharing permission for comment data, then when the first video is output, display the comment data; the comment data is published for the second video.

[0008] On the one hand, embodiments of this application provide a data processing method, including:

[0009] Obtain a first video;

[0010] If there is a content similarity relationship between the first video and a second video, then obtain the comment data corresponding to the second video in a database;

[0011] If the first video has comment sharing permission for the comment data, then add the comment data to the comment data set of the first video; the comment data set added with the comment data is used to instruct a first terminal device to display the comment data when the first video is output.

[0012] On the one hand, embodiments of this application provide a data processing apparatus, including:

[0013] An obtaining module, configured to obtain a first video;

[0014] A display module, which is configured to display comment data when outputting the first video if there is a content similarity relationship between the first video and the second video, and the first video has comment sharing permission for the comment data; the comment data is published for the second video.

[0015] In a possible implementation manner, when the display module outputs the first video, it displays comment data for performing the following operations:

[0016] Output the first video; the first video includes a first video frame;

[0017] In the first video frame, display the comment data; there is a content similarity relationship between the first video frame and the second video frame; the second video frame refers to the video frame in the second video where the comment data is published.

[0018] In a possible implementation manner, when the display module outputs the first video, it displays comment data for performing the following operations:

[0019] When outputting the first video, in response to a trigger operation on a comment display control, display a first comment data list corresponding to the first video;

[0020] Display the comment data in the first comment data list.

[0021] In a possible implementation manner, the display module is further configured to perform the following operations:

[0022] In a comment details area corresponding to the comment data, display comment source information of the comment data;

[0023] Wherein, the comment source information includes the publishing moment when the comment data is published, a first publishing object identifier, and video information for characterizing the second video; the first publishing object identifier refers to the object identifier of the object that publishes the comment data of the second video.

[0024] In a possible implementation manner, the acquisition module is further configured to perform the following operations:

[0025] When outputting the second video, in response to a trigger operation on a comment input control, acquire the comment data;

[0026] In response to a publishing operation on the comment data, publish the comment data for the second video;

[0027] When the comment data is in a successful publishing state, in response to a sharing setting operation on the comment data, determine a video set that has comment sharing permission for the comment data; wherein, if the video set includes the first video, the first video has comment sharing permission for the comment data.

[0028] In a possible implementation manner, the video set includes a third video;

[0029] The obtaining module responds to the sharing setting operation for the comment data, determines a set of videos that have the comment sharing permission for the comment data, and is used to perform the following operations:

[0030] In the video application, display the comment sharing setting information corresponding to the comment data; the comment sharing setting information is used to indicate that the third video is published by the video platform corresponding to the video application;

[0031] If responding to the confirmation operation for the comment sharing setting information, determine that the third video has the comment sharing permission for the comment data.

[0032] In a possible implementation manner, the obtaining module responds to the sharing setting operation for the comment data, determines a set of videos that have the comment sharing permission for the comment data, and is used to perform the following operations:

[0033] Display a comment management control;

[0034] Respond to the triggering operation for the comment management control, and display a second comment data list corresponding to the second publishing object identifier; the second publishing object identifier refers to the object identifier of the object that publishes the comment data of the second video; the second comment data list includes the comment data;

[0035] In the second comment data list, respond to the selection operation for the comment data, and display a shared video setting area corresponding to the comment data;

[0036] Respond to the video setting operation for the shared video setting area, and determine the video set by the setting operation as the set of videos that have the comment sharing permission for the comment data.

[0037] One aspect of the embodiments of the present application provides a data processing device, including:

[0038] An obtaining module, configured to obtain a first video;

[0039] The obtaining module is further configured to, if there is a content similarity relationship between the first video and the second video, obtain the comment data corresponding to the second video in the database;

[0040] An adding module, configured to, if the first video has the comment sharing permission for the comment data, add the comment data to the comment data set of the first video; the comment data set added with the comment data is used to indicate that when the first terminal device outputs the first video, the comment data is displayed.

[0041] In a possible implementation manner, the obtaining module is further configured to perform the following operations:

[0042] Determine the video similarity between the first video and the second video;

[0043] If the video similarity is equal to or greater than the video similarity threshold, it is determined that there is a content similarity relationship between the first video and the second video;

[0044] If the video similarity is less than the video similarity threshold, it is determined that there is no content similarity relationship between the first video and the second video.

[0045] In a possible implementation, the obtaining module determines the video similarity between the first video and the second video for performing the following operations:

[0046] Determine the first video feature of the first video and the second video feature of the second video;

[0047] Determine the feature similarity between the first video feature and the second video feature, and determine the feature similarity as the video similarity between the first video and the second video.

[0048] In a possible implementation, the obtaining module determines the first video feature of the first video for performing the following operations:

[0049] According to the frame extraction frequency, extract A video frames from the first video; A is a positive integer;

[0050] Obtain an image recognition model and input the A video frames into the image recognition model;

[0051] Through the image recognition model, perform recognition processing on the A video frames to obtain A video frame features of the A video frames; wherein, a video frame feature is generated by the image recognition model for performing recognition processing on a video frame;

[0052] Perform feature fusion processing on the A video frame features to obtain the first video feature of the first video.

[0053] In a possible implementation, the obtaining module is further configured to perform the following operations:

[0054] If the third video is released by the video platform, generate comment sharing setting information for the comment data;

[0055] Obtain the release object identifier b corresponding to the comment data; the release object identifier b refers to the object identifier of the object that releases the comment data of the second video;

[0056] Send the comment sharing setting information to the release object identifier b, so that the second terminal device corresponding to the release object identifier b displays the comment sharing setting information in the video application corresponding to the video platform;

[0057] If the second terminal device responds to the confirmation operation for the comment sharing setting information, obtain the sharing permission confirmation information sent by the second terminal device;

[0058] Based on the sharing permission confirmation information, it is determined that the third video has the comment sharing permission for the comment data; wherein, if the third video includes the first video, the first video has the comment sharing permission for the comment data.

[0059] In a possible implementation, the obtaining module is further configured to perform the following operations:

[0060] Obtain a second video in the database and extract the comment data corresponding to the second video;

[0061] If the comment data does not have a video frame binding relationship, then associate and store the comment data and the second video in the database;

[0062] If the comment data has a video frame binding relationship, then according to the video frame binding relationship, obtain the comment video frame in the second video, and associate and store the comment data and the comment video frame in the database; the comment video frame refers to the video frame that can display the comment data.

[0063] Then in a possible implementation, the adding module adds the comment data to the comment data set of the first video for performing the following operations:

[0064] If the comment data has a video frame binding relationship, then in the database, obtain the comment video frame associated and stored with the comment data;

[0065] Generate a video frame identifier for indicating the comment video frame, and add the comment data carrying the video frame identifier to the comment data set of the first video; the comment data set including the comment data carrying the video frame identifier is used to indicate that when the first terminal device outputs the first video to the comment video frame corresponding to the video frame identifier, the comment data is displayed.

[0066] On the one hand, the present application provides a computer device, including: a processor, a memory, and a network interface;

[0067] The above-mentioned processor is connected to the above-mentioned memory and the above-mentioned network interface. Among them, the above-mentioned network interface is used to provide a data communication function, the above-mentioned memory is used to store a computer program, and the above-mentioned processor is used to call the above-mentioned computer program so that the computer device executes the method in the embodiment of the present application.

[0068] On the one hand, the embodiment of the present application provides a computer-readable storage medium. The computer program is stored in the computer-readable storage medium, and the computer program is suitable for being loaded and executed by a processor to execute the method in the embodiment of the present application.

[0069] An embodiment of the present application provides a computer program product on the one hand. The computer program product includes a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the method in the embodiment of the present application.

[0070] In the embodiment of the present application, a computer device can obtain a first video. Among them, if there is a content similarity relationship between the first video and the second video, and the first video has the comment sharing permission for the comment data, then when outputting the first video, the computer device can display the comment data. The comment data is published for the second video. As can be seen from the above, the first video and the second video are independent videos. Therefore, by displaying the comment data published for the second video when outputting the first video, not only can the display effect of the first video be improved, but also the display efficiency of the comment data can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0072] Figure 1 is a schematic diagram of a system architecture provided by an embodiment of the present application;

[0073] Figure 2 is a schematic diagram of a data processing scenario provided by an embodiment of the present application Figure 1 ;

[0074] Figure 3 is a schematic diagram of a data processing scenario provided by an embodiment of the present application Figure 2 ;

[0075] Figure 4 is a flowchart of a data processing method provided by an embodiment of the present application Figure 1 ;

[0076] Figure 5 is a schematic diagram of a data processing scenario provided by an embodiment of the present application Figure 3 ;

[0077] Figure 6 is a schematic diagram of a data processing scenario provided by an embodiment of the present application Figure 4 ;

[0078] Figure 7 is a schematic diagram of a data processing scenario provided by an embodiment of the present applicationFigure 5 ;

[0079] Figure 8 is a schematic diagram of a data processing scenario provided by an embodiment of the present application Figure 6 ;

[0080] Figure 9 is a flowchart of a data processing method provided by an embodiment of the present application Figure 2 ;

[0081] Figure 10 is a schematic diagram of a data processing scenario provided by an embodiment of the present application Figure 7 ;

[0082] Figure 11 is a flowchart of a data processing method provided by an embodiment of the present application Figure 3 ;

[0083] Figure 12 is a schematic diagram of a data processing scenario provided by an embodiment of the present application Figure 8 ;

[0084] Figure 13 is an interaction schematic diagram of a data processing method provided by an embodiment of the present application;

[0085] Figure 14 is a structural schematic diagram of a data processing device provided by an embodiment of the present application Figure 1 ;

[0086] Figure 15 is a structural schematic diagram of a data processing device provided by an embodiment of the present application Figure 2 ;

[0087] Figure 16 is a structural schematic diagram of a computer device provided by an embodiment of the present application. Detailed implementation manners

[0088] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0089] For ease of understanding, relevant concepts will be elaborated first.

[0090] Artificial Intelligence (AI) is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a way similar to human intelligence. Artificial intelligence also studies the design principles and implementation methods of various intelligent machines, enabling machines to have the functions of perception, reasoning, and decision-making.

[0091] Artificial intelligence technology is an interdisciplinary subject with a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. The software technologies of artificial intelligence mainly include several major directions such as computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning, autonomous driving, and intelligent transportation.

[0092] Computer Vision (CV) is a science that studies how to make machines "see". More specifically, it refers to using cameras and computers to replace human eyes for machine vision such as target recognition and measurement, and further performing graphics processing to make the computer process images that are more suitable for human eyes to observe or be transmitted to instruments for detection. As a scientific discipline, computer vision studies related theories and technologies and attempts to build artificial intelligence systems that can obtain information from images or multi-dimensional data.

[0093] Computer vision technology usually includes technologies such as image processing, image recognition, image semantic understanding, image retrieval, Optical Character Recognition (OCR), video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous localization and mapping, autonomous driving, intelligent transportation, etc., and also includes common biometric recognition technologies such as face recognition and fingerprint recognition. In the embodiments of this application, computer vision technology can be used to determine the video similarity between the first video and the second video.

[0094] Machine Learning (ML) is an interdisciplinary field that involves multiple disciplines such as probability theory, statistics, approximation theory, convex analysis, and algorithm complexity theory. It specifically studies how computers can simulate or implement human learning behaviors to acquire new knowledge or skills and reorganize the existing knowledge structure to continuously improve their own performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent, and its applications cover all fields of artificial intelligence. Machine learning and deep learning usually include technologies such as artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and rote learning. In the embodiments of this application, the image recognition model is an AI model based on machine learning and can be used to generate the first video features of the first video and the second video features of the second video.

[0095] Please refer to Figure 1 , Figure 1 which is a schematic diagram of a system architecture provided by the embodiments of this application. As Figure 1 shown, the system may include a business server 100 and a cluster of terminal devices. The cluster of terminal devices may include: terminal devices 200a, terminal devices 200b, terminal devices 200c,..., terminal devices 200n. It can be understood that the above system may include one or more terminal devices, and this application does not limit the number of terminal devices.

[0096] Among them, there may be communication connections between the terminal device clusters. For example, there is a communication connection between terminal device 200a and terminal device 200b, and there is a communication connection between terminal device 200a and terminal device 200c. At the same time, any terminal device in the cluster of terminal devices may have a communication connection with the business server 100. For example, there is a communication connection between terminal device 200a and the business server 100. Among them, the above communication connection does not limit the connection method and can be directly or indirectly connected through a wired communication method, or can be directly or indirectly connected through a wireless communication method, or can also be connected through other methods, and this application does not make any restrictions here.

[0097] It should be understood that each terminal device in the cluster of terminal devices as Figure 1 shown may be installed with an application client. When the application client runs on each terminal device, it can respectively perform data interaction with the business server 100 as Figure 1 shown, that is, the above communication connection. Among them, the application client may be an application client with video output functions such as video applications, convenient life applications, payment applications, financial management applications, game applications, shopping applications, novel applications, camera applications, browsers, etc.

[0098] Among them, the application client can be an independent client or an embedded sub-client integrated in a certain client (such as a video client and a travel client, etc.), which is not limited here. Taking the video application as an example, the service server 100 can be a set of multiple servers including the background server corresponding to the video application, the data processing server, etc. Therefore, each terminal device can transmit data with the service server 100 through the application client corresponding to the video application. For example, the terminal device 200a can upload the comment data published for the second video to the service server 100 through the application client of the video application. The service server 100 can identify the comment data and then add the comment data to the comment data set corresponding to the first video that has a content similarity relationship with the second video.

[0099] It can be understood that in the specific implementation manner of this application, data related to user information (such as the publishing object identifier and comment data, etc.) is involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent needs to be obtained, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards in the relevant regions.

[0100] For the convenience of subsequent understanding and description, an embodiment of this application can Figure 1 select a terminal device as the computer device in the terminal device cluster shown. For example, the terminal device 200a is used as the computer device. The terminal device 200a obtains the first video in the video client. Among them, the video content of the first video is not limited in the embodiment of this application and can be determined according to the actual application scenario.

[0101] When receiving a comment query instruction for the first video, the terminal device 200a can send a comment acquisition request for the first video to the service server 100 through the video client. The comment acquisition request refers to a request for acquiring the comment data set corresponding to the first video. Therefore, after receiving the comment acquisition request sent by the terminal device 200a, the service server 100 can acquire the comment data published for the first video in the database. For the convenience of distinction, the embodiment of this application refers to the comment data published for the first video as the original comment data of the first video. For example, when the object a is watching the first video, the comment data b is confirmed and published for the first video, and the comment data b belongs to the original comment data of the first video.

[0102] Further, the service server 100 may obtain a second video from the database. In the embodiments of the present application, the first video and the second video are independent videos. For example, the first video may be published by a first object identifier in the video client, and the second video may be published by a second object identifier different from the first object identifier in the video client. For example, the first video may be published by the first object identifier at a first moment in the video client, and the second video may be published by the first object identifier at a second moment different from the first moment. The video content of the first video may be the same as or different from the video content of the second video.

[0103] The service server 100 determines whether there is a content similarity relationship between the first video and the second video. If there is a content similarity relationship between the first video and the second video, the service server 100 obtains the comment data corresponding to the second video from the database, which can be understood as the comment data published for the second video. For example, when the object c watches the second video, comment data d is confirmed and published for the second video. Further, the service server 100 determines whether the first video has the comment sharing permission for the comment data corresponding to the second video. If the first video has the comment sharing permission for the comment data corresponding to the second video, the above-mentioned original comment data and the comment data published for the second video for which the first video has the comment sharing permission may be determined as the comment data set of the first video. For the sake of convenience of distinction, in the embodiments of the present application, the above-mentioned comment data published for the second video is referred to as the associated comment data of the first video. For example, the above-mentioned comment data d belongs to the associated comment data of the first video.

[0104] In summary, the comment data set corresponding to the first video may include the comment data published for the first video (i.e., the original comment data), and may also include the comment data published for the second video (i.e., the associated comment data).

[0105] The service server 100 returns the comment data set of the first video to the terminal device 200a. Therefore, when the terminal device 200a outputs the first video, it can not only display the original comment data of the first video, but also display the associated comment data of the first video, that is, the comment data published for the second video.

[0106] In an embodiment of the present application, a computer device may obtain a first video. Among them, if there is a content similarity relationship between the first video and the second video, and the first video has the comment sharing permission for the comment data, then when outputting the first video, the computer device may display the comment data; the comment data is published for the second video. As can be seen from the above, the first video and the second video are independent videos. Therefore, by displaying the comment data published for the second video when outputting the first video, not only can the display effect of the first video be improved, but also the display efficiency of the comment data can be improved.

[0107] It should be noted that the above business server 100, terminal device 200a, terminal device 200b, terminal device 200c... terminal device 200n can all be blockchain nodes in the blockchain network. The data described throughout the text (such as the publishing object identifier and the comment data published by the publishing object identifier) can be stored. The storage method can be that the blockchain node generates a block according to the data and adds the block to the blockchain for storage.

[0108] Blockchain is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. It is mainly used to sort data in chronological order, encrypt it into a ledger, make it unforgeable and tamper-proof, and at the same time, data verification, storage, and update can be carried out. Blockchain is essentially a decentralized database. Each node in this database stores an identical blockchain. The blockchain network can classify nodes into core nodes, data nodes, and light nodes. Core nodes, data nodes, and light nodes together form blockchain nodes. Among them, core nodes are responsible for the consensus of the entire blockchain network. That is to say, core nodes are consensus nodes in the blockchain network.

[0109] For the process of writing transaction data in the blockchain network into the ledger, it can be that a data node or a light node in the blockchain network obtains the transaction data and transmits the transaction data in the blockchain network (that is, the nodes transmit it in the way of a relay baton) until the consensus node receives the transaction data. The consensus node then packs the transaction data into a block, performs consensus on the block, and writes the transaction data into the ledger after the consensus is completed. Here, the publishing object identifier and the comment data published by the publishing object identifier are used as examples of transaction data. After the business server 100 (blockchain node) performs consensus on the transaction data, it generates a block according to the transaction data and stores the block in the blockchain network; for the reading of the transaction data (that is, the publishing object identifier and the comment data published by the publishing object identifier), the blockchain node can obtain the block containing the transaction data in the blockchain network, and further obtain the transaction data in the block.

[0110] It is understandable that the method provided in the embodiments of the present application can be executed by a computer device, which includes but is not limited to a terminal device or a business server. Among them, the business server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud databases, cloud services, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal device includes but is not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, etc. Among them, the terminal device and the business server can be directly or indirectly connected by wired or wireless means, and the embodiments of the present application do not limit this here.

[0111] The above system architecture can be applied to scenarios such as video understanding, comment data understanding, and comment data display. Specific business scenarios will not be listed one by one here.

[0112] Further, please refer to Figure 2 , Figure 2 which is a schematic diagram of a data processing scenario provided by the embodiments of the present application. Figure 1 The embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, intelligent transportation, assisted driving, etc. Among them, the implementation process of this data processing scenario can be carried out in the server, or in the terminal device, or in the interaction between the terminal device and the server, and this is not limited here. For the convenience of narration and understanding, the embodiments of the present application are described by taking the implementation in the terminal device as an example. Among them, the terminal device can be any terminal device in the terminal device cluster corresponding to the above Figure 1 embodiment, Figure 2 and the terminal device 200c is taken as an example for narration.

[0113] As Figure 2 shown, there is a binding relationship between the service object 20a and the terminal device 200c. The terminal device 200c can install an application client with a video playback (i.e., video output) function. The service object 20a can log in its own object identifier in the application client, which is called the first publishing object identifier 20g in the embodiments of the present application, such as Figure 2 the d52***54fv exemplified in

[0114] The terminal device 200c can obtain a second video, such as Figure 2 the video 2a exemplified in Figure 2As shown, on the page of the output video 2a, the terminal device 200c may include a comment input control 20c, and a prompt message may be displayed in the comment input control 20c. Figure 2 Taking "Share the bullet comments" as an example of the prompt message in the comment input control 20c.

[0115] When the video 2a is output to 1 minute and 52 seconds, the terminal device 200c displays a video frame 20b, which can be understood as the second video frame in the embodiments of the present application. When the video frame 20b is displayed, the service object 20a triggers the comment input control 20c, and the terminal device 200c may pause the playback of the video 2a. In response to the trigger operation for the comment input control 20c, a comment acquisition area 20d and a comment time area 20f are displayed. In the embodiments of the present application, the display position of the comment acquisition area 20d is not limited. It can be displayed as a floating layer on the video frame 20b, or it may not overlap with the display position of the video frame 20b, and can be set according to the actual application scenario. Similarly, in the embodiments of the present application, the display position of the comment time area 20f is not limited and can be set according to the actual application scenario.

[0116] The service object 20a inputs comment data for the video 2a (as the second video in the embodiments of the present application) in the comment acquisition area 20d. Figure 2 Taking "This game is really interesting" as an example of the comment data, the system time of the terminal device 200c is input in the comment time area 20f. Figure 2 Taking 2023.12.14 12:00:07 as an example. At 2023.12.14 12:00:07, the service object 20a triggers the publish control 20e, then the terminal device 200c responds to the trigger operation for the publish control 20e, that is, responds to the publish operation for the comment data "This game is really interesting", and publishes the comment data "This game is really interesting" for the video 2a.

[0117] The specific process of the terminal device 200c publishing the comment data "This game is really interesting" for the video 2a may include the following: The terminal device 200c responds to the trigger operation for the publish control 20e and generates comment details information 20h. Figure 2 Taking the comment details information 20h as an example of "At 2023-12-14 12:00:07, d52***54fv published a bullet comment of 'This game is really interesting' for the second video frame of the video 2a". Further, the terminal device 200c sends the comment details information 20h to the service server 100 corresponding to the application client. According to the comment details information 20h, the service server 100 may generate a comment details list 20i, as Figure 2 shown, the comment details list 20i includes video information, object identification, comment content, publish time, and the bound video frame.

[0118] Among them, the video information in the comment details list 20i refers to the information that can uniquely identify a video. The embodiments of the present application do not limit the content of the video information, which can be set according to the actual application scenario. Figure 2 Taking video 2a as an example of the second video. The object identifier in the comment details list 20i refers to the object identifier for publishing comment data for the second video, which is equivalent to the first publishing object identifier in the embodiments of the present application. Figure 2 Taking d52***54fv as an example. The comment content in the comment details list 20i refers to the content of the comment data. Figure 2 Taking "This game is really interesting" as an example. The publishing time in the comment details list 20i refers to the time when the comment data is published, which is equivalent to the publishing moment in the embodiments of the present application. Figure 2 Taking 2023-12-14 12:00:07 as an example. The bound video frame in the comment details list 20i refers to the video frame bound by the comment data in the second video, which is equivalent to the comment video frame in the embodiments of the present application. Figure 2 Taking video frame 20b as an example, the bound video frame is non-essential information because the comment data may not have a video frame binding relationship. For specific details, please refer to the description in the corresponding embodiments below. Figure 4 The corresponding description in the embodiments.

[0119] Furthermore, the service server 100 can persistently store the comment details list 20i, for example, storing it in the database 20j. When the comment data "This game is really interesting" is successfully published, it can be understood that the comment data "This game is really interesting" is successfully added to the comment data set corresponding to video 2a. The terminal device 200c can continue to play video 2a, as Figure 2 shown. The terminal device 200c can display the comment display area 201d on video frame 20b, and the comment data "This game is really interesting" published by the service object 20a is displayed in the comment display area 201d. The embodiments of the present application do not limit the display range (such as display duration) of the comment data, which can be set according to the actual application scenario. For example, if the display range of the comment data is 2 seconds, the comment data will be displayed at 1 minute and 52 seconds and 1 minute and 53 seconds of video 2a; for example, if the display range of the comment data is 3 frames, starting from video frame 20b, the comment data will be displayed within 3 consecutive video frames including the starting video frame.

[0120] Figure 2 It mainly describes that the service object 20a confirms the publication of comment data with a video frame binding relationship for the second video ( Figure 2 taking video 2a as an example). It can also be understood that the terminal device 200c bound with the object identifier d52***54fv publishes comment data with a video frame binding relationship for the second video, that is, Figure 2"This competition is really interesting." Figure 2 It is example comment data of bullet screens. A bullet screen refers to a comment published (or viewed by others) by a business object at a specific point on the timeline of a streaming media. During the playback of the streaming media, a large amount of comment information may appear; bullet screens can significantly increase the stickiness between different business objects watching the video, enabling different viewers to obtain information and resonate with each other.

[0121] Please also refer to Figure 2 and Figure 3 , Figure 3 is a schematic diagram of a data processing scenario provided by an embodiment of this application. Figure 2 . As Figure 3 shown, there is a binding relationship between the business object 201k and the terminal device 200a. The terminal device 200a can install the application client installed on the terminal device 200c. The business object 201k can log in with its own object identifier 20k in this application client. Figure 3 Taking 2c4****5jhm as an example.

[0122] The terminal device 200a can obtain the first video. Figure 3 Taking video 2b as an example. In the embodiments of this application, the first video and the second video are independent videos. For example, the first video is published at the first moment, and the second video is published at the second moment, and the first moment is different from the second moment; the embodiments of this application do not limit the similarity between the first video and the second video, which can be determined according to the actual application scenario. For example, the first video and the second video are completely different, for example, the first video belongs to the second video, for example, there are some video frames in the first video that are the same as some video frames in the second video.

[0123] Please refer to Figure 3 again. The terminal device 200a can output video 2b (described as the first video for the sake of narration and understanding). Figure 3 For the sake of example, the video content of the first video (such as Figure 3 video 2b in Figure 2 ) is the same as the video content of the second video (such as Figure 11 video 2a in

[0124] That is, the video frames in the first video are the same as the video frames in the second video. Therefore, there is a content similarity relationship between the first video and the second video. The embodiments of this application do not describe the determination process of the content similarity relationship between the first video and the second video for the time being. Please refer to the description in the corresponding embodiments below Figure 3 If the video 2b in Figure 2The example comment data "This game is really interesting" has comment sharing permissions. When the terminal device 200a outputs the video 2b to the video frame 20b, it displays the comment data, such as Figure 3 "This game is really interesting" in it. The embodiments of the present application will not describe in detail the process of determining that the first video has comment sharing permissions for the comment data. Please refer to the description in the embodiments corresponding to Figure 9 below. Among them, Figure 3 the video frame 20b in it can be understood as the first video frame in the embodiments of the present application, Figure 2 and the video frame 20b in it can be understood as the second video frame in the embodiments of the present application. According to the above example, that is, the video content of the first video is the same as the video content of the second video. Then in Figure 2 and Figure 3 , the first video frame is the same as the second video frame. In actual applications, the first video frame and the second video frame may not be the same, but the first video frame and the second video frame are similar, that is, there is a content similarity relationship between the first video frame and the second video frame.

[0125] Furthermore, if the service object 201k triggers Figure 3 the example comment data "This game is really interesting" shown in it, the terminal device 200a can respond to the trigger operation for the comment data "This game is really interesting" and display the comment details area 20m corresponding to the comment data "This game is really interesting"; as Figure 3 shown, the comment details area 20m can display the comment source information of the comment data "This game is really interesting". The comment source information may include the release time when the comment data was published, the first release object identifier, and the video information used to represent the second video. Figure 3 The example release time is 2023.12.14 12:00:07, and the example first release object identifier is d52***54fv, that is Figure 2 the object identifier bound to the terminal device 200c in Figure 3 , and the example video information of the second video is video 2a. Among them, the display position of the comment details area 20m can be pasted on the first video frame in the form of a floating window (such as Figure 3 the video frame 20b in it), or it can be independent of the first video frame, that is, the display position of the first video frame does not overlap with the display position of the comment details area 20m. The embodiments of the present application do not limit this and can be set according to the actual application scenario.

[0126] Figure 2 describes that the service object 20a passes the terminal device 200c bound with the object identifier d52***54fv for the second video (that is Figure 2The video 2a) in confirms the release of the comment data "This game is really interesting". This comment data "This game is really interesting" can be understood as the original comment data of the second video and the associated comment data of the first video; Figure 3 describes that the business object 201k watches the first video (i.e., Figure 3 the video 2b) in ) through the terminal device 200a bound with the object identifier 2c4****5jhm. When the terminal device 200a outputs the first video, it can display the associated comment data of the first video, that is, Figure 3 the comment data "This game is really interesting" in .

[0127] In the embodiments of the present application, the computer device can obtain the first video. Among them, if there is a content similarity relationship between the first video and the second video, and the first video has the comment sharing permission for the comment data, then when outputting the first video, the computer device can display the comment data; the comment data is published for the second video. As can be seen from the above, the first video and the second video are independent videos. Therefore, by displaying the comment data published for the second video when outputting the first video, not only can the display effect of the first video be improved, but also the display efficiency of the comment data can be improved.

[0128] It can be understood that Figure 2 and Figure 3 the interfaces and controls shown in are only some reference presentation forms. In the actual business scenario, developers can make relevant designs according to the product requirements. The embodiments of the present application do not limit the specific forms of the interfaces and controls involved.

[0129] Furthermore, please refer to Figure 4 Figure 4 which is a flowchart of a data processing method provided by the embodiments of the present application. Figure 1 The embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, intelligent transportation, assisted driving, autonomous driving, etc. This data processing method can be executed by a business server (for example, the business server 100 shown in Figure 1 ), or can be executed by a terminal device (for example, the terminal device 200a shown in Figure 1 ), or can also be executed by the interaction between the business server and the terminal device. For ease of understanding, the embodiments of the present application are described by taking the method executed by the terminal device as an example, that is, taking the terminal device as the computer device. As shown in Figure 4 , this data processing method can at least include the following steps S101 - step S102.

[0130] Step S101, obtain the first video.

[0131] ​Specifically, the acquisition of the first video described in this step can be understood as the terminal device acquiring the first video before outputting it.

[0132] For the convenience of understanding and description, this step first describes the publishing process of the comment data published for the second video. Please refer to Figure 5 , Figure 5 which is a schematic diagram of a data processing scenario provided by an embodiment of the present application. Figure 3 . As Figure 5 shown, there is a binding relationship between the service object 20a and the terminal device 200c. The terminal device 200c can install an application client with video playback (i.e., video output) function. The service object 20a can log in its own object identifier in the application client, which is called the first publishing object identifier 20g in the embodiment of the present application. As Figure 5 shown in the example of d52***54fv.

[0133] The terminal device 200c can acquire the second video. As Figure 5 shown in the example of video 2a, the example video 2a is a video with a total duration of 4 minutes. The terminal device 200c responds to the output operation for video 2a (described as the second video) and outputs video 2a. As Figure 5 shown, on the page where video 2a is output, the terminal device 200c can display the comment data set 40z of video 2a. It can be understood that the meaning and composition of the comment data set corresponding to the second video are the same as those of the comment data set corresponding to the first video. Therefore, the meaning and composition of the comment data set 40z will not be elaborated here.

[0134] Figure 5 The example comment data set 40z includes comment detail data 401z and comment detail data 402z. Among them, the comment detail data 401z can include the comment data "Come on, come on". The object identifier that published the comment data "Come on, come on" for video 2a, that is, Figure 5 shown in the example of 15k****74u2, the avatar of this object identifier in the application client, and the time when the comment data "Come on, come on" was published, that is, Figure 5 shown in the example of 2023.9.15. The comment detail data 402z can include the comment data "You are the best". The object identifier that published the comment data "You are the best" for video 2a, that is, Figure 5 shown in the example of 54h****5111, the avatar of this object identifier in the application client, and the time when the comment data "You are the best" was published, that is, Figure 5 shown in the example of 2023.9.17. The embodiment of the present application does not limit the specific content of the comment detail data, which can be set according to the actual application scenario.

[0135] Please refer to again Figure 5 , on the page of the output video 2a, the terminal device 200c can display a comment input control 40a, and the function of the comment input control 40a can be different from that of the comment input control 20c exemplified above Figure 2 . The comment input control 20c described above can be used to input comment data as bullet screens, and the comment input control 40a here can be used to input comment data as ordinary comments.

[0136] A prompt message can be displayed in the comment input control 40a Figure 5 Take "Leave a comment" as an example of the prompt message in the comment input control 40a. When the video 2a is output to 1 minute and 52 seconds, the terminal device 200c displays the video frame 20b, and the service object 20a triggers the comment input control 40a. The terminal device 200c can continue to play the video 2a and respond to the trigger operation for the comment input control 40a to activate the comment acquisition function of the comment input control 40a. Therefore, the service object 20a can input comment data in the comment input control 40, such as Figure 5 exemplified by "This game is really interesting".

[0137] When the video 2a is output to 1 minute and 53 seconds, the service object 20a triggers the publish control 40b, and the terminal device 200c responds to the trigger operation for the publish control 40b, that is, responds to the publish operation for the comment data "This game is really interesting", and publishes the comment data "This game is really interesting" for the video 2a (described as the second video).

[0138] The specific process of the terminal device 200c publishing the comment data "This game is really interesting" for the video 2a can include the following: The terminal device 200c responds to the trigger operation for the publish control 40b, generates comment details information 40d Figure 5 Exemplify the comment details information 40d as "At 2023-12-14 12:01:17, d52***54fv published a comment 'This game is really interesting' for the video 2a". Further, the terminal device 200c sends the comment details information 40d to the service server 100 corresponding to the application client. According to the comment details information 40d, the service server 100 can generate a comment details list 40e, such as Figure 5 shown, the comment details list 40e includes video information, object identifier, comment content, publish time, and the bound video frame.

[0139] Among them, the video information in the comment details list 40e refers to the information that can uniquely identify a video Figure 5The second video is exemplified by video 2a. The object identifier in the comment details list 40e refers to the object identifier that posts comment data for the second video, which is equivalent to the first posting object identifier in the embodiments of the present application. Figure 5 It is exemplified by d52***54fv. The comment content in the comment details list 40e refers to the content of the comment data. Figure 5 It is exemplified by "This game is really interesting". The posting time in the comment details list 40e refers to the time when the comment data is posted, which is equivalent to the posting moment in the embodiments of the present application. Figure 2 It is exemplified by 2023-12-14 12:00:07. The bound video frame in the comment details list 40e refers to the video frame to which the comment data is bound in the second video. Since Figure 5 the exemplified comment data is a normal comment. At this time, the comment data does not need to be bound to a specific video frame. Therefore, Figure 5 the corresponding bound video frame is none, that is, Figure 5 the exemplified comment data does not have a video frame that needs to be bound.

[0140] Furthermore, the service server 100 can persistently store the comment details list 40e, for example, store it in the database 20j. When the comment data "This game is really interesting" is successfully posted, it can be understood that the comment data "This game is really interesting" is successfully added to the comment data set corresponding to video 2a. For example, the comment data "This game is really interesting" is successfully added to Figure 5 the exemplified comment data set 40z. At this time, the comment data set 40z is updated. Please refer to Figure 6 , Figure 6 which is a schematic diagram of a data processing scenario provided by the embodiments of the present application. Figure 4 . As Figure 6 shown, the comment data set 40z is updated to the comment data set 40y. Therefore, the terminal device 200c can not only display the above-described comment details data 401z and comment details data 402z, but also display the newly posted comment details data 403z. Among them, the comment details data 403z may include the comment data "This game is really interesting", the object identifier that posts the comment data "This game is really interesting" for video 2a, that is, Figure 5 d52***54fv exemplified in Figure 5 , the avatar of this object identifier in the application client, and the time when the comment data "This game is really interesting" is posted, that is,

[0141] Combined with Figure 2 , Figure 5 and Figure 6, the comment data in the embodiments of this application can include two categories. One type of comment data belongs to the bullet screen type, and the comment data belonging to the bullet screen type has a video frame binding relationship; one type of comment data belongs to the ordinary comment type, and the comment data belonging to the ordinary comment type does not have a video frame binding relationship. The embodiments of this application do not limit the display position of the comment data belonging to the ordinary type, and it can be as Figure 6 shown, the display position of the comment data belonging to the ordinary type does not overlap with the position of the video output; optionally, the display position of the comment data belonging to the ordinary type is superimposed on the position of the video output in the form of a floating window or a floating layer.

[0142] After the comment data for the second video is successfully published, if the application platform corresponding to the application client (such as a video platform), which can also be referred to as the official application, publishes the first video, the application platform can determine the video similarity between the first video and the second video. If the video similarity is equal to or greater than the video similarity threshold, it is determined that there is a content similarity relationship between the first video and the second video; if the video similarity is less than the video similarity threshold, it is determined that there is no content similarity relationship between the first video and the second video. The video similarity threshold is a parameter that can be adjusted, and the embodiments of this application do not limit the value of the video similarity threshold, which can be set according to the actual application scenario.

[0143] For the convenience of understanding and description, this step exemplifies that there is a content similarity relationship between the first video and the second video. In this scenario, please also refer to Figure 7 , Figure 7 which is a schematic diagram of a data processing scenario provided by the embodiments of this application Figure 5 . Figure 7 Taking video 2c as an example of the first video, after successfully publishing the comment data "This game is really interesting" for the second video (taking video 2a as an example), the terminal device 200c can obtain the comment sharing setting information 40g sent by the service server 100, Figure 7 Taking the comment sharing setting information 40g as "Do you agree to share the comment data "This game is really interesting" you published for video 2a in the officially released video 2c". It should be emphasized that Figure 7 the comment data "This game is really interesting" in Figure 2 can be the comment data "This game is really interesting" in the above text Figure 5 or "This game is really interesting" in the above text.

[0144] The terminal device 200c can display the comment sharing setting information 40g. If the business object 20a triggers the confirmation control, such as Figure 7 the "Yes" control 40h shown as an example, the terminal device 200c can generate the shared permission confirmation information 40i, Figure 7Taking the shared permission confirmation information 40i as an example, it is "d52***54fv agrees to share the comment data 'This game is really interesting' published for Video 2a into Video 2c".

[0145] Further, the terminal device 200c sends the shared permission confirmation information 40i to the service server 100. Based on the shared permission confirmation information 40i, the service server 100 can generate a shared permission confirmation list 40j, as Figure 7 shown, the shared permission confirmation list 40j may include shared video information, source video information, and related comment content. Among them, the shared comment content in the shared permission confirmation list 40j refers to the comment data that can be shared, such as Figure 7 the comment data "This game is really interesting" in. The source video information in the shared permission confirmation list 40j is used to indicate the source video of the shared comment content, such as Figure 7 Video 2a in, that is, the comment data in the shared comment content is published for Video 2a. It can also be understood that the comment data in the shared comment content is the original comment data of Video 2a. The shared video information in the shared permission confirmation list 40j is used to indicate the video that has the comment sharing permission for the comment data, such as Figure 7 Video 2c in, which can be understood as that the comment data in the shared comment content is the associated comment data of Video 2c.

[0146] The service server 100 can persistently store the shared permission confirmation list 40j, for example, store it in the database 20j. It can be understood that the shared permission confirmation list 40j can be associated and stored with the comment details list 20i in the above Figure 2 text, and similarly, the shared permission confirmation list 40j can be associated and stored with the comment details list 40e in the above Figure 5 text.

[0147] Optionally, the process of determining the video similarity between the second video and the first video can occur before publishing the comment data for the second video.

[0148] The above Figures 5 - 7 respectively describe the terminal device 200c bound with the object identifier d52***54fv outputting the second video (i.e., Figure 5 Video 2a in), publishing comment data for the second video, displaying the newly published comment data when outputting the second video, and setting the video that can share the comment data for the comment data (i.e., Figure 7 Video 2c in). It can be understood that the terminal device 200c can also obtain the first video and output the first video.

[0149] Please also refer to Figure 8 Figure 8 ​It is a schematic diagram of a data processing scenario provided by an embodiment of the present application Figure 6 As Figure 8 shown, the terminal device 200c obtains the first video Figure 8 Taking video 2c as an example of the first video. The embodiment of the present application does not limit the similarity between the first video and the second video, which can be determined according to the actual application scenario. For example, the first video and the second video are completely different. For example, the first video belongs to the second video. For example, there are some video frames in the first video that are the same as some video frames in the second video

[0150] Step S102, if there is a content similarity relationship between the first video and the second video, and the first video has the comment sharing permission for the comment data, then when the first video is output, the comment data is displayed; the comment data is published for the second video

[0151] Specifically, output the first video; the first video includes the first video frame; in the first video frame, the comment data is displayed; there is a content similarity relationship between the first video frame and the second video frame; the second video frame refers to the video frame in the second video where the comment data is published

[0152] Specifically, when the first video is output, in response to the trigger operation on the comment display control, the first comment data list corresponding to the first video is displayed; the comment data is displayed in the first comment data list

[0153] This step may further include the following: in the comment details area corresponding to the comment data, the comment source information of the comment data is displayed; wherein, the comment source information includes the publication time when the comment data is published, the first publication object identifier, and the video information used to characterize the second video; the first publication object identifier refers to the object identifier of the object that publishes the comment data of the second video

[0154] The first video frame may be the same as the second video frame, as exemplified above Figure 2 And Figure 3 shown; the first video frame may be different from the second video frame, but the first video frame is similar to the second video frame, so there is a content similarity relationship between the first video frame and the second video frame

[0155] Please refer to Figure 8 again, the terminal device 200c can output video 2c (described as the first video), combined with Figure 7 the fact that there is a content similarity relationship between the first video and the second video, and the first video is for Figure 7The example comment data "This game is really interesting" has comment sharing permissions. Therefore, when the terminal device 200c outputs Video 2c, it can display the comment data "This game is really interesting" published for the second video. The specific display process is as follows: The comment data described in the embodiments of this application can be divided into two categories. The first category is regular comments, and the corresponding display area can overlap with the area output by the first video (or the second video) (which can be simply referred to as the video playback area), or can be independent of the area output by the first video (or the second video). For example, it can be displayed in a comment data list, and the display area of this comment data list does not overlap with the video playback area. The second category is comments in the form of bullet screens, and the corresponding display area overlaps with the video playback area.

[0156] For the display process of the comment data in the second category, please refer to the description in the corresponding embodiment above, and this step will not be elaborated. The following will detail the comment data in the first category, that is, regular comments. Please refer to Figure 3 the description in the corresponding embodiment. When the terminal device 200c outputs Video 2c, it can display a comment display control 40n. In response to a trigger operation on the comment display control 40n, it displays the first comment data list corresponding to Video 2c, such as Figure 8 the example comment data list 40p. Figure 8 The example comment data list 40p includes 3 comment detail data, namely comment detail data 401p, comment detail data 402p, and comment detail data 403p. Among them, the comment detail data 401p can include the comment data "It's so difficult to play", the object identifier for the video 2c to publish the comment data "It's so difficult to play", that is

[0157] Figure 8 8i1****21n1 in the example in , the avatar of this object identifier in the application client, and the time when the comment data "It's so difficult to play" was published, that is Figure 8 2023.3.11 in the example in . The comment detail data 402p can include the comment data "It's really great", the object identifier for the video 2c to publish the comment data "It's really great", that is Figure 8 24h****5jj1 in the example in , the avatar of this object identifier in the application client, and the time when the comment data "It's really great" was published, that is Figure 8 2023.9.17 in the example in . Figure 8

[0158] The comment detail data 403p is different from the comment detail data 401p and the comment detail data 403p in the above example. It is posted for video 2a. Since there is a video similarity relationship between video 2c and video 2a, and video 2c has comment sharing permission for the comment data "This game is really interesting", the comment detail data 403p can be displayed in the first comment data list corresponding to video 2c, that is Figure 8 The comment data list 40p in the example. Among them, the comment detail data 403p may include the comment data "This game is really interesting", which is the object identifier for posting the comment data "This game is really interesting" for video 2a, that is Figure 8 d52****54fv in the example above, the avatar of this object identifier in the application client, and the time when the comment data "This game is really interesting" was posted, that is Figure 8 2023.12.14 in the example above.

[0159] In addition, the terminal device 200c can display the comment source information 40q of the comment data "This game is really interesting" in the comment detail area corresponding to the comment data "This game is really interesting" (that is, the area for displaying the comment detail data 403p). Figure 8 The example comment source information 40q includes video information for characterizing the second video, such as Figure 8 The "from video 2a" shown in the example to indicate that the comment data "This game is really interesting" was posted for video 2a. The first release object identifier in the embodiments of the present application refers to the object identifier for posting the comment data of the second video, such as Figure 8 The object identifier d52****54fv shown in the example.

[0160] If the service object 20a triggers the video information for characterizing the second video, such as Figure 8 The "from video 2a" in the example, then the terminal device 200c can display the second video (such as Figure 8 The video 2a shown in the example). Further, if the service object 20a triggers the playback control 40m, the terminal device 200c can output the video 2a. Obviously, by adopting the present application, the first video and the second video with a content similarity relationship can be quickly and conveniently displayed for the service object 20a.

[0161] It can be understood that the comment data (including bullet screens and regular comments) can provide additional information and viewpoints for the object watching the video, enrich the viewing experience, and enable the viewing object to understand and discuss the video content more deeply.

[0162] It can be understood that Figures 5 - 8The interfaces and controls shown are merely reference representations. In actual business scenarios, developers can design accordingly based on product requirements. The embodiments of this application do not limit the specific forms of the interfaces and controls involved.

[0163] In the embodiments of this application, a computer device can obtain a first video. Among them, if there is a content similarity relationship between the first video and the second video, and the first video has the permission to share comments for the comment data, then when outputting the first video, the computer device can display the comment data; the comment data is published for the second video. As can be seen from the above, the first video and the second video are independent videos. Therefore, by displaying the comment data published for the second video when outputting the first video, not only can the display effect of the first video be improved, but also the display efficiency of the comment data can be improved.

[0164] Please refer to Figure 9 , Figure 9 is a schematic flowchart of a data processing method provided by the embodiments of this application. Figure 2 This method can be executed by a business server (for example, the business server 100 shown above), Figure 1 or can be executed by a terminal device (for example, the terminal device 200a shown above), Figure 1 or can be executed by the interaction between the business server and the terminal device. For ease of understanding, the embodiments of this application take the method being executed by the terminal device as an example for description. As Figure 9 shown, this method can at least include the following steps.

[0165] Step S201, when outputting the second video, in response to the trigger operation for the comment input control, obtain the comment data.

[0166] Specifically, the embodiments of this application do not limit the type of comment data, which can include two categories. One category of comment data belongs to the bullet screen type, and the comment data belonging to the bullet screen type has a video frame binding relationship; one category of comment data belongs to the ordinary comment type, and the comment data belonging to the ordinary comment type does not have a video frame binding relationship.

[0167] For the generation process of the comment data belonging to the bullet screen type, please refer to the description in the corresponding embodiments above Figure 2 and will not be elaborated here; for the generation process of the comment data belonging to the ordinary comment type (i.e., the regular comment type), please refer to the description of step S101 in the corresponding embodiments above Figure 4 and will not be elaborated here.

[0168] Step S202, in response to the publish operation for the comment data, publish the comment data for the second video.

[0169] Specifically, regarding the generation process of comment data of the bullet screen type, please refer to the description in the corresponding embodiment above in combination with the description of step 201, and details will not be elaborated here; regarding the generation process of comment data of the ordinary comment type (i.e., the conventional comment type), please refer to the description in step S101 of the corresponding embodiment above, and details will not be elaborated here. Figure 2 Please refer to the description in the corresponding embodiment above, and details will not be elaborated here; regarding the generation process of comment data of the ordinary comment type (i.e., the conventional comment type), please refer to the description in step S101 of the corresponding embodiment above, and details will not be elaborated here. Figure 4 Please refer to the description in step S101 of the corresponding embodiment above, and details will not be elaborated here.

[0170] Step S203: When the comment data is in the successfully published state, in response to the sharing setting operation for the comment data, determine the set of videos that have the comment sharing permission for the comment data; wherein, if the set of videos includes the first video, the first video has the comment sharing permission for the comment data.

[0171] Specifically, the set of videos includes the third video; in the video application, display the comment sharing setting information corresponding to the comment data; the comment sharing setting information is used to indicate that the third video is published by the video platform corresponding to the video application; if a confirmation operation for the comment sharing setting information is responded to, it is determined that the third video has the comment sharing permission for the comment data.

[0172] Specifically, display the comment management control; in response to the triggering operation for the comment management control, display the second comment data list corresponding to the second publishing object identifier; the second publishing object identifier refers to the object identifier of the object that publishes the comment data of the second video; the second comment data list includes the comment data; in the second comment data list, in response to the selection operation for the comment data, display the shared video setting area corresponding to the comment data; in response to the video setting operation for the shared video setting area, determine the video set by the setting operation as the set of videos that have the comment sharing permission for the comment data.

[0173] The embodiments of the present application provide two methods for sharing settings for comment data. For the first method for sharing settings for comment data, please refer to Figure 7 , specifically, after the business object 20a confirms the publication of the comment data "This game is really interesting" for the video 2a (described as the second video), the terminal device 200a can display the comment sharing setting information corresponding to the comment data "This game is really interesting" in the video application. Figure 7 Taking the officially released video 2c as an example of the third video, in actual application, the third video can refer to all videos published by the video platform (i.e., the official), that is, it does not specifically refer to a certain video. Further, if a confirmation operation for the comment sharing setting information is responded to, the terminal device can determine that the third video has the comment sharing permission for the comment data.

[0174] For the second method for sharing settings for comment data, please refer to Figure 5 and Figure 10 ,Figure 10 This is a schematic diagram of a data processing scenario provided by an embodiment of this application. Figure 7 The terminal device 200c can bind an object identifier in an application client (such as a video client), such as Figure 10 d52***54fv exemplified in Figure 10 . In the application client, the terminal device 200c can display a comment management control 90a. If the service object 20a triggers the comment management control 90a, the terminal device 200c can respond to the trigger operation for the comment management control 90a and display a second comment data list corresponding to the second publishing object identifier. It can be understood that the first publishing object identifier is the same as the second publishing object identifier; the meaning of the first comment data list is different from the meaning of the second comment data list. The first comment data list refers to the comment data list corresponding to the first video, including the comment data published for the first video, and can also include the comment data on the specific comment sharing permission of the first video, such as the comment data published for the second video; the second comment data list includes the comment data published by the second publishing object identifier, such as

[0175] Figure 10 The exemplified comment data list 90b includes three comment data, namely comment detail data 901b, comment detail data 902b, and comment detail data 903b. Among them, the comment detail data 901b can include the comment data "Come on, come on" published by the object identifier d52***54fv for the video 2d at the time 2023.9.15; the comment detail data 902b can include the comment data "I want to watch it again" published by the object identifier d52***54fv for the video 2e at the time 2023.9.17; the comment detail data 903b can include the comment data "This game is really interesting" published by the object identifier d52***54fv for the video 2a at the time 2023.12.14.

[0176] Furthermore, if the service object 20a selects the comment data "Come on, come on", the terminal device 200c responds to the selection operation for the comment data "Come on, come on" and displays a shared video setting area corresponding to the comment data "Come on, come on". If the service object 20a selects the comment data "I want to watch it again", the terminal device 200c responds to the selection operation for the comment data "I want to watch it again" and displays a shared video setting area corresponding to the comment data "I want to watch it again". Please refer to Figure 10, the service object 20a selects the comment data "This game is really interesting". At this time, the terminal device 200c responds to the selection operation for the comment data "This game is really interesting" and displays the shared video setting area 90c corresponding to the comment data "This game is really interesting".

[0177] As Figure 10 shown, the shared video setting area 90c may include 5 setting options, namely, all video setting options, only the videos published by oneself setting option, the videos published by friends setting option, only the current video setting option, and the custom setting option. Among them, the all video setting option means setting that all videos have the comment sharing permission for the comment data "This game is really interesting"; the only the videos published by oneself setting option means setting that the videos published by the second publishing object identifier have the comment sharing permission for the comment data "This game is really interesting"; the videos published by friends setting option means setting that the videos published by friends have the comment sharing permission for the comment data "This game is really interesting", where friends may include the object identifiers having a friendship relationship with the object identifier d52***54fv in this application client, or may also include the object identifiers having a friendship relationship with the service object 20a in a third-party application client; the only the current video setting option means setting that only the second video ( Figure 10 taking video 2a as an example) has the comment sharing permission for the comment data "This game is really interesting"; the custom setting option means that the service object 20a can define by itself the videos having the comment sharing permission for the comment data "This game is really interesting".

[0178] It can be understood that Figure 10 the above 5 setting options are used as examples for illustration. In actual application, it can be set according to the scenario, and the embodiments of the present application do not make any limitations in this regard.

[0179] Please refer to Figure 10 again. If the service object 20a selects the all video setting option, the terminal device 200c responds to the selection operation for the all video setting option. Further, when responding to the triggering operation for the completion control 901c, all videos are determined as the video set having the comment sharing permission for the comment data.

[0180] Step S204, obtain the first video.

[0181] Specifically, after the business server associates and saves the second video and the comment data published for the second video, if it is determined that the first video has the comment sharing permission for the comment data published for the second video, the content similarity between the first video and the second video can be calculated, that is, through content recognition, it is determined whether there is a content similarity relationship between the first video and the second video. If there is a content similarity relationship between the first video and the second video, the above comment data can be moved to the first video, or the above comment data can be used as the associated comment data of the first video; if there is no content similarity relationship between the first video and the second video, the above comment data can be determined as the irrelevant comment data of the first video. At this time, the comment data will not be added to the comment data set corresponding to the first video.

[0182] Content recognition technology refers to the use of natural language processing (NLP) and machine learning technology to analyze and understand video content, which can help identify keywords, topics, emotions and other information in the video.

[0183] Video understanding refers to the automatic identification and parsing of video content through intelligent analysis technology. Image classification is the basis of video understanding. In the embodiments of the present application, a video can be understood as sequential data composed of each frame of image, so a recurrent neural network (RNN) can be used.

[0184] Step S205, if there is a content similarity relationship between the first video and the second video, and the first video has the comment sharing permission for the comment data, when the first video is output, the comment data is displayed; the comment data is published for the second video.

[0185] Specifically, to move the comment data of the second video to the comment data set corresponding to the first video item by item, the following technical steps can be taken:

[0186] Step a: Comment data extraction. The business server extracts the comment data from the second video. This process can be achieved by parsing the comment data file of the second video, such as Extensible Markup Language (XML), a lightweight data interchange format (JavaScript Object Notation, JSON), etc.; or the business server or the terminal device obtains the comment data from the corresponding application programming interface (API), such as the comment API.

[0187] # Example code: Extract comment data from an XML file import xml.etree.ElementTree as ET def extract_danmaku_from_xml(xml_file): tree = ET.parse(xml_file) root = tree.getroot() danmaku_list = [] for danmaku in root.findall('d'): content = danmaku.text time = float(danmaku.attrib['p'].split(',')[0]) danmaku_list.append({'content': content, 'time': time}) return danmaku_list danmaku_data = extract_danmaku_from_xml('videoA_danmaku.xml')

[0188] Step b: Comment data storage. The business server stores the comment data of the second video in a database or other persistent storage for subsequent processing and use.

[0189] # Example code: Store comment data in a database import sqlite3 def store_danmaku_data(danmaku_data): conn = sqlite3.connect('danmaku.db') c = conn.cursor() c.execute("CREATE TABLE IF NOT EXISTS danmaku(content TEXT, time REAL)") for danmaku in danmaku_data: c.execute("INSERT INTO danmaku VALUES(?,?)", (danmaku['content'], danmaku['time'])) conn.commit() conn.close() store_danmaku_data(danmaku_data)

[0190] Step c: Comment data migration. The business server reads the comment data one by one from the stored comment data set and adds it to the comment layer of the first video, which can be achieved by calling the comment API of the first video or directly operating on the comment data.

[0191] # Example code: Migrate comment data to the comment layer of the first video def migrate_danmaku_to_videoB(danmaku_data): for danmaku in danmaku_data: content = danmaku['content'] time = danmaku['time'] # Call the comment API of the first video or directly operate on the comment data to add the comment to the comment layer of the first video #... print(f"Migrate comment: {content}, time: {time}") migrate_danmaku_to_videoB(danmaku_data)

[0192] Step d, synchronously display the comment data. On the playback interface of the first video, according to the video timeline and the display time of the comment data, display the comment data at the corresponding position. This can be achieved through HyperText Markup Language (HTML for short), Cascading Style Sheets (CSS for short), and JavaScript (JS for short, a lightweight one with function priority).

[0193] <!-- Example code: Playback interface of the first video --> <video id="videob"src="videob.mp4">< / video> <div id="danmaku-container"> <script>const videoB=document.getElementById('videoB');const danmakuContainer=document.getElementById('danmaku-container'); / / 检查视频的时间更新事件videoB.addEventListener('timeupdate',function(){

[0194] 可以理解的是,图10中所展示的界面以及控件仅仅是一些可供参考的表现形式,在实际业务场景中,开发人员可以根据产品需求来进行相关设计,本申请实施例对涉及到的界面和控件的具体形式不做限制。

[0195] 在本申请实施例中,计算机设备可以获取第一视频,其中,若第一视频以及第二视频之间存在内容相似关系,且第一视频针对评论数据具有评论共享权限,则在输出第一视频时,计算机设备可以显示评论数据;评论数据是针对第二视频所发布的。上述可知,第一视频以及第二视频是相互独立的视频,故通过在输出第一视频时,显示针对第二视频所发布的评论数据,不仅可以提高第一视频的展示效果,还可以提高评论数据的展示效率。

[0196] 进一步地,请参见图11,图11是本申请实施例提供的一种数据处理方法的流程示意图三。该数据处理方法可以由业务服务器(例如,上述图1所示的业务服务器100)执行,也可以由终端设备(例如,上述图1所示的终端设备200a)执行,还可以由业务服务器和终端设备交互执行。为便于理解,本申请实施例以该方法由业务服务器执行为例进行说明。如图11所示,该数据处理方法至少可以包括以下步骤S301-步骤S303。

[0197] 步骤S301,获取第一视频。

[0198] 具体的,确定第一视频以及第二视频之间的视频相似度;若视频相似度等于或大于视频相似度阈值,则确定第一视频以及第二视频之间存在内容相似关系;若视频相似度小于视频相似度阈值,则确定第一视频以及第二视频之间不存在内容相似关系。

[0199] 其中,确定第一视频以及第二视频之间的视频相似度的具体过程可以包括:确定第一视频的第一视频特征,确定第二视频的第二视频特征;确定第一视频特征以及第二视频特征之间的特征相似度,将特征相似度确定为第一视频以及第二视频之间的视频相似度。

[0200] 其中,确定第一视频的第一视频特征的具体过程可以包括:根据抽帧频率,从第一视频中抽取A个视频帧;A为正整数;获取图像识别模型,将A个视频帧输入至图像识别模型;通过图像识别模型,对A个视频帧进行识别处理,得到A个视频帧的A个视频帧特征;其中,一个视频帧特征是图像识别模型对一个视频帧进行识别处理所生成的;对A个视频帧特征进行特征融合处理,得到第一视频的第一视频特征。

[0201] 请一并参见图12,图12是本申请实施例提供的一种数据处理的场景示意图八。其中,图12中的视频可以为任意一个视频,例如可以为第一视频,也可以为第二视频,即通过图12所示例的场景示意图可以得到第一视频对应的第一视频特征,也可以得到第二视频对应的第二视频特征,或是其他视频对应的视频特征。

[0202] 如图12所示,业务服务器根据抽帧频率,对视频进行抽帧处理,得到A个视频帧,图12简称为第一帧、第二帧、…、第T帧(T为正整数),抽帧频率是一个可以调整的参数,可以根据实际应用场景进行设定,例如以每秒显示30帧,每10帧抽取1帧为例,则一秒可以获取3个视频帧。业务服务器将A个视频帧分别输入至图像识别模型,本申请实施例不对图像识别模型的模型类型进行限定,可以由任意一种或多种神经网络组成,如卷积神经网络(Convolutional Neural Networks,CNN)、残差网络(Residual Network,ResNet)、高分辨率网络(High-Resolution Net,HRNet)、标准化的卷积网络扩展(EfficientNet)以及上述的RNN等。

[0203] 通过图像识别模型,业务服务器可以生成第一帧对应的第一帧特征(可以表示为视频帧特征),第二帧对应的第二帧特征,…,第T帧对应的第T帧特征。进一步,业务服务器对T个帧特征进行特征融合处理,例如采用平均汇合,得到视频对应的视频特征。该视频特征是用于分析这个视频的多个低维、稠密、浮点的特征向量,故按照上述过程,业务服务器可以确定第一视频的第一视频特征以及第二视频的第二视频特征。

[0204] 业务服务器进行特征向量比较,可以使用相似性度量方法,例如欧氏距离、余弦相似度等,对第二视频对应的第二视频特征和第一视频的第二视频特征进行比较,产生一个相似度分数,用于判断两个视频的相似程度。根据具体需求,业务服务器可以设定一个相似度阈值,用于判断第二视频和第一视频是否具有内容相似关系,阈值的选择可以根据实际情况和应用场景进行调整。

[0205] 根据相似度分数与相似度阈值之间的比较,业务服务器可以输出判断结果。如果相似度分数超过或等于相似度阈值,则确定第二视频与第一视频之间具有内容相似关系;如果相似度分数小于相似度阈值,则业务服务器可以确定第二视频与第一视频之间不具有内容相似关系。

[0206] 步骤S302,若第一视频以及第二视频之间存在内容相似关系,则在数据库中获取第二视频对应的评论数据。

[0207] 具体的,若第三视频由视频平台发布,则生成针对评论数据的评论共享设置信息;获取评论数据对应的发布对象标识b;发布对象标识b是指发布第二视频的评论数据的对象标识;将评论共享设置信息发送至发布对象标识b,以使发布对象标识b对应的第二终端设备在视频平台对应的视频应用中,显示评论共享设置信息;若第二终端设备响应针对评论共享设置信息的确认操作,则获取第二终端设备发送的共享权限确认信息;根据共享权限确认信息,确定第三视频针对评论数据具有评论共享权限;其中,若第三视频包括第一视频,则第一视频针对评论数据具有评论共享权限。

[0208] 步骤S303,若第一视频针对评论数据具有评论共享权限,则将评论数据添加至第一视频的评论数据集合;添加有评论数据的评论数据集合用于指示第一终端设备在输出第一视频时,显示评论数据。

[0209] 具体的,在数据库中获取第二视频,提取第二视频对应的评论数据;若评论数据不具有视频帧绑定关系,则将评论数据以及第二视频关联存储于数据库;若评论数据具有视频帧绑定关系,则根据视频帧绑定关系,在第二视频中获取评论视频帧,将评论数据以及评论视频帧关联存储于数据库;评论视频帧是指可显示评论数据的视频帧;则将评论数据添加至第一视频的评论数据集合的具体过程可以包括:若评论数据具有视频帧绑定关系,则在数据库中,获取与评论数据关联存储的评论视频帧;生成用于指示评论视频帧的视频帧标识,将携带视频帧标识的评论数据,添加至第一视频的评论数据集合;包括携带视频帧标识的评论数据的评论数据集合用于指示,第一终端设备在输出第一视频至视频帧标识对应的评论视频帧时,显示评论数据。

[0210] 结合上文图4、图9以及本申请实施例,可以得到图13,图13是本申请实施例提供的一种数据处理方法的交互示意图。如图13所示,步骤S1,终端设备获取第一视频;步骤S2,终端设备向业务服务器发送输出信息,该输出信息可以指示终端设备获取第一视频;步骤S3,业务服务器获取第一视频的第一视频特征;此处不对第一视频特征的生成时间进行限定,可以是业务服务器在获取到输出信息时实时生成,也可以在获取到输出信息前生成,此时业务服务器可以从数据库中获取第一视频特征;步骤S4,业务服务器获取第二视频的第二视频特征,确定第二视频特征以及第一视频特征之间的相似度;同样地,此处不对第二视频特征的生成时间进行限定;步骤S5,若相似度大于阈值,则获取第二视频对应的评论数据;步骤S6,业务服务器确定第一视频针对第二视频对应的评论数据具有评论共享权限;步骤S7,业务服务器发送具有评论共享权限的第二视频对应的评论数据至终端设备;步骤S8,终端设备输出第一视频时,显示评论数据。

[0211] 在本申请实施例中,计算机设备可以获取第一视频,其中,若第一视频以及第二视频之间存在内容相似关系,且第一视频针对评论数据具有评论共享权限,则在输出第一视频时,计算机设备可以显示评论数据;评论数据是针对第二视频所发布的。上述可知,第一视频以及第二视频是相互独立的视频,故通过在输出第一视频时,显示针对第二视频所发布的评论数据,不仅可以提高第一视频的展示效果,还可以提高评论数据的展示效率。

[0212] 进一步地,请参见图14,图14是本申请实施例提供的一种数据处理装置的结构示意图一。上述数据处理装置1可以是运行于计算机设备中的一个计算机程序(包括程序代码),例如该数据处理装置1为一个应用软件;数据处理装置1可以用于执行本申请实施例提供的方法中的相应步骤。如图14所示,该数据处理装置1可以包括:

[0213] 获取模块11,用于获取第一视频;

[0214] 显示模块12,用于若第一视频以及第二视频之间存在内容相似关系,且第一视频针对评论数据具有评论共享权限,则在输出第一视频时,显示评论数据;评论数据是针对第二视频所发布的。

[0215] 在一种可能的实现方式中,显示模块12在输出第一视频时,显示评论数据,用于执行以下操作:

[0216] 输出第一视频;第一视频包括第一视频帧;

[0217] 在第一视频帧中,显示评论数据;第一视频帧以及第二视频帧之间存在内容相似关系;第二视频帧是指第二视频中发布有评论数据的视频帧。

[0218] 在一种可能的实现方式中,显示模块12在输出第一视频时,显示评论数据,用于执行以下操作:

[0219] 在输出第一视频时,响应针对评论显示控件的触发操作,显示第一视频对应的第一评论数据列表;

[0220] 在第一评论数据列表中显示评论数据。

[0221] 在一种可能的实现方式中,显示模块12还用于执行以下操作:

[0222] 在评论数据对应的评论详情区域中,显示评论数据的评论来源信息;

[0223] 其中,评论来源信息包括评论数据被发布时的发布时刻、第一发布对象标识以及用于表征第二视频的视频信息;第一发布对象标识是指发布第二视频的评论数据的对象标识。

[0224] 在一种可能的实现方式中,获取模块11还用于执行以下操作:

[0225] 在输出第二视频时,响应针对评论输入控件的触发操作,获取评论数据;

[0226] 响应针对评论数据的发布操作,为第二视频发布评论数据;

[0227] 在评论数据处于发布成功状态时,响应针对评论数据的共享设置操作,确定针对评论数据具有评论共享权限的视频集合;其中,若视频集合包括第一视频,则第一视频针对评论数据具有评论共享权限。

[0228] 在一种可能的实现方式中,视频集合包括第三视频;

[0229] 获取模块11响应针对评论数据的共享设置操作,确定针对评论数据具有评论共享权限的视频集合,用于执行以下操作:

[0230] 在视频应用中,显示评论数据对应的评论共享设置信息;评论共享设置信息用于指示,第三视频是由视频应用对应的视频平台所发布的;

[0231] 若响应针对评论共享设置信息的确认操作,则确定第三视频针对评论数据具有评论共享权限。

[0232] 在一种可能的实现方式中,获取模块11响应针对评论数据的共享设置操作,确定针对评论数据具有评论共享权限的视频集合,用于执行以下操作:

[0233] 显示评论管理控件;

[0234] 响应针对评论管理控件的触发操作,显示第二发布对象标识对应的第二评论数据列表;第二发布对象标识是指发布第二视频的评论数据的对象标识;第二评论数据列表包括评论数据;

[0235] 在第二评论数据列表中,响应针对评论数据的选择操作,显示评论数据对应的共享视频设置区域;

[0236] 响应针对共享视频设置区域的视频设置操作,将设置操作所设置的视频,确定为针对评论数据具有评论共享权限的视频集合。

[0237] 本申请实施例中,术语"模块”是指有预定功能的计算机程序或计算机程序的一部分,并与其他相关部分一起工作以实现预定目标,并且可以通过使用软件、硬件(如处理电路或存储器)或其组合来全部或部分实现。同样的,一个处理器(或多个处理器或存储器)可以用来实现一个或多个模块。此外,每个模块都可以是包含该模块功能的整体模块的一部分。

[0238] 在本申请实施例中,计算机设备可以获取第一视频,其中,若第一视频以及第二视频之间存在内容相似关系,且第一视频针对评论数据具有评论共享权限,则在输出第一视频时,计算机设备可以显示评论数据;评论数据是针对第二视频所发布的。上述可知,第一视频以及第二视频是相互独立的视频,故通过在输出第一视频时,显示针对第二视频所发布的评论数据,不仅可以提高第一视频的展示效果,还可以提高评论数据的展示效率。

[0239] 进一步地,请参见图15,图15是本申请实施例提供的一种数据处理装置的结构示意图二。上述数据处理装置2可以是运行于计算机设备中的一个计算机程序(包括程序代码),例如该数据处理装置2为一个应用软件;数据处理装置2可以用于执行本申请实施例提供的方法中的相应步骤。如图15所示,该数据处理装置2可以包括:

[0240] 获取模块21,用于获取第一视频;

[0241] 获取模块21,还用于若第一视频以及第二视频之间存在内容相似关系,则在数据库中获取第二视频对应的评论数据;

[0242] 添加模块22,用于若第一视频针对评论数据具有评论共享权限,则将评论数据添加至第一视频的评论数据集合;添加有评论数据的评论数据集合用于指示第一终端设备在输出第一视频时,显示评论数据。

[0243] 在一种可能的实现方式中,获取模块21还用于执行以下操作:

[0244] 确定第一视频以及第二视频之间的视频相似度;

[0245] 若视频相似度等于或大于视频相似度阈值,则确定第一视频以及第二视频之间存在内容相似关系;

[0246] 若视频相似度小于视频相似度阈值,则确定第一视频以及第二视频之间不存在内容相似关系。

[0247] 在一种可能的实现方式中,获取模块21确定第一视频以及第二视频之间的视频相似度,用于执行以下操作:

[0248] 确定第一视频的第一视频特征,确定第二视频的第二视频特征;

[0249] 确定第一视频特征以及第二视频特征之间的特征相似度,将特征相似度确定为第一视频以及第二视频之间的视频相似度。

[0250] 在一种可能的实现方式中,获取模块21确定第一视频的第一视频特征,用于执行以下操作:

[0251] 根据抽帧频率,从第一视频中抽取A个视频帧;A为正整数;

[0252] 获取图像识别模型,将A个视频帧输入至图像识别模型;

[0253] 通过图像识别模型,对A个视频帧进行识别处理,得到A个视频帧的A个视频帧特征;其中,一个视频帧特征是图像识别模型对一个视频帧进行识别处理所生成的;

[0254] 对A个视频帧特征进行特征融合处理,得到第一视频的第一视频特征。

[0255] 在一种可能的实现方式中,获取模块21还用于执行以下操作:

[0256] 若第三视频由视频平台发布,则生成针对评论数据的评论共享设置信息;

[0257] 获取评论数据对应的发布对象标识b;发布对象标识b是指发布第二视频的评论数据的对象标识;

[0258] 将评论共享设置信息发送至发布对象标识b,以使发布对象标识b对应的第二终端设备在视频平台对应的视频应用中,显示评论共享设置信息;

[0259] 若第二终端设备响应针对评论共享设置信息的确认操作,则获取第二终端设备发送的共享权限确认信息;

[0260] 根据共享权限确认信息,确定第三视频针对评论数据具有评论共享权限;其中,若第三视频包括第一视频,则第一视频针对评论数据具有评论共享权限。

[0261] 在一种可能的实现方式中,获取模块21还用于执行以下操作:

[0262] 在数据库中获取第二视频,提取第二视频对应的评论数据;

[0263] 若评论数据不具有视频帧绑定关系,则将评论数据以及第二视频关联存储于数据库;

[0264] 若评论数据具有视频帧绑定关系,则根据视频帧绑定关系,在第二视频中获取评论视频帧,将评论数据以及评论视频帧关联存储于数据库;评论视频帧是指可显示评论数据的视频帧;

[0265] 则在一种可能的实现方式中,添加模块22将评论数据添加至第一视频的评论数据集合,用于执行以下操作:

[0266] 若评论数据具有视频帧绑定关系,则在数据库中,获取与评论数据关联存储的评论视频帧;

[0267] 生成用于指示评论视频帧的视频帧标识,将携带视频帧标识的评论数据,添加至第一视频的评论数据集合;包括携带视频帧标识的评论数据的评论数据集合用于指示,第一终端设备在输出第一视频至视频帧标识对应的评论视频帧时,显示评论数据。

[0268] 本申请实施例中,术语"模块”是指有预定功能的计算机程序或计算机程序的一部分,并与其他相关部分一起工作以实现预定目标,并且可以通过使用软件、硬件(如处理电路或存储器)或其组合来全部或部分实现。同样的,一个处理器(或多个处理器或存储器)可以用来实现一个或多个模块。此外,每个模块都可以是包含该模块功能的整体模块的一部分。

[0269] 在本申请实施例中,计算机设备可以获取第一视频,其中,若第一视频以及第二视频之间存在内容相似关系,且第一视频针对评论数据具有评论共享权限,则在输出第一视频时,计算机设备可以显示评论数据;评论数据是针对第二视频所发布的。上述可知,第一视频以及第二视频是相互独立的视频,故通过在输出第一视频时,显示针对第二视频所发布的评论数据,不仅可以提高第一视频的展示效果,还可以提高评论数据的展示效率。

[0270] 进一步地,请参见图16,图16是本申请实施例提供的一种计算机设备的结构示意图。如图16所示,该计算机设备1000可以包括:至少一个处理器1001,例如CPU,至少一个网络接口1004,用户接口1003,存储器1005,至少一个通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。其中,在一些实施例中,用户接口1003可以包括显示屏(Display)、键盘(Keyboard),网络接口1004可选地可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatilememory),例如至少一个磁盘存储器。存储器1005可选地还可以是至少一个位于远离前述处理器1001的存储装置。如图16所示,作为一种计算机存储介质的存储器1005可以包括操作系统、网络通信模块、用户接口模块以及计算机程序。

[0271] 在图16所示的计算机设备1000中,网络接口1004可提供网络通讯功能;而用户接口1003主要用于为用户提供输入的接口;而处理器1001可以用于调用存储器1005中存储的计算机程序,以实现:

[0272] 获取第一视频;

[0273] 若第一视频以及第二视频之间存在内容相似关系,且第一视频针对评论数据具有评论共享权限,则在输出第一视频时,显示评论数据;评论数据是针对第二视频所发布的。

[0274] 或者,处理器1001可以用于调用存储器1005中存储的计算机程序,以实现:

[0275] 获取第一视频;

[0276] 若第一视频以及第二视频之间存在内容相似关系,则在数据库中获取第二视频对应的评论数据;

[0277] 若第一视频针对评论数据具有评论共享权限,则将评论数据添加至第一视频的评论数据集合;添加有评论数据的评论数据集合用于指示第一终端设备在输出第一视频时,显示评论数据。

[0278] 应当理解,本申请实施例中所描述的计算机设备1000可执行前文各实施例中对数据处理方法或装置的描述,在此不再赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。

[0279] 本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现前文各实施例中对数据处理方法或装置的描述,在此不再赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。

[0280] 上述计算机可读存储介质可以是前述任一实施例提供的数据处理装置或者上述计算机设备的内部存储单元,例如计算机设备的硬盘或内存。该计算机可读存储介质也可以是该计算机设备的外部存储设备,例如该计算机设备上配备的插接式硬盘,智能存储卡(smartmediacard,SMC),安全数字(securedigital,SD)卡,闪存卡(flashcard)等。进一步地,该计算机可读存储介质还可以既包括该计算机设备的内部存储单元也包括外部存储设备。该计算机可读存储介质用于存储该计算机程序以及该计算机设备所需的其他程序和数据。该计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。

[0281] 本申请实施例还提供了一种计算机程序产品,该计算机程序产品包括计算机程序,该计算机程序存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机程序,处理器执行该计算机程序,使得该计算机设备可执行前文各实施例中对数据处理方法或装置的描述,在此不再赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。

[0282] 本申请实施例的说明书和权利要求书及附图中的术语"第一”、"第二”等是用于区别不同对象,而非用于描述特定顺序。此外,术语"包括”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、装置、产品或设备没有限定于已列出的步骤或模块,而是可选地还包括没有列出的步骤或模块,或可选地还包括对于这些过程、方法、装置、产品或设备固有的其他步骤单元。

[0283] 本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。

[0284] 以上所揭露的仅为本申请较佳实施例而已,当然不能以此来限定本申请之权利范围,因此依本申请权利要求所作的等同变化,仍属本申请所涵盖的范围。< / script>

Claims

1. A data processing method, characterized in that, Including: Obtain a first video; If there is a content similarity relationship between the first video and the second video, and the first video has comment sharing permission for comment data, then when outputting the first video, display the comment data; The comment data is published for the second video.

2. The method according to claim 1, characterized in that, The displaying the comment data when outputting the first video includes: Output the first video; the first video includes a first video frame; In the first video frame, display the comment data; there is a content similarity relationship between the first video frame and the second video frame; the second video frame refers to the video frame in the second video where the comment data is published.

3. The method according to claim 1, characterized in that, The displaying the comment data when outputting the first video includes: When outputting the first video, in response to a trigger operation on a comment display control, display a first comment data list corresponding to the first video; Display the comment data in the first comment data list.

4. The method according to claim 1, wherein The method further includes: In a comment details area corresponding to the comment data, display comment source information of the comment data; Wherein, the comment source information includes a publishing moment when the comment data is published, a first publishing object identifier, and video information for characterizing the second video; the first publishing object identifier refers to an object identifier of the object that publishes the comment data of the second video.

5. The method according to claim 1, wherein The method further includes: When outputting the second video, in response to a trigger operation on a comment input control, obtain the comment data; In response to a publishing operation on the comment data, publish the comment data for the second video; When the comment data is in a successful publishing state, in response to a sharing setting operation on the comment data, determine a set of videos that have comment sharing permission for the comment data; wherein, if the set of videos includes the first video, the first video has the comment sharing permission for the comment data.

6. The method according to claim 5, characterized in that, The set of videos includes a third video; The determining the set of videos that have comment sharing permission for the comment data in response to the sharing setting operation on the comment data includes: In a video application, display comment sharing setting information corresponding to the comment data; the comment sharing setting information is used to indicate that the third video is published by a video platform corresponding to the video application; If a confirmation operation in response to the comment sharing setting information is received, determine that the third video has comment sharing permission for the comment data.

7. The method according to claim 5, wherein The determining the set of videos that have comment sharing permission for the comment data in response to the sharing setting operation on the comment data includes: Display a comment management control; In response to a trigger operation on the comment management control, display a second comment data list corresponding to a second publishing object identifier; the second publishing object identifier refers to an object identifier of the object that publishes the comment data of the second video; the second comment data list includes the comment data; In the second comment data list, in response to a selection operation on the comment data, display a shared video setting area corresponding to the comment data; In response to a video setting operation for the shared video setting area, determine the video set by the setting operation as a video set having comment sharing permissions for the comment data.

8. A data processing method, characterized in that, Including: Obtain a first video; If there is a content similarity relationship between the first video and the second video, obtain the comment data corresponding to the second video in the database; If the first video has comment sharing permissions for the comment data, add the comment data to the comment data set of the first video; The comment data set added with the comment data is used to instruct the first terminal device to display the comment data when outputting the first video.

9. The method according to claim 8, wherein The method further includes: Determine the video similarity between the first video and the second video; If the video similarity is equal to or greater than the video similarity threshold, determine that there is a content similarity relationship between the first video and the second video; If the video similarity is less than the video similarity threshold, determine that there is no content similarity relationship between the first video and the second video.

10. The method according to claim 9, wherein The determining the video similarity between the first video and the second video includes: Determine the first video feature of the first video and the second video feature of the second video; Determine the feature similarity between the first video feature and the second video feature, and determine the feature similarity as the video similarity between the first video and the second video.

11. The method according to claim 10, characterized in that, The determining the first video feature of the first video includes: According to the frame extraction frequency, extract A video frames from the first video; A is a positive integer; Obtain an image recognition model and input the A video frames into the image recognition model; Through the image recognition model, perform recognition processing on the A video frames to obtain A video frame features of the A video frames; wherein, one video frame feature is generated by the image recognition model performing recognition processing on one video frame; Perform feature fusion processing on the A video frame features to obtain the first video feature of the first video.

12. The method according to claim 8, wherein The method further includes: If the third video is released by the video platform, generate comment sharing setting information for the comment data; Obtain the release object identifier b corresponding to the comment data; the release object identifier b refers to the object identifier that releases the comment data of the second video; Send the comment sharing setting information to the release object identifier b, so that the second terminal device corresponding to the release object identifier b displays the comment sharing setting information in the video application corresponding to the video platform; If the second terminal device responds to the confirmation operation for the comment sharing setting information, obtain the sharing permission confirmation information sent by the second terminal device; According to the sharing permission confirmation information, determine that the third video has comment sharing permissions for the comment data; wherein, if the third video includes the first video, the first video has the comment sharing permissions for the comment data.

13. The method according to claim 8, wherein The method further includes: Obtain the second video in the database and extract the comment data corresponding to the second video; If the comment data does not have a video frame binding relationship, store the comment data and the second video in the database in an associated manner; If the comment data has a video frame binding relationship, obtain the comment video frames in the second video according to the video frame binding relationship, and store the comment data and the comment video frames in the database in an associated manner; the comment video frames refer to the video frames that can display the comment data; Then the adding the comment data to the comment data set of the first video includes: If the comment data has the video frame binding relationship, obtain the comment video frames associated and stored with the comment data in the database; Generate a video frame identifier for indicating the comment video frames, and add the comment data carrying the video frame identifier to the comment data set of the first video; the comment data set including the comment data carrying the video frame identifier is used to indicate that when the first terminal device outputs the first video to the comment video frames corresponding to the video frame identifier, the comment data is displayed.

14. A data processing device, characterized in that, Including: An obtaining module, configured to obtain a first video; A display module, configured to display the comment data when outputting the first video if there is a content similarity relationship between the first video and the second video, and the first video has comment sharing permission for the comment data; The comment data is published for the second video.

15. A data processing device, characterized in that, Including: An obtaining module, configured to obtain a first video; The obtaining module is further configured to obtain the comment data corresponding to the second video in the database if there is a content similarity relationship between the first video and the second video; An adding module, configured to add the comment data to the comment data set of the first video if the first video has comment sharing permission for the comment data; The comment data set added with the comment data is used to indicate that the first terminal device displays the comment data when outputting the first video.

16. A computer device, characterized in that, Including: A processor, a memory, and a network interface; the processor is connected to the memory and the network interface, wherein the network interface is used to provide a data communication function, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method according to any one of claims 1 to 13.

17. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, and the computer program is suitable for being loaded and executed by a processor so that a computer device having the processor executes the method according to any one of claims 1-13.

18. A computer program product, characterized in that, The computer program product includes a computer program, the computer program is stored in a computer-readable storage medium, and the computer program is suitable for being read and executed by a processor so that a computer device having the processor executes the method according to any one of claims 1-13.