Video advertisement generation method and device, video advertisement playing method and device, equipment, storage medium and product

By encoding video content and advertising content separately onto different encoding tracks and embedding user tags and track indexes in dedicated tracks, the problem of severe coupling between advertising content and main video content in existing technologies is solved. This enables dynamic matching and personalized playback of advertising content, improving user experience and operational efficiency.

CN121865052APending Publication Date: 2026-04-14MIGU CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-16
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

In existing video advertising technologies, the ad content is heavily coupled with the main video content, lacks personalized recommendation capabilities, and cannot be managed flexibly, resulting in high maintenance costs and a poor user experience.

Method used

Video content and advertising content are encoded into different encoding tracks, and user tags and track indexes are embedded in the dedicated tracks to achieve dynamic matching and playback of advertising content.

Benefits of technology

It improved the accuracy and personalization of ad targeting, reduced operating costs, and enhanced system response speed and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121865052A_ABST
    Figure CN121865052A_ABST
Patent Text Reader

Abstract

The invention discloses a video advertisement generation method and device, a video advertisement playing method and device, equipment, a storage medium and a product. The video advertisement generation method comprises the steps that first data corresponding to video content is acquired, at least one piece of second data is acquired, and each piece of second data corresponds to advertisement content to be put; configuring third data comprising the information field of the corresponding advertisement content for each second data to obtain an information set of the third data of the advertisement content to be put; wherein the third data at least comprises a user label and a track index, the user label represents a user portrait corresponding to the advertisement content, and the track index represents a coding track corresponding to the second data; and encoding the first data to a first encoding track, encoding the information set to a second encoding track, and encoding each second data to an encoding track corresponding to the track index to obtain multi-track encoding data corresponding to the video advertisement. The accuracy and individuation degree of advertisement putting can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of multimedia processing technology, and in particular to a method, apparatus, device, storage medium, and product for generating and playing video advertisements. Background Technology

[0002] Video advertising technology is an important component of digital media communication, widely used in streaming media, online video platforms, and other fields. With the diversification of user needs and the development of personalized recommendation technologies, video advertising is no longer satisfied with simple insertion and playback; it requires greater flexibility and controllability to achieve precise targeting and dynamic management.

[0003] In related technologies, video ads are typically embedded directly into the main video track for playback, or overlaid as ad layers at specific times via server-side / client-side. Additionally, some solutions use picture-in-picture or floating layers to display ad content in the corner of the video. These methods largely rely on encoding the ad content and the main video content onto the same track, lacking independent control and flexible replacement capabilities for the ad content.

[0004] Because the ad content and the main video content are not separated at the encoding and decoding level, it is impossible to dynamically adjust the ad content based on user behavior or interests. Ad updates require re-creating or splicing the entire video file, increasing maintenance costs and making personalized distribution difficult. Furthermore, the existing ad playback method has poor adaptability to user experience, limiting ad effectiveness. Summary of the Invention

[0005] In view of this, embodiments of this application provide a method, apparatus, device, storage medium, and product for generating and playing video advertisements, aiming to achieve personalized distribution of advertising content in online videos and enhance user experience and advertising value.

[0006] The technical solution of this application embodiment is implemented as follows: In a first aspect, embodiments of this application provide a method for generating video advertisements, including: Obtain first data corresponding to the video content, and obtain at least one second data, each of the second data corresponding to the advertisement content to be delivered; Configure each of the second data with third data including the information fields of the corresponding advertising content to obtain the information set of the third data of the advertising content to be delivered; wherein, the third data includes at least user tags and track indexes, the user tags representing the user profile corresponding to the advertising content, and the track index representing the coded track corresponding to the second data; The first data is encoded into a first encoding track, the information set is encoded into a second encoding track, and each of the second data is encoded into the encoding track corresponding to the track index to obtain multi-track encoded data corresponding to the video advertisement.

[0007] In the above scheme, the third data further includes one or more of the following: An ad ID used to uniquely identify ad content; Playback type used to indicate the playback format of advertising content; This is used to indicate the first moment when the advertisement content begins playing within the video content; Secondary time information used to indicate the duration of ad playback; URL information used to represent the access link corresponding to the advertising content.

[0008] The above-described scheme further includes one or more of the following: Update at least one of the second data and encode it to the coded track corresponding to the track index; Update at least one third data corresponding to the second data and encode it into the second encoding track; Delete the encoded data of at least one encoded track corresponding to the track index of the second data, and delete the third data corresponding to the second data in the second encoded track.

[0009] In the above scheme, encoding the first data to a first encoding track, encoding the information set to a second encoding track, and encoding each of the second data to the encoding track corresponding to the track index includes: The first data is encoded into the first encoding track based on the video encoding method; Each of the aforementioned information sets is encoded into a second encoding track based on an encryption algorithm; Based on the video encoding method and the track index corresponding to the second data, each piece of the second data is encoded to the encoding track corresponding to the track index.

[0010] Secondly, embodiments of this application also provide a method for playing video advertisements, including: Generate target user tags representing the current user's user profile based on logged-in user information; In response to a playback command, obtain the multitrack encoded data corresponding to the target video advertisement; Decode the first and second encoded tracks in the multi-track encoded data to obtain first data corresponding to the first encoded track and an information set corresponding to the second encoded track; wherein, the first data corresponds to video content, and the information set includes third data of the advertisement content to be delivered, the third data includes information fields of the corresponding advertisement content, the third data includes at least user tags and track indexes, the user tags represent the user profile corresponding to the advertisement content, and the track indexes represent the encoded track of the second data corresponding to the advertisement content; Based on the matching results between the target user tag and the user tags of each third data in the information set, a subset of information of the third data that matches the current user is determined; Based on the first data, the video content is played, and the encoded track corresponding to the track index of the third data in the information subset is decoded to obtain the second data corresponding to the current user's advertisement content.

[0011] In the above scheme, the third data further includes first time information indicating the time point when the advertisement content begins playing in the video content, and the method further includes: If, during the process of playing video content based on the first data, it is determined that the current time point of the video content is greater than or equal to the time point corresponding to the first time information, then the advertisement content is displayed based on the corresponding second data.

[0012] In the above scheme, the third data further includes second time information for representing the playback duration of the advertisement content, and the method further includes: If the display duration of the displayed advertisement content reaches the duration corresponding to the second time information, then the display of the advertisement content based on the corresponding second data will be terminated.

[0013] In the above scheme, the third data further includes a playback type for representing the playback format of the advertising content, and the display of advertising content based on the corresponding second data includes: If the playback format of the advertisement content is determined to be the first format based on the playback type, then the playback of the video content is maintained, and the advertisement content corresponding to the second data is presented on the video content in a picture-in-picture format. If the playback format of the advertisement content is determined to be the second format based on the playback type, the playback of the video content is paused, and the advertisement content corresponding to the second data is displayed in an overall rendering manner until the display of the advertisement content is exited and the playback of the video content is resumed.

[0014] In the above scheme, the third data also includes URL information representing the access link corresponding to the advertising content, and the method further includes: In response to preset operations on the rendering interface of the advertisement content displayed in the picture-in-picture or overall rendering format, the URL corresponding to the URL information is accessed based on the browser component.

[0015] Thirdly, embodiments of this application also provide a video advertisement generation apparatus, comprising: The first acquisition module is used to acquire first data corresponding to the video content and acquire at least one second data, each of the second data corresponding to the advertisement content to be delivered; A configuration module is used to configure third data, including information fields of the corresponding advertising content, for each of the second data, to obtain an information set of the third data of the advertising content to be delivered; wherein, the third data includes at least user tags and track indexes, the user tags representing the user profile corresponding to the advertising content, and the track index representing the coded track corresponding to the second data; The encoding module is used to encode the first data to a first encoding track, encode the information set to a second encoding track, and encode each of the second data to the encoding track corresponding to the track index, so as to obtain multi-track encoded data corresponding to the video advertisement.

