[go: up one dir, main page]

CN111954078A - Video generation method and device for live broadcast - Google Patents

Video generation method and device for live broadcast Download PDF

Info

Publication number
CN111954078A
CN111954078A CN202010856396.5A CN202010856396A CN111954078A CN 111954078 A CN111954078 A CN 111954078A CN 202010856396 A CN202010856396 A CN 202010856396A CN 111954078 A CN111954078 A CN 111954078A
Authority
CN
China
Prior art keywords
video
video file
terminal
live
item
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010856396.5A
Other languages
Chinese (zh)
Inventor
陈晓磊
沈瑾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN202010856396.5A priority Critical patent/CN111954078A/en
Publication of CN111954078A publication Critical patent/CN111954078A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/47815Electronic shopping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application discloses a live video generation method and device, and relates to the technical field of live video. The specific implementation mode comprises the following steps: responding to a received broadcast command of the anchor terminal, entering a live broadcast state aiming at the anchor terminal and acquiring a live broadcast video stream shot by the anchor terminal; in response to receiving a recorded broadcast instruction, starting to extract a live broadcast video stream; acquiring an article link; and in response to the received recording and playing stopping instruction, stopping extracting the live video stream to obtain a target recording and playing video stream, generating a video file corresponding to the target recording and playing video stream, and performing association processing on the video file and the article link. The server side in the application can extract videos shot by the anchor in the live broadcast process and item links recommended by the anchor, so that the extracted videos and the item links can be released together subsequently. Meanwhile, the method and the device can also avoid the problem that the watching experience of recorded and broadcast videos is influenced due to the fact that too much content is in the pictures brought by directly extracting the pictures of the live broadcast room.

Description

针对直播的视频生成方法和装置Video generation method and device for live broadcast

技术领域technical field

本申请涉及计算机技术领域,具体涉及直播、视频技术领域,尤其涉及针对直播的视频生成方法和装置。The present application relates to the field of computer technology, in particular to the field of live broadcast and video technology, and in particular to a video generation method and device for live broadcast.

背景技术Background technique

随着互联网技术的发展,视频直播越来越受到用户的欢迎。在主播直播的过程中,观众可以通过弹幕等与主播进行互动。With the development of Internet technology, live video is more and more popular among users. During the live broadcast of the host, viewers can interact with the host through barrage, etc.

在直播过程中,主播可以进行各种形式的表演,也可以进行物品售卖。主播可以通过操作在直播画面中加入物品链接,观众可以通过点击屏幕上的物品链接,购买主播推荐的物品。在相关技术中,主播可以对直播间的画面进行录制,并发布录制的直播画面,从而让错过直播的用户可以通过观看录制的直播画面收看物品信息。During the live broadcast, the anchor can perform various forms of performances, and can also sell items. The anchor can add an item link to the live broadcast screen by operation, and the audience can click on the item link on the screen to purchase the item recommended by the anchor. In the related art, the host can record the pictures in the live broadcast room and publish the recorded live pictures, so that users who missed the live broadcast can watch the item information by watching the recorded live pictures.

发明内容SUMMARY OF THE INVENTION

提供了一种针对直播的视频生成方法、装置、电子设备以及存储介质。Provided are a video generation method, apparatus, electronic device and storage medium for live broadcast.

根据第一方面,提供了一种针对直播的视频生成方法,包括:响应于接收到主播终端的开播指令,进入针对主播终端的直播状态并获取主播终端所拍摄的直播视频流,并将直播视频流或者处理后的直播视频流推送至直播间的观众终端;响应于接收到录播指令,开始提取直播视频流以形成录播视频流;响应于监测到直播过程中添加物品链接操作,获取物品链接;响应于接收到停止录播指令,停止提取直播视频流以得到目标录播视频流,并生成目标录播视频流对应的视频文件,并对视频文件与物品链接进行关联处理。According to a first aspect, a method for generating a video for live broadcast is provided, comprising: in response to receiving a broadcast start instruction from a host terminal, entering a live broadcast state for the host terminal, acquiring a live video stream captured by the host terminal, and converting the live video The stream or the processed live video stream is pushed to the viewer terminal in the live room; in response to receiving the recording instruction, it starts to extract the live video stream to form a recorded and broadcast video stream; in response to monitoring the operation of adding an item link during the live broadcast, obtain the item link; in response to receiving the instruction to stop recording and broadcasting, stop extracting the live video stream to obtain the target recording and broadcasting video stream, generate a video file corresponding to the target recording and broadcasting video stream, and perform association processing between the video file and the item link.

根据第二方面,提供了一种针对直播的视频生成装置,包括:直播单元,被配置成响应于接收到主播终端的开播指令,进入针对主播终端的直播状态并获取主播终端所拍摄的直播视频流,并将直播视频流或者处理后的直播视频流推送至直播间的观众终端;提取单元,被配置成响应于接收到录播指令,开始提取直播视频流以形成录播视频流;获取单元,被配置成响应于监测到直播过程中添加物品链接操作,获取物品链接;停止单元,被配置成响应于接收到停止录播指令,停止提取直播视频流以得到目标录播视频流,并生成目标录播视频流对应的视频文件,并对视频文件与物品链接进行关联处理。According to a second aspect, there is provided a video generation device for live broadcast, comprising: a live broadcast unit configured to enter a live broadcast state for the host terminal and acquire a live video shot by the host terminal in response to receiving a broadcast start instruction from the host terminal stream, and push the live video stream or the processed live video stream to the audience terminal in the live room; the extracting unit is configured to, in response to receiving the recording and broadcasting instruction, start extracting the live video stream to form the recorded and broadcast video stream; the obtaining unit is configured to obtain the item link in response to monitoring the operation of adding an item link in the live broadcast process; the stopping unit is configured to, in response to receiving the stop recording and broadcasting instruction, stop extracting the live video stream to obtain the target recording and broadcasting video stream, and generate The video file corresponding to the target video stream is recorded and broadcasted, and the link between the video file and the item is processed.

根据第三方面,提供了一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如针对直播的视频生成方法中任一实施例的方法。According to a third aspect, an electronic device is provided, comprising: one or more processors; storage means for storing one or more programs, when the one or more programs are executed by the one or more processors, so that a The or more processors implement the method as in any of the embodiments of the video generation method for live broadcast.

根据第四方面,提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如针对直播的视频生成方法中任一实施例的方法。According to a fourth aspect, there is provided a computer-readable storage medium having stored thereon a computer program, which when executed by a processor implements the method as in any one of the embodiments of the video generation method for live broadcast.

根据本申请的方案中,服务端可以提取直播过程中主播拍摄的视频,以及主播推荐的物品链接,从而可以实现后续对提取的视频和物品链接进行共同发布。并且,所发布的内容中包括与视频文件关联的物品链接,可以让观看该视频的观众通过物品链接购买视频文件中主播推荐的物品。同时,上述实施例还可以避免直接提取直播间画面带来的画面中内容过多,所导致的影响对录播视频的观看体验的问题。According to the solution of the present application, the server can extract the video shot by the host during the live broadcast and the item link recommended by the host, so that the extracted video and the item link can be jointly published later. In addition, the published content includes an item link associated with the video file, allowing viewers watching the video to purchase the item recommended by the host in the video file through the item link. At the same time, the above-mentioned embodiment can also avoid the problem of affecting the viewing experience of the recorded and broadcast video caused by too much content in the picture caused by directly extracting the picture of the live room.

附图说明Description of drawings

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

图1是本申请一些实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which some embodiments of the present application may be applied;

图2是根据本申请的针对直播的视频生成方法的一个实施例的流程图;2 is a flowchart of an embodiment of a method for generating a video for live broadcast according to the present application;

图3是根据本申请的针对直播的视频生成方法的一个应用场景的示意图;3 is a schematic diagram of an application scenario of a method for generating live video according to the present application;

图4a是根据本申请的针对直播的视频生成方法的又一个实施例的流程图;Figure 4a is a flow chart of yet another embodiment of a video generation method for live broadcast according to the present application;

图4b是根据本申请的针对直播的视频生成方法的又一个实施例的流程图;Figure 4b is a flow chart of yet another embodiment of a video generation method for live broadcast according to the present application;

图5是根据本申请的针对直播的视频生成装置的一个实施例的结构示意图;5 is a schematic structural diagram of an embodiment of a video generation apparatus for live broadcast according to the present application;

图6是用来实现本申请实施例的针对直播的视频生成方法的电子设备的框图。FIG. 6 is a block diagram of an electronic device for implementing the video generation method for live broadcast according to the embodiment of the present application.

具体实施方式Detailed ways

以下结合附图对本申请的示范性实施例做出说明,其中包括本申请实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本申请的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present application are described below with reference to the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

图1示出了可以应用本申请的针对直播的视频生成方法或针对直播的视频生成装置的实施例的示例性系统架构100。FIG. 1 shows an exemplary system architecture 100 to which embodiments of the video generation method for live broadcast or the video generation apparatus for live broadcast of the present application may be applied.

