CN111246253B - Video streaming method and device - Google Patents

Video streaming method and device Download PDF

Info

Publication number
CN111246253B
CN111246253B CN202010073161.9A CN202010073161A CN111246253B CN 111246253 B CN111246253 B CN 111246253B CN 202010073161 A CN202010073161 A CN 202010073161A CN 111246253 B CN111246253 B CN 111246253B
Authority
CN
China
Prior art keywords
data
video stream
mixing
transmission connection
request
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.)
Active
Application number
CN202010073161.9A
Other languages
Chinese (zh)
Other versions
CN111246253A (en
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.)
Beijing Century TAL Education Technology Co Ltd
Original Assignee
Beijing Century TAL Education 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 Beijing Century TAL Education Technology Co Ltd filed Critical Beijing Century TAL Education Technology Co Ltd
Priority to CN202010073161.9A priority Critical patent/CN111246253B/en
Publication of CN111246253A publication Critical patent/CN111246253A/en
Application granted granted Critical
Publication of CN111246253B publication Critical patent/CN111246253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • 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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/6437Real-time Transport Protocol [RTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a video stream transmission method and a video stream transmission device, which relate to the technical field of data transmission and comprise the steps of sending a request for establishing communication transmission connection to a Content Delivery Network (CDN) node; and after the communication transmission connection is successfully established, sending mixing data obtained by performing mixing processing operation on the video stream data to the content delivery network CDN node, wherein the starting time point of the mixing processing operation does not occur after the time point of sending the establishment request of the communication transmission connection, and the mixing processing operation is not performed after the communication transmission connection request, so that the transmission delay is reduced, and seamless transmission is realized.

Description

视频流传输方法和装置Video streaming method and device

技术领域technical field

本发明涉及数据传输技术领域,尤其是涉及一种视频流传输方法和装置。The present invention relates to the technical field of data transmission, and in particular, to a video stream transmission method and device.

背景技术Background technique

直播行业的蓬勃发展给CDN(Content Delivery Network,内容分发网络)直播业务带来了机遇。目前直播的主要模式是:推流器通过RTMP(Real Time MessagingProtocol,实时消息协议)协议将直播流推至CDN边缘节点(边缘拉流服务器);CDN边缘节点经过分发,为客户播放器提供RTMP、HTTP(HyperText Transfer Protocol,超文本传输协议)+FLV(FlashVideo,Flash视频)、HLS(HTTP Live Streaming,HTTP实时流媒体)等服务。The vigorous development of the live broadcast industry has brought opportunities to the CDN (Content Delivery Network, Content Delivery Network) live broadcast business. At present, the main mode of live broadcast is: the streamer pushes the live stream to the CDN edge node (edge streaming server) through the RTMP (Real Time Messaging Protocol) protocol; the CDN edge node is distributed to provide RTMP, HTTP (HyperText Transfer Protocol, hypertext transfer protocol) + FLV (FlashVideo, Flash video), HLS (HTTP Live Streaming, HTTP real-time streaming media) and other services.

当前的视频流传输方式是:混频服务器在CDN建立连接之后,再进行混频处理,生成混频文件,然后再将混频文件发送至CDN。而由于混频服务器通常需要对较大规模的数据进行混频操作,进而在CDN连接建立后会存在一定时间的时延,而CDN会误认为此连接出现故障,造成视频数据流传输不通畅。The current video stream transmission method is: after the mixing server establishes a connection with the CDN, the mixing server performs mixing processing to generate a mixing file, and then sends the mixing file to the CDN. However, because the mixing server usually needs to mix large-scale data, there will be a certain time delay after the CDN connection is established, and the CDN will mistakenly believe that the connection is faulty, resulting in unsmooth video data streaming.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种视频流传输方法和装置,通过不在通信传输连接请求之后进行混频处理操作,来减少传输延时,实现无缝传输。The purpose of the present invention is to provide a video stream transmission method and device, which can reduce transmission delay and realize seamless transmission by not performing a frequency mixing operation after a communication transmission connection request.

第一方面,实施例提供一种视频流传输方法,包括:In a first aspect, the embodiment provides a video stream transmission method, including:

向内容分发网络CDN节点发送通信传输连接的建立请求;Send a request for establishing a communication transmission connection to the CDN node of the content distribution network;

在所述通信传输连接建立成功后,向所述内容分发网络CDN节点发送通过对视频流数据进行混频处理操作得到的混频数据,其中,混频处理操作不在发送通信传输连接的建立请求之后发生。After the communication transmission connection is successfully established, the frequency mixing data obtained by performing the frequency mixing processing operation on the video stream data is sent to the CDN node of the content distribution network, wherein the frequency mixing processing operation is not after sending the establishment request of the communication transmission connection occur.

在可选的实施方式中,向内容分发网络CDN节点发送通信传输连接的建立请求的步骤,包括:In an optional implementation manner, the step of sending a request for establishing a communication transmission connection to a CDN node of a content distribution network includes:

先对视频流数据进行混频处理操作得到混频数据;First, perform a frequency mixing operation on the video stream data to obtain the frequency mixing data;

再向内容分发网络CDN节点发送通信传输连接的建立请求。Then, a request for establishing a communication transmission connection is sent to the CDN node of the content distribution network.

在可选的实施方式中,向所述内容分发网络CDN节点发送通过对视频流数据进行混频处理操作得到的混频数据的步骤之前,还包括:In an optional implementation manner, before the step of sending the mixing data obtained by performing the mixing operation on the video stream data to the CDN node of the content distribution network, the method further includes:

将所述混频数据进行缓存。The mixing data is buffered.

在可选的实施方式中,向内容分发网络CDN节点发送通信传输连接的建立请求的步骤,包括:In an optional implementation manner, the step of sending a request for establishing a communication transmission connection to a CDN node of a content distribution network includes:

当对视频流数据进行混频处理操作得到的混频数据时,向内容分发网络CDN节点发送通信传输连接的建立请求。When the mixing data is obtained by performing the mixing processing operation on the video stream data, a request for establishing a communication transmission connection is sent to the CDN node of the content distribution network.

在可选的实施方式中,对视频流数据进行混频处理操作得到的混频数据的步骤,包括:In an optional implementation manner, the step of mixing data obtained by mixing the video stream data includes:

将来自至少一个采集设备的视频流数据中相同时间的视频帧进行混频操作,得到混频数据。The frequency mixing operation is performed on video frames of the same time in the video stream data from at least one acquisition device to obtain frequency mixing data.

在可选的实施方式中,所述方法还包括:In an optional embodiment, the method further includes:

接收所述内容分发网络CDN节点发送的所述通信传输连接的建立请求。A request for establishing the communication transmission connection sent by the CDN node of the content distribution network is received.

在可选的实施方式中,所述混频数据用于客户端同时显示来自至少一个采集设备的视频流数据。In an optional implementation manner, the mixing data is used for the client to simultaneously display video stream data from at least one acquisition device.

第二方面,实施例提供一种视频流传输装置,包括:In a second aspect, the embodiment provides a video streaming device, comprising:

请求建立模块,用于向内容分发网络CDN节点发送通信传输连接的建立请求;a request establishment module, configured to send a communication transmission connection establishment request to the CDN node of the content distribution network;

混频传输模块,用于在所述通信传输连接建立成功后,向所述内容分发网络CDN节点发送通过对视频流数据进行混频处理操作得到的混频数据,其中,混频处理操作不在发送通信传输连接的建立请求之后发生。A frequency mixing transmission module, configured to send the frequency mixing data obtained by performing the frequency mixing processing operation on the video stream data to the CDN node of the content distribution network after the communication transmission connection is successfully established, wherein the frequency mixing processing operation is not sending Occurs after an establishment request for a communication transport connection.

第三方面,实施例提供一种电子设备,包括存储器、处理器及存储在所述存储器上并且能够在所述处理器上运行的程序,所述处理器执行所述程序时实现如前述实施方式中任一项所述的视频流传输方法。In a third aspect, an embodiment provides an electronic device, including a memory, a processor, and a program stored on the memory and capable of running on the processor, and the processor implements the foregoing embodiments when the processor executes the program The video streaming method described in any one of.

第四方面,实施例提供一种计算机可读存储介质,所述可读存储介质中存储有计算机程序,所述计算机程序被执行时实现前述实施方式中任意一项所述的视频流传输方法。In a fourth aspect, the embodiments provide a computer-readable storage medium, where a computer program is stored in the readable storage medium, and when the computer program is executed, the video streaming method described in any one of the foregoing embodiments is implemented.

本发明实施例提供了一种视频传输方法和装置,通过向内容分发网络CDN节点发送通信传输连接的建立请求,并在通信传输连接建立成功后,向内容分发网络CDN节点发送通过对视频流数据进行混频处理操作得到的混频数据,以实现视频流数据的传输,其中,为了保证视频流数据的无缝传输,并减少延时,混频处理操作并不在发送通信传输连接的建立请求之后发生。Embodiments of the present invention provide a video transmission method and device, by sending a request for establishing a communication transmission connection to a CDN node of a content distribution network, and after the communication transmission connection is successfully established, sending the video stream data to the CDN node of the content distribution network The mixing data obtained by the mixing processing operation is used to realize the transmission of video stream data. In order to ensure the seamless transmission of the video stream data and reduce the delay, the mixing processing operation is not performed after sending the establishment request of the communication transmission connection. occur.

本发明的其他特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点在说明书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the description and drawings.

为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below, and are described in detail as follows in conjunction with the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the specific embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the specific embodiments or the prior art. Obviously, the accompanying drawings in the following description The drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative efforts.

图1为本发明实施例提供的一种视频流传输方法流程图;1 is a flowchart of a video stream transmission method according to an embodiment of the present invention;

图2为本发明实施例提供的一种视频流传输装置的功能模块示意图;2 is a schematic diagram of functional modules of a video stream transmission device according to an embodiment of the present invention;

图3为本发明实施例提供的电子设备的硬件架构示意图。FIG. 3 is a schematic diagram of a hardware architecture of an electronic device according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of them. example. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

目前,由于混频服务器通常应对的是大规模数据,所以在连接建立完成后,会有一定的时延,才会产生混频数据,在这个时延期间,CDN会误认为该连接出现故障,造成数据流的传输不顺畅。At present, because the mixing server usually deals with large-scale data, after the connection is established, there will be a certain delay before the mixing data is generated. During this delay, the CDN will mistakenly think that the connection is faulty. The transmission of data flow is not smooth.

基于此,本发明实施例提供的一种视频流传输方法和装置,可以通过不在通信传输连接请求之后进行混频处理操作,来减少传输延时,实现无缝传输。Based on this, the video stream transmission method and device provided by the embodiments of the present invention can reduce transmission delay and realize seamless transmission by not performing a frequency mixing operation after a communication transmission connection request.

为便于对本实施例进行理解,首先对本发明实施例所公开的一种视频流传输方法进行详细介绍。To facilitate understanding of this embodiment, a video stream transmission method disclosed in this embodiment of the present invention is first introduced in detail.

图1为本发明实施例提供的一种视频流传输方法流程图。FIG. 1 is a flowchart of a video stream transmission method according to an embodiment of the present invention.

参照图1,实施例提供的视频流传输方法可以应用于服务器侧,该方法至少可以包括以下步骤:Referring to FIG. 1 , the video stream transmission method provided by the embodiment may be applied to the server side, and the method may at least include the following steps:

步骤S102,向内容分发网络CDN节点发送通信传输连接的建立请求;Step S102, sending a request for establishing a communication transmission connection to a CDN node of a content distribution network;

步骤S104,在通信传输连接建立成功后,向内容分发网络CDN节点发送通过对视频流数据进行混频处理操作得到的混频数据,其中,混频处理操作的开始时间点不在发送通信传输连接的建立请求的时间点之后发生。Step S104: After the communication and transmission connection is successfully established, the frequency mixing data obtained by performing the frequency mixing processing operation on the video stream data is sent to the CDN node of the content distribution network, wherein the start time point of the frequency mixing processing operation is not at the time of sending the communication transmission connection. Occurs after the point in time when the request was established.

在实际应用的优选实施例中,通过向内容分发网络CDN节点发送通信传输连接的建立请求,并在通信传输连接建立成功后,向内容分发网络CDN节点发送通过对视频流数据进行混频处理操作得到的混频数据,以实现视频流数据的传输,其中,为了保证视频流数据的无缝传输,并减少延时,混频处理操作并不在发送通信传输连接的建立请求之后发生。In a preferred embodiment of practical application, a request for establishing a communication transmission connection is sent to the CDN node of the content distribution network, and after the communication transmission connection is successfully established, the operation of mixing the video stream data is sent to the CDN node of the content distribution network. The obtained frequency mixing data is used to realize the transmission of video stream data, wherein, in order to ensure seamless transmission of video stream data and reduce delay, the frequency mixing operation does not occur after sending the establishment request of the communication transmission connection.

在可选的实施方式中,上述步骤S102可以通过如下步骤实现:In an optional implementation manner, the above step S102 may be implemented by the following steps:

步骤1.1),先对视频流数据进行混频处理操作得到混频数据;Step 1.1), first perform a mixing process operation on the video stream data to obtain mixing data;

