Live content generation method and device, electronic equipment and storage medium

CN122601875APending Publication Date: 2026-08-18GUANGZHOU HUYA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610736470.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-26
Publication Date
2026-08-18

AI Technical Summary

Technical Problem

这类优质主播往往需要巨大直播平台成本,且受限于个人时间和精力,难以满足平台持续输出大量优质直播内容的需求

Benefits of technology

[0014] The present invention provides a live streaming content generation method, apparatus, electronic device, and storage medium. The method first creates a virtual anchor avatar and uses this avatar to generate a looping video to simulate the virtual anchor's online standby state, ensuring the live stream remains active without the need for a real anchor and avoiding static or abrupt transitions that could disrupt the live stream content. When a preset trigger event is detected during the looping video playback, the corresponding target live response video is precisely matched and called from the live response video library. These live response videos are pre-generated based on the virtual anchor avatar, ensuring consistency and high quality between events and responses in the generated live stream content. The target live response video is then played as a foreground video layer, and the looping video remains in playback mode during video overlay, maintaining the continuity of the live stream while providing real-time feedback. Finally, after the target live response video finishes playing, the live stream content reverts to the looping video, ensuring continuity and naturalness. The entire process, through pre-generated high-quality video materials and a layered playback mechanism, achieves stable and efficient generation of high-quality live stream content without relying on high-computing-power real-time video generation technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122601875A_ABST
    Figure CN122601875A_ABST
Patent Text Reader

Abstract

The application provides a live content generation method and device, electronic equipment and a storage medium. The method comprises: creating a virtual anchor image, and generating a loop playing video by using the virtual anchor image; wherein the loop playing video is used to simulate a virtual anchor online standby state; when a preset trigger event is monitored in the process of playing the loop playing video, a target live response video matched with the trigger event is determined from a pre-generated live response video library; the target live response video is played in the form of a foreground video layer, and the loop playing video is kept in a playing state during video superposition; when the target live response video playing ends, the live content is restored to the loop playing video. The application can generate high-quality live content without relying on real-time video generation capability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of live streaming technology, and more specifically, to a method, apparatus, electronic device, and storage medium for generating live streaming content. Background Technology

[0002] With the rapid development of the live streaming industry, high-quality live streaming content has become a key resource for major platforms to attract users. Currently, live streaming platforms mainly rely on real streamers for content creation and performance. High-quality streamers not only need professional skills but also need to invest a lot of time in content planning and live interaction. These high-quality streamers often require significant investment from the live streaming platform and are limited by their personal time and energy, making it difficult to meet the platform's demand for a continuous output of a large amount of high-quality live streaming content. Summary of the Invention

[0003] In view of this, the purpose of the present invention is to provide a method, apparatus, electronic device and storage medium for generating live content, which generates high-quality live content without relying on real-time video generation capabilities.

[0004] To achieve the above objectives, the technical solutions adopted in the embodiments of the present invention are as follows: In a first aspect, the present invention provides a method for generating live streaming content, the method comprising: creating a virtual anchor avatar and generating a looping video using the virtual anchor avatar; wherein the looping video is used to simulate the virtual anchor's online standby state; when a preset trigger event is detected during the playback of the looping video, determining a target live streaming response video matching the trigger event from a pre-generated live streaming response video library; playing the target live streaming response video as a foreground video layer, and keeping the looping video in a playback state during video overlay; and restoring the live streaming content to the looping video when the playback of the target live streaming response video ends.

[0005] In an optional implementation, the pre-generated live response video library includes interactive action videos corresponding to each keyframe; wherein, the interactive action videos corresponding to each keyframe are obtained by: extracting multiple keyframes from the looping video; generating an interactive action video for each keyframe based on predefined action data and the keyframe; wherein, the start frame and end frame of the interactive action video are the keyframes.

[0006] In an optional implementation, the pre-generated live response video library includes performance videos; wherein the performance videos are obtained by generating performance videos for specific types of trigger events with different response levels; wherein the response levels of the trigger events are divided based on the intensity of user participation.