[0016] Fourthly, embodiments of this application also provide a video advertisement playback device, including: The generation module is used to generate target user tags representing the user profile of the current user based on the logged-in user information; The second acquisition module is used to acquire the multitrack encoded data corresponding to the target video advertisement in response to the playback command; A decoding module is used to decode the first and second encoded tracks in the multi-track encoded data to obtain first data corresponding to the first encoded track and an information set corresponding to the second encoded track; wherein, the first data corresponds to video content, and the information set includes third data of the advertisement content to be delivered, the third data includes information fields of the corresponding advertisement content, and the third data includes at least user tags and track indexes, the user tags representing the user profile corresponding to the advertisement content, and the track index representing the encoded track of the second data corresponding to the advertisement content; The determining module is used to determine a subset of information of the third data that matches the current user based on the matching results between the target user tag and the user tags of each third data in the information set; The playback module is used to play video content based on the first data and decode the encoded track corresponding to the track index of the third data in the information subset to obtain the second data corresponding to the current user's advertisement content.

[0017] Fifthly, embodiments of this application also provide a video advertisement generation device, including: a processor and a memory for storing a computer program capable of running on the processor, wherein, when the processor is used to run the computer program, it executes the steps of the method described in the first aspect of embodiments of this application.

[0018] In a sixth aspect, embodiments of this application also provide a video advertising playback device, including: a processor and a memory for storing a computer program capable of running on the processor, wherein, when the processor is used to run the computer program, it executes the steps of the method described in the second aspect of embodiments of this application.

[0019] In a seventh aspect, embodiments of this application also provide a computer storage medium storing a computer program, which, when executed by a processor, implements the steps of the method described in any aspect of embodiments of this application.

[0020] Eighthly, embodiments of this application also provide a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in any aspect of embodiments of this application.

[0021] The technical solution provided in this application involves obtaining first data corresponding to video content and at least one second data, each second data corresponding to the advertisement content to be delivered; configuring third data, including information fields of the corresponding advertisement content, for each second data to obtain an information set of the third data of the advertisement content to be delivered; wherein, the third data includes at least user tags and track indexes, the user tags representing the user profile corresponding to the advertisement content, and the track index representing the encoded track corresponding to the second data; encoding the first data to the first encoded track, encoding the information set to the second encoded track, and encoding each second data to the encoded track corresponding to the track index to obtain multi-track encoded data corresponding to the video advertisement. By encoding the video content and advertisement content to different encoded tracks respectively, and embedding information such as user tags and track indexes in the second encoded track, the advertisement content can be dynamically matched and played according to the user profile, thereby improving the accuracy and personalization of advertisement delivery; in addition, compared with the method of directly embedding advertisement content into the main video track in related technologies, this application supports flexible replacement, updating and deletion of advertisement content without remaking the entire video file, significantly reducing operating costs; furthermore, the efficient positioning and decoding of advertisement content through track indexes helps to improve system response speed and user experience. Attached Figure Description

[0022] Figure 1 This is a flowchart illustrating the method for generating video advertisements according to an embodiment of this application; Figure 2This is a flowchart illustrating the video advertisement playback method according to an embodiment of this application; Figure 3 This is a schematic diagram of the track structure of a multi-track video file in an application embodiment of this application; Figure 4 This is a schematic diagram of the track separation encoding structure in an application embodiment of this application; Figure 5 This is a schematic diagram of the video advertisement playback process in the application embodiments of this application; Figure 6 This is a schematic diagram illustrating the process of triggering advertisement playback based on progress monitoring during video playback in the application embodiments of this application; Figure 7 This is a schematic diagram of the structure of the video advertisement generation device according to an embodiment of this application; Figure 8 This is a schematic diagram of the structure of a video advertisement playback device according to an embodiment of this application; Figure 9 This is a schematic diagram of the structure of the video advertisement generation device according to an embodiment of this application; Figure 10 This is a schematic diagram of the structure of a video advertisement playback device according to an embodiment of this application. Detailed Implementation

[0023] The present application will now be described in further detail with reference to the accompanying drawings and embodiments.

[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.

[0025] Before providing a further detailed description of the embodiments of this application, the nouns and terms used in the embodiments of this application are explained, and the nouns and terms used in the embodiments of this application shall be interpreted as follows: 1) Video Ads: These are multimedia resources that include video content and advertising content to be displayed. They adopt a multitrack encoding structure. In live streaming scenarios, the video ad is a data stream with a multitrack encoding structure. In offline playback scenarios, the video ad is a multimedia file that can adopt a multitrack encoding structure.

[0026] 2) First data: refers to the original data of the video content, which is usually standard video material without advertising information, and is used to form the main content of the video playback.

[0027] 3) Second data: refers to data related to the advertising content to be placed, including but not limited to the advertising content itself.

[0028] 4) Third Data: This refers to the set of information fields configured for the second data, including at least user tags and track indexes. User tags represent the user profile corresponding to the advertising content, enabling personalized advertising recommendations; track indexes identify the position of the second data within the multi-track encoding structure, allowing the player to quickly locate and retrieve the corresponding advertising content during decoding.

[0029] 5) Multitrack encoded data: This refers to a composite encoded data structure formed by encoding the first data, the third data, and each second data into different encoding tracks. Specifically, the first data is encoded into the first encoding track, the third data is encoded into the second encoding track, and each second data is encoded into its corresponding encoding track according to its track index.

[0030] 6) Track Index: This is a number used to identify the storage location of specific data in a video file or video stream data packet. The data content of the corresponding track can be quickly accessed through this index.

[0031] 7) User tags: A tagging system built on user behavior data, interests, preferences, age, region, and other information, used to match advertising content with target user groups.

[0032] 8) Picture-in-picture format: This is an advertising display method where the advertising content is superimposed on the main video in a smaller image without affecting the normal playback of the main video. It is suitable for short, lightweight advertising content.

[0033] 9) Full-screen format: This is another way of displaying ads. The ad content will pause the main video playback and occupy the entire playback screen. It is suitable for longer ad content that requires user attention.

[0034] 10) Playback command: refers to the user's operation to start video playback or the playback action automatically triggered by the system, used to start the video playback process.

[0035] 11) Encryption algorithm: refers to the data encryption method used when encoding third data into the second encoding track, which is used to ensure the security of advertising information and prevent illegal tampering.

[0036] To address the problems of deep coupling between ad content and the main video, lack of personalized recommendation capabilities, and inflexible management in existing video ad playback technologies, this application proposes a method for generating and playing video ads. This method encodes video content and ad content onto different tracks, embedding tag information matching user profiles and the track index of the ad content into dedicated tracks, thus achieving dynamic loading and precise delivery of ad content. This approach not only improves the flexibility and controllability of ads but also significantly enhances user experience and reduces the cost of ad updates and management. It allows for flexible insertion, dynamic updates, and precise delivery of ad content without altering the basic video playback logic, thereby meeting the needs of different users, improving ad conversion rates and platform operational efficiency, and possessing broad application prospects.

[0037] This application provides a method for generating video advertisements, which can be executed by a video content processing system (also known as a video advertisement generation device). This system may include, but is not limited to, devices such as servers and encoders. Figure 1 As shown, the method includes: Step 101: Obtain first data corresponding to the video content, and obtain at least one second data, each of the second data corresponding to the advertisement content to be delivered.

[0038] For example, the first data corresponding to the video content is typically standard raw video footage, such as main video content without advertising information. The second data corresponding to the advertising content to be delivered includes the advertising content itself. If one video content corresponds to multiple advertising contents to be delivered, then there are multiple sets of second data, meaning that the second data can correspond one-to-one with the advertising content to be delivered. This facilitates the subsequent separation and encoding of the second data from the first data for decoupling, thereby supporting subsequent personalized delivery and flexible management.

[0039] In this embodiment, the first data corresponding to the video content can be obtained through a video capture device or video editing software, while the second data corresponding to the advertisement content to be delivered can be generated through an advertising management system.

[0040] Understandably, separating ad content from main video content not only improves the flexibility of ad delivery but also reduces the cost of updating and replacing ad content, thereby increasing the operational efficiency of the ad system.

[0041] Step 102: Configure third data including information fields of the corresponding advertising content for each of the second data to obtain an information set of the third data of the advertising content to be delivered; wherein, the third data includes at least user tags and track indexes, the user tags representing the user profile corresponding to the advertising content, and the track index representing the coded track corresponding to the second data.