步骤1.2),再向内容分发网络CDN节点发送通信传输连接的建立请求。Step 1.2), and then send a request for establishing a communication transmission connection to the CDN node of the content distribution network.

这里,先对视频流数据进行混频操作,混频操作完成后再进行通信传输连接的建立,以避免先建立通信传输连接后,具有对视频流进行混频操作的时延。Here, a frequency mixing operation is performed on the video stream data first, and then the communication transmission connection is established after the frequency mixing operation is completed, so as to avoid a delay in performing the frequency mixing operation on the video stream after the communication transmission connection is established first.

在可选的实施方式中,在步骤S102之前,还包括:In an optional implementation manner, before step S102, it further includes:

步骤2.1),将所述混频数据进行缓存。Step 2.1), buffer the mixing data.

其中,可将混频后的混频数据进行缓存到数据库,当通信传输连接建立后,从缓存的数据库中进行调用。Among them, the mixed frequency data can be cached in the database, and when the communication transmission connection is established, the data can be called from the cached database.

在可选的实施方式中,上述步骤S102,还可以通过以下步骤实现:In an optional implementation manner, the above step S102 can also be implemented by the following steps:

步骤3.1),当对视频流数据进行混频处理操作得到的混频数据时,向内容分发网络CDN节点发送通信传输连接的建立请求。Step 3.1), when the mixing data is obtained by performing the mixing processing operation on the video stream data, a request for establishing a communication transmission connection is sent to the CDN node of the content distribution network.