[0007] In an optional implementation, when a preset trigger event is detected during the playback of the looping video, a target live response video matching the trigger event is determined from a pre-generated live response video library, including: determining the next keyframe based on the trigger time of the trigger event; and determining a target interactive action video matching the trigger event from the interactive action videos corresponding to the next keyframe in the live response video library.

[0008] In an optional implementation, determining a target live response video that matches the triggering event from a pre-generated live response video library further includes: when the triggering event is a specific type of triggering event with different response levels, selecting a target performance video that matches the triggering event from the live response video library.

[0009] In an optional implementation, before playing the target live response video as a foreground video layer and keeping the looping video playing during video overlay, the method further includes: when the target response video includes a performance video, playing a transition video and making the transition video cover the entire display area of ​​the current screen.

[0010] In an optional implementation, generating a looping video using the virtual anchor image includes: generating a looping video with the same start and end frames based on the virtual anchor image according to a preset video duration.

[0011] Secondly, the present invention provides a live streaming content generation device that creates a virtual anchor avatar and uses the virtual anchor avatar to generate a looping video; wherein the looping video is used to simulate the virtual anchor's online standby state; when a preset trigger event is detected during the playback of the looping video, a target live streaming response video matching the trigger event is determined from a pre-generated live streaming response video library; the target live streaming response video is played in the form of a foreground video layer, and the looping video is kept playing during video overlay; when the target live streaming response video finishes playing, the live streaming content is restored to the looping video.

[0012] Thirdly, the present invention provides an electronic device including a processor and a memory, the memory storing machine-executable instructions executable by the processor, the processor executing the machine-executable instructions to implement the live content generation method described in any of the foregoing embodiments.

[0013] Fourthly, the present invention provides a storage medium storing machine-executable instructions thereon, which, when executed by a processor, implement the live content generation method as described in any of the foregoing embodiments.

[0014] The present invention provides a live streaming content generation method, apparatus, electronic device, and storage medium. The method first creates a virtual anchor avatar and uses this avatar to generate a looping video to simulate the virtual anchor's online standby state, ensuring the live stream remains active without the need for a real anchor and avoiding static or abrupt transitions that could disrupt the live stream content. When a preset trigger event is detected during the looping video playback, the corresponding target live response video is precisely matched and called from the live response video library. These live response videos are pre-generated based on the virtual anchor avatar, ensuring consistency and high quality between events and responses in the generated live stream content. The target live response video is then played as a foreground video layer, and the looping video remains in playback mode during video overlay, maintaining the continuity of the live stream while providing real-time feedback. Finally, after the target live response video finishes playing, the live stream content reverts to the looping video, ensuring continuity and naturalness. The entire process, through pre-generated high-quality video materials and a layered playback mechanism, achieves stable and efficient generation of high-quality live stream content without relying on high-computing-power real-time video generation technology.

[0015] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 A schematic flowchart of the live content generation method provided in the embodiments of the invention is shown; Figure 2 An example diagram illustrating the structure of the live response video library provided in an embodiment of the invention is shown; Figure 3 A functional block diagram of the live content generation device provided in an embodiment of the invention is shown. Figure 4 A structural block diagram of an electronic device provided in an embodiment of the present invention is shown. Detailed Implementation

[0018] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0019] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.

[0020] It should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0021] During their research, the inventors discovered that in current live streaming services, high-quality live content relies on real streamers with a stable ability to produce content. However, real streamers often require high-cost live streaming platforms and are limited by their personal time and energy, making it difficult to meet the platform's demand for a continuous output of large amounts of high-quality live content.

[0022] Although AI-generated content technology can already generate images and videos from images, it still cannot meet the actual business needs of live streaming scenarios. On the one hand, the live streaming process requires co-creation between the host and the audience. The host needs to make real-time changes based on the audience's interaction. Simply using images or videos as the live streaming standby screen will result in a stiff live streaming visual and weaken the user experience. On the other hand, live streaming is a real-time performance process, and the current hardware capabilities of devices are insufficient to meet the end-to-end real-time video generation.

[0023] Therefore, embodiments of the present invention provide a method for generating live streaming content, which generates high-quality live streaming content without relying on real-time video generation capabilities.