[0042] In practice, the third data, which includes information fields related to the corresponding advertising content, is a data structure used to establish the mapping relationship between advertising content and user profiles. The third data is typically stored in formats such as JSON, XML, or Protobuf, and contains multiple fields. The two most important fields are the user tag representing the user profile corresponding to the advertising content and the track index representing the encoded track corresponding to the second data.

[0043] Understandably, if a video content corresponds to multiple ad content to be delivered, the third-party data of these multiple ad content can be used to form an information set. That is, the information set can include the information fields of each ad content, which facilitates the personalized distribution of ad content based on the user profile of the user who plays the video.

[0044] User tags representing the user profiles corresponding to the advertising content are used to describe the target user group of the advertising content. In other words, the user tags corresponding to the advertising content can include tag values ​​of one or more user profiles. When there are multiple user profile tag values, the audience of the advertising content is a user group composed of multiple user profiles. That is, any user falling into any of the multiple user profiles is a target audience for the advertising content. For example, the user tags configured for a certain advertising content are [1001, 1005], where 1001 and 1005 correspond to different user profiles. Tag 1001 corresponds to the user group of "Gender: Female, Age: 18-25 years old, Region: Southern, Interest: Fashion", and tag 1005 corresponds to the user group of "Gender: Female; Age: 45-60; Region: Northeast; Interest: Home". When a user watches a video advertisement, the player will calculate the user's profile tags based on the user's browsing behavior data and related feature data, and match them with the user tags of the advertising content to decide whether to play the advertising content.

[0045] The track index, representing the encoded track corresponding to the second data, is used to identify the storage location of the advertisement content within the video file. Since video files typically contain multiple video and audio tracks, with one video track and one audio track constituting an encoded track, each advertisement is assigned a unique track index (e.g., numbered starting from 2) so that the player can quickly locate and retrieve the corresponding advertisement content after parsing its track index.

[0046] For example, by introducing user tags representing user profiles corresponding to the ad content and track indexes representing coded tracks corresponding to the second data, the system can achieve accurate matching between ad content and user profiles. Simultaneously, this approach ensures that ad content can be efficiently accessed during playback, thereby improving the accuracy and response speed of ad delivery.

[0047] Step 103: Encode the first data to the first encoding track, encode the information set to the second encoding track, and encode each of the second data to the encoding track corresponding to the track index to obtain multi-track encoded data corresponding to the video advertisement.

[0048] For example, the first data corresponding to the video content (i.e., the main video content) is typically encoded into the first video track and the first audio track (i.e., the first encoded track, track index 0), which is the main content for normal viewing by the user. The information set formed by the third data, including the information fields of the corresponding advertising content, is encrypted and encoded into the second video track and / or the second audio track (i.e., the second encoded track, track index 1). This second encoded track can store the encoded information of the advertising content's information fields (i.e., the encoded information of the third data), such as, but not limited to: track index, user tags of the user profile corresponding to the advertising content, advertising duration, and the playback format of the advertising content. Each piece of second data corresponding to the advertising content to be delivered (i.e., the specific advertising content) is encoded into different encoded tracks according to the track index of the corresponding encoded track. For example, advertising content with track index 2 corresponding to the second data will be encoded into the third video track and the third audio track, and so on.

[0049] Understandably, by encoding the main video content, the information fields of the advertisement content, and the advertisement content themselves into different encoding tracks, the system can achieve dynamic loading and flexible replacement of advertisement content without changing the video playback logic. Furthermore, since the advertisement content and the main video content are independent at the encoding level, even if the advertisement content needs to be changed, users do not need to recreate the entire video file containing both the main video and the advertisement content; they only need to update the corresponding advertisement track storing the advertisement content.

[0050] In actual implementation, the system adopts a multi-track coding method. This technology can effectively reduce the cost of ad updates and management, while improving the controllability of ad playback and the user experience, thereby enabling ad delivery to achieve a higher level of intelligence and personalization.

[0051] It is understood that the video ad generation method provided in this application embodiment achieves dynamic loading and precise delivery of ad content by encoding the first data corresponding to the video content and the second data corresponding to the ad content to be delivered to different tracks, and embedding a track index and user tags representing the user profile corresponding to the ad content into a dedicated track, which is a set of information containing information fields of the corresponding ad content. This method not only improves the flexibility and controllability of ads but also significantly improves the user experience and reduces the cost of ad updates and management, thus possessing broad application prospects.

[0052] In some embodiments, the third data further includes one or more of the following: An ad ID used to uniquely identify ad content; Playback type used to indicate the playback format of advertising content; This is used to indicate the first moment when the advertisement content begins playing within the video content; Secondary time information used to indicate the duration of ad playback; URL information used to represent the access link corresponding to the advertising content.

[0053] Here, the Ad ID is an identifier used to uniquely identify a piece of ad content, typically a string or numeric code. The Ad ID allows for accurate identification and matching of different ad content, avoiding confusion. For example, in video files, the Ad ID can be used to associate the track index and playback information of the ad, thus achieving precise targeting. The Ad ID can also serve as a key field for database queries, used to manage ad lifecycles, updates, and deletions.

[0054] For example, when the player parses the information fields (i.e., third-party data) of the advertisement content, it searches for the matching advertisement ID based on the current user profile and playback time, and then decodes the corresponding advertisement content on the track index of that advertisement ID. This mechanism of parsing information fields, finding the matching advertisement ID, and decoding the advertisement content based on the track index of the advertisement ID allows the advertisement content to be managed and scheduled independently without affecting the playback logic of the main video, thereby improving the flexibility and maintainability of the advertising system.

[0055] Here, playback type refers to the specific way the advertising content is displayed during video playback, such as picture-in-picture, full-screen, or a floating layer. Playback type determines how the advertisement is presented in the player interface and the user's interaction behavior. For example, picture-in-picture allows the advertisement to play in a small window above the original video, while full-screen pauses the original video and fully displays the advertisement content.

[0056] The choice of playback type can be dynamically adjusted based on advertising strategy, user preferences, and platform characteristics. For example, on mobile devices, given the smaller screen size, the system may prioritize a full-screen format; while on television, a picture-in-picture format might be more suitable. Playback type is also closely related to the creative design of the advertising content; the choice of playback type ensures that the advertisement attracts user attention without disrupting the user experience.

[0057] For example, there is a relationship between ad ID and playback type. The ad ID identifies the specific ad content to be played, while the playback type determines how the ad content is presented to the user. Therefore, in an ad scheduling system, the ad ID and playback type fields usually appear in pairs, together forming the basic parameter combination for ad playback.

[0058] Here, "first-time information" refers to the starting playback time of the advertisement during video playback, usually expressed in milliseconds or seconds. This information determines when the advertisement is inserted into the video stream, thus affecting the user's viewing rhythm and the advertisement's exposure rate. For example, if an advertisement is set to start playing at the 120-second mark of the video playback, the system will switch to the corresponding advertisement track and start playback at the 120-second mark.

[0059] The accuracy of time information plays a crucial role in the coordination and synchronization of ad playback. In a multi-track structure, the system determines the importance of accurate time information for ad playback and precisely controls the insertion timing of ad content based on timestamps through the player to avoid playback delays or misalignments. The system can also use time information to perform ad playback logging for subsequent data analysis and optimization.

[0060] Here, the second time information refers to the playback duration of the ad content, that is, the length of time from the start to the end of the ad playback. The playback duration of the ad content determines the time resources occupied by the ad content in the player, and directly affects the complete display of the ad content and user acceptance. If the ad content is set to play for 15 seconds, the player will automatically exit the ad content playback state after 15 seconds and resume the playback of the main video.

[0061] The design of ad duration needs to balance advertising effectiveness and user experience. Ads that are too short may fail to effectively convey information, while ads that are too long may annoy users. Therefore, the system can flexibly set the playback duration of different ads based on the importance of the ad content, user feedback, and platform strategies, thereby maximizing the advertising value of the ad content.