这里,为了提高数据传输效率,还可在视频流数据进行混频操作的同时,即发送建立通信传输连接的建立请求,此时,连接成功建立后,可进行混频数据的实时传输,即实时通过通信传输连接进行传输的混频数据并不是对应整体的视频流数据,而是实时产生的混频数据,属于整体视频流数据的一部分。Here, in order to improve the data transmission efficiency, it is also possible to send an establishment request for establishing a communication transmission connection while the video stream data is being mixed. The mixing data transmitted through the communication transmission connection is not corresponding to the overall video stream data, but the mixing data generated in real time, which is a part of the overall video stream data.

在可选的实施方式中,步骤S104中的对视频流数据进行混频处理操作得到的混频数据的步骤,包括:In an optional implementation manner, the step of performing the mixing process operation on the video stream data in step S104 to obtain the mixing data includes:

步骤4.1),将来自至少一个采集设备的视频流数据中相同时间的视频帧进行混频操作,得到混频数据。Step 4.1), performing a frequency mixing operation on video frames of the same time in the video stream data from at least one acquisition device to obtain frequency mixing data.

这里,视频流数据可能来自不同的摄像头或服务器,在实际的直播场景中,可能需要同时在一个页面显示出同一时刻的游戏场景画面以及摄像头采集的人像画面。Here, the video stream data may come from different cameras or servers. In an actual live broadcast scenario, it may be necessary to display the game scene picture and the portrait picture captured by the camera at the same time on one page at the same time.