[0024] Please see Figure 1 , Figure 1A schematic flowchart of a live content generation method provided by an embodiment of the invention is shown. The method includes steps S101 to S104, as described below: S101: Create a virtual anchor avatar and use the virtual anchor avatar to generate a looping video; the looping video is used to simulate the virtual anchor's online standby state. S102: When a preset trigger event is detected during the playback of a looping video, the target live response video that matches the trigger event is determined from the pre-generated live response video library; S103: Play the target live response video as a foreground video layer and keep the looping video playing during video overlay. S104: When the target live stream response video ends, restore the live stream content to looping video playback.

[0025] Unlike existing technologies, this invention first creates a virtual anchor avatar and uses it to generate a looping video to simulate the virtual anchor's online standby state. This ensures the live stream remains active without the need for a real anchor, avoiding any sense of incongruity caused by static or abrupt transitions. When a preset trigger event is detected during the looping video playback, the corresponding target live response video is precisely matched and retrieved from the live response video library. These live response videos are pre-generated based on the virtual anchor avatar, ensuring consistency and high quality between events and responses in the generated live content. The target live response video is then played as a foreground video layer, and the looping video remains in playback mode during video overlay, maintaining the continuity of the live stream while providing real-time feedback. Finally, after the target live response video finishes playing, the live content reverts to the looping video, ensuring the continuity and naturalness of the live stream. The entire process, through pre-generated high-quality video materials and a layered playback mechanism, achieves stable and efficient generation of high-quality live content without relying on high-computing-power real-time video generation technology.

[0026] Next, embodiments of the present invention will be described in detail with reference to the accompanying drawings, from S101 to S104.

[0027] In S101, the embodiment of the present invention can first use artificial intelligence image generation technology to create a virtual anchor image. This virtual anchor image is the visual reference source for the entire live broadcast content generation process, so as to ensure a high degree of consistency in the appearance of the character when switching between different video contents.

[0028] In some embodiments, this invention can directly create a virtual streamer for live streaming rooms with specific styles. This virtual streamer does not reference a real streamer's appearance but is an original avatar autonomously generated by AI based on style settings, conforming to that style and behavioral characteristics. Such live streaming rooms include, but are not limited to, those with a traditional Chinese style, anime / manga style, etc.

[0029] In other embodiments, the present invention may also create a virtual anchor image based on the real anchor's photo and live streaming style data, provided that the real anchor has given written consent and obtained image authorization. The virtual anchor image may only be used in the live streaming room operated by the real anchor and may not be used in other scenarios beyond the scope of the real anchor's authorization.

[0030] Next, in this embodiment of the invention, the virtual anchor image can be used as input to generate a looping video using a video generation model. That is, a looping video with the same start and end frames can be generated based on the virtual anchor image according to a preset video duration.

[0031] In this embodiment of the invention, the looping video can be used to simulate the online standby state of a virtual anchor, reflecting the continuous dynamic characteristics of a real anchor in a live broadcast, such as sitting in a chair and breathing with slight swaying, or standing on a treadmill and walking continuously, or leaning against a window and blinking, etc.

[0032] In this embodiment of the invention, the starting frame and the ending frame of the looped video must remain the same. This ensures that the entire video segment will not skip frames or stutter during looped playback, reducing the risk of users perceiving obvious artificial traces.

[0033] In this embodiment of the invention, the looping video can be configured as the base layer for continuous background playback, forming the basic live broadcast visual image and providing a stable access guarantee for subsequent overlay of various response videos.

[0034] Optionally, the video duration can be flexibly set according to actual live streaming needs to meet the technical requirements for stable presentation over long periods in live streaming scenarios. For example, the video duration can be set between two and ten minutes.

[0035] Through the above implementation methods, the embodiments of the present invention can continuously output high-quality video streams with real dynamic characteristics of a real anchor in standby mode, fundamentally reducing the risk of visual discontinuity caused by loop playback and improving the realism of live streaming content.

[0036] In S102, while maintaining the continuous output of looping video, the system can collect and analyze the interactive signals generated by the user terminal or the system's preset event trigger signals in real time. Signals that meet the set conditions are identified as preset trigger events. Based on the type of the trigger event, the system retrieves the video segment that matches the current trigger event from the offline live response video library, uses it as the target live response video, and calls it.