[0062] For example, the system defines the playback interval of the advertisement content using both first and second time information. After determining the advertisement ID to be played, the system determines the insertion timing of the advertisement content based on the first time information and judges when the advertisement content ends by combining the second time information, thereby achieving precise control over the playback of the advertisement content.

[0063] Here, URL information refers to the external access link associated with the advertisement content, usually a web address (URL). When a user clicks on the advertisement screen or related controls, the system will open a browser page based on the URL information, guiding the user to the target website or application. As an important component of the advertisement's interactive function, URL information directly determines whether the user can successfully access the content or service behind the advertisement.

[0064] The accuracy and security of URL information are crucial for the stable operation of an advertising system. For example, the system should verify the validity of URLs to prevent the injection of malicious links; it should also support secure protocols such as HTTPS to ensure the secure transmission of user data. Furthermore, URL information can be used to track ad clicks and conversion rates, providing data support for evaluating ad performance.

[0065] In some embodiments, the method further includes one or more of the following: Update at least one of the second data and encode it to the coded track corresponding to the track index; Update at least one third data corresponding to the second data and encode it into the second encoding track; Delete the encoded data of at least one encoded track corresponding to the track index of the second data, and delete the third data corresponding to the second data in the second encoded track.

[0066] It is understood that, due to the multi-track structure adopted in the embodiments of this application, the deletion and updating of advertising content and / or related information fields can be achieved without changing the main video content, thereby realizing dynamic management of advertising content.

[0067] For example, when the advertising content needs to be dynamically adjusted, the second data of the advertising content can be updated and re-encoded to the encoding track corresponding to the track index to overwrite the encoding data of the old advertising content, thereby ensuring that the player can obtain the latest advertising content in a timely manner and improving the flexibility and real-time performance of the advertising content.

[0068] For example, when it is necessary to dynamically adjust at least some information fields of advertising content, the third data of the advertising content can be updated and encoded into a second encoding track, thereby achieving dynamic updates of the information fields of the advertising content. For instance, if the target user group of an advertising content needs to be updated, this can be achieved by updating the user tags of the user profile of the advertising content, thereby enabling dynamic adjustments to the personalized distribution of advertising content.

[0069] For example, unused advertising data can also be cleaned up. Specifically, the encoded data of the encoded track corresponding to the track index of the second data is deleted, i.e., the encoded data of the advertising content is cleared; simultaneously, the third data (i.e., the information field of the advertising content) corresponding to the second data is deleted from the second encoded track, thereby completely removing the influence of the advertising content. In this way, invalid advertisements can be prevented from consuming bandwidth and storage space, reducing the parsing burden on the player and improving system operating efficiency. In addition, the deletion operation can also prevent expired or irrelevant advertising content from being played incorrectly, thereby improving user experience and advertising accuracy.

[0070] In some embodiments, encoding the first data to a first encoding track, encoding the information set to a second encoding track, and encoding each of the second data to the encoding track corresponding to the track index includes: The first data is encoded into the first encoding track based on the video encoding method; Each of the aforementioned information sets is encoded into a second encoding track based on an encryption algorithm; Based on the video encoding method and the track index corresponding to the second data, each piece of the second data is encoded to the encoding track corresponding to the track index.

[0071] Here, video encoding methods refer to the technical standards or methods used to compress and encode video or advertising content, such as H.264 (MPEG-4 AVC) or H.265 (HEVC). These encoding methods can efficiently compress video data, reduce storage space and transmission bandwidth requirements, while maintaining high video quality. In this application, the first data typically refers to the main video content, i.e., the core video material viewed by the user. The system encodes the first data into the first encoding track (track index 0) using a standard video encoding method. This encoding method ensures the quality and compatibility of the main video content and enables the player to decode and render it smoothly.

[0072] The choice of video encoding method directly affects the size of the video file and its playback performance. In this application, the use of a standard video encoding method not only ensures high-quality playback of the first data but also supports broad compatibility across various devices and platforms, thereby enhancing the user experience. Furthermore, since the first data is the main video content, the system independently encodes it onto the first encoding track. This operation provides the infrastructure support for the flexible insertion and dynamic replacement of subsequent advertising content.

[0073] For example, the second data refers to the advertisement content itself, i.e., the specific advertising creative. In this application, each piece of advertisement content is assigned a unique track index value (starting from track index 2) based on the attributes of the advertisement content (such as advertisement ID, tags, display format, etc.). Then, the advertisement content is encoded using a video encoding method (such as H.264 or H.265) and written into the corresponding encoded track. By encoding each piece of second data into the encoded track corresponding to the track index, the system achieves the separation of advertisement content from the first data, thereby enabling advertisements to exist independently, be flexibly updated, and dynamically replaced.

[0074] Track indexes are numerical identifiers used in video files to identify different encoded tracks. In this application, the first data is located at track index 0, the information set is located at track index 1, and each second data item is stored in a different track index (such as track indexes 2, 3, 4, etc.). This multi-track structure allows the player to dynamically select and load specific advertising content based on user profiles and playback progress, thereby achieving personalized advertising playback.

[0075] By encoding each piece of second data into encoded tracks corresponding to different track indices, this application achieves modular management and flexible scheduling of advertising content. The player can load only the required advertising tracks without decoding the entire video file, thereby significantly reducing playback latency and resource consumption. Furthermore, since the second data is separated from the first data, the system can quickly update or replace advertising content without regenerating the entire video file, greatly reducing advertising operation and maintenance costs.

[0076] For example, this application also provides a method for playing video advertisements, which can be executed by a video advertisement playback system (also known as a video advertisement playback device). This system may include, but is not limited to, devices such as servers, decoders, and players. Figure 2 As shown, the method includes: Step 201: Generate target user tags representing the user profile of the current user based on the logged-in user information.

[0077] User information refers to the basic information and behavioral data that users fill in when registering and logging into the system, such as gender, age, region, interests, and viewing history. Target user tags are a set of key attributes extracted from user information; this set characterizes the behavioral features and interests of users covered by the target user tags. A user profile is a structured description of user behavior and interests, typically generated through algorithmic models (such as clustering and classification). Target user tags can serve as a basis for ad targeting, ensuring a high degree of match between ad content and user interests.

[0078] In this embodiment, by generating target user tags, accurate identification of users' personalized needs can be achieved. The system can then more effectively select advertising content suitable for users.

[0079] Step 202: In response to the playback command, obtain the multitrack encoded data corresponding to the target video advertisement.

[0080] Multitrack encoded data refers to the data format of different tracks in a target video advertisement, including the first encoded track corresponding to the main video content, the second encoded track corresponding to the information field set of multiple advertisement contents, and multiple advertisement encoded tracks.

[0081] In this embodiment of the application, by acquiring multi-track encoded data, the system can realize the dynamic loading and flexible replacement of advertising content, thereby enabling the system to perform differentiated playback operations on advertising content according to the needs of different users.

[0082] Step 203: Decode the first and second encoded tracks in the multi-track encoded data to obtain first data corresponding to the first encoded track and information set corresponding to the second encoded track; wherein, the first data corresponds to video content, the information set includes third data of the advertisement content to be delivered, the third data includes information fields of the corresponding advertisement content, the third data includes at least user tags and track indexes, the user tags represent the user profile corresponding to the advertisement content, and the track indexes represent the encoded track of the second data corresponding to the advertisement content.

[0083] The first encoded track is typically the main track for the video content, used to play the primary video content viewed by the user. The second encoded track stores ad-related metadata, which is a collection of structured information fields. A structured data set is a data format used to describe the attributes and relationships of ad content. The third data, as a component of the structured data set, contains user tags for the ad content and track indexes. User tags identify which types of users the ad content described by the third data is suitable for, and track indexes indicate the specific location of the ad content described by the third data within the encoded track.

[0084] Step 204: Based on the matching results between the target user tag and the user tags of each third data in the information set, determine the information subset of the third data that matches the current user.

[0085] The information subset is a portion of data filtered from the information set that has a high degree of matching with the current user's target user tags. The system compares the target user tags with the user tags of the advertisement content to obtain a matching result. The system only considers the advertisement content suitable for the current user if there is overlap or similarity between the target user tags and the user tags of the advertisement content. The system uses algorithmic models (such as cosine similarity and Euclidean distance) to calculate the matching process to improve the accuracy of the matching. In this way, a set of information fields of the advertisement content suitable for the user can be obtained.