在可选的实施方式中,所述混频数据用于客户端同时显示来自至少一个采集设备的视频流数据。In an optional implementation manner, the mixing data is used for the client to simultaneously display video stream data from at least one acquisition device.

可以理解的是,这里的视频流数据可以来自于同一用户客户端或多个不同用户客户端。It can be understood that the video stream data here may come from the same user client or multiple different user clients.

作为一种可选的实施例,对于同一用户客户端来说,混频数据可以通过多个采集设备同时获取或者选择任一采集设备进行获取,如,用户A通过第一采集设备获取用户A的视频数据,并通过第二采集设备获取用户A客户端中的游戏操作数据,或者,用户B通过具有前后摄像头的智能设备获取用户B的视频数据,用户B可选择任一摄像头进行采集。这里智能设备的摄像头数量不局限于两个。As an optional embodiment, for the same user client, the mixing data can be simultaneously acquired by multiple acquisition devices or acquired by selecting any acquisition device. For example, user A acquires user A's data through the first acquisition device. video data, and obtain game operation data in user A's client through the second collection device, or user B obtains user B's video data through a smart device with front and rear cameras, and user B can select any camera to capture. The number of cameras of the smart device here is not limited to two.

在可选的实施方式中,所述方法还包括:In an optional embodiment, the method further includes:

步骤5.1),接收所述内容分发网络CDN节点发送的所述通信传输连接的建立请求。Step 5.1): Receive the establishment request of the communication transmission connection sent by the CDN node of the content distribution network.

作为一种可选的实施例,混频服务器根据内容分发网络CDN节点发送的建立请求与CDN节点建立连接,并将混频后的混频数据推送到内容分发网络CDN节点。用户客户端将数据请求发送至CDN节点,CDN节点解析数据请求,并将解析验证通过信号发送至用户客户端,用户客户端主动从CDN节点拉取混频数据,或,根据实际协议将混频数据推送至用户客户端。As an optional embodiment, the mixing server establishes a connection with the CDN node according to the establishment request sent by the CDN node of the content distribution network, and pushes the mixed mixing data to the CDN node of the content distribution network. The user client sends the data request to the CDN node, the CDN node parses the data request, and sends the parsing and verification pass signal to the user client. The user client actively pulls the mixing data from the CDN node, or mixes the frequency according to the actual protocol. Data is pushed to the user client.

作为一种可选的实施例,混频服务器根据内容分发网络CDN节点发送的建立请求与CDN节点建立连接,与此同时进行混频操作,并将混频数据推送到内容分发网络CDN节点。用户客户端将数据请求发送至CDN节点,CDN节点解析数据请求,并将解析验证通过信号发送至用户客户端,用户客户端主动从CDN节点拉取混频数据,或,根据实际协议将混频数据推送至用户客户端。As an optional embodiment, the mixing server establishes a connection with the CDN node according to the establishment request sent by the CDN node of the content distribution network, performs mixing operation at the same time, and pushes the mixing data to the CDN node of the content distribution network. The user client sends the data request to the CDN node, the CDN node parses the data request, and sends the parsing and verification pass signal to the user client. The user client actively pulls the mixing data from the CDN node, or mixes the frequency according to the actual protocol. Data is pushed to the user client.