[0037] In some embodiments, the triggering event can be a user interaction event initiated by viewers in the live stream, such as an interaction event triggered when viewers send text in the chat area, click an interaction button, or send a virtual gift. These events have a clear behavioral intent to elicit a specific response from the streamer. For example, if a viewer sends the comment "Streamer, give me a heart," the system can identify the keyword "give me a heart" and determine that a specific triggering event has occurred.

[0038] In other embodiments, the triggering event can also be a system-defined event. These events are automatically generated by the live stream's operational status and do not depend on specific interactions from viewers. The system can monitor and determine in real time whether event conditions are triggered based on preset live stream metrics such as live stream duration, number of viewers, and interaction activity. Examples include a live stream lasting 30 minutes, over 10,000 online viewers, or no viewers commenting for 5 consecutive minutes.

[0039] In this embodiment of the invention, the pre-generated live response video library in step S102 may include interactive action videos corresponding to each keyframe. This type of video refers to video clips generated by combining the virtual image created in S101 with predefined action data, which are used to simulate the state in which the anchor needs to frequently interact with the audience during the live broadcast when the audience triggers interactive events in the live broadcast room.

[0040] In some embodiments, the interactive motion video corresponding to each keyframe is obtained in the following way: Step a1: Extract multiple keyframes from the looping video; Step a2: For each keyframe, generate an interactive motion video based on predefined motion data and the keyframe.

[0041] In this embodiment of the invention, the duration of the interactive action video can be flexibly set according to actual needs, such as 5 to 10 seconds. The start and end frames of the video are both the keyframe, and video frames containing action data are inserted in between, thereby ensuring that the original looping video can be seamlessly embedded during playback, avoiding screen jumps or stuttering.

[0042] In some embodiments, the system can extract keyframes from a looping video according to a pre-set frame extraction interval. For example, video frames at positions 0, 2, 4, etc., are extracted every 2 seconds as keyframes. Subsequently, using each keyframe as a start and end frame, and based on predefined structured motion data, video generation technology is used to fill in intermediate frames between these two frames, thereby generating a batch of interactive motion videos with the same first and end frames.

[0043] In some embodiments, predefined structured motion data is a set of fixed motion flow descriptions that are pre-designed and verified by humans for interactive actions in live streaming scenarios (such as flipping hair, making a heart shape, rubbing hands, etc.), including core content such as the starting state, target state, and movement mode of the action.

[0044] In some embodiments, each interactive action can also generate different structured action data, that is: based on the same set of basic action templates, by adjusting the posture offset, movement speed curve or facial expression intensity parameters, multiple variant versions adapted to different live streaming scenarios can be generated. For example, the "heart" action can include the anchor making a heart while sitting, standing, bending over, etc.

[0045] In some embodiments, each keyframe can generate an interactive motion video based on all or part of predefined motion data, with each piece of motion data corresponding to one type of interactive motion video. The duration of each interactive motion video is not limited here.

[0046] By pre-generating interactive action videos, virtual anchors can seamlessly insert a natural live-streaming action within a very short time after a triggered event, instead of abruptly displaying text or sound effects. This is the most crucial step in simulating real-person live-streaming interaction in this embodiment of the invention.

[0047] In this embodiment of the invention, the pre-generated live response video library in step S102 may also include performance videos. These videos also feature the created virtual anchor image as the main subject, and the start frame and end frame are adapted to loop the video segments of the virtual anchor's current posture in the video, such as dance videos, singing videos, instrument playing and other video content with artistic expression.

[0048] In some embodiments, performance videos can be generated for triggering events with different response levels, thereby simulating the broadcaster's performance during the live stream after triggering events with different response levels occur. For specific types of triggering events with different response levels, a video generation model can be driven to generate performance videos, which are then added to the live stream response video library.

[0049] In some embodiments, multiple response levels can be defined for the same type of interactive event based on user engagement or the incentive strategy of the live streaming platform. The same type of interactive event will trigger different indicator responses at different response levels. For example, when a viewer sends a virtual gift, the system triggers a small action response (such as making a heart shape with their hands); when a user sends a valuable virtual gift or accumulates a certain amount of virtual gifts, the system triggers not only the small action response but also a performance state for the streamer (such as dancing).