[0086] In this embodiment of the application, by matching the target user tags with the user tags of the advertising content, it can be ensured that the advertising content is highly consistent with the user's interests. The operation of matching the target user tags with the user tags of the advertising content can improve the click-through rate and conversion rate of the advertisement.

[0087] Step 205: Play the video content based on the first data, and decode the encoded track corresponding to the track index of the third data in the information subset to obtain the second data corresponding to the current user's advertisement content.

[0088] The first data is the raw data of the main video content, used to play the main video content watched by the user. The second data is the data of the advertisement content, which is extracted from the advertisement track based on the matching results. The track index is used to identify the position information of the advertisement content on the track. The player can find the corresponding advertisement track based on the track index and decode it. The decoded advertisement content can be presented to the user in picture-in-picture or full-screen format.

[0089] Understandably, by generating target user tags based on user information and matching them with the information set of the advertising content, a subset of third-party data about the current user is obtained. Based on this subset, the multi-track encoded data is dynamically decoded to dynamically recommend advertising content, enabling personalized recommendations. This ensures that advertising content is highly consistent with users' interests and behaviors, thereby increasing click-through rates and conversion rates, ultimately enhancing user engagement and the platform's commercial value.

[0090] In some embodiments, the third data further includes first time information indicating the time point at which the advertisement content begins playing in the video content, and the method further includes: If, during the process of playing video content based on the first data, it is determined that the current time point of the video content is greater than or equal to the time point corresponding to the first time information, then the advertisement content is displayed based on the corresponding second data.

[0091] Here, the first time information used to indicate when the ad content begins playing within the video content can be the specific timestamp at which the ad content begins to appear during the main video playback. This first time information can be a precise value relative to the video's start point (e.g., 00:01:20), or it can be a time position calculated based on the frame rate. By setting this first time information to indicate when the ad content begins playing within the video content, the system can automatically trigger the ad playback logic at a specified time, ensuring that the ad is not displayed prematurely or delayed, thereby improving the accuracy of the playback process and the user experience.

[0092] In practical applications, the initial timing information used to indicate when an ad begins playing within a video is typically determined by the business requirements at the time of ad insertion. For example, in a 3-minute video, an ad might be inserted at 1 minute 30 seconds; while in another video, it might be placed at 40 seconds or 2 minutes 10 seconds. Systems with this flexible configuration capability allow ad content to be customized for different content scenarios.

[0093] During video playback, the system monitors the current playback time in real time and compares it with the primary time information indicating when the advertisement started playing within the video content. Once the current time reaches or exceeds the time point corresponding to the primary time information indicating when the advertisement started playing within the video content, the system will initiate the advertisement playback logic based on information fields in the third-party data (such as the advertisement track index and display format). This method achieves automated and precise control of advertisement playback, avoiding problems such as manual intervention or timing misalignment.

[0094] For example, the player can obtain a set of information fields of the advertisement content by parsing the second encoded track (i.e., track 1) in the video file. Then, during playback, the player continuously compares the current time with the first time information in the information fields that indicates the time point when playback starts. If the condition is met, that is, the current time point of the video content is determined to be greater than or equal to the time point corresponding to the first time information, the player will switch to the encoded track corresponding to the corresponding advertisement ID and perform the corresponding rendering operation, such as picture-in-picture or full-screen display.

[0095] In this embodiment of the application, by introducing first time information to indicate the time point when the advertisement content starts playing in the video content, and dynamically judging whether the time point has been reached during the playback process to trigger the advertisement playback, the accuracy of advertisement playback can be improved, thereby avoiding user experience problems caused by advertisements playing too early or too late, and thus enabling more refined advertisement scheduling and personalized recommendations.

[0096] In some embodiments, the third data further includes second time information for representing the playback duration of the advertisement content, and the method further includes: If the display duration of the displayed advertisement content reaches the duration corresponding to the second time information, then the display of the advertisement content based on the corresponding second data will be terminated.

[0097] Once the advertisement begins playing, the player monitors its duration in real time and records the current playback duration. When the advertisement's playback duration reaches the length specified by the second time information used to represent that duration, the player executes exit logic based on the advertisement's display format (e.g., picture-in-picture or full-screen). For example, in picture-in-picture mode, the player automatically closes the advertisement window; in full-screen ad mode, the player ends the advertisement playback and reloads the main video content.

[0098] This mechanism ensures that advertising content is displayed precisely at the preset time, protecting the interests of advertisers while avoiding unnecessary interference with users. In this embodiment, by introducing second time information representing the playback duration of advertising content into the advertising index data and setting playback exit logic based on the second time information in the player, the system can achieve precise control over the playback duration of advertising content, ensure the complete display of advertising content, and improve the advertising delivery effect and user viewing experience.

[0099] In some embodiments, the third data further includes a playback type for indicating the playback format of the advertising content, and the display of the advertising content based on the corresponding second data includes: If the playback format of the advertisement content is determined to be the first format based on the playback type, then the playback of the video content is maintained, and the advertisement content corresponding to the second data is presented on the video content in a picture-in-picture format. If the playback format of the advertisement content is determined to be the second format based on the playback type, the playback of the video content is paused, and the advertisement content corresponding to the second data is displayed in an overall rendering manner until the display of the advertisement content is exited and the playback of the video content is resumed.

[0100] For example, the playback type describes two different ad content playback strategies: one is non-interrupted playback in picture-in-picture format (i.e., the first format), and the other is interrupted playback in full-screen format (i.e., the second format). Users or the system select one of these two formats based on the ad content's playback type field. When the playback type is the first format (e.g., picture-in-picture), the player maintains the playback of the main video while inserting a smaller ad content window at a designated location, allowing users to see the ad content without interrupting their main video viewing experience. This approach is suitable for lightweight ad content, such as brand logos and product displays.

[0101] When the playback type is the second form (such as full-screen overlay), the player pauses the main video playback and displays the advertisement content in full-screen mode. This playback method is designed to ensure that the advertisement content is fully conveyed to the user during important events, promotional information, or longer advertisements. Once the advertisement content finishes playing, the player automatically resumes the main video playback progress, thus ensuring a continuous viewing experience for the user.

[0102] Through the above mechanism, in this embodiment of the application, the system introduces a playback type field into the third data and determines the playback format of the advertising content based on the playback type field. The system can improve the adaptability of the advertising content and the user's acceptance, thereby optimizing the advertising content delivery effect, further enhancing user stickiness and increasing the commercial value of the platform.

[0103] In some embodiments, the third data further includes URL information representing an access link corresponding to the advertising content, and the method further includes: In response to preset operations on the rendering interface of the advertisement content displayed in the picture-in-picture or overall rendering format, the URL corresponding to the URL information is accessed based on the browser component.

[0104] Preset actions refer to actions performed on the rendered interface of the advertisement content, such as clicking or long-pressing. Preset actions are pre-defined in the design using coordinate positioning or area division, and their response logic is configured in the player. When a user performs a preset action, the system determines the current location of the action, confirms whether it is within the advertisement content area, and invokes a browser component to redirect based on the preset action's configuration information.

[0105] Browser components are modules built into the player or capabilities that invoke the system-level browser. Their role is to open the target webpage and load the corresponding content after a user triggers an ad link. Browser components support multiple protocols, such as HTTP / HTTPS, and can handle standard network requests such as redirects and form submissions.

[0106] In practical applications, when a user sees an advertisement displayed in picture-in-picture format while watching a video, they may become interested in the advertisement and click on the ad content area. At this point, the player detects that the user's click occurred within the ad content area and launches a browser component to redirect the user to the webpage associated with the ad content, thus achieving the desired conversion. This ad click and redirection process does not require reloading the entire video file or interrupting playback, improving the user experience and the interactivity of the ad content.

[0107] The present application will be further described in detail below with reference to application examples.