如图1所示,系统架构100可以包括终端设备101、102,网络104和服务器103。网络104用以在终端设备101、102和服务器103之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , the system architecture 100 may include terminal devices 101 , 102 , a network 104 and a server 103 . The network 104 is a medium used to provide a communication link between the terminal devices 101 , 102 and the server 103 . The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.

用户可以使用终端设备101、102通过网络104与服务器103交互,以接收或发送消息等。终端设备101、102上可以安装有各种通讯客户端应用,例如视频类应用、直播应用、即时通信工具、邮箱客户端、社交平台软件等。The user can use the terminal devices 101 and 102 to interact with the server 103 through the network 104 to receive or send messages and the like. Various communication client applications may be installed on the terminal devices 101 and 102 , such as video applications, live broadcast applications, instant communication tools, email clients, social platform software, and the like.

这里的终端设备101、102可以是硬件,也可以是软件。当终端设备101、102为硬件时,可以是具有显示屏的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、膝上型便携计算机和台式计算机等等。当终端设备101、102为软件时,可以安装在上述所列举的电子设备中。其可以实现成多个软件或软件模块(例如用来提供分布式服务的多个软件或软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。终端设备101、102中,其中一个终端设备可以是主播终端,另一个终端设备可以是观众终端。The terminal devices 101 and 102 here may be hardware or software. When the terminal devices 101 and 102 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, e-book readers, laptop computers, desktop computers, and the like. When the terminal devices 101 and 102 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (eg, multiple software or software modules for providing distributed services), or as a single software or software module. There is no specific limitation here. Among the terminal devices 101 and 102, one of the terminal devices may be a host terminal, and the other terminal device may be a viewer terminal.

服务器103可以是提供各种服务的服务器,例如对终端设备101、102提供直播支持的后台服务器。后台服务器可以对接收到的录制指令等数据进行分析等处理,并将处理结果(例如关联处理的视频文件和物品链接)反馈给终端设备。The server 103 may be a server that provides various services, such as a background server that provides live broadcast support to the terminal devices 101 and 102 . The backend server can analyze and process the received recording instructions and other data, and feed back the processing results (such as the associated processed video files and item links) to the terminal device.

需要说明的是,本申请实施例所提供的针对直播的视频生成方法可以由服务器103执行,相应地,针对直播的视频生成装置可以设置于服务器103中。It should be noted that the method for generating a video for live broadcast provided in the embodiment of the present application may be executed by the server 103 , and correspondingly, the apparatus for generating a video for live broadcast may be set in the server 103 .

应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in FIG. 1 are merely illustrative. There can be any number of terminal devices, networks and servers according to implementation needs.

继续参考图2,示出了根据本申请的针对直播的视频生成方法的一个实施例的流程200。该针对直播的视频生成方法,可以用于服务端,该方法包括以下步骤:Continuing to refer to FIG. 2 , a flow 200 of one embodiment of a video generation method for live broadcast according to the present application is shown. The video generation method for live broadcast can be used on the server, and the method includes the following steps:

步骤201,响应于接收到主播终端的开播指令,进入针对该主播终端的直播状态并获取主播终端所拍摄的直播视频流,并将直播视频流或者处理后的直播视频流推送至直播间的观众终端。Step 201, in response to receiving the broadcast start instruction of the host terminal, enter the live broadcast state for the host terminal and obtain the live video stream captured by the host terminal, and push the live video stream or the processed live video stream to the audience in the live room. terminal.

在本实施例中,针对直播的视频生成方法运行于其上的执行主体(例如图1所示的服务器)若接收到主播终端对直播的开播指令,则可以进入针对该终端的直播状态。这里的开播指令指开始直播的指令。比如可以是用户触发开播按键所生成的。主播终端指该终端的用户为上述直播的主播。具体地,该直播视频流是主播终端的摄像头或主播终端所连接的摄像头所拍摄的画面。上述直播间对应的直播,即是上述直播视频流指示的直播。In this embodiment, if the execution body (eg, the server shown in FIG. 1 ) on which the method for generating live video is executed, receives the broadcast start instruction of the host terminal for live broadcast, it can enter the live broadcast state for the terminal. The start broadcast instruction here refers to the instruction to start the live broadcast. For example, it may be generated by the user triggering the start button. An anchor terminal means that the user of the terminal is the anchor of the above-mentioned live broadcast. Specifically, the live video stream is a picture captured by a camera of the host terminal or a camera connected to the host terminal. The live broadcast corresponding to the above-mentioned live broadcast room is the live broadcast indicated by the above-mentioned live video stream.

在实践中,进入针对该主播终端的直播状态可以包括将主播终端的直播的状态信息修改为已开播,此外还可以包括启动将该主播终端拍摄的直播视频流发送给观众终端的功能等等。具体地,发送给观众终端的处理后的直播视频流可以是服务端对拍摄的视频流也即原视频流进行处理得到的。这里的处理可以指添加了多种显示内容的视频流。比如添加了以下的至少一项显示内容:弹幕、广告。处理后的直播视频流即是直播间画面。In practice, entering the live broadcast state for the host terminal may include modifying the live broadcast status information of the host terminal to start broadcasting, and may also include initiating the function of sending the live video stream captured by the host terminal to the viewer terminal, and so on. Specifically, the processed live video stream sent to the viewer terminal may be obtained by the server processing the captured video stream, that is, the original video stream. Processing here may refer to a video stream to which various display contents are added. For example, at least one of the following display content is added: barrage, advertisement. The processed live video stream is the live room screen.

上述执行主体可以获取直播视频流和处理后的直播视频流两者,还可以仅获取处理后的直播视频流,该处理后的直播视频流中包括终端所拍摄的原视频流。这里的直播视频流、处理后的直播视频流可以是目标终端上传的,这里的目标终端可以是直播终端,也可以是与直播终端关联的其它终端。这里的其它终端可以是对直播进行目标处理的终端,比如直播控制终端。这里的目标处理可以包括对直播添加购物车标识等等。The above-mentioned execution body may acquire both the live video stream and the processed live video stream, or may acquire only the processed live video stream, and the processed live video stream includes the original video stream captured by the terminal. The live video stream and the processed live video stream here may be uploaded by the target terminal, and the target terminal here may be the live broadcast terminal or other terminals associated with the live broadcast terminal. The other terminals here may be terminals that perform target processing on the live broadcast, such as a live broadcast control terminal. The target processing here may include adding a shopping cart identification to the live broadcast, and so on.

步骤202,响应于接收到录播指令,开始提取直播视频流以形成录播视频流。Step 202, in response to receiving the recording and broadcasting instruction, start extracting the live video stream to form the recording and broadcasting video stream.

在本实施例中,上述执行主体可以在上述直播的过程中,接收录播指令,从而开始提取获取到的直播视频流,并将形成的提取结果作为录播视频流。这里的录制指令可以是上述目标终端上传的。具体地,该录制指令可以是用户通过预设操作触发生成的,也可以是目标终端自动触发生成的,比如一旦主播终端开启了直播,即生成该录播指令。In this embodiment, the above-mentioned execution body may receive a recording and broadcasting instruction during the above-mentioned live broadcast process, so as to start extracting the obtained live video stream, and use the obtained extraction result as the recorded and broadcast video stream. The recording instruction here may be uploaded by the above target terminal. Specifically, the recording instruction may be triggered and generated by the user through a preset operation, or may be automatically triggered and generated by the target terminal. For example, once the host terminal starts the live broadcast, the recording and broadcasting instruction is generated.

步骤203,响应于监测到直播过程中添加物品链接操作,获取物品链接。Step 203, in response to monitoring the operation of adding an item link during the live broadcast, obtain the item link.

在本实施例中,上述执行主体可以响应于监测到直播终端在直播过程中接收到添加物品链接操作,获取物品链接。具体地,这里的监测操作可以指监测指示添加物品链接操作的信息,该信息可以是直播终端发出的。若主播终端接收到了用户的添加物品链接操作,则可以生成上述指示添加物品链接操作的信息。该信息可以由直播终端直接发送给服务端,也可以通过关联的其它终端进行转发。In this embodiment, the above-mentioned execution body may acquire the item link in response to monitoring that the live broadcast terminal receives an operation of adding an item link during the live broadcast process. Specifically, the monitoring operation here may refer to monitoring information indicating an operation of adding an item link, and the information may be sent by the live broadcast terminal. If the host terminal receives the user's operation of adding an item link, it can generate the above-mentioned information indicating the link operation of adding an item. The information can be directly sent by the live terminal to the server, or forwarded by other associated terminals.

步骤204,响应于接收到停止录播指令,停止提取直播视频流以得到目标录播视频流,并生成目标录播视频流对应的视频文件,并对视频文件与物品链接进行关联处理。Step 204, in response to receiving the instruction to stop recording and broadcasting, stop extracting the live video stream to obtain the target recording and broadcasting video stream, generate a video file corresponding to the target recording and broadcasting video stream, and perform association processing between the video file and the item link.

在本实施例中,上述执行主体可以在从目标终端接收到停止录播指令的情况下,停止提取直播视频流。从开始提取直播视频流到停止提取直播视频流,所提取得到的直播视频流可以作为目标录播视频流。In this embodiment, the above-mentioned execution body may stop extracting the live video stream when receiving an instruction to stop recording and broadcasting from the target terminal. From the start of extracting the live video stream to the stop of extracting the live video stream, the extracted live video stream can be used as the target video stream for recording and broadcasting.

在实践中,上述执行主体可以生成所获取的视频流对应的视频文件,并将该视频文件与物品链接进行关联处理。这里的关联处理可以是各种处理,比如对视频文件与物品链接在服务端进行关联存储。可选地,这里的视频文件可以是短视频。在实践中,目标录播视频流可以仅与一个物品链接关联,也可以包括分别与至少两个物品链接关联的视频流段。In practice, the above-mentioned execution body may generate a video file corresponding to the acquired video stream, and perform association processing between the video file and the item link. The association processing here can be various processing, such as association storage between video files and item links on the server. Optionally, the video file here can be a short video. In practice, the target recorded video stream may be associated with only one item link, or may include video stream segments associated with at least two item links respectively.

本申请的上述实施例提供的方法中,服务端可以提取直播过程中主播拍摄的视频,以及主播推荐的物品链接,从而可以实现后续对提取的视频和物品链接进行共同发布。并且,所发布的内容中包括与视频文件关联的物品链接,可以让观看该视频的观众通过物品链接购买视频文件中主播推荐的物品。同时,上述实施例还可以避免直接提取直播间画面带来的画面中内容过多,所导致的影响对录播视频的观看体验的问题。In the method provided by the above embodiments of the present application, the server can extract the video shot by the host during the live broadcast and the item link recommended by the host, so that the extracted video and the item link can be jointly published subsequently. In addition, the published content includes an item link associated with the video file, allowing viewers watching the video to purchase the item recommended by the host in the video file through the item link. At the same time, the above-mentioned embodiment can also avoid the problem of affecting the viewing experience of the recorded and broadcast video caused by too much content in the picture caused by directly extracting the picture of the live room.

在本实施例的一些可选的实现方式中,上述方法还可以包括:响应于接收到下播指令,退出直播状态并停止获取直播终端所拍摄的直播视频流。In some optional implementations of this embodiment, the above-mentioned method may further include: in response to receiving the playback instruction, exiting the live broadcast state and stopping acquiring the live video stream shot by the live broadcast terminal.

在这些可选的实现方式中,上述执行主体可以响应于接收到目标终端发送的、对上述直播的下播指令,退出上述针对主播终端的直播状态并停止获取直播终端所拍摄的直播视频流。这里的下播指令指示服务端停止进入上述直播状态的指令。In these optional implementation manners, the above-mentioned execution body may, in response to receiving the broadcast instruction for the above-mentioned live broadcast sent by the target terminal, exit the above-mentioned live broadcast state for the host terminal and stop acquiring the live video stream shot by the live broadcast terminal. The downcast instruction here instructs the server to stop entering the above-mentioned instruction of the live broadcast state.

这些实现方式可以通过终端来控制服务端是否进入直播状态,从而增强了服务端反馈的即时性。These implementations can control whether the server enters the live broadcast state through the terminal, thereby enhancing the immediacy of feedback from the server.

在本实施例的一些可选的实现方式中,目标录播视频流包括分别与多个物品链接关联的多个视频流段;步骤204中的对视频文件与物品链接进行关联处理,可以包括:将视频文件拆分为分别与不同的物品链接关联的子视频文件,其中,每个子视频文件关联一个视频流段。In some optional implementations of this embodiment, the target recording and broadcasting video stream includes multiple video stream segments that are respectively associated with multiple item links; the associating processing between the video file and the item link in step 204 may include: The video file is divided into sub-video files respectively associated with different item links, wherein each sub-video file is associated with a video stream segment.

在这些可选的实现方式中,上述执行主体可以将视频文件拆分为至少两个子视频文件。每个子视频文件与一个物品链接相关联,不同的子视频文件与不同的物品链接相关联。上述目标录播视频流可以包括多个视频流段,也即子视频流。每个视频流段对应一个物品链接,也即与该物品链接相关联。In these optional implementation manners, the foregoing executive body may split the video file into at least two sub-video files. Each sub-video file is associated with an item link, and different sub-video files are associated with different item links. The above-mentioned target video stream for recording and broadcasting may include multiple video stream segments, that is, sub-video streams. Each video stream segment corresponds to an item link, that is, is associated with the item link.

在实践中,上述执行主体可以采用各种方式进行拆分。比如,上述执行主体可以将物品链接显示的结束时间作为拆分不同子视频文件的时间点,也即将该结束时间作为该物品链接对应的子视频文件的结束时间点,并将该结束时间的下一个时间点,作为与该子视频文件相邻的下一个子视频文件的起始时间点。In practice, the above-mentioned executive body can be split in various ways. For example, the above-mentioned execution body can take the end time displayed by the item link as the time point for splitting different sub-video files, that is, the end time as the end time point of the sub-video file corresponding to the item link, and use the end time of the sub-video file corresponding to the item link as the end time. A time point, which is the start time point of the next sub-video file adjacent to this sub-video file.

这些实现方式可以通过对视频文件进行拆分,确定每个物品链接对应的子视频文件,从而可以分别对不同的物品对应的物品链接和子视频文件进行发布。In these implementations, the sub-video files corresponding to each item link can be determined by splitting the video files, so that the item links and sub-video files corresponding to different items can be released respectively.

可选地,上述将视频文件拆分为分别与不同的物品链接关联的子视频文件,可以包括:获取视频文件中的视频帧的图像识别结果;按照不同的识别结果,对视频文件进行拆分,得到至少两个子视频文件,其中,不同的识别结果包括不同的目标物品的标签,不同的目标物品分别为不同的物品链接指示的物品。Optionally, the above-mentioned splitting of the video file into sub-video files that are respectively associated with different item links may include: obtaining image recognition results of video frames in the video file; splitting the video file according to different recognition results. to obtain at least two sub-video files, wherein different identification results include tags of different target items, and different target items are items indicated by different item links respectively.

具体地,上述执行主体或者其它电子设备可以对视频文件中的视频帧进行图像识别,这样,上述执行主体可以按照不同的识别结果,将视频文件拆分为至少两个子视频文件。这里的其它电子设备是与上述执行主体通信连接的电子设备。Specifically, the above-mentioned executive body or other electronic devices can perform image recognition on video frames in the video file, so that the above-mentioned executive body can split the video file into at least two sub-video files according to different recognition results. The other electronic devices here are electronic devices that are communicatively connected to the above-mentioned executive body.

在实践中,视频帧中可以呈现若干个对象,其中一个对象为目标物品,也即主播推荐的物品。不同识别结果中,可以存在相同的对象的标签,比如主播的脸部的标签,也可以存在不同的对象的标签,该这里的不同的对象可以是主播推荐的物品。比如,主播推荐的一个目标物品为一个铅笔,该铅笔所在的视频帧的图像识别结果中,该铅笔对应的标签为“1”。主播推荐的下一个目标物品为一个橡皮,该橡皮所在的视频帧的图像识别结果中,该橡皮对应的标签为“2”。In practice, several objects may be presented in the video frame, one of which is the target item, that is, the item recommended by the host. In different recognition results, there may be tags of the same object, such as the tag of the host's face, or there may be tags of different objects, and the different objects here may be items recommended by the host. For example, a target item recommended by the host is a pencil, and in the image recognition result of the video frame where the pencil is located, the label corresponding to the pencil is "1". The next target item recommended by the host is an eraser, and in the image recognition result of the video frame where the eraser is located, the label corresponding to the eraser is "2".

这些应用场景可以通过图像识别,对视频文件进行准确拆分。These application scenarios can accurately split video files through image recognition.

继续参见图3,图3是根据本实施例的针对直播的视频生成方法的应用场景的一个示意图。在图3的应用场景中,执行主体301响应于接收到主播终端的开播指令302,进入针对主播终端的直播状态并获取主播终端所拍摄的直播视频流,并将直播视频流或者处理后的直播视频流推送至直播间的观众终端。执行主体301响应于接收到录播指令303,开始提取直播视频流以形成录播视频流。执行主体301响应于监测到直播过程中添加物品链接操作,获取物品链接304。执行主体301响应于接收到停止录播指令305,停止提取直播视频流以得到目标录播视频流306,并生成目标录播视频流对应的视频文件307,并对视频文件307与物品链接进行关联处理308。Continuing to refer to FIG. 3 , FIG. 3 is a schematic diagram of an application scenario of the video generation method for live broadcast according to this embodiment. In the application scenario of FIG. 3 , the execution body 301 enters the live broadcast state for the host terminal in response to receiving the broadcast start instruction 302 of the host terminal, obtains the live video stream captured by the host terminal, and converts the live video stream or the processed live broadcast to the live broadcast state. The video stream is pushed to the audience terminal in the live room. In response to receiving the recording and broadcasting instruction 303, the execution body 301 starts to extract the live video stream to form the recording and broadcasting video stream. The execution body 301 acquires the item link 304 in response to monitoring the operation of adding an item link during the live broadcast. In response to receiving the stop recording instruction 305, the execution body 301 stops extracting the live video stream to obtain the target recording and broadcasting video stream 306, and generates a video file 307 corresponding to the target recording and broadcasting video stream, and associates the video file 307 with the item link Process 308.

进一步参考图4a,其示出了针对直播的视频生成方法的又一个实施例的流程400。该流程400,包括以下步骤:With further reference to Figure 4a, a flow 400 of yet another embodiment of a video generation method for live broadcast is shown. The process 400 includes the following steps:

步骤401,响应于接收到主播终端的开播指令,进入针对主播终端的直播状态并获取主播终端所拍摄的直播视频流,并将直播视频流或者处理后的直播视频流推送至直播间的观众终端。Step 401, in response to receiving the broadcast start instruction of the host terminal, enter the live broadcast state for the host terminal and obtain the live video stream captured by the host terminal, and push the live video stream or the processed live video stream to the viewer terminal in the live room. .

在本实施例中,针对直播的视频生成方法运行于其上的执行主体(例如图1所示的服务器)若接收到主播终端对直播的开播指令,则可以进入针对该终端的直播状态。这里的开播指令指开始直播的指令。比如可以是用户触发开播按键所生成的。主播终端指该终端的用户为上述直播的主播。具体地,该直播视频流是主播终端的摄像头或主播终端所连接的摄像头所拍摄的画面。In this embodiment, if the execution body (eg, the server shown in FIG. 1 ) on which the method for generating live video is executed, receives the broadcast start instruction of the host terminal for live broadcast, it can enter the live broadcast state for the terminal. The start broadcast instruction here refers to the instruction to start the live broadcast. For example, it may be generated by the user triggering the start button. An anchor terminal means that the user of the terminal is the anchor of the above-mentioned live broadcast. Specifically, the live video stream is a picture captured by a camera of the host terminal or a camera connected to the host terminal.

步骤402,响应于接收到录播指令,开始提取直播视频流以形成录播视频流。Step 402, in response to receiving the recording and broadcasting instruction, start to extract the live video stream to form the recording and broadcasting video stream.

在本实施例中,上述执行主体可以在上述直播的过程中,接收录播指令,从而开始提取获取到的直播视频流,并将形成的提取结果作为录播视频流。这里的录制指令可以是上述目标终端上传的。具体地,该录制指令可以是用户通过预设操作触发生成的,也可以是目标终端的系统自动触发生成的,比如一旦主播终端开启了直播,即生成该录播指令。In this embodiment, the above-mentioned execution body may receive a recording and broadcasting instruction during the above-mentioned live broadcast process, so as to start extracting the obtained live video stream, and use the obtained extraction result as the recorded and broadcast video stream. The recording instruction here may be uploaded by the above target terminal. Specifically, the recording instruction may be triggered and generated by the user through a preset operation, or may be automatically triggered and generated by the system of the target terminal. For example, once the host terminal starts the live broadcast, the recording and broadcasting instruction is generated.

步骤403,响应于监测到直播过程中添加物品链接操作,获取物品链接。Step 403, in response to monitoring the operation of adding an item link during the live broadcast, obtain the item link.

在本实施例中,上述执行主体可以响应于监测到直播终端在直播过程中接收到添加物品链接操作,获取物品链接。具体地,这里的监测操作可以指监测指示添加物品链接操作的信息。若主播终端接收到了用户的添加物品链接操作,则可以生成上述指示添加物品链接操作的信息。该信息可以由直播终端直接发送给服务端,也可以通过关联的其它终端进行转发。In this embodiment, the above-mentioned execution body may acquire the item link in response to monitoring that the live broadcast terminal receives an operation of adding an item link during the live broadcast process. Specifically, the monitoring operation here may refer to monitoring information indicating an operation of adding an item link. If the host terminal receives the user's operation of adding an item link, it can generate the above-mentioned information indicating the link operation of adding an item. The information can be directly sent by the live terminal to the server, or forwarded by other associated terminals.

步骤404,响应于接收到停止录播指令,停止提取直播视频流以得到目标录播视频流。Step 404, in response to receiving the instruction to stop recording and broadcasting, stop extracting the live video stream to obtain the target recording and broadcasting video stream.

在本实施例中,上述执行主体可以在从目标终端接收到停止录播指令的情况下,停止提取直播视频流。从开始提取直播视频流到停止提取直播视频流,所提取得到的视频流可以作为目标录播视频流。In this embodiment, the above-mentioned execution body may stop extracting the live video stream when receiving an instruction to stop recording and broadcasting from the target terminal. From the start of extracting the live video stream to the stop of extracting the live video stream, the extracted video stream can be used as the target video stream for recording and broadcasting.

步骤405,从目标终端接收视频发布信息,其中,视频发布信息用于指示视频文件是否发布,目标终端为主播终端或主播终端关联的直播控制终端。Step 405: Receive video release information from the target terminal, where the video release information is used to indicate whether the video file is released, and the target terminal is a host terminal or a live broadcast control terminal associated with the host terminal.

在本实施例中,上述执行主体可以从目标终端接收视频发布信息。该视频发布信息可以是该终端存储的配置信息,也可以是用户通过发布操作生成的信息。In this embodiment, the above-mentioned execution subject may receive video release information from the target terminal. The video release information may be configuration information stored by the terminal, or information generated by a user through a release operation.

步骤406,生成目标录播视频流对应的视频文件,并基于视频发布信息,对视频文件与物品链接进行关联处理。Step 406: Generate a video file corresponding to the target recorded and broadcast video stream, and perform association processing on the video file and the item link based on the video release information.

在本实施例中,上述执行主体可以采用各种方式基于视频发布信息,将视频文件和物品链接进行关联处理。比如,上述执行主体可以在视频发布信息指示视频文件不发布的情况下,也即该视频文件不需要发布的情况下,将视频文件与物品链接在该服务端的存储空间进行关联存储。在实践中,该视频发布信息可以是采用各种方式获取的,比如,视频发布信息可以是上述目标终端存储的、关于视频发布的配置信息,上述执行主体可以获取上述目标终端上传的该信息。In this embodiment, the above-mentioned execution body may use various methods to associate the video file with the item link based on the video release information. For example, when the video release information indicates that the video file is not to be released, that is, when the video file does not need to be released, the above-mentioned executive body may link the video file and the item in the storage space of the server for associated storage. In practice, the video release information may be obtained in various ways. For example, the video release information may be configuration information about video release stored by the target terminal, and the execution body may obtain the information uploaded by the target terminal.

本实施例可以基于目标终端的视频发布信息,对视频文件和物品链接进行处理,从而可以在目标终端实现对服务端针对视频文件的处理过程的控制。This embodiment can process the video file and the item link based on the video release information of the target terminal, so that the target terminal can control the processing process of the video file by the server.

在本实施例的一些可选的实现方式中,上述基于视频发布信息,对视频文件与物品链接进行关联处理,可以包括:响应于确定视频发布信息指示视频文件发布,将视频文件与物品链接进行关联发布,以使所发布的视频文件的视频播放界面中呈现有与物品链接关联的购物车标识。In some optional implementation manners of this embodiment, the above-mentioned associating processing between the video file and the item link based on the video release information may include: in response to determining that the video release information instructs the video file to release, performing the linking process between the video file and the item. Associated release, so that a shopping cart identification associated with the item link is displayed in the video playback interface of the released video file.

在这些可选的实现方式中,上述执行主体可以判断视频发布信息知否指示视频文件发布。具体地,在获取的视频发布信息指示视频文件发布的情况下,将生成的视频文件与物品链接进行关联发布。这样,观看视频文件指示的视频的用户可以在该视频中看到与视频文件关联的物品链接,或看到指示该物品链接的物品购买入口。从而用户可以通过该物品链接,购买该物品链接指示的物品。In these optional implementation manners, the above-mentioned execution body may determine whether the video release information indicates that the video file is to be released. Specifically, in the case that the acquired video release information indicates the release of the video file, the generated video file is released in association with the item link. In this way, a user watching the video indicated by the video file can see the item link associated with the video file in the video, or see the item purchase portal indicating the item link. Therefore, the user can purchase the item indicated by the item link through the item link.

具体地,该购物车标识与物品链接对应。用户点击该购物车标识,视频文件对应的视频画面中可以显示出购买入口,比如购买入口包括物品名称、物品价格和“去看看”按键。如果用户点击该按键,显示的画面可以跳转到物品链接指示的物品的购买页面。或者,用户点击购买入口,显示的画面可以直接跳转到购买页面。Specifically, the shopping cart identifier corresponds to the item link. The user clicks on the shopping cart logo, and the video screen corresponding to the video file can display the purchase entry. For example, the purchase entry includes the item name, item price, and a "go to see" button. If the user clicks this button, the displayed screen can jump to the purchase page of the item indicated by the item link. Alternatively, when the user clicks on the purchase entry, the displayed screen can directly jump to the purchase page.

这些实现方式可以在目标终端确认发布的情况下,将视频文件与物品链接进行关联发布,实现让用户观看到所发布的视频文件,从而可以通过对该购物车标识进行操作,来快捷地购买物品,给用户以更加快捷的物品购买渠道。These implementations can associate and release the video file with the item link when the target terminal confirms the release, so that the user can watch the released video file, so that the item can be quickly purchased by operating the shopping cart logo. , to give users a faster way to purchase items.

在这些实现方式的一些可选的应用场景中,这些实现方式中的从目标终端接收视频发布信息,可以包括:向目标终端发送视频发布询问信息,其中,视频发布询问信息用于向用户询问视频文件是否发布;接收目标终端响应于检测到指示操作所生成并发送的视频发布信息。In some optional application scenarios of these implementations, receiving the video release information from the target terminal in these implementations may include: sending video release inquiry information to the target terminal, where the video release inquiry information is used to inquire the user about the video Whether the file is published; receives the video distribution information generated and sent by the target terminal in response to detecting the instruction operation.

在这些可选的应用场景中,上述执行主体可以向目标终端发送视频发布询问信息,以使目标终端显示视频发布询问信息。用户可以对目标终端进行指示操作,以使目标终端生成并向服务端发送视频发布信息。在实践中,上述视频发布询问信息可以是选项,比如可以包括分别指示视频文件发布和视频文件不发布的两个选项。用户对不同选项进行指示操作,目标终端会生成不同的视频发布信息,也即指示发布或者不发布的视频发布信息。In these optional application scenarios, the above-mentioned execution subject may send the video release inquiry information to the target terminal, so that the target terminal displays the video release inquiry information. The user can perform an instruction operation on the target terminal, so that the target terminal generates and sends the video release information to the server. In practice, the above-mentioned video release inquiry information may be options, for example, may include two options indicating the release of the video file and the non-release of the video file, respectively. The user instructs different options, and the target terminal generates different video release information, that is, video release information indicating whether to release or not to release.

这些应用场景可以让主播来控制是否发布录制的视频,从而增加用户对终端的控制性。These application scenarios allow the host to control whether to publish the recorded video, thereby increasing the user's control over the terminal.

在这些实现方式的一些可选的应用场景中,上述基于视频发布信息,对视频文件与物品链接进行关联处理,可以包括:响应于确定视频发布信息指示视频文件不发布,将视频文件与物品链接发送给目标终端,以使目标终端对视频文件与物品链接进行关联存储。In some optional application scenarios of these implementations, the above-mentioned associating processing between the video file and the item link based on the video release information may include: in response to determining that the video release information indicates that the video file is not to be released, linking the video file with the item It is sent to the target terminal, so that the target terminal can associate and store the link between the video file and the item.

在这些可选的应用场景中,在视频发布信息指示视频文件不发布的情况下,上述执行主体可以将视频文件与物品链接发送给上述终端,这样,上述终端可以对该视频文件和物品链接进行关联存储。这样,用户可以在后续进行利用本地存储的视频文件和物品链接进行发布。从而实现快捷地获取到直播中的视频内容并随时进行发布。In these optional application scenarios, when the video release information indicates that the video file is not to be released, the above-mentioned execution body may send the video file and the item link to the above-mentioned terminal, so that the above-mentioned terminal can perform the video file and the article link. associative storage. In this way, the user can use the locally stored video files and item links for subsequent publishing. In this way, the video content in the live broadcast can be quickly obtained and released at any time.

可选地,上述将视频文件与物品链接发送给目标终端,可以包括:从目标终端获取视频保存信息,其中,视频保存信息用于指示视频文件是否需保存于目标终端,视频保存信息为目标终端响应于检测到指定操作所发送的;基于视频保存信息,将视频文件与物品链接发送给终端。Optionally, the above-mentioned sending the link between the video file and the item to the target terminal may include: obtaining video storage information from the target terminal, wherein the video storage information is used to indicate whether the video file needs to be stored in the target terminal, and the video storage information is the target terminal. Sent in response to detecting a specified operation; based on the video save information, the video file is linked to the item and sent to the terminal.

具体地,上述执行主体可以获取视频保存信息,并基于该视频保存信息,发送该视频文件和物品链接。具体地,用户可以对目标终端进行视频保存操作,以使该终端生成并发送该视频保存信息。比如,上述目标终端可以向用户显示分别指示需保存于终端和不需保存于终端的两个选项,用户可以在选项中进行选择,也即进行指定操作,这样,目标终端可以生成不同选项对应的视频保存信息。Specifically, the above-mentioned execution subject may acquire video storage information, and based on the video storage information, send the video file and the item link. Specifically, the user may perform a video saving operation on the target terminal, so that the terminal generates and sends the video saving information. For example, the above-mentioned target terminal can display to the user two options that respectively indicate that they need to be saved in the terminal and those that do not need to be saved in the terminal. The user can select from the options, that is, perform a specified operation. In this way, the target terminal can generate corresponding options for different options. Video save information.

在实践中,上述执行主体可以采用各种方式基于视频保存信息,将视频文件与物品链接发送给上述目标终端。比如,上述执行主体可以在视频保存信息指示需保存于目标终端的情况下,对视频文件添加待发布标签,并将已添加该待发布标签的视频文件和上述物品链接发送给目标终端。In practice, the above-mentioned executive body may use various methods to send the video file and the article link to the above-mentioned target terminal based on the video storage information. For example, the execution body may add a tag to be published to the video file when the video storage information indicates that it needs to be saved in the target terminal, and send the video file to which the tag to be published and the item link has been added to the target terminal.

这些可选的应用场景可以基于终端上传的视频保存信息,对视频文件和物品链接进行处理,从而增加终端对视频保存信息的可控性。在一些情况下,用户可以通过视频保存操作,控制终端生成的视频保存信息,从而实现用户对服务端的控制。These optional application scenarios can process video files and item links based on the video storage information uploaded by the terminal, thereby increasing the controllability of the terminal over the video storage information. In some cases, the user can control the video saving information generated by the terminal through the video saving operation, so as to realize the user's control over the server.

在一些可选的情况下,上述基于视频保存信息,将视频文件与物品链接发送给目标终端,可以包括:响应于视频保存信息指示视频文件需保存于目标终端,将视频文件与物品链接相关联,并将相关联的视频文件与物品链接发送给目标终端。In some optional situations, sending the video file and the item link to the target terminal based on the video saving information may include: in response to the video saving information indicating that the video file needs to be saved in the target terminal, associating the video file with the item link , and send the associated video file and item link to the target terminal.

具体地,上述执行主体可以将视频文件和物品链接进行关联,并将关联后的视频文件和物品链接,发送给上述目标终端。这样,用户可以随时发布视频文件和视频文件中涉及到的物品的物品链接。Specifically, the execution subject may associate the video file with the item link, and send the associated video file and item link to the target terminal. In this way, the user can publish the video file and the item link of the item involved in the video file at any time.

在一些可选的情况下,上述基于视频保存信息,将视频文件与物品链接发送给目标终端,可以包括:响应于视频保存信息指示视频文件需保存于目标终端,对视频文件添加标识;将标识与物品链接进行关联,将携带标识的视频文件发送给目标终端,以使目标终端若检测到对视频文件的视频发布操作则提取视频文件对应的标识,并根据标识从服务端获取该视频文件所关联的物品链接并发布视频文件和物品链接。In some optional situations, the above-mentioned sending the link between the video file and the item to the target terminal based on the video saving information may include: in response to the video saving information indicating that the video file needs to be saved in the target terminal, adding a mark to the video file; adding the mark to the target terminal; Associate with the item link, and send the video file carrying the logo to the target terminal, so that if the target terminal detects the video publishing operation on the video file, it will extract the corresponding logo of the video file, and obtain the video file from the server according to the logo. Associate item links and post video files and item links.

具体地,若视频保存信息指示视频文件需保存于目标终端,则上述执行主体可以对视频文件添加标识。该标识用于区别该视频文件和其它视频文件。并且,上述执行主体还可以将该标识与物品链接进行关联,并将关联后的标识与物品链接存储于服务端,以及将携带标识的视频文件发送给上述目标终端。这样,目标终端若检测到用户对视频文件的视频发布操作,可以提取上述携带标识的视频文件的标识,并从服务端获得该标识所关联的物品链接,并对该视频文件和物品链接进行发布。Specifically, if the video saving information indicates that the video file needs to be saved in the target terminal, the above-mentioned execution body may add an identifier to the video file. The identifier is used to distinguish the video file from other video files. In addition, the above-mentioned execution body may also associate the identifier with the item link, store the associated identifier and the item link on the server, and send the video file carrying the identifier to the above-mentioned target terminal. In this way, if the target terminal detects the user's video publishing operation on the video file, it can extract the logo of the above-mentioned video file carrying the logo, obtain the item link associated with the logo from the server, and publish the video file and the item link. .

这些可选的情况下的标识为用于区别各个视频文件的文件标识,不同于购物车标识。The identifiers in these optional cases are file identifiers used to distinguish each video file, which are different from shopping cart identifiers.

这些可选的情况下,服务端可以通过添加标识并将标识与物品链接进行关联,实现准确、快速地找到视频文件中主播推荐的物品对应的物品链接,从而实现视频文件和物品链接的发布。In these optional cases, the server can accurately and quickly find the item link corresponding to the item recommended by the anchor in the video file by adding an identifier and associating the identifier with the item link, thereby realizing the release of the video file and the item link.

如图4b所示,图中示出了一种针对直播的视频生成方法的一个流程图。As shown in Figure 4b, the figure shows a flow chart of a method for generating video for live broadcast.

进一步参考图5,作为对上述各图所示方法的实现,本申请提供了一种针对直播的视频生成装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,除下面所记载的特征外,该装置实施例还可以包括与图2所示的方法实施例相同或相应的特征或效果。该装置具体可以应用于各种电子设备中。With further reference to FIG. 5 , as an implementation of the methods shown in the above figures, the present application provides an embodiment of a video generation apparatus for live broadcast. The apparatus embodiment corresponds to the method embodiment shown in FIG. 2 , except that In addition to the features described below, the apparatus embodiment may also include the same or corresponding features or effects as the method embodiment shown in FIG. 2 . Specifically, the device can be applied to various electronic devices.

如图5所示,本实施例的针对直播的视频生成装置500包括:直播单元501、提取单元502、获取单元503和停止单元504。其中,直播单元501,被配置成响应于接收到主播终端的开播指令,进入针对主播终端的直播状态并获取主播终端所拍摄的直播视频流,并将直播视频流或者处理后的直播视频流推送至直播间的观众终端;提取单元502,被配置成响应于接收到录播指令,开始提取直播视频流以形成录播视频流;获取单元503,被配置成响应于监测到直播过程中添加物品链接操作,获取物品链接;停止单元504,被配置成响应于接收到停止录播指令,停止提取直播视频流以得到目标录播视频流,并生成目标录播视频流对应的视频文件,并对视频文件与物品链接进行关联处理。As shown in FIG. 5 , the video generating apparatus 500 for live broadcast in this embodiment includes: a live broadcast unit 501 , an extraction unit 502 , an acquisition unit 503 , and a stop unit 504 . The live broadcast unit 501 is configured to, in response to receiving a broadcast start instruction from the host terminal, enter a live broadcast state for the host terminal, obtain a live video stream captured by the host terminal, and push the live video stream or the processed live video stream. to the viewer terminal in the live room; the extracting unit 502 is configured to start extracting the live video stream in response to receiving the recording and broadcasting instruction to form the recorded and broadcast video stream; the obtaining unit 503 is configured to respond to monitoring the addition of items in the live broadcast process The link operation obtains the link of the item; the stopping unit 504 is configured to, in response to receiving the instruction to stop recording and broadcasting, stop extracting the live video stream to obtain the target recording and broadcasting video stream, and generate a video file corresponding to the target recording and broadcasting video stream, and Video files are associated with item links.

在本实施例中,针对直播的视频生成装置500的直播单元501、提取单元502、获取单元503和停止单元504的具体处理及其所带来的技术效果可分别参考图2对应实施例中步骤201、步骤202、步骤203和步骤204的相关说明,在此不再赘述。In this embodiment, for the specific processing of the live broadcast unit 501 , the extraction unit 502 , the acquisition unit 503 and the stop unit 504 of the live video generation apparatus 500 and the technical effects brought about by them, please refer to the steps in the corresponding embodiment of FIG. 2 respectively. The related descriptions of step 201 , step 202 , step 203 and step 204 will not be repeated here.

在本实施例的一些可选的实现方式中,停止单元,进一步被配置成按照如下方式执行生成目标录播视频流对应的视频文件,并对视频文件与物品链接进行关联处理:从目标终端接收视频发布信息,其中,视频发布信息用于指示视频文件是否发布,目标终端为主播终端或主播终端关联的直播控制终端;生成目标录播视频流对应的视频文件,并基于视频发布信息,对视频文件与物品链接进行关联处理。In some optional implementations of this embodiment, the stopping unit is further configured to generate a video file corresponding to the target recording and broadcasting video stream in the following manner, and perform association processing between the video file and the item link: receiving from the target terminal Video release information, wherein the video release information is used to indicate whether the video file is released, the target terminal is the host terminal or the live control terminal associated with the host terminal; the video file corresponding to the target recorded and broadcast video stream is generated, and based on the video release information, the video The file is associated with the item link.

在本实施例的一些可选的实现方式中,停止单元,进一步被配置成按照如下方式执行基于视频发布信息,对视频文件与物品链接进行关联处理:响应于确定视频发布信息指示视频文件发布,将视频文件与物品链接进行关联发布,以使所发布的视频文件的视频帧中呈现有与物品链接关联的购物车标识。In some optional implementations of this embodiment, the stopping unit is further configured to perform associative processing on the link between the video file and the item based on the video release information in the following manner: in response to determining that the video release information instructs the video file to release, The video file is published in association with the item link, so that a shopping cart identification associated with the item link is displayed in the video frame of the published video file.

在本实施例的一些可选的实现方式中,停止单元,进一步被配置成按照如下方式执行从目标终端接收视频发布信息:向目标终端发送视频发布询问信息,其中,视频发布询问信息用于向用户询问视频文件是否发布;接收目标终端响应于检测到指示操作所生成并发送的视频发布信息。In some optional implementations of this embodiment, the stopping unit is further configured to perform receiving video release information from the target terminal in the following manner: sending video release inquiry information to the target terminal, wherein the video release inquiry information is used to send video release information to the target terminal. The user inquires whether the video file is released; the video release information generated and sent by the target terminal in response to the detection of the instruction operation is received.

在本实施例的一些可选的实现方式中,停止单元,进一步被配置成按照如下方式执行基于视频发布信息,对视频文件与物品链接进行关联处理:响应于确定视频发布信息指示视频文件不发布,将视频文件与物品链接发送给目标终端,以使目标终端对视频文件与物品链接进行关联存储。In some optional implementations of this embodiment, the stopping unit is further configured to perform associative processing on the link between the video file and the item based on the video release information in the following manner: in response to determining that the video release information indicates that the video file is not to be released , and send the video file and the item link to the target terminal, so that the target terminal associates and stores the video file and the item link.

在本实施例的一些可选的实现方式中,停止单元,进一步被配置成按照如下方式执行将视频文件与物品链接发送给目标终端:从目标终端获取视频保存信息,其中,视频保存信息用于指示视频文件是否需保存于目标终端,视频保存信息为目标终端响应于检测到指定操作所发送的;基于视频保存信息,将视频文件与物品链接发送给目标终端。In some optional implementations of this embodiment, the stopping unit is further configured to execute the linking of the video file and the item to the target terminal in the following manner: acquire video saving information from the target terminal, wherein the video saving information is used for Indicates whether the video file needs to be saved in the target terminal, and the video save information is sent by the target terminal in response to detecting the specified operation; based on the video save information, the video file is linked with the item and sent to the target terminal.

在本实施例的一些可选的实现方式中,停止单元,进一步被配置成按照如下方式执行基于视频保存信息,将视频文件与物品链接发送给目标终端:响应于视频保存信息指示视频文件需保存于目标终端,将视频文件与物品链接相关联,并将相关联的视频文件与物品链接发送给目标终端。In some optional implementations of this embodiment, the stopping unit is further configured to perform, based on the video saving information, linking the video file and the item to the target terminal: in response to the video saving information indicating that the video file needs to be saved At the target terminal, associate the video file with the item link, and send the associated video file and item link to the target terminal.

在本实施例的一些可选的实现方式中,停止单元,进一步被配置成按照如下方式执行基于视频保存信息,将视频文件与物品链接发送给目标终端:响应于视频保存信息指示视频文件需保存于目标终端,对视频文件添加标识;将标识与物品链接进行关联,将视频文件、物品链接和标识发送给目标终端,其中,目标终端若检测到对视频文件的视频发布操作则提取标识所关联的物品链接并发布视频文件和物品链接。In some optional implementations of this embodiment, the stopping unit is further configured to perform, based on the video saving information, linking the video file and the item to the target terminal: in response to the video saving information indicating that the video file needs to be saved At the target terminal, add a logo to the video file; associate the logo with the item link, and send the video file, the item link and the logo to the target terminal, wherein, if the target terminal detects a video publishing operation on the video file, it extracts the associated logo. Item links and post video files and item links.

在本实施例的一些可选的实现方式中,目标录播视频流包括分别与多个物品链接关联的多个视频流段;停止单元,进一步被配置成按照如下方式执行对视频文件与物品链接进行关联处理:将视频文件拆分为分别与不同的物品链接关联的子视频文件,其中,每个子视频文件关联一个视频流段。In some optional implementations of this embodiment, the target recording and broadcasting video stream includes a plurality of video stream segments that are respectively associated with a plurality of item links; the stopping unit is further configured to execute the link between the video file and the item in the following manner Perform association processing: split the video file into sub-video files that are respectively associated with different item links, wherein each sub-video file is associated with a video stream segment.

在本实施例的一些可选的实现方式中,停止单元,进一步被配置成按照如下方式执行将视频文件拆分为分别与不同的物品链接关联的子视频文件:获取视频文件中的视频播放界面的图像识别结果;按照不同的识别结果,对视频文件进行拆分,得到至少两个子视频文件,其中,不同的识别结果包括不同的目标物品的标签,不同的目标物品分别为不同的物品链接指示的物品。In some optional implementations of this embodiment, the stopping unit is further configured to perform splitting the video file into sub-video files respectively associated with different item links in the following manner: obtaining the video playback interface in the video file image recognition results; split the video file according to different recognition results to obtain at least two sub-video files, wherein different recognition results include tags of different target items, and different target items are respectively different item link indications 's items.

在本实施例的一些可选的实现方式中,装置还包括:退出单元,被配置成响应于接收到下播指令,退出直播状态并停止获取直播终端所拍摄的直播视频流。In some optional implementations of this embodiment, the apparatus further includes: an exit unit, configured to exit the live broadcast state and stop acquiring the live video stream shot by the live broadcast terminal in response to receiving the broadcast instruction.

根据本申请的实施例,本申请还提供了一种电子设备和一种可读存储介质。According to the embodiments of the present application, the present application further provides an electronic device and a readable storage medium.

如图6所示,是根据本申请实施例的针对直播的视频生成方法的电子设备的框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本申请的实现。As shown in FIG. 6 , it is a block diagram of an electronic device for a video generation method for live broadcast according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are by way of example only, and are not intended to limit implementations of the application described and/or claimed herein.

如图6所示,该电子设备包括:一个或多个处理器601、存储器602,以及用于连接各部件的接口,包括高速接口和低速接口。各个部件利用不同的总线互相连接,并且可以被安装在公共主板上或者根据需要以其它方式安装。处理器可以对在电子设备内执行的指令进行处理,包括存储在存储器中或者存储器上以在外部输入/输出装置(诸如,耦合至接口的显示设备)上显示GUI的图形信息的指令。在其它实施方式中,若需要,可以将多个处理器和/或多条总线与多个存储器和多个存储器一起使用。同样,可以连接多个电子设备,各个设备提供部分必要的操作(例如,作为服务器阵列、一组刀片式服务器、或者多处理器系统)。图6中以一个处理器601为例。As shown in FIG. 6, the electronic device includes: one or more processors 601, a memory 602, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or otherwise as desired. The processor may process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used with multiple memories and multiple memories, if desired. Likewise, multiple electronic devices may be connected, each providing some of the necessary operations (eg, as a server array, a group of blade servers, or a multiprocessor system). A processor 601 is taken as an example in FIG. 6 .

存储器602即为本申请所提供的非瞬时计算机可读存储介质。其中,存储器存储有可由至少一个处理器执行的指令,以使至少一个处理器执行本申请所提供的针对直播的视频生成方法。本申请的非瞬时计算机可读存储介质存储计算机指令,该计算机指令用于使计算机执行本申请所提供的针对直播的视频生成方法。The memory 602 is the non-transitory computer-readable storage medium provided by the present application. The memory stores instructions executable by at least one processor, so that the at least one processor executes the video generation method for live broadcast provided by the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to execute the video generation method for live broadcast provided by the present application.

存储器602作为一种非瞬时计算机可读存储介质,可用于存储非瞬时软件程序、非瞬时计算机可执行程序以及模块,如本申请实施例中的针对直播的视频生成方法对应的程序指令/模块(例如,附图5所示的直播单元501、提取单元502、获取单元503和停止单元504)。处理器601通过运行存储在存储器602中的非瞬时软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例中的针对直播的视频生成方法。As a non-transitory computer-readable storage medium, the memory 602 can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as program instructions/modules ( For example, the live broadcast unit 501, the extraction unit 502, the acquisition unit 503, and the stop unit 504 shown in FIG. 5). The processor 601 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions and modules stored in the memory 602, ie, implements the video generation method for live broadcast in the above method embodiments.

存储器602可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据针对直播的视频生成电子设备的使用所创建的数据等。此外,存储器602可以包括高速随机存取存储器,还可以包括非瞬时存储器,例如至少一个磁盘存储器件、闪存器件、或其他非瞬时固态存储器件。在一些实施例中,存储器602可选包括相对于处理器601远程设置的存储器,这些远程存储器可以通过网络连接至针对直播的视频生成电子设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 602 may include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the electronic device for live video generation Wait. Additionally, memory 602 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 602 may optionally include memory located remotely from processor 601 that may be connected via a network to video generation electronics for live broadcast. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

针对直播的视频生成方法的电子设备还可以包括:输入装置603和输出装置604。处理器601、存储器602、输入装置603和输出装置604可以通过总线或者其他方式连接,图6中以通过总线连接为例。The electronic device for the live video generation method may further include: an input device 603 and an output device 604 . The processor 601 , the memory 602 , the input device 603 and the output device 604 may be connected by a bus or in other ways, and the connection by a bus is taken as an example in FIG. 6 .

输入装置603可接收输入的数字或字符信息,以及产生与针对直播的视频生成电子设备的用户设置以及功能控制有关的键信号输入,例如触摸屏、小键盘、鼠标、轨迹板、触摸板、指示杆、一个或者多个鼠标按钮、轨迹球、操纵杆等输入装置。输出装置604可以包括显示设备、辅助照明装置(例如,LED)和触觉反馈装置(例如,振动电机)等。该显示设备可以包括但不限于,液晶显示器(LCD)、发光二极管(LED)显示器和等离子体显示器。在一些实施方式中,显示设备可以是触摸屏。The input device 603 can receive input numerical or character information and generate key signal input related to user settings and functional control of the live video generation electronic device, such as touch screen, keypad, mouse, trackpad, touchpad, pointing stick , one or more mouse buttons, trackballs, joysticks and other input devices. Output devices 604 may include display devices, auxiliary lighting devices (eg, LEDs), haptic feedback devices (eg, vibration motors), and the like. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.

此处描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、专用ASIC(专用集成电路)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein can be implemented in digital electronic circuitry, integrated circuit systems, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.

这些计算程序(也称作程序、软件、软件应用、或者代码)包括可编程处理器的机器指令,并且可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。如本文使用的,术语“机器可读介质”和“计算机可读介质”指的是用于将机器指令和/或数据提供给可编程处理器的任何计算机程序产品、设备、和/或装置(例如,磁盘、光盘、存储器、可编程逻辑装置(PLD)),包括,接收作为机器可读信号的机器指令的机器可读介质。术语“机器可读信号”指的是用于将机器指令和/或数据提供给可编程处理器的任何信号。These computational programs (also referred to as programs, software, software applications, or codes) include machine instructions for programmable processors, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages calculation program. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or apparatus for providing machine instructions and/or data to a programmable processor ( For example, magnetic disks, optical disks, memories, programmable logic devices (PLDs), including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.

为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。A computer system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other.

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.

描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括直播单元、提取单元、获取单元和停止单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,获取单元还可以被描述为“响应于监测到直播过程中添加物品链接操作,获取物品链接的单元”。The units involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner. The described unit can also be set in the processor, for example, it can be described as: a processor includes a live broadcast unit, an extraction unit, an acquisition unit and a stop unit. Wherein, the names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the acquisition unit may also be described as "a unit that acquires an item link in response to monitoring the operation of adding an item link during the live broadcast".

作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的装置中所包含的;也可以是单独存在,而未装配入该装置中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该装置执行时,使得该装置:响应于接收到主播终端的开播指令,进入针对主播终端的直播状态并获取主播终端所拍摄的直播视频流,并将直播视频流或者处理后的直播视频流推送至直播间的观众终端;响应于接收到录播指令,开始提取直播视频流以形成录播视频流;响应于监测到直播过程中添加物品链接操作,获取物品链接;响应于接收到停止录播指令,停止提取直播视频流以得到目标录播视频流,并生成目标录播视频流对应的视频文件,并对视频文件与物品链接进行关联处理。As another aspect, the present application also provides a computer-readable medium, which may be included in the apparatus described in the above-mentioned embodiments, or may exist independently without being assembled into the apparatus. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the device, the device makes the device: in response to receiving the broadcast instruction of the host terminal, enter the live broadcast state for the host terminal and obtain the host The live video stream captured by the terminal, and push the live video stream or the processed live video stream to the audience terminal in the live room; in response to receiving the recording and broadcasting instruction, start extracting the live video stream to form a recorded and broadcast video stream; in response to The operation of adding an item link during the live broadcast is monitored, and the item link is obtained; in response to receiving the stop recording and broadcasting instruction, stop extracting the live video stream to obtain the target recording and broadcasting video stream, and generate a video file corresponding to the target recording and broadcasting video stream. Video files are associated with item links.

以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above technical features, and should also cover the above technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in this application (but not limited to) with similar functions.

Claims (13)

1. A video generation method for live broadcasting is used for a server side and comprises the following steps:
responding to a received broadcast command of a main broadcast terminal, entering a live broadcast state aiming at the main broadcast terminal, acquiring a live broadcast video stream shot by the main broadcast terminal, and pushing the live broadcast video stream or the processed live broadcast video stream to a viewer terminal of a live broadcast room;
in response to receiving a recorded broadcast instruction, beginning to extract the live video stream to form a recorded broadcast video stream;
in response to monitoring that an article link adding operation is performed in the live broadcast process, acquiring an article link;
and in response to receiving a recording stopping instruction, stopping extracting the live broadcast video stream to obtain a target recording and broadcasting video stream, generating a video file corresponding to the target recording and broadcasting video stream, and performing association processing on the video file and the article link.
2. The method of claim 1, wherein the generating a video file corresponding to the target recorded video stream and associating the video file with the item link comprises:
receiving video release information from a target terminal, wherein the video release information is used for indicating whether the video file is released, and the target terminal is the anchor terminal or a live broadcast control terminal associated with the anchor terminal;
and generating a video file corresponding to the target recorded broadcast video stream, and performing association processing on the video file and the article link based on the video release information.
3. The method of claim 2, wherein the associating the video file with the item link based on the video publishing information comprises:
in response to determining that the video publishing information indicates that the video file is published, the video file is published in association with the item link, so that a shopping cart identifier associated with the item link is presented in a video playing interface of the published video file.
4. The method of claim 3, wherein the receiving video distribution information from the target terminal comprises:
sending video publishing inquiry information to the target terminal, wherein the video publishing inquiry information is used for inquiring whether the video file is published or not from a user;
and receiving video release information generated and sent by the target terminal in response to the detection of the indication operation.
5. The method of claim 2, wherein the associating the video file with the item link based on the video publishing information comprises:
and in response to determining that the video publishing information indicates that the video file is not published, sending the video file and the item link to the target terminal so that the target terminal stores the video file and the item link in an associated manner.
6. The method of claim 5, wherein the transmitting the video file with the item link to the target terminal comprises:
acquiring video saving information from the target terminal, wherein the video saving information is used for indicating whether the video file needs to be saved in the target terminal, and the video saving information is sent by the target terminal in response to the detection of the specified operation;
and based on the video storage information, the video file and the article link are sent to the target terminal.
7. The method of claim 6, wherein said transmitting the video file with the item link to the target terminal based on the video saving information comprises:
and responding to the video storage information to indicate that the video file needs to be stored in the target terminal, associating the video file with the item link, and sending the associated video file and the item link to the target terminal.
8. The method of claim 6, wherein said transmitting the video file with the item link to the target terminal based on the video saving information comprises:
responding to the video storage information to indicate that the video file needs to be stored in the target terminal, and adding an identifier to the video file;
the identification is associated with the item link, and the item link and the identification are stored in an associated manner;
and sending the video file with the identifier to the target terminal, wherein the target terminal extracts the identifier of the video file with the identifier if detecting the video publishing operation of the video file with the identifier, acquires the article link associated with the identifier from a server and publishes the video file and the article link.
9. The method of claim 1, wherein the target recorded video stream comprises a plurality of video stream segments respectively associated with a plurality of item links;
the associating the video file and the item link comprises:
splitting the video file into sub-video files respectively associated with different item links, wherein each sub-video file is associated with a video stream segment.
10. The method of claim 9, wherein the splitting the video file into sub-video files respectively associated with different item links comprises:
acquiring an image identification result of a video frame in the video file;
and splitting the video file according to different identification results to obtain at least two sub-video files, wherein the different identification results comprise labels of different target articles, and the different target articles are respectively articles indicated by the different article links.
11. The method of claim 1, wherein the method further comprises:
and in response to receiving a downloading command, exiting the live broadcasting state and stopping acquiring the live video stream shot by the live broadcasting terminal.
12. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-11.
13. A computer-readable storage medium having stored thereon a computer program, wherein,
the program when executed by a processor implementing the method as claimed in any one of claims 1-11.
CN202010856396.5A 2020-08-24 2020-08-24 Video generation method and device for live broadcast Pending CN111954078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010856396.5A CN111954078A (en) 2020-08-24 2020-08-24 Video generation method and device for live broadcast

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010856396.5A CN111954078A (en) 2020-08-24 2020-08-24 Video generation method and device for live broadcast

Publications (1)

Publication Number Publication Date
CN111954078A true CN111954078A (en) 2020-11-17

Family

ID=73360137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010856396.5A Pending CN111954078A (en) 2020-08-24 2020-08-24 Video generation method and device for live broadcast

Country Status (1)

Country Link
CN (1) CN111954078A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112418058A (en) * 2020-11-19 2021-02-26 上海哔哩哔哩科技有限公司 Video processing method and device
CN113630618A (en) * 2021-08-06 2021-11-09 上海哔哩哔哩科技有限公司 Video processing method, device and system
CN115348459A (en) * 2022-08-16 2022-11-15 支付宝(杭州)信息技术有限公司 Short video processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018059352A1 (en) * 2016-09-29 2018-04-05 广州华多网络科技有限公司 Remote control method and apparatus for live video stream
CN108650531A (en) * 2018-07-17 2018-10-12 北京引领海逛科技有限公司 The method and system of video content Rapid matching product
CN109429074A (en) * 2017-08-25 2019-03-05 阿里巴巴集团控股有限公司 A kind of live content processing method, device and system
CN109429075A (en) * 2017-08-25 2019-03-05 阿里巴巴集团控股有限公司 A kind of live content processing method, device and system
CN111107388A (en) * 2019-12-31 2020-05-05 广州华多网络科技有限公司 Method, device, system, equipment and storage medium for processing live broadcast content

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018059352A1 (en) * 2016-09-29 2018-04-05 广州华多网络科技有限公司 Remote control method and apparatus for live video stream
CN109429074A (en) * 2017-08-25 2019-03-05 阿里巴巴集团控股有限公司 A kind of live content processing method, device and system
CN109429075A (en) * 2017-08-25 2019-03-05 阿里巴巴集团控股有限公司 A kind of live content processing method, device and system
CN108650531A (en) * 2018-07-17 2018-10-12 北京引领海逛科技有限公司 The method and system of video content Rapid matching product
CN111107388A (en) * 2019-12-31 2020-05-05 广州华多网络科技有限公司 Method, device, system, equipment and storage medium for processing live broadcast content

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112418058A (en) * 2020-11-19 2021-02-26 上海哔哩哔哩科技有限公司 Video processing method and device
US12230295B2 (en) 2020-11-19 2025-02-18 Shanghai Bilibili Technology Co., Ltd. Video processing method and apparatus
CN113630618A (en) * 2021-08-06 2021-11-09 上海哔哩哔哩科技有限公司 Video processing method, device and system
CN113630618B (en) * 2021-08-06 2024-02-13 上海哔哩哔哩科技有限公司 Video processing method, device and system
CN115348459A (en) * 2022-08-16 2022-11-15 支付宝(杭州)信息技术有限公司 Short video processing method and device

Similar Documents

Publication Publication Date Title
KR102436734B1 (en) method for confirming a position of video playback node, apparatus, electronic equipment, computer readable storage medium and computer program
CN111954077A (en) Video stream processing method and device for live broadcast
US11023716B2 (en) Method and device for generating stickers
CN112416284B (en) Method, apparatus, device and storage medium for sharing screen
CN111901615A (en) Live video playing method and device
CN111586319B (en) Video processing method and device
CN111954078A (en) Video generation method and device for live broadcast
CN113542888B (en) Video processing method and device, electronic equipment and storage medium
US20190014063A1 (en) System and Methods for Dynamically Generating Animated GIF Files for Delivery Via the Network
WO2019144849A1 (en) Method and device for pushing information to user
CN112235613A (en) Video processing method and device, electronic equipment and storage medium
CN111726682A (en) Video segment generating method, apparatus, device and computer storage medium
CN111866550A (en) Method and device for shielding video clip
CN116244490A (en) Content sharing method, device, equipment, computer readable storage medium and product
CN111601160A (en) Method and device for editing video
CN111638787A (en) Method and device for displaying information
CN110855557A (en) Video sharing method and device and storage medium
CN112702619A (en) Anchor interface display method, device, equipment and storage medium
CN111901671B (en) Video connection method and device
CN112383825B (en) Video recommendation method, apparatus, electronic device and medium
CN111818279A (en) Subtitle generating method, display method and interaction method
CN113536037A (en) Video-based information query method, device, device and storage medium
CN113542802B (en) Video transition method and device
CN112016020B (en) Information processing method and device
CN112948718A (en) Information delivery method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201117