如图2所示,本发明实施例提供一种视频流传输装置,包括:As shown in FIG. 2, an embodiment of the present invention provides a video streaming device, including:

请求建立模块,用于向内容分发网络CDN节点发送通信传输连接的建立请求;a request establishment module, configured to send a communication transmission connection establishment request to the CDN node of the content distribution network;

混频传输模块,用于在所述通信传输连接建立成功后,向所述内容分发网络CDN节点发送通过对视频流数据进行混频处理操作得到的混频数据,其中,混频处理操作不在发送通信传输连接的建立请求之后发生。A frequency mixing transmission module, configured to send the frequency mixing data obtained by performing the frequency mixing processing operation on the video stream data to the CDN node of the content distribution network after the communication transmission connection is successfully established, wherein the frequency mixing processing operation is not sending Occurs after an establishment request for a communication transport connection.

在可选的实施方式中,请求建立模块,还具体用于先对视频流数据进行混频处理操作得到混频数据;再向内容分发网络CDN节点发送通信传输连接的建立请求。In an optional implementation manner, the request establishment module is further specifically configured to first perform a frequency mixing operation on the video stream data to obtain frequency mixing data; and then send a communication transmission connection establishment request to the CDN node of the content distribution network.

在可选的实施方式中,请求建立模块,还具体用于在向所述内容分发网络CDN节点发送通过对视频流数据进行混频处理操作得到的混频数据的步骤之前,将所述混频数据进行缓存。In an optional implementation manner, the request establishment module is further specifically configured to, before the step of sending the mixing data obtained by performing the mixing processing operation on the video stream data to the CDN node of the content distribution network, generate the frequency mixing of the video stream data. data is cached.

在可选的实施方式中,请求建立模块,还具体用于当对视频流数据进行混频处理操作得到的混频数据时,向内容分发网络CDN节点发送通信传输连接的建立请求。In an optional embodiment, the request establishment module is further specifically configured to send a communication transmission connection establishment request to the CDN node of the content distribution network when the video stream data is mixed data obtained by a frequency mixing operation.

在可选的实施方式中,混频传输模块,还具体用于将来自至少一个采集设备的视频流数据中相同时间的视频帧进行混频操作,得到混频数据。In an optional implementation manner, the frequency mixing transmission module is further specifically configured to perform a frequency mixing operation on video frames of the same time in the video stream data from at least one acquisition device to obtain frequency mixing data.

在可选的实施方式中,请求建立模块,还具体用于,接收所述内容分发网络CDN节点发送的所述通信传输连接的建立请求。In an optional implementation manner, the request establishment module is further specifically configured to receive an establishment request of the communication transmission connection sent by the CDN node of the content distribution network.

在可选的实施方式中,所述混频数据用于客户端同时显示来自至少一个采集设备的视频流数据。In an optional implementation manner, the mixing data is used for the client to simultaneously display video stream data from at least one acquisition device.

本发明实施例提供的用于实现一种电子设备,本实施例中,所述电子设备可以是,但不限于,个人电脑(Personal Computer,PC)、笔记本电脑、监控设备、服务器等具备分析及处理能力的计算机设备。The embodiment of the present invention provides an electronic device for realizing an electronic device. In this embodiment, the electronic device may be, but is not limited to, a personal computer (Personal Computer, PC), a notebook computer, a monitoring device, a server, etc. Computer equipment with processing power.

作为一种示范性实施例,可参见图3,电子设备300,包括通信接口301、处理器302、存储器303以及总线304,处理器302、通信接口301和存储器303通过总线304连接;上述存储器303用于存储支持处理器302执行上述图像锐化方法的计算机程序,上述处理器302被配置为用于执行该存储器303中存储的程序。As an exemplary embodiment, referring to FIG. 3, an electronic device 300 includes a communication interface 301, a processor 302, a memory 303, and a bus 304. The processor 302, the communication interface 301, and the memory 303 are connected through the bus 304; the above-mentioned memory 303 For storing a computer program that supports the processor 302 to perform the above-mentioned image sharpening method, the above-mentioned processor 302 is configured to execute the program stored in the memory 303 .

本文中提到的机器可读存储介质可以是任何电子、磁性、光学或其它物理存储装置,可以包含或存储信息,如可执行指令、数据,等等。例如,机器可读存储介质可以是:RAM(Radom Access Memory,随机存取存储器)、易失存储器、非易失性存储器、闪存、存储驱动器(如硬盘驱动器)、任何类型的存储盘(如光盘、dvd等),或者类似的存储介质,或者它们的组合。A machine-readable storage medium referred to herein can be any electronic, magnetic, optical, or other physical storage device that can contain or store information, such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: RAM (Radom Access Memory, random access memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), any type of storage disk (such as optical disk) , DVD, etc.), or similar storage media, or a combination thereof.