[0108] This application embodiment provides a method for generating and playing video advertisements. It creates user tags matching user profiles for the advertisement content and establishes a mapping relationship between the advertisement content and its encoding track index, user tags, and advertisement video duration (i.e., the aforementioned third data). The main video (i.e., the first data), the mapping relationship information, and the advertisement content (i.e., the second data) are encoded on different encoding tracks. When a user watches the video, the player can decode the mapping relationship information to find the advertisement ID matching the user profile, further determine the track containing the advertisement content corresponding to that advertisement ID, and decode it. This allows the system to dynamically analyze the advertisement content, achieving flexible management and personalized recommendations, thus improving user experience and advertising value.

[0109] It's important to note that user interests and behaviors are diverse in online video advertising. Traditional advertising methods, failing to differentiate content based on user interests, negatively impact ad performance. On mobile devices and OTT (Over-The-Top) platforms, user viewing behavior is more fragmented, and their acceptance of ad content is lower. Therefore, precise targeting and playback management of video ads are crucial. (Refer to...) Figure 3 Video files (such as MP4 files) typically have multiple video and audio tracks, but currently used video software and video encoding processes often only use one video track and one audio track, resulting in the multi-audio video encoding tracks designed into MP4 files not being fully utilized.

[0110] Based on this, this application embodiment uses a multi-track architecture encoding format to generate and play video advertisements that support personalized distribution. The specific implementation steps are as follows: The first step is to encode the video ads based on a multi-track design.

[0111] 1) The video library prepares standard raw video content data for user viewing and encodes the video content into video track 1 (track index 0) and audio track 1 using standard H.265 or H.264 encoding technology. The system sets video track 1 and audio track 1 as the primary playback content to provide viewing services to users.

[0112] 2) Prepare ad video data and tag it according to the ad content, so that each ad has a set of tag values ​​that match the user profile. For example, an ad content has the tags: [1001, 1005]. 1001 and 1005 correspond to different user profiles. The 1001 tag group may correspond to gender: female; age range: 18-25; region: South; interest: fashion. The 1005 tag group may correspond to gender: female; age: 45-60; region: Northeast; interest: home.

[0113] 3) Create a mapping data set by combining information such as ad content and tag information (i.e., user tags), the timing of ad playback in video content (i.e., first-time information), ad video duration (i.e., second-time information), the index information of ad data encoded into the video track (i.e., track index), and the ad display format (i.e., playback type). For example, create a dataset in the form of JSON, XML, or protobuffer to obtain a dataset of information fields of the ad content to be delivered.

[0114] 4) The system uses an encryption method to encrypt the dataset in step 3). This encryption method can be symmetric encryption or other encryption methods, as long as the player can perform the corresponding decryption function. The system encodes the encrypted data into the second video track, which has an index value of 1.

[0115] 5) Based on the advertising content data prepared in step 2) and the mapping information generated in step 3), the system encodes the advertising content into the corresponding video track using video encoding (starting from track index 2, track 0 is the video content to be played, and track 1 is the mapping data), for example... Figure 4 As shown.

[0116] 6) By performing the above steps, the system encodes the advertising content and video content, and generates a video advertising data stream or video playback file containing the advertising content.

[0117] The second step is the playback and display of video ads. Reference Figure 5 The playback and display of video ads includes the following steps: 1) Users log in to the video playback software, select the video content to play, and click to enter the video playback page.

[0118] 2) The video server calculates user profile data based on the user's past viewing data and user information, and generates user ad playback tags (i.e. target user tags) related to the ad content attached to the viewed video based on the user profile data.

[0119] 3) By decoding the second encoding track, obtain the information set of the advertising content information fields of the video, and match the user's advertising playback tag with the user tag of the advertising content to obtain the set of advertising content information fields suitable for the user, that is, the detailed information of the advertising content that the user needs to play when watching the current video content.

[0120] 4) After obtaining the detailed information of the advertisements that the current user needs to play while watching the current video content, the system monitors the playback progress of the current video content. At the same time, the system iterates through the detailed information of the advertisements that the current user needs to play. When the video content reaches the trigger point of an advertisement display, the system performs the next operation according to the advertisement display format, that is, plays the advertisement content based on the advertisement display format.

[0121] 5) Play advertising content based on the advertising display format.

[0122] Here, the ad display formats include: picture-in-picture ad placement and full-position video ad placement.

[0123] If it's picture-in-picture (PiP) mode: the original video continues playing. The system uses the track index where the advertisement content is located to call the video decoder to decode the advertisement content on the corresponding track, obtaining the advertisement data to be played. The system then presents the decoded advertisement content in picture-in-picture mode on the current video. The specific location is determined by the system parsing detailed advertisement information, such as the position of the PiP advertisement (e.g., top right, bottom left, bottom right), and the size ratio of the PiP advertisement to the original video rendering area. Once the advertisement content has finished playing, the system automatically exits PiP mode.

[0124] If the current video is a full-site video ad, the system pauses decoding the original video, and the playback progress bar in the player stops updating. The video playback system uses a video decoder to decode the track index corresponding to the ad content, and then displays the decoded ad content through the player's overall rendering module. At this time, the player no longer displays the original video content, but instead shows the ad video content. After the ad video content finishes playing, the system restarts the decoding process of the original video and continues playing the original video content.

[0125] For example, refer to Figure 6 The process by which the player triggers ad playback based on progress monitoring during video playback specifically includes: a) Parse all available ad content information fields from the ad index information track (i.e., the second encoding track) and organize these information fields into an ad array ads[]. b) Iterate through the ad array, and for each ad entry in the ad array, check the following conditions in sequence: Condition 1: Whether the playback time falls within the set advertising time range, that is, whether the current time t satisfies the condition that the advertising start time ≤ t < advertising start time + advertising duration; Condition 2: Determine whether the current user's profile category identifier (uid) belongs to the target tag category set corresponding to a certain ad configuration, that is, determine whether the target user tag matches the user tag of the ad content; c) If both conditions are met, the player will switch to the corresponding advertising track for playback based on the track index and display format (such as picture-in-picture or full place) specified in the advertising entry. d) If the system fails to match any of the advertisements after iterating through all of them, the system will maintain the current playback state and will not switch advertisements.

[0126] The third step is for the user to click and trigger the advertisement. For example, depending on the form of the advertisement in the second step, the way users trigger the advertisement link will vary.

[0127] Picture-in-Picture (Picture-in-Picture) format: When a Picture-in-Picture ad is in rendering mode, the user clicks on a point within the player's rendering area. The player then obtains the coordinates (x, y) of the clicked location. A simple coordinate calculation determines whether the user's clicked location is within the Picture-in-Picture area. If it is, the browser is launched, and the link in the Picture-in-Picture ad data is opened.

[0128] For example, when a user clicks on coordinates (x, y), the system displays the coordinates of the top left corner of the picture-in-picture window as a1 and b1, with a height of h and a width of w.

[0129] If x>a1&&y>b1&&x<(a1 + w)&&y<(b1 + h) This would be interpreted as clicking on a picture-in-picture advertisement.

[0130] Full-place format: If the user clicks on the player's rendering interface during the rendering of the advertisement, the system will launch the browser and open the link corresponding to the picture-in-picture advertisement data.

[0131] Step 4: Ad Management and Updates When it is necessary to modify the advertising information field attached to an advertisement, the second encoding track can be parsed to obtain the information field of the advertisement content, that is, the third data of the advertisement content; the third data is updated, and the updated third data is re-encoded into the second encoding track.

[0132] When it is necessary to delete a certain advertisement content, the third data corresponding to the advertisement content is deleted in the second encoding track, and the encoding information content of the encoding track where the advertisement content encoding is located is also deleted.

[0133] When an advertisement needs to be updated, the encoded content in the encoding track containing the original advertisement content is first cleared. Then, the newly generated advertisement video content is processed according to the standard video encoding method and written to the encoding track index position corresponding to the original advertisement content.

[0134] Step 5: Triggering offline video playback Since both video content and advertising content are encoded into the corresponding video files by the platform, when a user downloads a video, the downloaded video will automatically contain both video content and advertising content.

[0135] When a user plays the video using a player that supports the same protocol, the player can also trigger the playback of advertisements in the offline video content through the steps described above.