[0050] In some embodiments, the interactive action videos and performance videos stored in the live response video library can be used independently or in combination, and the embodiments of the present invention do not limit this.

[0051] To better understand the generation methods of the above action videos and performance videos, please refer to [link / reference]. Figure 2 , Figure 2 An example diagram illustrating the structure of the live response video library provided in an embodiment of the invention is shown.

[0052] exist Figure 2 In this example, assuming a 14-frame loop with the first and last frames identical to ensure seamless looping, a keyframe is extracted every other frame, starting from the initial frame (t0). This keyframes are located at t0, t2, t4, t6, t8, and t9. 10 t 12 t 14 The images corresponding to these 8 time points are all keyframes.

[0053] Taking the second keyframe (t2) as an example, it can be used as both the start and end frame, and combined with different preset small actions (such as action a and action b) to generate an interactive action video. The same applies to the third keyframe (t4) and other keyframes. Thus, each keyframe can generate multiple interactive action videos with consistent beginnings and ends, constituting the live response video library in this embodiment of the invention.

[0054] When generating performance videos (such as dancing or singing), the generation is not based on keyframes, but rather on complete performance segments independently created from virtual avatars. The start and end frames do not need to be aligned with the keyframes of the looping video; instead, visual transitions are achieved through full-screen effects (such as balloons floating by) during switching, ensuring a natural and smooth viewing experience. Based on the pre-built live response video library, when the system detects a trigger event, it can schedule and play live response actions according to the following implementation method: Step b1: Determine the next keyframe based on the triggering time of the event; In this embodiment of the invention, once a triggering event (such as sending a gift or sending a bullet comment) is detected, the specific time point of the event, i.e., the trigger moment, is immediately checked. Since each keyframe has a corresponding timestamp, the next keyframe can be found in the looping video based on this timestamp. Figure 2 If the triggering time of the event is between t3 and t4, then the next keyframe is the keyframe corresponding to second t4.

[0055] Step b2: Identify the target interactive action video that matches the triggering event from the interactive action videos corresponding to the next keyframe in the live response video library.

[0056] In some embodiments, each type of triggering event can be pre-configured with at least one action type that matches the event semantics. For example, the action corresponding to giving a gift could be making a heart shape with one's hands, bowing, etc. A mapping relationship is established between events, actions, and action videos to match the corresponding action videos. Therefore, when the system detects a certain triggering event, it can retrieve a video segment matching the current triggering event from the live response video library based on the mapping relationship, and use it as the target live response video for invocation.

[0057] In some embodiments, when the triggering event is a specific type of triggering event with different response levels, the system can not only immediately invoke a matching motion video as instant feedback to the live stream audience after the triggering event occurs, but also automatically schedule a performance video based on its corresponding response level after the motion video finishes playing. This can simulate the layered response logic of a real live streamer, enabling the live stream content to maintain a low-latency interactive experience while also having the ability to output high-value content.

[0058] After locating the live response video that matches the currently occurring triggering event from the live response video library in S102, in S103, the embodiment of the present invention can play the target live response video in the form of a foreground video layer, and keep the looping video playing during video overlay.

[0059] In this embodiment of the invention, the foreground video layer is a top-level layer of the display canvas rendered with the target live response video at a preset transparency. Its background is a completely opaque solid color or mask, and does not reveal any content of the looping video below. In this way, the target live response video can be overlaid on the looping video for playback, and the user cannot perceive that the looping video is still playing in the background while the foreground video is playing.

[0060] In some embodiments, if the system fails to match an interactive action video, for example, if the live response video library does not have a pre-set video segment corresponding to the event type, resulting in the virtual anchor not responding to the current triggered event, the triggered event will be temporarily stored in the event queue and marked as pending retry; the system will automatically wake up the event at the next key frame time node and respond again.

[0061] In some embodiments, when the matched live response video includes a performance video, before playing the performance video, the present invention can also play a preset transition video and make the transition video cover the entire display area of ​​the current screen. The transition video includes full-screen visual effects, such as balloons rising into the air and clapping effects. After the transition video finishes playing, the system immediately starts playing the performance video to simulate the host's performance during the live broadcast.