非易失性介质可以是非易失性存储器、闪存、存储驱动器(如硬盘驱动器)、任何类型的存储盘(如光盘、dvd等),或者类似的非易失性存储介质,或者它们的组合。The non-volatile medium may be non-volatile memory, flash memory, storage drives (eg, hard drives), storage disks of any type (eg, optical discs, dvds, etc.), or similar non-volatile storage media, or a combination thereof.

可以理解的是,本实施例中的各功能模块的具体操作方法可参照上述方法实施例中相应步骤的详细描述,在此不再重复赘述。It can be understood that, for the specific operation method of each functional module in this embodiment, reference may be made to the detailed description of the corresponding steps in the above method embodiment, and details are not repeated here.

本发明实施例所提供计算机可读存储介质,所述可读存储介质中存储有计算机程序,所述计算机程序代码被执行时可实现上述任一实施例所述的视频流传输方法,具体实现可参见方法实施例,在此不再赘述。A computer-readable storage medium provided by an embodiment of the present invention stores a computer program in the readable storage medium. When the computer program code is executed, the video stream transmission method described in any of the above-mentioned embodiments can be implemented. Refer to the method embodiment, which is not repeated here.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the system and device described above, reference may be made to the corresponding process in the foregoing method embodiments, which will not be repeated here.

另外,在本发明实施例的描述中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In addition, in the description of the embodiments of the present invention, unless otherwise expressly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it may be a fixed connection or a detachable connection , or integrally connected; it can be a mechanical connection or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or the internal communication between the two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood in specific situations.

在本发明的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. The indicated orientation or positional relationship is based on the orientation or positional relationship shown in the accompanying drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the indicated device or element must have a specific orientation or a specific orientation. construction and operation, and therefore should not be construed as limiting the invention. Furthermore, the terms "first", "second", and "third" are used for descriptive purposes only and should not be construed to indicate or imply relative importance.

最后应说明的是:以上所述实施例,仅为本发明的具体实施方式,用以说明本发明的技术方案,而非对其限制,本发明的保护范围并不局限于此,尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围,都应涵盖在本发明的保护范围之内。Finally, it should be noted that the above-mentioned embodiments are only specific implementations of the present invention, and are used to illustrate the technical solutions of the present invention, but not to limit them. The protection scope of the present invention is not limited thereto, although referring to the foregoing The embodiment has been described in detail the present invention, those of ordinary skill in the art should understand: any person skilled in the art who is familiar with the technical field within the technical scope disclosed by the present invention can still modify the technical solutions described in the foregoing embodiments. Or can easily think of changes, or equivalently replace some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be covered in the present invention. within the scope of protection.

Claims (9)