[0136] In order to implement the method of the embodiments of this application, the embodiments of this application also provide a video advertisement generation apparatus, which corresponds to the video advertisement generation method described above. The steps in the embodiments of the video advertisement generation method described above are also fully applicable to the embodiments of the video advertisement generation apparatus.

[0137] Reference Figure 7 The video advertisement generation device includes: a first acquisition module 701, a configuration module 702, and an encoding module 703. The first acquisition module 701 acquires first data corresponding to the video content and acquires at least one second data, each second data corresponding to the advertisement content to be delivered. The configuration module 702 configures each second data with third data including information fields of the corresponding advertisement content, obtaining an information set of the third data of the advertisement content to be delivered; wherein the third data includes at least user tags and track indexes, the user tags representing the user profile corresponding to the advertisement content, and the track index representing the encoding track corresponding to the second data. The encoding module 703 encodes the first data to a first encoding track, the information set to a second encoding track, and each second data to the encoding track corresponding to the track index, obtaining multi-track encoded data corresponding to the video advertisement.

[0138] In some embodiments, the third data further includes one or more of the following: An ad ID used to uniquely identify ad content; Playback type used to indicate the playback format of advertising content; This is used to indicate the first moment when the advertisement content begins playing within the video content; Secondary time information used to indicate the duration of ad playback; URL information used to represent the access link corresponding to the advertising content.

[0139] In some embodiments, the encoding module 703 is further configured to perform one or more of the following: Update at least one of the second data and encode it to the coded track corresponding to the track index; Update at least one third data corresponding to the second data and encode it into the second encoding track; Delete the encoded data of at least one encoded track corresponding to the track index of the second data, and delete the third data corresponding to the second data in the second encoded track.

[0140] In some embodiments, the encoding module 703 is specifically used for: The first data is encoded into the first encoding track based on the video encoding method; Each of the aforementioned information sets is encoded into a second encoding track based on an encryption algorithm; Based on the video encoding method and the track index corresponding to the second data, each piece of the second data is encoded to the encoding track corresponding to the track index.

[0141] In practical applications, the first acquisition module 701, the configuration module 702, and the encoding module 703 can be implemented by the processor in the video advertisement generation device. Of course, the processor needs to run the computer program in memory to implement its functions.

[0142] It should be noted that the video advertisement generation device provided in the above embodiments is only illustrated by the division of the above program modules. In practical applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. In addition, the video advertisement generation device and the video advertisement generation method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.

[0143] In order to implement the method of the embodiments of this application, the embodiments of this application also provide a video advertisement playback device, which corresponds to the video advertisement playback method described above. The steps in the video advertisement playback method embodiments described above are also fully applicable to the video advertisement playback device embodiments.

[0144] Reference Figure 8 The video advertisement playback device includes: a generation module 801, a second acquisition module 802, a decoding module 803, a determination module 804, and a playback module 805. The generation module 801 is used to generate target user tags representing the user profile of the current user based on the logged-in user information; the second acquisition module 802 is used to acquire multi-track encoded data corresponding to the target video advertisement in response to a playback command; the decoding module 803 is used to decode the first and second encoded tracks in the multi-track encoded data to obtain first data corresponding to the first encoded track and information set corresponding to the second encoded track; wherein, the first data corresponds to video content, the information set includes third data of the advertisement content to be delivered, the third data includes information fields of the corresponding advertisement content, the third data includes at least user tags and track indexes, the user tags represent the user profile corresponding to the advertisement content, and the track indexes represent the encoded tracks of the second data corresponding to the advertisement content; the determination module 804 is used to determine the information subset of the third data matching the current user based on the matching results of the target user tags and the user tags of each third data in the information set; the playback module 805 is used to play the video content based on the first data and decode the encoded tracks corresponding to the track indexes of the third data in the information subset to obtain the second data corresponding to the advertisement content of the current user.

[0145] In some embodiments, the third data further includes first time information indicating the time point at which the advertisement content begins playing in the video content, and the playback module 805 is further configured to: If, during the process of playing video content based on the first data, it is determined that the current time point of the video content is greater than or equal to the time point corresponding to the first time information, then the advertisement content is displayed based on the corresponding second data.

[0146] In some embodiments, the third data further includes second time information for representing the playback duration of the advertisement content, and the playback module 805 is further configured to: If the display duration of the displayed advertisement content reaches the duration corresponding to the second time information, then the display of the advertisement content based on the corresponding second data will be terminated.

[0147] In some embodiments, the third data further includes a playback type indicating the playback format of the advertising content, and the playback module 805 displays the advertising content based on the corresponding second data, including: If the playback format of the advertisement content is determined to be the first format based on the playback type, then the playback of the video content is maintained, and the advertisement content corresponding to the second data is presented on the video content in a picture-in-picture format. If the playback format of the advertisement content is determined to be the second format based on the playback type, the playback of the video content is paused, and the advertisement content corresponding to the second data is displayed in an overall rendering manner until the display of the advertisement content is exited and the playback of the video content is resumed.

[0148] In some embodiments, the third data further includes URL information representing the access link corresponding to the advertising content, and the playback module 805 is further configured to: In response to preset operations on the rendering interface of the advertisement content displayed in the picture-in-picture or overall rendering format, the URL corresponding to the URL information is accessed based on the browser component.

[0149] In practical applications, the generation module 801, the second acquisition module 802, the decoding module 803, the determination module 804, and the playback module 805 can be implemented by the processor in the video advertising playback device. Of course, the processor needs to run the computer program in memory to implement its functions.

[0150] It should be noted that the video advertisement playback device provided in the above embodiments is only illustrated by the division of the above program modules. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. In addition, the video advertisement playback device and the video advertisement playback method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0151] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiments of this application, the embodiments of this application also provide a video advertisement generation device. Figure 9 This is merely an exemplary structure of the device for generating the video advertisement, not the entire structure; implementation is possible as needed. Figure 9 The structure shown may be part or all of the structure.

[0152] like Figure 9As shown, the video advertisement generation device 900 provided in this embodiment includes: at least one processor 901, a memory 902, a user interface 903, and at least one network interface 904. The various components in the video advertisement generation device 900 are coupled together via a bus system 905. It can be understood that the bus system 905 is used to implement communication between these components. In addition to a data bus, the bus system 905 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 9 The general labeled all buses as Bus System 905.

[0153] The user interface 903 may include a monitor, keyboard, mouse, trackball, click wheel, buttons, touchpad, or touch screen.

[0154] The memory 902 in this embodiment is used to store various types of data to support the operation of the video advertisement generation device. Examples of such data include any computer program used to operate on the video advertisement generation device.

[0155] The video advertisement generation method disclosed in this application embodiment can be applied to, or implemented by, processor 901. Processor 901 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the video advertisement generation method can be completed by the integrated logic circuitry in the hardware of processor 901 or by instructions in software form. The processor 901 can be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 901 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of this application can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software modules can be located in a storage medium, specifically memory 902. Processor 901 reads information from memory 902 and, in conjunction with its hardware, completes the steps of the video advertisement generation method provided in the embodiments of this application.

[0156] In an exemplary embodiment, the video advertisement generation device 900 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.

[0157] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiments of this application, the embodiments of this application also provide a video advertisement playback device. Figure 10 This only shows an exemplary structure of the playback device for the video advertisement, not the entire structure; implementation is possible as needed. Figure 10 The structure shown may be part or all of the structure.

[0158] like Figure 10 As shown, the video advertising playback device 1000 provided in this embodiment includes: at least one processor 1001, a memory 1002, a user interface 1003, and at least one network interface 1004. The various components in the video advertising playback device 1000 are coupled together via a bus system 1005. It can be understood that the bus system 1005 is used to implement communication between these components. In addition to a data bus, the bus system 1005 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in... Figure 10 The general labeled all buses as Bus System 1005.

[0159] The user interface 1003 may include a monitor, keyboard, mouse, trackball, click wheel, buttons, touchpad, or touch screen.

[0160] The memory 1002 in this embodiment is used to store various types of data to support the operation of the video advertising playback device. Examples of such data include any computer program used to operate on the video advertising playback device.