[0062] Finally, in S104, when the target live response video finishes playing, the system stops rendering the current foreground video layer and begins rendering the base layer where the looping video is located, so that the looping video can continue playing from the current playback time point, with a natural transition throughout, reducing the risk of users perceiving a disjointed live broadcast.

[0063] In some embodiments, based on pre-generated interactive action videos, the system may also schedule interactive action videos without depending on whether a triggering event has occurred. Instead, during the playback of the looping video, the system may randomly trigger the scheduling and playback of a certain interactive action video at any time point, making the live broadcast content of the virtual anchor richer.

[0064] In summary, the live streaming content generation method provided by this invention combines high-quality offline-generated live streaming response video materials into a realistic live streaming performance, and can generate a wide variety of actions and performances during the generation of live streaming response video materials, creating rich content for the streamer's performance. By converting offline-generated video materials into a virtual live streaming room, the platform can obtain a large amount of high-quality live streaming content at a very low cost, helping the live streaming platform better serve users with diverse content consumption needs.

[0065] To perform the corresponding steps in the above embodiments and various possible methods, an implementation of the live content generation device 30 is given below. Please refer to... Figure 3 , Figure 3 A functional block diagram of a live content generation apparatus provided in an embodiment of the invention is shown. The live content generation apparatus 30 includes: a creation module 301, a generation module 302, a matching module 303, and a monitoring module 304.

[0066] Create module 301 to create virtual anchor avatars; The generation module 302 is used to generate a looping video using the virtual anchor image; wherein, the looping video is used to simulate the virtual anchor's online standby state; The matching module 303 is used to determine the target live response video that matches the trigger event from the pre-generated live response video library when the monitoring module 304 detects a preset trigger event during the playback of a looping video. The generation module 302 is also used to play the target live response video as a foreground video layer and keep the looping video playing during video overlay. The generation module 302 is also used to restore the live content to a looping video after the target live response video playback ends.

[0067] It is understandable that the creation module 301, generation module 302, matching module 303, and monitoring module 304 can be executed collaboratively. Figure 1 Each step in the process is to achieve the corresponding technical effect.

[0068] It should be noted that the live content generation device 30 provided in this embodiment of the invention can be specific hardware on a device or software or firmware installed on the device. The implementation principle and technical effects of the device provided in this embodiment of the invention are the same as those in the foregoing method embodiments. For the sake of brevity, any parts not mentioned in the device embodiments can be referred to the corresponding content in the foregoing method embodiments. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can all be referred to the corresponding processes in the above method embodiments, and will not be repeated here.

[0069] Optionally, the above modules can be stored in the form of software or firmware. Figure 4 The memory shown is either stored in or embedded in the operating system (OS) of the electronic device 40, and can be used by... Figure 4 The processor executes the commands. Meanwhile, the data and program code required to execute these modules can be stored in memory.

[0070] Please see Figure 4 , Figure 4 The diagram illustrates the structure of an electronic device according to an embodiment of the present invention, including a memory 401, a processor 402, and a communication interface 403. The memory 401, processor 402, and communication interface 403 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.

[0071] Optionally, the bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized into address buses, data buses, control buses, etc. For ease of representation, Figure 4 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0072] In this embodiment of the invention, the processor 402 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in this embodiment of the invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in this embodiment of the invention can be directly manifested as execution by the hardware processor, or execution by a combination of hardware and software modules within the processor. The software modules may reside in the memory 401, and the processor 402 reads the program instructions from the memory 401 and, in conjunction with its hardware, completes the steps of the aforementioned methods.

[0073] In this embodiment of the invention, the memory 401 can be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), or it can be volatile memory, such as RAM. The memory can also be any other medium capable of carrying or storing desired executable program code having an instruction or data structure form and accessible by a computer, but is not limited thereto. The memory in this embodiment of the invention can also be a circuit or any other device capable of implementing a storage function for storing instructions and / or data.

[0074] The memory 401 can be used to store software programs and modules, such as the instructions / modules of the live content generation device 30 provided in this embodiment of the invention. These can be stored in the memory 401 in the form of software or firmware, or embedded in the operating system (OS) of the electronic device 40. The processor 402 executes various functional applications and data processing by executing the software programs and modules stored in the memory 401. The communication interface 403 can be used to communicate with other node devices for signaling or data.