1.一种视频流传输方法,其特征在于,包括:1. a video stream transmission method, is characterized in that, comprises: 向内容分发网络CDN节点发送通信传输连接的建立请求;Send a request for establishing a communication transmission connection to the CDN node of the content distribution network; 在所述通信传输连接建立成功后,向所述内容分发网络CDN节点发送通过对视频流数据进行混频处理操作得到的混频数据,其中,混频处理操作的开始时间点不在发送通信传输连接的建立请求的时间点之后发生;After the communication transmission connection is successfully established, the frequency mixing data obtained by performing the frequency mixing processing operation on the video stream data is sent to the CDN node of the content distribution network, wherein the start time point of the frequency mixing processing operation is not in sending the communication transmission connection occurs after the point in time of the establishment request; 向内容分发网络CDN节点发送通信传输连接的建立请求的步骤,包括:The step of sending a request for establishing a communication transmission connection to a CDN node of a content distribution network includes: 当对视频流数据进行混频处理操作得到的混频数据时,向内容分发网络CDN节点发送通信传输连接的建立请求,其中,实时通过通信传输连接进行传输的混频数据并不是对应整体的视频流数据,而是实时产生的混频数据,属于整体视频流数据的一部分。When the mixing data is obtained by performing the mixing processing operation on the video stream data, a request for establishing a communication transmission connection is sent to the CDN node of the content distribution network, wherein the mixing data transmitted through the communication transmission connection in real time is not the corresponding overall video Streaming data, but mixing data generated in real time, is part of the overall video stream data. 2.根据权利要求1所述的视频流传输方法,其特征在于,向内容分发网络CDN节点发送通信传输连接的建立请求的步骤,包括:2. The video stream transmission method according to claim 1, wherein the step of sending the establishment request of the communication transmission connection to the CDN node of the content distribution network comprises: 先对视频流数据进行混频处理操作得到混频数据;First, perform a frequency mixing operation on the video stream data to obtain the frequency mixing data; 再向内容分发网络CDN节点发送通信传输连接的建立请求。Then, a request for establishing a communication transmission connection is sent to the CDN node of the content distribution network. 3.根据权利要求2所述的视频流传输方法,其特征在于,向所述内容分发网络CDN节点发送通过对视频流数据进行混频处理操作得到的混频数据的步骤之前,还包括:3. The video stream transmission method according to claim 2, wherein before the step of sending the mixing data obtained by mixing the video stream data to the CDN node of the content distribution network, the method further comprises: 将所述混频数据进行缓存。The mixing data is buffered. 4.根据权利要求1所述的视频流传输方法,其特征在于,对视频流数据进行混频处理操作得到的混频数据的步骤,包括:4. video stream transmission method according to claim 1, is characterized in that, the step of mixing frequency data that is obtained by mixing frequency processing operation to video stream data, comprises: 将来自至少一个采集设备的视频流数据中相同时间的视频帧进行混频操作,得到混频数据。The frequency mixing operation is performed on video frames of the same time in the video stream data from at least one acquisition device to obtain frequency mixing data. 5.根据权利要求1所述的视频流传输方法,其特征在于,所述方法还包括:5. The video streaming method according to claim 1, wherein the method further comprises: 接收所述内容分发网络CDN节点发送的所述通信传输连接的建立请求。A request for establishing the communication transmission connection sent by the CDN node of the content distribution network is received. 6.根据权利要求4所述的视频流传输方法,其特征在于,所述混频数据用于客户端同时显示来自至少一个采集设备的视频流数据。6 . The video stream transmission method according to claim 4 , wherein the mixing data is used for the client to simultaneously display the video stream data from at least one acquisition device. 7 . 7.一种视频流传输装置,其特征在于,包括:7. A video streaming device, comprising: 请求建立模块,用于向内容分发网络CDN节点发送通信传输连接的建立请求;a request establishment module, configured to send a communication transmission connection establishment request to the CDN node of the content distribution network; 混频传输模块,用于在所述通信传输连接建立成功后,向所述内容分发网络CDN节点发送通过对视频流数据进行混频处理操作得到的混频数据,其中,混频处理操作不在发送通信传输连接的建立请求之后发生;A frequency mixing transmission module, configured to send, to the CDN node of the content distribution network, after the communication transmission connection is successfully established, the frequency mixing data obtained by performing the frequency mixing processing operation on the video stream data, wherein the frequency mixing processing operation is not sending Occurs after the establishment request of the communication transport connection; 请求建立模块还用于:当对视频流数据进行混频处理操作得到的混频数据时,向内容分发网络CDN节点发送通信传输连接的建立请求,其中,实时通过通信传输连接进行传输的混频数据并不是对应整体的视频流数据,而是实时产生的混频数据,属于整体视频流数据的一部分。The request establishment module is also used for: when the mixing data is obtained by performing the mixing processing operation on the video stream data, sending a request for establishing a communication transmission connection to the CDN node of the content distribution network, wherein the mixing frequency transmitted through the communication transmission connection is transmitted in real time in real time. The data does not correspond to the overall video stream data, but the mixing data generated in real time, which is a part of the overall video stream data. 8.一种电子设备,其特征在于,包括存储器、处理器及存储在所述存储器上并且能够在所述处理器上运行的程序,所述处理器执行所述程序时实现如权利要求1至6中任一项所述的视频流传输方法。8. An electronic device, characterized in that it comprises a memory, a processor, and a program stored on the memory and capable of running on the processor, and when the processor executes the program, the programs according to claims 1 to 10 are implemented. The video streaming method described in any one of 6. 9.一种计算机可读存储介质,其特征在于,所述可读存储介质中存储有计算机程序,所述计算机程序被执行时实现权利要求1-6中任意一项所述的视频流传输方法。9. A computer-readable storage medium, characterized in that, a computer program is stored in the readable storage medium, and when the computer program is executed, the video streaming method according to any one of claims 1-6 is implemented .
CN202010073161.9A 2020-01-21 2020-01-21 Video streaming method and device Active CN111246253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010073161.9A CN111246253B (en) 2020-01-21 2020-01-21 Video streaming method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010073161.9A CN111246253B (en) 2020-01-21 2020-01-21 Video streaming method and device

Publications (2)

Publication Number Publication Date
CN111246253A CN111246253A (en) 2020-06-05
CN111246253B true CN111246253B (en) 2022-04-15

Family

ID=70878161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010073161.9A Active CN111246253B (en) 2020-01-21 2020-01-21 Video streaming method and device

Country Status (1)