[0161] The video advertisement playback method disclosed in this application embodiment can be applied to or implemented by the processor 1001. The processor 1001 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the video advertisement playback method can be completed by the integrated logic circuit of the hardware in the processor 1001 or by instructions in the form of software. The processor 1001 mentioned above may be a general-purpose processor, DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 1001 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of this application can be directly reflected as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the memory 1002. The processor 1001 reads the information in the memory 1002 and combines its hardware to complete the steps of the video advertisement playback method provided in the embodiments of this application.

[0162] In an exemplary embodiment, the video advertising playback device 1000 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general-purpose processors, controllers, MCUs, microprocessors, or other electronic components to perform the aforementioned method.

[0163] It is understood that memories 902 and 1002 can be volatile or non-volatile memories, or both. Non-volatile memories can be read-only memories (ROM), programmable read-only memories (PROM), erasable programmable read-only memories (EPROM), electrically erasable programmable read-only memories (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical discs, or compact disc read-only memories (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memories can be random access memory (RAM), used as external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Sync Link Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM).The memories described in the embodiments of this application are intended to include, but are not limited to, these and any other suitable types of memories.

[0164] In an exemplary embodiment, this application also provides a computer storage medium, specifically a computer-readable storage medium, such as a memory 902 storing a computer program, which can be executed by the processor 901 of the video advertisement generation device 900 to complete the steps described in the generation method of this application embodiment; or, for example, a memory 1002 storing a computer program, which can be executed by the processor 1001 of the video advertisement playback device 1000 to complete the steps described in the playback method of this application embodiment. The computer-readable storage medium can be a ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM, etc.

[0165] In an exemplary embodiment, this application also provides a computer program product, including a computer program that can be executed by the processor 901 of the video advertisement generation device 900 or the processor 1001 of the video advertisement playback device 1000 to complete the steps described in the method of this application embodiment.

[0166] It should be noted that terms such as "first" and "second" are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0167] Furthermore, the technical solutions described in the embodiments of this application can be combined arbitrarily without conflict.

[0168] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for generating video advertisements, characterized in that, include: Obtain first data corresponding to the video content, and obtain at least one second data, each of the second data corresponding to the advertisement content to be delivered; Configure each of the second data with third data including the information fields of the corresponding advertising content to obtain the information set of the third data of the advertising content to be delivered; wherein, the third data includes at least user tags and track indexes, the user tags representing the user profile corresponding to the advertising content, and the track index representing the coded track corresponding to the second data; The first data is encoded into a first encoding track, the information set is encoded into a second encoding track, and each of the second data is encoded into the encoding track corresponding to the track index to obtain multi-track encoded data corresponding to the video advertisement.

2. The method according to claim 1, characterized in that, The third data also includes one or more of the following: An ad ID used to uniquely identify ad content; Playback type used to indicate the playback format of advertising content; This is used to indicate the first moment when the advertisement content begins playing within the video content; Secondary time information used to indicate the duration of ad playback; URL information used to represent the access link corresponding to the advertising content.

3. The method according to claim 1, characterized in that, The method further includes one or more of the following: Update at least one of the second data and encode it to the coded track corresponding to the track index; Update at least one third data corresponding to the second data and encode it into the second encoding track; Delete the encoded data of at least one encoded track corresponding to the track index of the second data, and delete the third data corresponding to the second data in the second encoded track.

4. The method according to claim 1, characterized in that, The step of encoding the first data to a first encoding track, encoding the information set to a second encoding track, and encoding each piece of the second data to the encoding track corresponding to the track index includes: The first data is encoded into the first encoding track based on the video encoding method; Each of the aforementioned information sets is encoded into a second encoding track based on an encryption algorithm; Based on the video encoding method and the track index corresponding to the second data, each piece of the second data is encoded to the encoding track corresponding to the track index.

5. A method for playing a video advertisement, characterized in that, include: Generate target user tags representing the current user's user profile based on logged-in user information; In response to a playback command, obtain the multitrack encoded data corresponding to the target video advertisement; Decode the first and second encoded tracks in the multi-track encoded data to obtain first data corresponding to the first encoded track and an information set corresponding to the second encoded track; wherein, the first data corresponds to video content, and the information set includes third data of the advertisement content to be delivered, the third data includes information fields of the corresponding advertisement content, the third data includes at least user tags and track indexes, the user tags represent the user profile corresponding to the advertisement content, and the track indexes represent the encoded track of the second data corresponding to the advertisement content; Based on the matching results between the target user tag and the user tags of each third data in the information set, a subset of information of the third data that matches the current user is determined; Based on the first data, the video content is played, and the encoded track corresponding to the track index of the third data in the information subset is decoded to obtain the second data corresponding to the current user's advertisement content.

6. The method according to claim 5, characterized in that, The third data also includes first time information indicating the time point when the advertisement content begins playing in the video content, and the method further includes: If, during the process of playing video content based on the first data, it is determined that the current time point of the video content is greater than or equal to the time point corresponding to the first time information, then the advertisement content is displayed based on the corresponding second data.

7. The method according to claim 6, characterized in that, The third data also includes second time information for representing the playback duration of the advertisement content, and the method further includes: If the display duration of the displayed advertisement content reaches the duration corresponding to the second time information, then the display of the advertisement content based on the corresponding second data will be terminated.

8. The method according to claim 6, characterized in that, The third data also includes a playback type indicating the playback format of the advertising content, and the display of advertising content based on the corresponding second data includes: If the playback format of the advertisement content is determined to be the first format based on the playback type, then the playback of the video content is maintained, and the advertisement content corresponding to the second data is presented on the video content in a picture-in-picture format. If the playback format of the advertisement content is determined to be the second format based on the playback type, the playback of the video content is paused, and the advertisement content corresponding to the second data is displayed in an overall rendering manner until the display of the advertisement content is exited and the playback of the video content is resumed.

9. The method according to claim 8, characterized in that, The third data also includes URL information representing the access link corresponding to the advertising content, and the method further includes: In response to preset operations on the rendering interface of the advertisement content displayed in the picture-in-picture or overall rendering format, the URL corresponding to the URL information is accessed based on the browser component.

10. A device for generating video advertisements, characterized in that, include: The first acquisition module is used to acquire first data corresponding to the video content and acquire at least one second data, each of the second data corresponding to the advertisement content to be delivered; A configuration module is used to configure third data, including information fields of the corresponding advertising content, for each of the second data, to obtain an information set of the third data of the advertising content to be delivered; wherein, the third data includes at least user tags and track indexes, the user tags representing the user profile corresponding to the advertising content, and the track index representing the coded track corresponding to the second data; The encoding module is used to encode the first data to a first encoding track, encode the information set to a second encoding track, and encode each of the second data to the encoding track corresponding to the track index, so as to obtain multi-track encoded data corresponding to the video advertisement.

11. A video advertisement playback device, characterized in that, include: The generation module is used to generate target user tags representing the user profile of the current user based on the logged-in user information; The second acquisition module is used to acquire the multitrack encoded data corresponding to the target video advertisement in response to the playback command; A decoding module is used to decode the first and second encoded tracks in the multi-track encoded data to obtain first data corresponding to the first encoded track and an information set corresponding to the second encoded track; wherein, the first data corresponds to video content, and the information set includes third data of the advertisement content to be delivered, the third data includes information fields of the corresponding advertisement content, and the third data includes at least user tags and track indexes, the user tags representing the user profile corresponding to the advertisement content, and the track index representing the encoded track of the second data corresponding to the advertisement content; The determining module is used to determine a subset of information of the third data that matches the current user based on the matching results between the target user tag and the user tags of each third data in the information set; The playback module is used to play video content based on the first data and decode the encoded track corresponding to the track index of the third data in the information subset to obtain the second data corresponding to the current user's advertisement content.

12. A device for generating video advertisements, characterized in that, include: A processor and memory for storing computer programs that can run on the processor, wherein, The processor, when running a computer program, performs the steps of the method according to any one of claims 1 to 4.

13. A video advertising playback device, characterized in that, include: A processor and memory for storing computer programs that can run on the processor, wherein, The processor, when running a computer program, performs the steps of the method according to any one of claims 5 to 9.

14. A computer storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.

15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 9.