[0075] Understandable. Figure 4 The structure shown is for illustrative purposes only; the electronic device 40 may also include components that are more advanced than those shown. Figure 4The more or fewer components shown, or having the same Figure 4 The different configurations shown. Figure 4 The components shown can be implemented using hardware, software, or a combination thereof.

[0076] Based on the above embodiments, the present invention also provides a storage medium in which a computer program is stored. When the computer program is executed by a computer, the computer executes the live content generation method provided in the above embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.

[0077] Based on the above embodiments, the present invention also provides a program product, which includes a computer program. The processor can execute the computer program to implement the live content generation method provided in the embodiments of the present invention. For specific implementation, please refer to the method embodiments, which will not be repeated here.

[0078] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and there may be other division methods in actual implementation. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the coupling or direct coupling or communication connection shown or discussed may be through some communication interface; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0079] Furthermore, the units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the objectives of the embodiments of the present invention, depending on actual needs.

[0080] Furthermore, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0081] It should be noted that if the function is implemented as a software module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0082] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for generating live streaming content, characterized in that, The method includes: Create a virtual anchor avatar and use the virtual anchor avatar to generate a looping video; wherein the looping video is used to simulate the virtual anchor's online standby state; When a preset trigger event is detected during the playback of the looping video, a target live response video matching the trigger event is determined from the pre-generated live response video library; The target live response video is played as a foreground video layer, and the looping video is kept playing during video overlay. When the target live response video finishes playing, the live content is restored to the looping video.

2. The live streaming content generation method according to claim 1, characterized in that, The pre-generated live response video library includes interactive action videos corresponding to each keyframe; wherein, the interactive action videos corresponding to each keyframe are obtained in the following way: Extract multiple keyframes from the looping video; For each keyframe, an interactive motion video is generated based on predefined motion data and the keyframe; wherein the start frame and end frame of the interactive motion video are the keyframes.

3. The live streaming content generation method according to claim 1, characterized in that, The pre-generated live response video library includes performance videos; wherein, the performance videos are obtained in the following ways: For specific types of triggered events with different response levels, performance videos are generated; wherein, the response level of the triggered event is divided based on the intensity of user participation.

4. The live streaming content generation method according to claim 2, characterized in that, When a preset trigger event is detected during the playback of the looping video, a target live response video matching the trigger event is determined from a pre-generated live response video library, including: The next keyframe is determined based on the triggering time of the event. The target interactive action video that matches the triggering event is determined from the interactive action videos corresponding to the next keyframe in the live response video library.

5. The live streaming content generation method according to claim 3, characterized in that, The method further includes determining the target live response video that matches the triggering event from a pre-generated live response video library, and also includes: When the triggering event is a specific type of triggering event with different response levels, a target performance video matching the triggering event is selected from the live response video library.

6. The live streaming content generation method according to claim 3, characterized in that, Before playing the target live response video as a foreground video layer and keeping the looping video playing during video overlay, the method further includes: When the target response video includes a performance video, a transition video is played and the transition video covers the entire display area of ​​the current screen.

7. The live streaming content generation method according to any one of claims 1 to 6, characterized in that, Generating looping videos using the virtual anchor avatar includes: Based on the preset video duration, a looping video with the same start and end frames is generated according to the virtual anchor image.

8. A live streaming content generation device, characterized in that, The creation module is used to create virtual anchor avatars; A generation module is used to generate a looping video using the virtual anchor image; wherein the looping video is used to simulate the virtual anchor's online standby state; The matching module is used to determine the target live response video that matches the trigger event from the pre-generated live response video library when the monitoring module detects a preset trigger event during the playback of the looping video. The generation module is also used to play the target live response video as a foreground video layer, and to keep the looping video playing during video overlay. The generation module is also used to restore the live content to the looping video after the target live response video has finished playing.

9. An electronic device, characterized in that, The method includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor to implement the live content generation method according to any one of claims 1 to 7.

10. A storage medium having machine-executable instructions stored thereon, characterized in that, When the machine-executable instructions are executed by the processor, they implement the live content generation method as described in any one of claims 1 to 7.