Country Link
CN (1) CN111246253B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115767128A (en) * 2022-12-06 2023-03-07 上海哔哩哔哩科技有限公司 Multimedia stream switching method, device and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340545A (en) * 2011-10-31 2012-02-01 深圳市五巨科技有限公司 Server and data processing method thereof
CN110637502A (en) * 2019-08-23 2019-12-31 北京小米移动软件有限公司 Data processing method and device, electronic equipment and computer readable storage medium

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179214B (en) * 2013-04-10 2016-01-13 网宿科技股份有限公司 Based on the live TV stream plug-flow method and system of http protocol
US10224027B2 (en) * 2015-06-01 2019-03-05 Sinclair Broadcast Group, Inc. Rights management and syndication of content
CN105491393A (en) * 2015-12-02 2016-04-13 北京暴风科技股份有限公司 Method for implementing multi-user live video business
CN105828208A (en) * 2016-03-29 2016-08-03 青岛海信电器股份有限公司 Method and device for playing audio/video and smart terminal
US20180001141A1 (en) * 2016-06-13 2018-01-04 Jerome Curry Motion interactive video recording for fighters in a mixed martial arts and boxing match
CN106954100A (en) * 2017-03-13 2017-07-14 网宿科技股份有限公司 Live broadcasting method and system, company's wheat management server
CN108989836B (en) * 2017-05-31 2021-11-09 腾讯科技(深圳)有限公司 Multimedia data stream processing method, device and storage medium
CN107888932A (en) * 2017-10-20 2018-04-06 深圳思麦杰科技有限公司 A kind of system and method for the cross-platform net cast based on browser
CN108055577A (en) * 2017-12-18 2018-05-18 北京奇艺世纪科技有限公司 A kind of live streaming exchange method, system, device and electronic equipment
CN108769824A (en) * 2018-06-19 2018-11-06 武汉斗鱼网络科技有限公司 A kind of video mixed flow method, apparatus, system, equipment and medium
CN109547844A (en) * 2018-12-19 2019-03-29 网宿科技股份有限公司 Audio/video pushing method and plug-flow client based on WebRTC agreement
CN109618178A (en) * 2019-01-21 2019-04-12 北京奇艺世纪科技有限公司 A kind of live broadcasting method, apparatus and system
CN110062252A (en) * 2019-04-30 2019-07-26 广州酷狗计算机科技有限公司 Live broadcasting method, device, terminal and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340545A (en) * 2011-10-31 2012-02-01 深圳市五巨科技有限公司 Server and data processing method thereof
CN110637502A (en) * 2019-08-23 2019-12-31 北京小米移动软件有限公司 Data processing method and device, electronic equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种实用的音视频传输控制机制及实现;刘王飞等;《现代计算机》;20060804(第6期);全文 *

Also Published As

Publication number Publication date
CN111246253A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN102571726B (en) Method, system and the state judgment server that multi-medium data is shared
CA2841377C (en) Video transcoding services provided by searching for currently transcoded versions of a requested file before performing transcoding
CN109474684B (en) Method, device, terminal equipment and storage medium for acquiring live video stream
US20140258514A1 (en) Media delivery system and method for transporting media to desired target devices
WO2016049987A1 (en) Data processing method and apparatus, and related servers
WO2017101487A1 (en) Method and device for submitting transcoding attribute information
EP3059945A1 (en) Method and system for video surveillance content adaptation, and central server and device
US20160029053A1 (en) Method for transmitting media data and virtual desktop server
US10404606B2 (en) Method and apparatus for acquiring video bitstream
CN107040825B (en) Terminal, TV, multi-screen interactive system and setting method of screen capture parameters
CN111246253B (en) Video streaming method and device
CN107786415A (en) A kind of method for processing business and relevant device and system
US9582561B2 (en) Size-based data synchronization
WO2015035934A1 (en) Methods and systems for facilitating video preview sessions
CN115865884A (en) Network camera data access device and method, network camera and medium
US10498787B2 (en) Communication apparatus, communication method, and program
US10462248B2 (en) Digital content sharing cloud service system, digital content sharing cloud service device, and method using the same
TWI573448B (en) Streaming connection management method and system
TWI680668B (en) Screen image transmission method, image restoration method, screen image transmission system, image restoration system, screen image transmission program, image restoration program, image compression method, image compression system, and image compression program
WO2022028189A1 (en) Screen projection method and apparatus, electronic device, and computer readable storage medium
US10044972B1 (en) Systems and methods for automatically transferring audiovisual content
CN110740337B (en) Live broadcast method and device, electronic equipment and storage medium
US20150271530A1 (en) Video quality enhancement method and apparatus
JP2016046598A (en) Communication device, communication method, and program
CN111143607B (en) Information acquisition method and device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210301

Address after: Room 1702-03, Lantian Hesheng building, 32 Zhongguancun Street, Haidian District, Beijing 100082

Applicant after: BEIJING CENTURY TAL EDUCATION TECHNOLOGY Co.,Ltd.

Address before: 102200 a1-05-001 maker Plaza, 338 Huilongguan East Street, Changping District, Beijing

Applicant before: BEIJING SANTICLOUD TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant