[go: up one dir, main page]

CN115802078A - Video stream transmission method, device, electronic device, and computer-readable storage medium - Google Patents

Video stream transmission method, device, electronic device, and computer-readable storage medium Download PDF

Info

Publication number
CN115802078A
CN115802078A CN202211386804.0A CN202211386804A CN115802078A CN 115802078 A CN115802078 A CN 115802078A CN 202211386804 A CN202211386804 A CN 202211386804A CN 115802078 A CN115802078 A CN 115802078A
Authority
CN
China
Prior art keywords
video stream
video
client
time
transmission
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
CN202211386804.0A
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.)
China Mobile Communications Group Co Ltd
MIGU Video Technology Co Ltd
MIGU Culture Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
MIGU Video Technology Co Ltd
MIGU Culture 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 China Mobile Communications Group Co Ltd, MIGU Video Technology Co Ltd, MIGU Culture Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202211386804.0A priority Critical patent/CN115802078A/en
Publication of CN115802078A publication Critical patent/CN115802078A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请公开了一种视频流传输方法、装置、电子设备及计算机可读存储介质,应用于服务端,所述视频流传输方法包括:获取服务端虚拟缓存区的缓存区大小信息,其中,所述虚拟缓存区用于模拟客户端的真实视频传输缓存区;根据获取的网络状态参数和所述缓存区大小信息,选取向所述客户端进行视频流传输所需的目标传输速率;根据所述目标传输速率,向所述客户端进行视频流传输。本申请解决了视频流传输稳定性低的技术问题。

Figure 202211386804

The present application discloses a video stream transmission method, device, electronic equipment, and computer-readable storage medium, which are applied to a server. The video stream transmission method includes: obtaining buffer size information of a virtual buffer area of a server, wherein the The virtual buffer area is used to simulate the real video transmission buffer area of the client; according to the obtained network state parameters and the size information of the buffer area, select the target transmission rate required for video stream transmission to the client; according to the target The transmission rate is to transmit the video stream to the client. The application solves the technical problem of low stability of video stream transmission.

Figure 202211386804

Description

视频流传输方法、装置、电子设备及计算机可读存储介质Video stream transmission method, device, electronic device, and computer-readable storage medium

技术领域technical field

本申请涉及视频传输技术领域,尤其涉及一种视频流传输方法、装置、电子设备及计算机可读存储介质。The present application relates to the technical field of video transmission, and in particular to a video stream transmission method, device, electronic equipment, and computer-readable storage medium.

背景技术Background technique

目前,在进行视频流传输时,客户端测通常需要建立一个缓存区,来缓解服务器的传输压力和加快客户端的加载速度,客户端的缓存区需要向服务端不断反馈自己的实时状态,作为服务端网络传输速率决策的依据,但是从客户端向服务端测反馈实时状态时占用网络带宽较高,从而会影响视频流传输的稳定性。At present, when performing video streaming, the client usually needs to establish a cache area to relieve the transmission pressure of the server and speed up the loading speed of the client. The cache area of the client needs to continuously feed back its real-time status to the server. The basis for network transmission rate decision-making, but when the real-time status is fed back from the client to the server, it takes up a lot of network bandwidth, which will affect the stability of video streaming.

发明内容Contents of the invention

本申请的主要目的在于提供一种视频流传输方法、装置、电子设备及计算机可读存储介质,旨在解决视频流传输稳定性低的技术问题。The main purpose of the present application is to provide a video stream transmission method, device, electronic equipment and computer-readable storage medium, aiming at solving the technical problem of low stability of video stream transmission.

为实现上述目的,本申请提供一种视频流传输方法,应用于服务端,所述视频流传输方法包括:In order to achieve the above purpose, this application provides a video stream transmission method, which is applied to the server, and the video stream transmission method includes:

获取服务端虚拟缓存区的缓存区大小信息,其中,所述虚拟缓存区用于模拟客户端的真实视频传输缓存区;Obtain the buffer size information of the virtual buffer area of the server, wherein the virtual buffer area is used to simulate the real video transmission buffer area of the client;

根据获取的网络状态参数和所述缓存区大小信息,选取向所述客户端进行视频流传输所需的目标传输速率;According to the obtained network state parameters and the size information of the buffer area, select the target transmission rate required for video stream transmission to the client;

根据所述目标传输速率,向所述客户端进行视频流传输。Perform video stream transmission to the client according to the target transmission rate.

可选地,所述获取服务端虚拟缓存区的缓存区大小信息的步骤包括:Optionally, the step of obtaining the buffer size information of the server virtual buffer includes:

获取服务端视频流数据,依据时间特征提取器,对所述服务端视频流数据进行时间特征提取,得到第一时间特征序列;Obtaining the video stream data of the server, according to the time feature extractor, performing time feature extraction on the video stream data of the server, obtaining the first time feature sequence;

接收所述客户端发送的第二时间特征序列,其中,所述第二时间特征序列由所述客户端对所述服务端视频流数据对应的客户端视频流数据进行时间特征提取得到;receiving a second time feature sequence sent by the client, wherein the second time feature sequence is obtained by the client performing time feature extraction on the client video stream data corresponding to the server video stream data;

依据所述第一时间特征序列和所述第二时间特征序列,确定所述真实视频传输缓存区对应的缓存区大小信息。Determine buffer size information corresponding to the real video transmission buffer according to the first time feature sequence and the second time feature sequence.

可选地,所述缓存区大小信息包括视频流时间差,所述第一时间特征序列包括施加了预设时间偏移量的视频对应的第一目标时间特征,所述第二时间特征序列包括所述第一目标时间特征对应的第二目标时间特征,所述依据所述第一时间特征序列和所述第二时间特征序列,确定所述真实视频传输缓存区对应的缓存区大小信息的步骤包括:Optionally, the buffer size information includes a video stream time difference, the first time feature sequence includes a first target time feature corresponding to a video to which a preset time offset is applied, and the second time feature sequence includes the The second target time feature corresponding to the first target time feature, the step of determining the buffer size information corresponding to the real video transmission buffer according to the first time feature sequence and the second time feature sequence includes :

计算所述第一目标时间特征和所述第二目标时间特征之间的特征距离;calculating a feature distance between the first temporal feature of interest and the second temporal feature of interest;

根据所述特征距离和所述预设时间偏移量,确定所述视频流时间差。Determine the video stream time difference according to the characteristic distance and the preset time offset.

可选地,所述根据获取的网络状态参数和所述缓存区大小信息,选取向所述客户端进行视频流传输所需的目标传输速率的步骤包括:Optionally, the step of selecting a target transmission rate required for video stream transmission to the client according to the obtained network state parameters and the buffer size information includes:

根据获取的网络状态参数和所述缓存区大小信息,构建视频传输状态特征;According to the obtained network state parameters and the size information of the buffer area, construct the video transmission state feature;

通过将所述视频传输状态特征输入预设传输速率预测模型,预测向所述客户端之间进行视频流传输所需的目标传输速率。By inputting the characteristics of the video transmission state into a preset transmission rate prediction model, the target transmission rate required for video stream transmission between the clients is predicted.

可选地,所述根据获取的网络状态参数和所述缓存区大小信息,构建视频传输状态特征的步骤包括:Optionally, the step of constructing video transmission status features according to the obtained network status parameters and the buffer size information includes:

获取网络状态参数,其中,所述网络状态参数包括网络带宽、视频流码率以及视频流权重系数,所述视频流权重系数用于表征视频流被用户点击的频次;Obtain network status parameters, wherein the network status parameters include network bandwidth, video stream bit rate and video stream weight coefficient, and the video stream weight coefficient is used to characterize the frequency of video streams being clicked by users;

将所述缓存区大小信息、所述网络带宽、所述视频流码率以及所述视频流权重系数拼接为所述视频传输状态特征。The buffer size information, the network bandwidth, the video stream bit rate, and the video stream weight coefficient are concatenated into the video transmission status feature.

可选地,获取视频流权重系数,包括:Optionally, obtain video stream weight coefficients, including:

获取待传输视频流对应的视频流ID、对应的请求比特率、对应的请求时间以及对应的视频流参数;Obtain the video stream ID corresponding to the video stream to be transmitted, the corresponding request bit rate, the corresponding request time and the corresponding video stream parameters;

将所述视频流ID、所述请求比特率、所述请求时间和所述视频流参数拼接为视频流权重特征;Splicing the video stream ID, the request bit rate, the request time and the video stream parameters into a video stream weight feature;

将所述视频流权重特征映射为对应的视频流权重系数。The video stream weight feature is mapped to a corresponding video stream weight coefficient.

可选地,在所述通过将所述视频传输状态特征输入预设传输速率预测模型,预测向所述客户端之间进行视频流传输所需的目标传输速率的步骤之后,所述视频流传输方法还包括:Optionally, after the step of predicting the target transmission rate required for video stream transmission between the clients by inputting the video transmission state characteristics into a preset transmission rate prediction model, the video stream transmission Methods also include:

获取至少一个视频传输线程上部署的预设传输速率预测模型在当前时间步的模型参数信息,其中,各所述视频传输线程处于不同的视频传输环境;Acquiring model parameter information of a preset transmission rate prediction model deployed on at least one video transmission thread at the current time step, wherein each video transmission thread is in a different video transmission environment;

对各所述模型参数信息进行聚合,得到聚合后的模型参数信息;Aggregating the model parameter information to obtain the aggregated model parameter information;

根据所述聚合后的模型参数信息,对所述预设传输速率预测模型进行实时更新,以预测下一时间步的目标传输速率。According to the aggregated model parameter information, the preset transmission rate prediction model is updated in real time to predict the target transmission rate in the next time step.

本申请还提供一种视频流传输方法,应用于客户端,所述视频流传输方法包括:The present application also provides a video stream transmission method, which is applied to a client, and the video stream transmission method includes:

获取客户端视频流数据,依据时间特征提取器,对所述客户端视频流数据进行时间特征提取,得到客户端时间特征序列;Obtain the client video stream data, according to the time feature extractor, carry out time feature extraction to the client video stream data, obtain the client time feature sequence;

将所述客户端时间特征序列发送至服务端,以供所述服务端依据所述客户端时间特征序列确定的目标传输速率,向所述客户端进行视频流传输。Sending the client time characteristic sequence to the server, so that the server can transmit the video stream to the client according to the target transmission rate determined by the client time characteristic sequence.

本申请还提供一种视频流传输装置,应用于服务端,所述视频流传输装置包括:The present application also provides a video streaming device, which is applied to the server, and the video streaming device includes:

获取模块,用于获取服务端虚拟缓存区的缓存区大小信息,其中,所述虚拟缓存区用于模拟客户端的真实视频传输缓存区;An acquisition module, configured to acquire buffer size information of a virtual buffer area of the server, wherein the virtual buffer area is used to simulate a real video transmission buffer area of the client;

传输速率选取模块,用于根据获取的网络状态参数和所述缓存区大小信息,选取向所述客户端进行视频流传输所需的目标传输速率;The transmission rate selection module is used to select the target transmission rate required for video stream transmission to the client according to the obtained network state parameters and the buffer size information;

传输模块,用于根据所述目标传输速率,向所述客户端进行视频流传输。The transmission module is configured to perform video stream transmission to the client according to the target transmission rate.

可选地,所述获取模块还用于:Optionally, the acquisition module is also used for:

获取服务端视频流数据,依据时间特征提取器,对所述服务端视频流数据进行时间特征提取,得到第一时间特征序列;Obtaining the video stream data of the server, according to the time feature extractor, performing time feature extraction on the video stream data of the server, obtaining the first time feature sequence;

接收所述客户端发送的第二时间特征序列,其中,所述第二时间特征序列由所述客户端对所述服务端视频流数据对应的客户端视频流数据进行时间特征提取得到;receiving a second time feature sequence sent by the client, wherein the second time feature sequence is obtained by the client performing time feature extraction on the client video stream data corresponding to the server video stream data;

依据所述第一时间特征序列和所述第二时间特征序列,确定所述真实视频传输缓存区对应的缓存区大小信息。Determine buffer size information corresponding to the real video transmission buffer according to the first time feature sequence and the second time feature sequence.

可选地,所述缓存区大小信息包括视频流时间差,所述第一时间特征序列包括施加了预设时间偏移量的视频对应的第一目标时间特征,所述第二时间特征序列包括所述第一目标时间特征对应的第二目标时间特征,所述获取模块还用于:Optionally, the buffer size information includes a video stream time difference, the first time feature sequence includes a first target time feature corresponding to a video to which a preset time offset is applied, and the second time feature sequence includes the The second target time feature corresponding to the first target time feature, the acquisition module is also used for:

计算所述第一目标时间特征和所述第二目标时间特征之间的特征距离;calculating a feature distance between the first temporal feature of interest and the second temporal feature of interest;

根据所述特征距离和所述预设时间偏移量,确定所述视频流时间差。Determine the video stream time difference according to the characteristic distance and the preset time offset.

可选地,所述传输速率选取模块还用于:Optionally, the transmission rate selection module is also used for:

根据获取的网络状态参数和所述缓存区大小信息,构建视频传输状态特征;According to the obtained network state parameters and the size information of the buffer area, construct the video transmission state feature;

通过将所述视频传输状态特征输入预设传输速率预测模型,预测向所述客户端之间进行视频流传输所需的目标传输速率。By inputting the characteristics of the video transmission state into a preset transmission rate prediction model, the target transmission rate required for video stream transmission between the clients is predicted.

可选地,所述传输速率选取模块还用于:Optionally, the transmission rate selection module is also used for:

获取网络状态参数,其中,所述网络状态参数包括网络带宽、视频流码率以及视频流权重系数,所述视频流权重系数用于表征视频流被用户点击的频次;Obtain network status parameters, wherein the network status parameters include network bandwidth, video stream bit rate and video stream weight coefficient, and the video stream weight coefficient is used to characterize the frequency of video streams being clicked by users;

将所述缓存区大小信息、所述网络带宽、所述视频流码率以及所述视频流权重系数拼接为所述视频传输状态特征。The buffer size information, the network bandwidth, the video stream bit rate, and the video stream weight coefficient are concatenated into the video transmission status feature.

可选地,所述传输速率选取模块还用于:Optionally, the transmission rate selection module is also used for:

获取待传输视频流对应的视频流ID、对应的请求比特率、对应的请求时间以及对应的视频流参数;Obtain the video stream ID corresponding to the video stream to be transmitted, the corresponding request bit rate, the corresponding request time and the corresponding video stream parameters;

将所述视频流ID、所述请求比特率、所述请求时间和所述视频流参数拼接为视频流权重特征;Splicing the video stream ID, the request bit rate, the request time and the video stream parameters into a video stream weight feature;

将所述视频流权重特征映射为对应的视频流权重系数。The video stream weight feature is mapped to a corresponding video stream weight coefficient.

可选地,所述视频流传输装置还用于:Optionally, the video streaming device is also used for:

获取至少一个视频传输线程上部署的预设传输速率预测模型在当前时间步的模型参数信息,其中,各所述视频传输线程处于不同的视频传输环境;Acquiring model parameter information of a preset transmission rate prediction model deployed on at least one video transmission thread at the current time step, wherein each video transmission thread is in a different video transmission environment;

对各所述模型参数信息进行聚合,得到聚合后的模型参数信息;Aggregating the model parameter information to obtain the aggregated model parameter information;

根据所述聚合后的模型参数信息,对所述预设传输速率预测模型进行实时更新,以预测下一时间步的目标传输速率。According to the aggregated model parameter information, the preset transmission rate prediction model is updated in real time to predict the target transmission rate in the next time step.

本申请还提供一种视频流传输装置,应用于客户端,所述视频流传输装置包括:The present application also provides a video streaming device, which is applied to a client, and the video streaming device includes:

特征提取模块,用于获取客户端视频流数据,依据时间特征提取器,对所述客户端视频流数据进行时间特征提取,得到客户端时间特征序列;A feature extraction module is used to obtain client video stream data, and perform temporal feature extraction on the client video stream data according to a temporal feature extractor to obtain a client temporal feature sequence;

发送模块,用于将所述客户端时间特征序列发送至服务端,以供所述服务端依据所述客户端时间特征序列确定的目标传输速率,向所述客户端进行视频流传输。The sending module is configured to send the client time characteristic sequence to the server, so that the server can transmit the video stream to the client according to the target transmission rate determined by the client time characteristic sequence.

本申请还提供一种电子设备,所述电子设备为实体设备,所述电子设备包括:存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的所述视频流传输方法的程序,所述视频流传输方法的程序被处理器执行时可实现如上述的视频流传输方法的步骤。The present application also provides an electronic device, the electronic device is a physical device, and the electronic device includes: a memory, a processor, and the video stream transmission method stored in the memory and operable on the processor A program of the video stream transmission method, when the program of the video stream transmission method is executed by the processor, the steps of the above video stream transmission method can be realized.

本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有实现视频流传输方法的程序,所述视频流传输方法的程序被处理器执行时实现如上述的视频流传输方法的步骤。The present application also provides a computer-readable storage medium, the computer-readable storage medium stores a program for realizing the video stream transmission method, and when the program of the video stream transmission method is executed by a processor, the above-mentioned video stream transmission is realized method steps.

本申请还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述的视频流传输方法的步骤。The present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the above video stream transmission method are realized.

本申请提供了一种视频流传输方法、装置、电子设备及计算机可读存储介质,相比于客户端测通常需要建立一个缓存区,来缓解服务器的传输压力和加快客户端的加载速度,客户端的缓存区需要向服务端不断反馈自己的实时状态,作为服务端网络传输速率决策的依据的技术手段,本申请在服务端设置了虚拟缓存区来模拟客户端的真实视频传输缓存区,利用该虚拟缓存区可确定真实视频传输缓存区的缓存区大小信息,进而可将获取的网络状态参数和确定的缓存区大小信息作为在选取向客户端进行视频流传输的传输速率的依据,选取得到目标传输速率,根据所述目标传输速率,向所述客户端进行视频流传输。所以本申请中在进行视频流传输时,客户端的缓存区无需向服务端实时反馈自己的实时状态,可节约客户端的缓存区与服务端之间的用于缓存区状态反馈的交互过程,从而节约了网络带宽,所以克服了从客户端向服务端测发送反馈实时状态时占用网络带宽过高,从而会影响视频流传输的稳定性的技术缺陷,提升了视频流传输的稳定性。The present application provides a video stream transmission method, device, electronic equipment, and computer-readable storage medium. Compared with the client side, a cache area usually needs to be established to relieve the transmission pressure of the server and speed up the loading speed of the client side. The buffer area needs to continuously feed back its real-time status to the server. As a technical means for determining the network transmission rate of the server, this application sets up a virtual buffer area on the server side to simulate the real video transmission buffer area of the client. Using the virtual buffer The area can determine the buffer size information of the real video transmission buffer area, and then the obtained network status parameters and the determined buffer size information can be used as the basis for selecting the transmission rate for video stream transmission to the client, and the target transmission rate can be selected , performing video stream transmission to the client according to the target transmission rate. Therefore, in this application, when performing video stream transmission, the buffer area of the client does not need to feed back its real-time status to the server in real time, which can save the interaction process between the buffer area of the client and the server for buffer state feedback, thereby saving The network bandwidth is increased, so it overcomes the technical defect that the network bandwidth is too high when the real-time status is sent from the client to the server, which will affect the stability of the video stream transmission, and the stability of the video stream transmission is improved.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.

图1为本申请视频流传输方法第一实施例的流程示意图;FIG. 1 is a schematic flow diagram of the first embodiment of the video stream transmission method of the present application;

图2为本申请视频流传输方法中基于状态-动作决策网络选择目标传输速率的流程示意图;Fig. 2 is a schematic flow diagram of selecting a target transmission rate based on a state-action decision network in the video stream transmission method of the present application;

图3为本申请一实施例中部署预设传输速率预测模型的模型部署示意图;FIG. 3 is a schematic diagram of model deployment for deploying a preset transmission rate prediction model in an embodiment of the present application;

图4为本申请视频流传输方法第二实施例的流程示意图;FIG. 4 is a schematic flow diagram of a second embodiment of the video stream transmission method of the present application;

图5为本申请视频流传输方法第三实施例的流程示意图;FIG. 5 is a schematic flowchart of a third embodiment of the video stream transmission method of the present application;

图6为本申请一实施例中服务端向客户端进行视频流传输时之间的交互示意图;FIG. 6 is a schematic diagram of interaction between the server and the client when performing video stream transmission in an embodiment of the present application;

图7为本申请实施例中视频流传输方法涉及的硬件运行环境的设备结构示意图。FIG. 7 is a schematic diagram of a device structure of a hardware operating environment involved in a video stream transmission method in an embodiment of the present application.

本申请目的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose, functions and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

为使本申请的上述目的、特征和优点能够更加明显易懂,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其它实施例,均属于本申请保护的范围。In order to make the above objects, features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Apparently, the described embodiments are only some of the embodiments of this application, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the present application without creative efforts shall fall within the protection scope of the present application.

目前在进行视频流传输时,客户端测通常需要建立一个缓存区,来缓解服务器的传输压力和加快客户端的加载速度,而服务端需要向客户端发出探测请求,客户端在接收到探测请求后会向服务端反馈缓存区的实时状态信息,服务端在接收到缓存区的实时状态信息后会告知客户端已接收到实时状态信息,所以服务端在确认客户端的实时状态信息时,服务端需要与客户端进行多次交互,对于网络带宽的占用情况较为严重,从而会影响视频流传输的稳定性,服务端探测客户端缓存区的实时性状态信息的过程需要时间,由于反馈惯性的存在,会降低网络的反应能力,并且这部分传输是不可控的,波动性很大,因此会进一步影响视频流传输的稳定性。At present, when video streaming is being transmitted, the client usually needs to establish a cache area to relieve the transmission pressure of the server and speed up the loading speed of the client, while the server needs to send a detection request to the client, and the client receives the detection request. The real-time status information of the cache area will be fed back to the server. After receiving the real-time status information of the cache area, the server will inform the client that it has received the real-time status information. Therefore, when the server confirms the real-time status information of the client, the server needs to Multiple interactions with the client will seriously occupy the network bandwidth, which will affect the stability of video streaming transmission. The process of the server detecting the real-time status information of the client cache area takes time. Due to the existence of feedback inertia, It will reduce the responsiveness of the network, and this part of the transmission is uncontrollable and highly volatile, which will further affect the stability of video streaming transmission.

参照图1,本申请实施例提供一种视频流传输方法,应用于服务端,在本申请视频流传输方法的第一实施例中,所述视频流传输方法包括:Referring to FIG. 1 , the embodiment of the present application provides a video stream transmission method applied to a server. In the first embodiment of the video stream transmission method of the present application, the video stream transmission method includes:

步骤S10,获取服务端虚拟缓存区的缓存区大小信息,其中,所述虚拟缓存区用于模拟客户端的真实视频传输缓存区;Step S10, acquiring the buffer size information of the virtual buffer area of the server, wherein the virtual buffer area is used to simulate the real video transmission buffer area of the client;

步骤S20,根据获取的网络状态参数和所述缓存区大小信息,选取向所述客户端进行视频流传输所需的目标传输速率;Step S20, according to the obtained network status parameters and the buffer size information, select the target transmission rate required for video stream transmission to the client;

步骤S30,根据所述目标传输速率,向所述客户端进行视频流传输。Step S30, performing video stream transmission to the client according to the target transmission rate.

在本实施例中,需要说明的是,所述视频流传输方法应用于服务端,服务端与客户端通信连接,服务端用于向客户端传输视频流,客户端用于播放视频。所述服务端设置有虚拟缓存区,该虚拟缓存区用于模拟客户端的真实视频传输缓存区,因此利用该虚拟缓存区可实时确定客户端的真实视频缓存区的大小,所述缓存区大小信息可以为度量客户端的真实视频缓存区大小的度量值,例如可以为传输之前服务端的视频流与传输之后客户端的视频流之间的时间差值,所述缓存区大小信息也可以为缓存区大小本身,在此不做限定。所述网络状态参数为表征服务端与客户端之间的网络状态的参数,所述网络状态参数可以为网络带宽、视频流码率以及视频流权重系数中的一种或者多种,所述视频流权重系数为表征视频流的重要程度的权重系数,例如可以为度量视频流被点击的频次的度量值,视频流权重系数越大,则视频流被点击的频次越高。In this embodiment, it should be noted that the video stream transmission method is applied to a server, and the server and the client are connected in communication, the server is used to transmit the video stream to the client, and the client is used to play the video. The server end is provided with a virtual buffer area, which is used to simulate the real video transmission buffer area of the client, so the size of the real video buffer area of the client can be determined in real time by utilizing the virtual buffer area, and the buffer area size information can be In order to measure the measurement value of the real video buffer size of the client, for example, it can be the time difference between the video stream of the server before transmission and the video stream of the client after transmission, and the buffer size information can also be the size of the buffer itself, It is not limited here. The network state parameter is a parameter characterizing the network state between the server and the client, and the network state parameter may be one or more of network bandwidth, video stream bit rate, and video stream weight coefficient. The stream weight coefficient is a weight coefficient that characterizes the importance of the video stream, for example, it may be a measurement value that measures the frequency of video streams being clicked, and the larger the video stream weight coefficient is, the higher the frequency of video streams being clicked.

作为一种示例,步骤S10至步骤S30包括:获取服务端虚拟缓存区的缓存区大小信息,其中,所述虚拟缓存区用于模拟客户端的真实视频传输缓存区;获取网络状态参数,其中,所述网络状态参数至少包括网络带宽、视频流码率以及视频流权重系数中的一种;根据所述网络状态参数和所述缓存区大小信息,构建视频传输状态特征,通过所述视频传输状态特征输入预设传输速率预测模型,预测向所述客户端之间进行视频流传输所需的目标传输速率;以所述目标传输速率向所述客户端进行视频流传输。其中,所述预设传输速率预测模型可以为卷积神经网络模型,也可以为强化学习模型,在此不做限定。As an example, steps S10 to S30 include: obtaining buffer size information of a server virtual buffer, wherein the virtual buffer is used to simulate a real video transmission buffer of the client; obtaining network status parameters, wherein the The network status parameters include at least one of network bandwidth, video stream code rate, and video stream weight coefficient; according to the network status parameters and the buffer size information, a video transmission status feature is constructed, and the video transmission status feature is used to Inputting a preset transmission rate prediction model to predict a target transmission rate required for video stream transmission between the clients; and performing video stream transmission to the clients at the target transmission rate. Wherein, the preset transmission rate prediction model may be a convolutional neural network model, or a reinforcement learning model, which is not limited here.

作为一种示例,所述根据所述网络状态参数和所述缓存区大小信息,构建视频传输状态特征的步骤包括:As an example, the step of constructing video transmission status features according to the network status parameters and the buffer size information includes:

将所述网络状态参数和所述缓存区大小信息拼接为对应的特征向量,将该特征向量作为所述视频传输状态特征。The network status parameter and the buffer size information are concatenated into a corresponding feature vector, and the feature vector is used as the video transmission status feature.

另外,需要说明的是,在进行视频流传输时,网络带宽占用越高,则进行视频传输时的网络延迟越高,则在视频切换时容易产生黑屏以及卡顿现象,本申请实施例中在进行视频流传输时,客户端的缓存区无需向服务端实时反馈自己的实时状态,可节约客户端的缓存区与服务端之间的用于缓存区状态反馈的交互过程,节约了网络带宽,从而可降低网络延迟,降低视频切换时产生黑屏以及卡顿现象的概率。In addition, it should be noted that when video streaming is being transmitted, the higher the network bandwidth occupation, the higher the network delay during video transmission, and black screens and freezes are likely to occur during video switching. In the embodiment of this application, When performing video stream transmission, the buffer area of the client does not need to feed back its real-time status to the server in real time, which can save the interaction process between the buffer area of the client and the server for buffer status feedback, and save network bandwidth. Reduce network delays and reduce the probability of black screens and stuttering during video switching.

其中,所述根据获取的网络状态参数和所述缓存区大小信息,选取向所述客户端进行视频流传输所需的目标传输速率的步骤包括:Wherein, the step of selecting the target transmission rate required for video stream transmission to the client according to the obtained network state parameters and the buffer size information includes:

步骤S21,根据获取的网络状态参数和所述缓存区大小信息,构建视频传输状态特征;Step S21, according to the obtained network state parameters and the buffer size information, constructing video transmission state features;

步骤S22,通过将所述视频传输状态特征输入预设传输速率预测模型,预测向所述客户端之间进行视频流传输所需的目标传输速率。Step S22, by inputting the characteristics of the video transmission state into a preset transmission rate prediction model, predicting a target transmission rate required for video stream transmission between the clients.

作为一种示例,步骤S21至步骤S22包括:获取网络状态参数,其中,所述网络状态参数至少包括网络带宽、视频流码率以及视频流权重系数中的一种;根据所述网络状态参数和所述缓存区大小信息,构建视频传输状态特征;通过将所述视频传输状态特征输入预设传输速率预测模型,将所述视频传输状态特征映射为向所述客户端进行视频流传输所需的目标传输速率。As an example, steps S21 to S22 include: acquiring network status parameters, wherein the network status parameters include at least one of network bandwidth, video stream bit rate, and video stream weight coefficient; according to the network status parameters and The buffer size information constructs video transmission status features; by inputting the video transmission status features into a preset transmission rate prediction model, the video transmission status features are mapped to the required video stream transmission to the client Target transfer rate.

其中,所述根据获取的网络状态参数和所述缓存区大小信息,构建视频传输状态特征的步骤包括:Wherein, the step of constructing video transmission status features according to the obtained network status parameters and the buffer size information includes:

步骤S211,获取网络状态参数,其中,所述网络状态参数包括网络带宽、视频流码率以及视频流权重系数,所述视频流权重系数用于表征视频流被用户点击的频次;Step S211, obtaining network status parameters, wherein the network status parameters include network bandwidth, video stream bit rate and video stream weight coefficient, and the video stream weight coefficient is used to represent the frequency of video streams being clicked by users;

步骤S212,将所述缓存区大小信息、所述网络带宽、所述视频流码率以及所述视频流权重系数拼接为所述视频传输状态特征。Step S212, splicing the buffer size information, the network bandwidth, the video stream bit rate, and the video stream weight coefficient into the video transmission status feature.

作为一种示例,步骤S211至步骤S212包括:获取网络带宽、视频流码率和视频流系数,其中,所述视频流权重系数用于表征视频流被用户点击的频次;将所述缓存区大小信息、所述网络带宽、所述视频流码率以及所述视频流权重系数拼接为状态特征向量,将所述状态特征向量作为视频传输状态特征。本申请实施例实现了根据缓存区大小信息、网络带宽、视频流码率以及视频流权重系数,使得视频传输状态特征具备更多的特征信息,为目标传输速率的预测提供了更多的决策依据,因此可以提升视频流传输速率的预测准确度。As an example, steps S211 to S212 include: obtaining network bandwidth, video stream bit rate and video stream coefficient, wherein the video stream weight coefficient is used to characterize the frequency of video streams being clicked by users; The information, the network bandwidth, the bit rate of the video stream, and the weight coefficient of the video stream are concatenated into a state feature vector, and the state feature vector is used as a video transmission state feature. The embodiment of the present application realizes that according to the buffer size information, network bandwidth, video stream bit rate and video stream weight coefficient, the video transmission status feature has more characteristic information, and provides more decision-making basis for the prediction of the target transmission rate , thus improving the prediction accuracy of the video streaming rate.

其中,获取视频流权重系数,包括:Among them, the weight coefficient of the video stream is obtained, including:

步骤A10,获取待传输视频流对应的视频流ID、对应的请求比特率、对应的请求时间以及对应的视频流参数;Step A10, obtaining the video stream ID corresponding to the video stream to be transmitted, the corresponding request bit rate, the corresponding request time and the corresponding video stream parameters;

步骤A20,将所述视频流ID、所述请求比特率、所述请求时间和所述视频流参数拼接为视频流权重特征;Step A20, splicing the video stream ID, the request bit rate, the request time and the video stream parameters into a video stream weight feature;

步骤A30,将所述视频流权重特征映射为对应的视频流权重系数。Step A30, mapping the video stream weight features to corresponding video stream weight coefficients.

在本实施例中,需要说明的是,所述视频流ID为视频流的身份标识,所述请求比特率为客户端请求传输的视频比特率,具体为每秒传输的比特数,所述请求时间为客户端请求传输视频流所要求的传输时间,所述视频流参数可以为视频的分辨率或者清晰度等参数;所述待传输视频流为当前时间步服务端需要传输至客户端的视频流。In this embodiment, it should be noted that the video stream ID is the identity of the video stream, and the requested bit rate is the video bit rate requested by the client for transmission, specifically the number of bits transmitted per second. The time is the transmission time requested by the client to transmit the video stream, and the video stream parameters can be parameters such as video resolution or definition; the video stream to be transmitted is the video stream that the server needs to transmit to the client at the current time step .

作为一种示例,步骤A10至步骤A30包括:获取待传输视频流对应的视频流ID、对应的请求比特率、对应的请求时间以及对应的视频流参数;将所述视频流ID、所述请求比特率、所述请求时间和所述视频流参数拼接为对应的权重特征向量,将该权重特征向量作为所述视频流权重特征;将所述视频流权重特征映射为对应的视频流权重系数。As an example, steps A10 to A30 include: obtaining the video stream ID corresponding to the video stream to be transmitted, the corresponding request bit rate, the corresponding request time, and the corresponding video stream parameters; The bit rate, the request time and the video stream parameters are concatenated into a corresponding weight feature vector, and the weight feature vector is used as the video stream weight feature; and the video stream weight feature is mapped to a corresponding video stream weight coefficient.

作为一种示例,所述预设视频流权重预测模型可以为全连接神经网络,所述将所述视频流权重特征映射为对应的视频流权重系数的步骤包括:As an example, the preset video stream weight prediction model may be a fully connected neural network, and the step of mapping the video stream weight features into corresponding video stream weight coefficients includes:

通过将所述视频流权重特征输入全连接神经网络对所述视频流权重特征进行全连接,将所述视频流权重特征映射为对应的视频流权重系数。The video stream weight feature is fully connected by inputting the video stream weight feature into a fully connected neural network, and the video stream weight feature is mapped to a corresponding video stream weight coefficient.

作为一种示例,所述预设视频流权重预测模型还可以为决策树模型,所述预设视频流权重预测模型可以为全连接神经网络,所述通过将所述视频流权重特征输入预设视频流权重预测模型,预测所述待传输视频流的重要程度,得到视频流权重系数的步骤包括:As an example, the preset video stream weight prediction model may also be a decision tree model, the preset video stream weight prediction model may be a fully connected neural network, and the preset The video stream weight prediction model predicts the importance of the video stream to be transmitted, and the steps of obtaining the video stream weight coefficient include:

通过将所述视频流权重特征中的各特征值输入所述决策树模型,预测所述待传输视频流的重要程度,得到视频流权重系数。By inputting each feature value in the weight feature of the video stream into the decision tree model, the importance of the video stream to be transmitted is predicted, and the weight coefficient of the video stream is obtained.

在所述通过将所述视频传输状态特征输入预设传输速率预测模型,预测向所述客户端之间进行视频流传输所需的目标传输速率的步骤之后,所述视频流传输方法还包括:After the step of predicting the target transmission rate required for video stream transmission between the clients by inputting the video transmission state characteristics into a preset transmission rate prediction model, the video stream transmission method further includes:

步骤B10,获取至少一个视频传输线程上部署的预设传输速率预测模型在当前时间步的模型参数信息,其中,各所述视频传输线程处于不同的视频传输环境;Step B10, obtaining model parameter information of a preset transmission rate prediction model deployed on at least one video transmission thread at the current time step, wherein each video transmission thread is in a different video transmission environment;

步骤B20,对各所述模型参数信息进行聚合,得到聚合后的模型参数信息;Step B20, aggregating the model parameter information to obtain the aggregated model parameter information;

步骤B30,根据所述聚合后的模型参数信息,对所述预设传输速率预测模型进行实时更新,以预测下一时间步的目标传输速率。Step B30, update the preset transmission rate prediction model in real time according to the aggregated model parameter information, so as to predict the target transmission rate in the next time step.

在本实施例中,需要说明的是,在不同的视频传输线程上可以部署不同的预设传输速率预测模型,从而可以聚合多个不同视频传输线程上的预设传输速率预测模型的模型参数信息,得到聚合后的模型参数信息,以该聚合后的模型参数信息再更新各个视频传输线程上的预设传输速率预测模型,从而可以实现在不同视频传输线程下优化预设传输速率预测模型,可以提升预设传输速率预测模型的鲁棒性,从而提升预设传输速率预测模型的预测准确度。所述模型参数信息可以为模型损失、模型梯度、模型网络参数或者决策价值信息中的任意一种。In this embodiment, it should be noted that different preset transmission rate prediction models can be deployed on different video transmission threads, so that the model parameter information of the preset transmission rate prediction models on multiple different video transmission threads can be aggregated , to obtain the aggregated model parameter information, and then update the preset transmission rate prediction model on each video transmission thread with the aggregated model parameter information, so that the preset transmission rate prediction model can be optimized under different video transmission threads, which can Improve the robustness of the preset transmission rate prediction model, thereby improving the prediction accuracy of the preset transmission rate prediction model. The model parameter information may be any one of model loss, model gradient, model network parameters or decision value information.

作为一种示例,步骤B10至步骤B30包括:获取至少一个视频传输线程上部署的预设传输速率预测模型在当前时间步的模型梯度信息,其中,各所述视频传输线程处于不同的视频传输环境;对各所述模型梯度信息进行聚合,得到聚合后的模型梯度信息,其中,聚合的方式可以为加权求和或者加权平均等方式;根据所述聚合后的模型参数信息,对各所述预设传输速率预测模型进行实时更新,以从而基于实时更新后的预设传输速率预测模型,预测下一时间步的目标传输速率。As an example, steps B10 to B30 include: obtaining model gradient information of a preset transmission rate prediction model deployed on at least one video transmission thread at the current time step, wherein each video transmission thread is in a different video transmission environment ; Aggregating each of the model gradient information to obtain the aggregated model gradient information, wherein the aggregation method can be weighted summation or weighted average; according to the aggregated model parameter information, each of the preset The transmission rate prediction model is set to be updated in real time, so as to predict the target transmission rate of the next time step based on the preset transmission rate prediction model updated in real time.

作为一种示例,所述预设传输速率预测模型可以为基于强化学习构建的状态-动作决策网络,该状态-动作决策网络的输入为视频传输状态特征,该状态-动作决策网络输出的动作为选择哪种传输速率进行视频流传输,所述奖励为决策价值信息,进而根据所述状态-动作决策网络输出的动作对应的奖励可以对状态-动作决策网络的网络参数进行实时更新优化,参照图2,St为根据网络带宽、缓存区大小信息、视频流码率和视频流权重系数构建的视频传输状态特征,π(θ)为状态-动作决策网络,at为该状态-动作决策网络输出的动作。进一步参照图3,图3为本申请实施例中在不同的视频传输线程上部署不同的预设传输速率预测模型的模型部署示意图,子网络1、子网络2、子网络3以及主网络均为基于强化学习构建的状态-动作决策网络,本申请实施例是将相同结构的子网络放在多个视频传输线程中进行同步训练,然后将子网络中训练得到的网络参数集中到主网络,在主网络获取所有子网络的网络参数完成更新后,再将主网络的参数同步到各个子网络,这样,可以实现基于不同视频传输线程的样本数据构建预设传输速率预测模型,提升预设传输速率预测模型对不同视频传输线程的适配性。As an example, the preset transmission rate prediction model may be a state-action decision network constructed based on reinforcement learning, the input of the state-action decision network is the video transmission state feature, and the action output by the state-action decision network is Which transmission rate to choose for video stream transmission, the reward is decision value information, and then according to the reward corresponding to the action output by the state-action decision network, the network parameters of the state-action decision network can be updated and optimized in real time, refer to Fig. 2. S t is the video transmission state feature constructed according to the network bandwidth, buffer size information, video stream bit rate and video stream weight coefficient, π(θ) is the state-action decision network, and at is the state-action decision network output action. Further referring to FIG. 3, FIG. 3 is a schematic diagram of model deployment of different preset transmission rate prediction models deployed on different video transmission threads in the embodiment of the present application. Subnetwork 1, subnetwork 2, subnetwork 3 and the main network are all Based on the state-action decision network constructed by reinforcement learning, the embodiment of this application is to place the sub-network with the same structure in multiple video transmission threads for synchronous training, and then concentrate the network parameters trained in the sub-network into the main network. After the main network obtains the network parameters of all sub-networks and completes the update, the parameters of the main network are then synchronized to each sub-network. In this way, the preset transmission rate prediction model can be built based on the sample data of different video transmission threads, and the preset transmission rate can be improved. Predict model adaptability to different video delivery threads.

本申请实施例提供了一种视频流传输方法,相比于客户端测通常需要建立一个缓存区,来缓解服务器的传输压力和加快客户端的加载速度,客户端的缓存区需要向服务端不断反馈自己的实时状态,作为服务端网络传输速率决策的依据的技术手段,本申请实施例在服务端设置了虚拟缓存区来模拟客户端的真实视频传输缓存区,利用该虚拟缓存区可确定真实视频传输缓存区的缓存区大小信息,进而可将获取的网络状态参数和确定的缓存区大小信息作为在选取在服务端和客户端之间进行视频流传输的传输速率的依据,选取得到目标传输速率,根据所述目标传输速率,向所述客户端进行视频流传输。所以本申请实施例中在进行视频流传输时,客户端的缓存区无需向服务端实时反馈自己的实时状态,可节约客户端的缓存区与服务端之间的用于缓存区状态反馈的交互过程,从而节约了网络带宽,所以克服了从客户端向服务端测发送反馈实时状态时占用网络带宽过高,从而会影响视频流传输的稳定性的技术缺陷,提升了视频流传输的稳定性。The embodiment of this application provides a video stream transmission method. Compared with the client side, it is usually necessary to establish a buffer area to relieve the transmission pressure of the server and speed up the loading speed of the client. The client's buffer area needs to continuously feed back itself to the server The real-time status of the real-time status, as the technical means of the basis of the server network transmission rate decision, the embodiment of the present application sets a virtual buffer area on the server side to simulate the real video transmission buffer area of the client, and the real video transmission buffer area can be determined by using the virtual buffer area The size information of the buffer area of the region, and then the obtained network status parameters and the determined buffer size information can be used as the basis for selecting the transmission rate for video stream transmission between the server and the client, and the target transmission rate is selected. According to The target transmission rate is for video stream transmission to the client. Therefore, in the embodiment of the present application, when performing video stream transmission, the buffer area of the client does not need to feed back its real-time status to the server in real time, which can save the interaction process between the buffer area of the client and the server for the status feedback of the buffer area. In this way, the network bandwidth is saved, so it overcomes the technical defect that the network bandwidth is too high when the real-time status is sent from the client to the server, which will affect the stability of the video stream transmission, and improves the stability of the video stream transmission.

在本申请另一实施例中,与上述实施例相同或相似的内容,可以参考上文介绍,后续不再赘述。在此基础上,参照图4,所述获取服务端虚拟缓存区的缓存区大小信息,其中,所述虚拟缓存区用于模拟客户端的真实视频传输缓存区的步骤包括:In another embodiment of the present application, for content that is the same as or similar to the above embodiment, reference may be made to the introduction above, and details will not be repeated hereafter. On this basis, with reference to Fig. 4, the cache area size information of described acquisition server virtual buffer area, wherein, the step that described virtual buffer area is used for simulating the real video transmission buffer area of client comprises:

步骤S11,获取服务端视频流数据,依据时间特征提取器,对所述服务端视频流数据进行时间特征提取,得到第一时间特征序列;Step S11, obtaining the video stream data of the server, and performing time feature extraction on the video stream data of the server according to the time feature extractor, to obtain a first time feature sequence;

步骤S12,接收所述客户端发送的第二时间特征序列,其中,所述第二时间特征序列由所述客户端对所述服务端视频流数据对应的客户端视频流数据进行时间特征提取得到;Step S12, receiving the second time feature sequence sent by the client, wherein the second time feature sequence is obtained by the client performing time feature extraction on the client video stream data corresponding to the server video stream data ;

步骤S13,依据所述第一时间特征序列和所述第二时间特征序列,确定所述真实视频传输缓存区对应的缓存区大小信息。Step S13: Determine buffer size information corresponding to the real video transmission buffer according to the first time feature sequence and the second time feature sequence.

在本实施例中,需要说明的是,视频流在由服务端传输至客户端时会产生时间差,通常会在客户端设置一个缓存区作为缓冲区来缓存在这个时间差内传输的视频流数据,因此可以以传输之前服务端的视频流与传输之后的客户端的视频流之间的时间差作为所述缓存区大小信息,以此来度量缓存区大小。所述虚拟缓存区设置虚拟缓存模型,该虚拟缓存模型包括时间特征提取器和预估器,所述时间特征提取器用于提取视频流数据中的时间特征序列,所述预估器用于预估传输之前服务端的视频流与传输之后的客户端的视频流之间的时间差。In this embodiment, it should be noted that when the video stream is transmitted from the server to the client, there will be a time difference. Usually, a buffer area is set on the client as a buffer to cache the video stream data transmitted within this time difference. Therefore, the time difference between the video stream of the server before transmission and the video stream of the client after transmission can be used as the buffer size information to measure the size of the buffer. The virtual cache area sets a virtual cache model, and the virtual cache model includes a time feature extractor and an estimator, the time feature extractor is used to extract the time feature sequence in the video stream data, and the estimator is used to predict transmission The time difference between the previous video stream on the server side and the video stream on the client side after transmission.

作为一种示例,步骤S11至步骤S13包括:获取上一时间步服务端传输的服务端视频流数据,通过将所述服务端视频流数据输入所述时间特征提取器,将所述服务端视频流数据中各视频数据映射至预设特征维度,得到第一时间特征序列;接收所述客户端发送的第二时间特征序列,其中,所述第二时间特征序列由于所述客户端对所述服务端视频流数据对应的客户端视频流数据进行时间特征提取得到,所述客户端视频流数据为客户端接收的服务端在上一时间步传输的服务端视频流数据;通过将所述第一时间特征序列和所述第二时间特征序列输入所述预估器,预估所述真实视频传输缓存区对应的缓存区大小信息。As an example, steps S11 to S13 include: obtaining the server video stream data transmitted by the server at the previous time step, and inputting the server video stream data into the time feature extractor to extract the server video Each video data in the stream data is mapped to a preset feature dimension to obtain a first time feature sequence; receiving a second time feature sequence sent by the client, wherein the second time feature sequence is due to the client’s understanding of the The client video stream data corresponding to the server video stream data is obtained by extracting time features, and the client video stream data is the server video stream data transmitted by the server at the previous time step received by the client; A temporal feature sequence and the second temporal feature sequence are input to the estimator, and the buffer size information corresponding to the real video transmission buffer is estimated.

作为一种示例,所述时间特征提取器包括第一3D卷积神经网络和第二3D卷积神经网络,其中,所述第一3D神经卷积网络用于对图像信息进行时间特征提取,所述第二3D卷积神经网络用于对音频信息进行时间特征提取。所述服务端视频流数据至少包括一帧视频数据,所述视频数据包括图像信息和音频信息,所述第一时间特征序列至少包括一第一时间特征。As an example, the temporal feature extractor includes a first 3D convolutional neural network and a second 3D convolutional neural network, wherein the first 3D neural convolutional network is used to perform temporal feature extraction on image information, so The second 3D convolutional neural network is used to extract temporal features from the audio information. The server video stream data includes at least one frame of video data, the video data includes image information and audio information, and the first time feature sequence includes at least a first time feature.

所述通过将所述服务端视频流数据输入所述时间特征提取器,将所述服务端视频流数据中各视频数据映射至预设特征维度,得到第一时间特征序列的步骤包括:The step of obtaining the first temporal feature sequence by inputting the server video stream data into the temporal feature extractor and mapping each video data in the server video stream data to a preset feature dimension includes:

通过将所述视频数据中的图像信息输入第一3D卷积神经网络,将所述图像信息映射至第一预设特征维度,以对所述视频数据中的图像信息进行时间特征提取,得到图像时间特征;将所述视频数据中的音频信息转换为对应的梅尔谱特征,通过将所述梅尔谱特征输入第二3D卷积神经网络,将所述梅尔谱特征映射至预设第二特征维度,以对所述视频数据中的音频信息进行时间特征提取,得到音频时间特征;将所述图像时间特征和所述音频时间特征进行拼接,得到所述视频数据对应的第一时间特征。By inputting the image information in the video data into a first 3D convolutional neural network, and mapping the image information to a first preset feature dimension, to perform temporal feature extraction on the image information in the video data to obtain an image Temporal features; the audio information in the video data is converted into corresponding mel spectrum features, and the mel spectrum features are mapped to the preset first 3D convolutional neural network by inputting the mel spectrum features Two feature dimensions, to extract time features from the audio information in the video data to obtain audio time features; splicing the image time features and the audio time features to obtain the first time features corresponding to the video data .

作为一种示例,所述客户端视频流数据包括所述服务端视频流数据中各帧视频数据对应的客户端视频数据,所述第二时间特征序列包括各帧客户端视频数据对应的第二时间特征,其中,所述第二时间特征的获取方法可参照上述服务端中获取第一时间特征的具体实施方式,在此不再赘述。As an example, the client video stream data includes client video data corresponding to each frame of video data in the server video stream data, and the second time feature sequence includes a second time feature sequence corresponding to each frame of client video data. For the time feature, the method for obtaining the second time feature may refer to the specific implementation manner of obtaining the first time feature in the server above, and details will not be repeated here.

其中,所述缓存区大小信息包括视频流时间差,所述第一时间特征序列包括施加了预设时间偏移量的视频对应的第一目标时间特征,所述第二时间特征序列包括所述第一目标时间特征对应的第二目标时间特征,所述依据所述第一时间特征序列和所述第二时间特征序列,确定所述真实视频传输缓存区对应的缓存区大小信息的步骤包括:Wherein, the buffer size information includes the video stream time difference, the first time feature sequence includes the first target time feature corresponding to the video to which the preset time offset is applied, and the second time feature sequence includes the first time feature sequence A second target time feature corresponding to a target time feature, the step of determining the buffer size information corresponding to the real video transmission buffer according to the first time feature sequence and the second time feature sequence includes:

步骤S131,计算所述第一目标时间特征和所述第二目标时间特征之间的特征距离;Step S131, calculating a feature distance between the first target time feature and the second target time feature;

步骤S132,根据所述特征距离和所述预设时间偏移量,确定所述视频流时间差。Step S132: Determine the video stream time difference according to the characteristic distance and the preset time offset.

在本实施例中,需要说明的是,为了确定视频流时间差,服务端在向客户端发送服务端视频流数据时,有选择性地对服务端视频流数据中的至少一帧视频数据施加了预设时间偏移量,使得该帧视频数据提前或者推迟一个预设时间偏移量由服务端传输至客户端。In this embodiment, it should be noted that, in order to determine the video stream time difference, when the server sends the server video stream data to the client, it selectively applies a The preset time offset enables the frame of video data to be transmitted from the server to the client in advance or delayed by a preset time offset.

作为一种示例,步骤S131至步骤S132包括:在所述第一时间特征序列中各第一时间特征中确定施加了预设时间偏移量的第一目标时间特征,以及在所述第二时间特征序列中确定所述第一目标时间特征相对应的第二目标时间特征;获取所述第一目标时间特征和所述第二目标时间特征之间的特征距离,其中,所述特征距离可以为欧式距离;计算所述特征距离和所述预设时间偏移量之间的乘积,得到所述视频流时间差。例如预设时间偏移量为40ms,假设服务端视频流数据包括第一帧视频数据A、第二帧视频数据B以及第三帧视频数据C,若服务端可选择第二帧视频数据B推迟40ms发送,客户端会相应的推迟80ms接收到第二帧视频数据B,进一步地,假设服务端计算推迟发送的第二帧视频数据B对应的第一目标时间特征b1,客户端计算推迟接收的第二帧视频数据B对应的第二目标时间特征b2,进一步假设服务端可计算b1和b2之间的目标时间特征距离为5,则视频流时间差为5*40ms。As an example, steps S131 to S132 include: determining a first target time feature to which a preset time offset has been applied among the first time features in the first time feature sequence, and determining, at the second time Determining a second target time feature corresponding to the first target time feature in the feature sequence; obtaining a feature distance between the first target time feature and the second target time feature, wherein the feature distance can be Euclidean distance: calculate the product between the feature distance and the preset time offset to obtain the video stream time difference. For example, the preset time offset is 40ms. Suppose the video stream data on the server includes the first frame of video data A, the second frame of video data B, and the third frame of video data C. If the server can choose to delay the second frame of video data B 40ms transmission, the client will correspondingly delay receiving the second frame of video data B by 80ms. Further, assuming that the server calculates the first target time feature b1 corresponding to the delayed second frame of video data B, the client calculates the delayed reception For the second target time feature b2 corresponding to the second frame of video data B, further assuming that the server can calculate the target time feature distance between b1 and b2 as 5, the video stream time difference is 5*40ms.

作为一种示例,所述在所述第一时间特征序列中各第一时间特征中确定施加了预设时间偏移量的第一目标时间特征,以及在所述第二时间特征序列中确定所述第一目标时间特征相对应的第二目标时间特征的步骤包括:As an example, the first target time feature to which a preset time offset is applied is determined in each first time feature in the first time feature sequence, and the first target time feature is determined in the second time feature sequence The step of the second target time characteristic corresponding to the first target time characteristic comprises:

分别计算每一第一时间特征与每一第一时间特征对应的第二时间特征之间的时间特征距离;根据各所述时间特征距离的取值大小,在各所述时间特征距离中确定偏离各所述时间特征距离的平均值最远的时间特征距离作为目标时间特征距离;将所述目标时间特征距离对应的第一时间特征作为所述第一目标时间特征,以及将所述目标时间特征距离对应的第二时间特征作为所述第二目标时间特征。例如假设各第一时间特征为(a1,b1,c1),各第二时间特征为(a2,b2,c2),则a1与a2之间的时间特征距离为1,b1和b2之间的时间特征距离为1.1,c1和c2之间的时间特征距离为5,则可以确定时间特征距离5为偏离各所述时间特征距离的平均值最远的目标时间特征距离,从而c1为第一目标时间特征,c2为第二目标时间特征。本申请实施例通过在服务端发送的服务端视频数据施加一个预设时间偏移量,由于视频传输存在时间差,在预设时间偏移量后,会放大或者缩小服务端视频数据的第一时间特征与对应的客户端视频数据的第二时间特征之间的时间特征距离,从而第一目标时间特征与第二目标时间特征之间的特征距离可以作为度量预设时间偏移量与真实视频流时间差之间的相差倍数的参考值,从而计算第一目标时间特征与第二目标时间特征之间的特征距离与预设时间偏移量之间的乘积可作为真实视频流时间差的预估值,所以本申请实施例实现了高效预估服务端与客户端之间进行视频流传输的视频流时间差。Calculate the time feature distance between each first time feature and the second time feature corresponding to each first time feature; according to the value of each of the time feature distances, determine the deviation in each of the time feature distances The time feature distance with the farthest average value of each of the time feature distances is used as the target time feature distance; the first time feature corresponding to the target time feature distance is used as the first target time feature, and the target time feature The second time feature corresponding to the distance is used as the second target time feature. For example, assuming that each first time feature is (a1, b1, c1), and each second time feature is (a2, b2, c2), then the time feature distance between a1 and a2 is 1, and the time between b1 and b2 If the characteristic distance is 1.1, and the time characteristic distance between c1 and c2 is 5, then it can be determined that the time characteristic distance 5 is the target time characteristic distance farthest from the average value of each said time characteristic distance, thus c1 is the first target time feature, c2 is the second target time feature. In the embodiment of the present application, a preset time offset is applied to the server video data sent by the server. Since there is a time difference in video transmission, after the preset time offset, the first time of the server video data will be enlarged or reduced. The time feature distance between the feature and the second time feature of the corresponding client video data, so that the feature distance between the first target time feature and the second target time feature can be used as a measure of the preset time offset and the real video stream The reference value of the difference multiple between the time differences, thereby calculating the product between the characteristic distance between the first target time feature and the second target time feature and the preset time offset can be used as an estimated value of the time difference of the real video stream, Therefore, the embodiment of the present application realizes efficient estimation of the video stream time difference between the server and the client for video stream transmission.

作为一种示例,所述在所述第一时间特征序列中各第一时间特征中确定施加了预设时间偏移量的第一目标时间特征,以及在所述第二时间特征序列中确定所述第一目标时间特征相对应的第二目标时间特征的步骤包括:As an example, the first target time feature to which a preset time offset is applied is determined in each first time feature in the first time feature sequence, and the first target time feature is determined in the second time feature sequence The step of the second target time characteristic corresponding to the first target time characteristic comprises:

根据预设窗口大小,在各所述第一时间特征中选取各第一待筛选时间特征,并在各第二时间特征中选取各第一待筛选时间特征对应的第二待筛选时间特征;分别计算每一第一待筛选时间特征与每一第一待筛选时间特征对应的第二待筛选时间特征之间的时间特征距离;计算各所述时间特征距离的均值,得到均值距离;检测各所述时间特征距离是否存在与所述均值距离之间的距离偏差大于预设距离偏差阈值的目标时间特征距离,若存在,则将所述目标时间特征距离对应的第一时间特征作为所述第一目标时间特征,以及将所述目标时间特征距离对应的第二时间特征作为所述第二目标时间特征;若不存在,则返回执行步骤:根据预设窗口大小,在各所述第一时间特征中选取各第一待筛选时间特征,并在各第二时间特征中选取各第一待筛选时间特征对应的第二待筛选时间特征,直至确定所述第一目标时间特征和所述第二目标时间特征。本申请实施例以加窗口的方式逐步筛选确定第一目标时间特征和第二目标时间特征,无需一次性计算所有的第一时间特征和对应的第二时间特征之间的特征距离,因此可以节约了部分计算过程,提升了视频流时间差的计算效率,从而可以提升视频流传输效率。According to the preset window size, selecting each first time feature to be screened in each of the first time features, and selecting a second time feature to be screened corresponding to each first time feature to be screened in each second time feature; Calculate the time feature distance between each first time feature to be screened and the second time feature to be screened corresponding to each first time feature to be screened; calculate the mean value of each described time feature distance to obtain the mean distance; detect each Whether the time feature distance has a target time feature distance whose distance deviation from the mean distance is greater than the preset distance deviation threshold; if it exists, the first time feature corresponding to the target time feature distance is used as the first time feature distance Target time feature, and the second time feature corresponding to the target time feature distance as the second target time feature; if it does not exist, return to the execution step: according to the preset window size, in each of the first time features Select each first time feature to be screened in each first time feature to be screened, and select the second time feature to be screened corresponding to each first time feature to be screened in each second time feature, until the first target time feature and the second target time feature are determined time features. In the embodiment of the present application, the first target time feature and the second target time feature are gradually screened and determined in a windowed manner, without the need to calculate the feature distances between all the first time features and the corresponding second time features at one time, thus saving Part of the calculation process is simplified, and the calculation efficiency of the time difference of the video stream is improved, thereby improving the transmission efficiency of the video stream.

本申请实施例提供了一种缓存区大小信息的确定方法,也即获取服务端视频流数据,依据时间特征提取器,对所述服务端视频流数据进行时间特征提取,得到第一时间特征序列;接收所述客户端发送的第二时间特征序列,其中,所述第二时间特征序列由所述客户端对所述服务端视频流数据对应的客户端视频流数据进行时间特征提取得到;依据所述第一时间特征序列和所述第二时间特征序列,确定所述真实视频传输缓存区对应的缓存区大小信息。本申请实施例中在确定缓存区大小信息时客户端只需向服务端发送一次第二时间特征序列即可,服务端与客户端之间无需进行多次交互,所以克服了服务端在确认客户端的实时状态信息时,服务端需要与客户端进行多次交互,对于网络带宽的占用情况较为严重的技术缺陷,所以可以降低视频流传输时的网络带宽占用。The embodiment of the present application provides a method for determining the size information of the buffer area, that is, to obtain the video stream data of the server, and perform time feature extraction on the video stream data of the server according to the time feature extractor to obtain the first time feature sequence ; receiving the second time feature sequence sent by the client, wherein the second time feature sequence is obtained by the client performing time feature extraction on the client video stream data corresponding to the server video stream data; according to The first time feature sequence and the second time feature sequence determine buffer size information corresponding to the real video transmission buffer. In the embodiment of the present application, when determining the buffer size information, the client only needs to send the second time feature sequence to the server once, and there is no need for multiple interactions between the server and the client, so it overcomes the need for the server to confirm the client. When receiving the real-time status information of the client, the server needs to interact with the client multiple times, which is a serious technical defect in the occupation of network bandwidth, so it can reduce the occupation of network bandwidth during video streaming.

参照图5,本申请实施例提供一种视频流传输方法,应用于客户端,在本申请视频流传输方法的第一实施例中,所述视频流传输方法包括:Referring to FIG. 5 , an embodiment of the present application provides a video stream transmission method, which is applied to a client. In the first embodiment of the video stream transmission method of the present application, the video stream transmission method includes:

步骤C10,获取客户端视频流数据,依据时间特征提取器,对所述客户端视频流数据进行时间特征提取,得到客户端时间特征序列;Step C10, acquiring the client video stream data, and performing temporal feature extraction on the client video stream data according to the temporal feature extractor to obtain the client temporal feature sequence;

步骤C20,将所述客户端时间特征序列发送至服务端,以供所述服务端依据所述客户端时间特征序列确定的目标传输速率,向所述客户端进行视频流传输。Step C20, sending the client time feature sequence to the server, so that the server can transmit the video stream to the client according to the target transmission rate determined by the client time feature sequence.

作为一种示例,步骤C10至步骤C20包括:获取上一时间步服务端传输至客户端的视频流数据作为客户端视频流数据;通过将所述客户端视频流数据输入所述时间特征提取器,将所述客户端视频流数据中各视频数据映射至预设特征维度,得到客户端时间特征序列;将所述客户端时间特征序列发送至服务端,以供所述服务端获取上一时间步传输的服务端视频流数据对应的第一时间特征序列,并将接收的客户端时间特征序列作为第二时间特征序列,所述服务端依据所述第一时间特征序列和所述第二时间特征序列,确定所述真实视频传输缓存区对应的缓存区大小信息,从而服务端依据所述缓存区大小信息和获取的网络状态参数,选取向所述客户端进行视频流传输所需的目标传输速率;根据所述目标传输速率,向所述客户端进行视频流传输。其中,所述服务端选取在所述服务端与所述客户端之间进行视频流传输所需的目标传输速率的具体内容可参照步骤S10至步骤S30中的具体实施内容,在此不再赘述。As an example, steps C10 to C20 include: obtaining the video stream data transmitted from the server to the client at the previous time step as client video stream data; by inputting the client video stream data into the temporal feature extractor, Map each video data in the client video stream data to a preset feature dimension to obtain a client time feature sequence; send the client time feature sequence to a server for the server to obtain a previous time step The first time feature sequence corresponding to the transmitted server video stream data, and the received client time feature sequence as the second time feature sequence, the server according to the first time feature sequence and the second time feature sequence sequence, determining the buffer size information corresponding to the real video transmission buffer, so that the server selects the target transmission rate required for video stream transmission to the client according to the buffer size information and the acquired network status parameters ; Perform video stream transmission to the client according to the target transmission rate. Wherein, the specific content of the server selecting the target transmission rate required for video stream transmission between the server and the client can refer to the specific implementation content in steps S10 to S30, and will not be repeated here. .

作为一种示例,所述时间特征提取器包括第一3D卷积神经网络和第二3D卷积神经网络,其中,所述第一3D神经卷积网络用于对图像信息进行时间特征提取,所述第二3D卷积神经网络用于对音频信息进行时间特征提取。所述客户端视频流数据至少包括一帧客户端视频数据,所述客户端视频数据包括客户端图像信息和客户端音频信息,所述客户端时间特征序列至少包括一第二时间特征,所述通过将所述客户端视频流数据输入所述时间特征提取器,将所述客户端视频流数据中各视频数据映射至预设特征维度,得到客户端时间特征序列的步骤包括:As an example, the temporal feature extractor includes a first 3D convolutional neural network and a second 3D convolutional neural network, wherein the first 3D neural convolutional network is used to perform temporal feature extraction on image information, so The second 3D convolutional neural network is used to extract temporal features from the audio information. The client video stream data includes at least one frame of client video data, the client video data includes client image information and client audio information, the client time feature sequence includes at least a second time feature, the By inputting the client video stream data into the temporal feature extractor, each video data in the client video stream data is mapped to a preset feature dimension, and the steps of obtaining the client temporal feature sequence include:

通过将所述客户端图像信息输入第一3D卷积神经网络,将所述客户端图像信息映射至第一预设特征维度,以对所述客户端图像信息进行时间特征提取,得到客户端图像时间特征;将所述客户端音频信息转换为对应的梅尔谱特征,通过将梅尔谱特征输入第二3D卷积神经网络,将梅尔谱特征映射至预设第二特征维度,以对所述客户端音频信息进行时间特征提取,得到客户端音频时间特征;将所述客户端图像时间特征和所述客户端音频时间特征进行拼接,得到所述第二时间特征。By inputting the client image information into a first 3D convolutional neural network, the client image information is mapped to a first preset feature dimension, so as to perform temporal feature extraction on the client image information to obtain a client image Time feature; the client audio information is converted into a corresponding Mel spectrum feature, and the Mel spectrum feature is mapped to a preset second feature dimension by inputting the Mel spectrum feature into a second 3D convolutional neural network, so as to The client audio information is subjected to time feature extraction to obtain the client audio time feature; the client image time feature and the client audio time feature are spliced to obtain the second time feature.

参照图6,图6为本申请一实施例中服务端向客户端进行视频流传输时之间的交互示意图,服务端提取服务端视频流数据中的音频特征和视频特征作为嵌入特征,构成第一时间特征序列,客户端提取客户端视频流数据中的音频特征和视频特征作为嵌入特征,构成第二时间特征序列,服务端在接收到客户端发送的第二时间特征序列后,依据第一时间特征序列和第二时间特征序列,通过虚拟缓存模型进行时间计算,得到视频时间差,服务端将视频时间差和网络参数(网络状态参数)输入基于强化学习构建的状态-动作决策网络,输出进行传输速率选择的策略,服务端即可根据该策略选取下一时间步的目标传输速率,向客户端进行视频流传输。Referring to FIG. 6, FIG. 6 is a schematic diagram of the interaction between the server and the client when transmitting video streams in an embodiment of the present application. The server extracts the audio features and video features in the video stream data of the server as embedded features to form the first A time feature sequence, the client extracts the audio features and video features in the client video stream data as embedded features to form a second time feature sequence, after the server receives the second time feature sequence sent by the client, it uses the first The time feature sequence and the second time feature sequence are calculated through the virtual cache model to obtain the video time difference. The server inputs the video time difference and network parameters (network state parameters) into the state-action decision network built based on reinforcement learning, and outputs for transmission The rate selection strategy, the server can select the target transmission rate of the next time step according to the strategy, and transmit the video stream to the client.

本申请实施例提供了一种视频流传输方法,相比于客户端测通常需要建立一个缓存区,来缓解服务器的传输压力和加快客户端的加载速度,客户端的缓存区需要向服务端不断反馈自己的实时状态,作为服务端网络传输速率决策的依据的技术手段,本申请实施例中获取客户端视频流数据,依据时间特征提取器,对所述客户端视频流数据进行时间特征提取,得到客户端时间特征序列;将所述客户端时间特征序列发送至服务端,以供所述服务端依据所述客户端时间特征序列确定的目标传输速率,向所述客户端进行视频流传输。服务端在选取目标传输速率时,客户端只需向服务端反馈一次时间特征序列即可,服务端与客户端之间无需进行多次交互,因此可以降低网络带宽占用,所以克服了从客户端向服务端测发送反馈实时状态时不仅需要占用网络带宽,从而会影响视频流传输的稳定性的技术缺陷,提升了视频流传输的稳定性。The embodiment of this application provides a video stream transmission method. Compared with the client side, it is usually necessary to establish a buffer area to relieve the transmission pressure of the server and speed up the loading speed of the client. The client's buffer area needs to continuously feed back itself to the server The real-time status of the real-time status is used as a technical means for determining the network transmission rate of the server. In the embodiment of this application, the video stream data of the client is obtained, and the time feature is extracted from the video stream data of the client according to the time feature extractor to obtain the client The terminal time characteristic sequence; sending the client time characteristic sequence to the server, so that the server can transmit the video stream to the client according to the target transmission rate determined by the client time characteristic sequence. When the server selects the target transmission rate, the client only needs to feed back the time feature sequence to the server once, and there is no need for multiple interactions between the server and the client, so it can reduce the network bandwidth occupation, so it overcomes the problem from the client. Sending feedback to the server to test the real-time status not only needs to occupy network bandwidth, which will affect the stability of video streaming transmission, but also improves the stability of video streaming transmission.

本申请实施例还提供一种视频流传输装置,应用于服务端,所述视频流传输装置包括:The embodiment of the present application also provides a video streaming device, which is applied to the server, and the video streaming device includes:

获取模块,用于获取服务端虚拟缓存区的缓存区大小信息,其中,所述虚拟缓存区用于模拟客户端的真实视频传输缓存区;An acquisition module, configured to acquire buffer size information of a virtual buffer area of the server, wherein the virtual buffer area is used to simulate a real video transmission buffer area of the client;

传输速率选取模块,用于根据获取的网络状态参数和所述缓存区大小信息,选取向所述客户端进行视频流传输所需的目标传输速率;The transmission rate selection module is used to select the target transmission rate required for video stream transmission to the client according to the obtained network state parameters and the buffer size information;

传输模块,用于根据所述目标传输速率,向所述客户端进行视频流传输。The transmission module is configured to perform video stream transmission to the client according to the target transmission rate.

可选地,所述获取模块还用于:Optionally, the acquisition module is also used for:

获取服务端视频流数据,依据时间特征提取器,对所述服务端视频流数据进行时间特征提取,得到第一时间特征序列;Obtaining the video stream data of the server, according to the time feature extractor, performing time feature extraction on the video stream data of the server, obtaining the first time feature sequence;

接收所述客户端发送的第二时间特征序列,其中,所述第二时间特征序列由所述客户端对所述服务端视频流数据对应的客户端视频流数据进行时间特征提取得到;receiving a second time feature sequence sent by the client, wherein the second time feature sequence is obtained by the client performing time feature extraction on the client video stream data corresponding to the server video stream data;

依据所述第一时间特征序列和所述第二时间特征序列,确定所述真实视频传输缓存区对应的缓存区大小信息。Determine buffer size information corresponding to the real video transmission buffer according to the first time feature sequence and the second time feature sequence.

可选地,所述缓存区大小信息包括视频流时间差,所述第一时间特征序列包括施加了预设时间偏移量的视频对应的第一目标时间特征,所述第二时间特征序列包括所述第一目标时间特征对应的第二目标时间特征,所述获取模块还用于:Optionally, the buffer size information includes a video stream time difference, the first time feature sequence includes a first target time feature corresponding to a video to which a preset time offset is applied, and the second time feature sequence includes the The second target time feature corresponding to the first target time feature, the acquisition module is also used for:

计算所述第一目标时间特征和所述第二目标时间特征之间的特征距离;calculating a feature distance between the first temporal feature of interest and the second temporal feature of interest;

根据所述特征距离和所述预设时间偏移量,确定所述视频流时间差。Determine the video stream time difference according to the characteristic distance and the preset time offset.

可选地,所述传输速率选取模块还用于:Optionally, the transmission rate selection module is also used for:

根据获取的网络状态参数和所述缓存区大小信息,构建视频传输状态特征;According to the obtained network state parameters and the size information of the buffer area, construct the video transmission state feature;

通过将所述视频传输状态特征输入预设传输速率预测模型,预测向所述客户端之间进行视频流传输所需的目标传输速率。By inputting the characteristics of the video transmission state into a preset transmission rate prediction model, the target transmission rate required for video stream transmission between the clients is predicted.

可选地,所述传输速率选取模块还用于:Optionally, the transmission rate selection module is also used for:

获取网络状态参数,其中,所述网络状态参数包括网络带宽、视频流码率以及视频流权重系数,所述视频流权重系数用于表征视频流被用户点击的频次;Obtain network status parameters, wherein the network status parameters include network bandwidth, video stream bit rate and video stream weight coefficient, and the video stream weight coefficient is used to characterize the frequency of video streams being clicked by users;

将所述缓存区大小信息、所述网络带宽、所述视频流码率以及所述视频流权重系数拼接为所述视频传输状态特征。The buffer size information, the network bandwidth, the video stream bit rate, and the video stream weight coefficient are concatenated into the video transmission status feature.

可选地,所述传输速率选取模块还用于:Optionally, the transmission rate selection module is also used for:

获取待传输视频流对应的视频流ID、对应的请求比特率、对应的请求时间以及对应的视频流参数;Obtain the video stream ID corresponding to the video stream to be transmitted, the corresponding request bit rate, the corresponding request time and the corresponding video stream parameters;

将所述视频流ID、所述请求比特率、所述请求时间和所述视频流参数拼接为视频流权重特征;Splicing the video stream ID, the request bit rate, the request time and the video stream parameters into a video stream weight feature;

将所述视频流权重特征映射为对应的视频流权重系数。The video stream weight feature is mapped to a corresponding video stream weight coefficient.

可选地,所述视频流传输装置还用于:Optionally, the video streaming device is also used for:

获取至少一个视频传输线程上部署的预设传输速率预测模型在当前时间步的模型参数信息,其中,各所述视频传输线程处于不同的视频传输环境;Acquiring model parameter information of a preset transmission rate prediction model deployed on at least one video transmission thread at the current time step, wherein each video transmission thread is in a different video transmission environment;

对各所述模型参数信息进行聚合,得到聚合后的模型参数信息;Aggregating the model parameter information to obtain the aggregated model parameter information;

根据所述聚合后的模型参数信息,对所述预设传输速率预测模型进行实时更新,以预测下一时间步的目标传输速率。According to the aggregated model parameter information, the preset transmission rate prediction model is updated in real time to predict the target transmission rate in the next time step.

本申请提供的视频流传输装置,采用上述实施例中的视频流传输方法,解决了视频流传输稳定性低的技术问题。与现有技术相比,本申请实施例提供的视频流传输装置的有益效果与上述实施例提供的视频流传输方法的有益效果相同,且该视频流传输装置中的其他技术特征与上一实施例方法公开的特征相同,在此不做赘述。The video stream transmission device provided by the present application adopts the video stream transmission method in the above-mentioned embodiments, and solves the technical problem of low stability of video stream transmission. Compared with the prior art, the beneficial effect of the video stream transmission device provided by the embodiment of the present application is the same as that of the video stream transmission method provided by the above embodiment, and other technical features of the video stream transmission device are the same as those of the previous implementation The disclosed features of the example method are the same, and will not be repeated here.

本申请实施例还提供一种视频流传输装置,应用于客户端,所述视频流传输装置包括:The embodiment of the present application also provides a video streaming device, which is applied to a client, and the video streaming device includes:

特征提取模块,用于获取客户端视频流数据,依据时间特征提取器,对所述客户端视频流数据进行时间特征提取,得到客户端时间特征序列;A feature extraction module is used to obtain client video stream data, and perform temporal feature extraction on the client video stream data according to a temporal feature extractor to obtain a client temporal feature sequence;

发送模块,用于将所述客户端时间特征序列发送至服务端,以供所述服务端依据所述客户端时间特征序列确定的目标传输速率,向所述客户端进行视频流传输。The sending module is configured to send the client time characteristic sequence to the server, so that the server can transmit the video stream to the client according to the target transmission rate determined by the client time characteristic sequence.

本申请提供的视频流传输装置,采用上述实施例中的视频流传输方法,解决了视频流传输稳定性低的技术问题。与现有技术相比,本申请实施例提供的视频流传输装置的有益效果与上述实施例提供的视频流传输方法的有益效果相同,且该视频流传输装置中的其他技术特征与上一实施例方法公开的特征相同,在此不做赘述。The video stream transmission device provided by the present application adopts the video stream transmission method in the above-mentioned embodiments, and solves the technical problem of low stability of video stream transmission. Compared with the prior art, the beneficial effect of the video stream transmission device provided by the embodiment of the present application is the same as that of the video stream transmission method provided by the above embodiment, and other technical features of the video stream transmission device are the same as those of the previous implementation The disclosed features of the example method are the same, and will not be repeated here.

本申请实施例提供一种电子设备,电子设备包括:至少一个处理器;以及,与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行上述实施例一中的视频流传输方法。An embodiment of the present application provides an electronic device, and the electronic device includes: at least one processor; and a memory connected in communication with the at least one processor; wherein, the memory stores instructions executable by at least one processor, and the instructions are executed by at least one processor. The processor executes, so that at least one processor can execute the video stream transmission method in the first embodiment above.

下面参考图7,其示出了适于用来实现本公开实施例的电子设备的结构示意图。本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图7示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring now to FIG. 7 , it shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present disclosure. The electronic equipment in the embodiment of the present disclosure may include but not limited to such as mobile phone, notebook computer, digital broadcast receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia player), vehicle terminal (such as mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers and the like. The electronic device shown in FIG. 7 is only an example, and should not limit the functions and application scope of the embodiments of the present disclosure.

如图7所示,电子设备可以包括处理装置(例如中央处理器、图形处理器等),其可以根据存储在只读存储器(ROM)中的程序或者从存储装置加载到随机访问存储器(RAM)中的程序而执行各种适当的动作和处理。在RAM中,还存储有电子设备操作所需的各种程序和数据。处理装置、ROM以及RAM通过总线彼此相连。输入/输出(I/O)接口也连接至总线。As shown in FIG. 7, an electronic device may include a processing device (such as a central processing unit, a graphics processing unit, etc.), which may be loaded into a random access memory (RAM) according to a program stored in a read-only memory (ROM) or loaded from a storage device. Various appropriate actions and processing are performed by the programs in the program. In RAM, various programs and data necessary for the operation of electronic equipment are also stored. The processing means, ROM, and RAM are connected to each other via a bus. Input/output (I/O) interfaces are also connected to the bus.

通常,以下系统可以连接至I/O接口:包括例如触摸屏、触摸板、键盘、鼠标、图像传感器、麦克风、加速度计、陀螺仪等的输入装置;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置;包括例如磁带、硬盘等的存储装置;以及通信装置。通信装置可以允许电子设备与其他设备进行无线或有线通信以交换数据。虽然图中示出了具有各种系统的电子设备,但是应理解的是,并不要求实施或具备所有示出的系统。可以替代地实施或具备更多或更少的系统。Typically, the following systems can be connected to the I/O interface: input devices including, for example, touch screens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; including, for example, liquid crystal displays (LCDs), speakers, vibrators output devices such as; storage devices including, for example, magnetic tapes, hard disks, etc.; and communication devices. A communication device may allow an electronic device to communicate with other devices wirelessly or by wire to exchange data. While an electronic device is shown with various systems in the figures, it should be understood that implementing or having all of the systems shown is not a requirement. More or fewer systems may alternatively be implemented or provided.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置从网络上被下载和安装,或者从存储装置被安装,或者从ROM被安装。在该计算机程序被处理装置执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication means, or installed from a storage means, or installed from a ROM. When the computer program is executed by the processing device, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.

本申请提供的电子设备,采用上述实施例中的视频流传输方法,解决了视频流传输稳定性低的技术问题。与现有技术相比,本申请实施例提供的电子设备的有益效果与上述实施例一提供的视频流传输方法的有益效果相同,且该电子设备中的其他技术特征与上一实施例方法公开的特征相同,在此不做赘述。The electronic device provided by the present application adopts the video stream transmission method in the above-mentioned embodiments, and solves the technical problem of low stability of video stream transmission. Compared with the prior art, the beneficial effect of the electronic device provided by the embodiment of the present application is the same as that of the video stream transmission method provided by the first embodiment above, and other technical features of the electronic device are disclosed in the method of the previous embodiment The features are the same and will not be repeated here.

应当理解,本公开的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式的描述中,具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。It should be understood that various parts of the present disclosure may be implemented in hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in an appropriate manner.

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

本实施例提供一种计算机可读存储介质,具有存储在其上的计算机可读程序指令,计算机可读程序指令用于执行上述实施例一中的视频流传输的方法。This embodiment provides a computer-readable storage medium, which has computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the video stream transmission method in the first embodiment above.

本申请实施例提供的计算机可读存储介质例如可以是U盘,但不限于电、磁、光、电磁、红外线、或半导体的系统、系统或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、系统或者器件使用或者与其结合使用。计算机可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。The computer-readable storage medium provided in the embodiment of the present application may be, for example, a USB flash drive, but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, system or device. Program code embodied on a computer readable storage medium may be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

上述计算机可读存储介质可以是电子设备中所包含的;也可以是单独存在,而未装配入电子设备中。The above-mentioned computer-readable storage medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被电子设备执行时,使得电子设备:获取服务端虚拟缓存区的缓存区大小信息,其中,所述虚拟缓存区用于模拟客户端的真实视频传输缓存区;根据获取的网络状态参数和所述缓存区大小信息,选取向所述客户端进行视频流传输所需的目标传输速率;根据所述目标传输速率,向所述客户端进行视频流传输。The computer-readable storage medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: acquires the buffer size information of the server-side virtual buffer, wherein the virtual buffer It is used to simulate the real video transmission buffer area of the client; according to the obtained network state parameters and the size information of the buffer area, select the target transmission rate required for video stream transmission to the client; according to the target transmission rate, send The client performs video stream transmission.

又或者获取客户端视频流数据,依据时间特征提取器,对所述客户端视频流数据进行时间特征提取,得到客户端时间特征序列;将所述客户端时间特征序列发送至服务端,以供所述服务端依据所述客户端时间特征序列确定的目标传输速率,向所述客户端进行视频流传输。Or obtain the client video stream data, according to the time feature extractor, carry out time feature extraction to the client video stream data, obtain the client time feature sequence; send the client time feature sequence to the server for The server transmits the video stream to the client according to the target transmission rate determined by the time characteristic sequence of the client.

可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of the present disclosure can be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。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 a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block 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 they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be 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 by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.

描述于本公开实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块的名称在某种情况下并不构成对该单元本身的限定。The modules involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of the module does not constitute a limitation of the unit itself under certain circumstances.

本申请提供的计算机可读存储介质,存储有用于执行上述视频流传输方法的计算机可读程序指令,解决了视频流传输稳定性低的技术问题。与现有技术相比,本申请实施例提供的计算机可读存储介质的有益效果与上述实施例提供的视频流传输方法的有益效果相同,在此不做赘述。The computer-readable storage medium provided by the present application stores computer-readable program instructions for executing the above video stream transmission method, which solves the technical problem of low stability of video stream transmission. Compared with the prior art, the beneficial effect of the computer-readable storage medium provided by the embodiment of the present application is the same as the beneficial effect of the video stream transmission method provided by the foregoing embodiment, and details are not repeated here.

本申请还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述的视频流传输方法的步骤。The present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the above video stream transmission method are realized.

本申请提供的计算机程序产品解决了视频流传输稳定性低的技术问题。与现有技术相比,本申请实施例提供的计算机程序产品的有益效果与上述实施例提供的视频流传输方法的有益效果相同,在此不做赘述。The computer program product provided by this application solves the technical problem of low stability of video stream transmission. Compared with the prior art, the beneficial effect of the computer program product provided by the embodiment of the present application is the same as the beneficial effect of the video stream transmission method provided by the foregoing embodiment, and details are not repeated here.

以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利处理范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structures or equivalent process transformations made by using the description of the application and the accompanying drawings are directly or indirectly used in other related technical fields. , are all included in the patent processing scope of the present application in the same way.

Claims (12)

1. A video streaming method is applied to a server side, and the video streaming method comprises the following steps:
obtaining the size information of a cache region of a virtual cache region of a server, wherein the virtual cache region is used for simulating a real video cache region of a client;
selecting a target transmission rate required for transmitting the video stream to the client according to the acquired network state parameter and the size information of the cache region;
and carrying out video streaming transmission to the client according to the target transmission rate.
2. The video streaming method according to claim 1, wherein the step of obtaining the buffer size information of the server virtual buffer comprises:
acquiring server video stream data, and extracting time characteristics of the server video stream data according to a time characteristic extractor to obtain a first time characteristic sequence;
receiving a second time characteristic sequence sent by the client, wherein the second time characteristic sequence is obtained by performing time characteristic extraction on client video stream data corresponding to the server video stream data by the client;
and determining the size information of the cache region corresponding to the real video transmission cache region according to the first time characteristic sequence and the second time characteristic sequence.
3. The video streaming method according to claim 2, wherein the buffer size information includes a video streaming time difference, the first time characteristic sequence includes a first target time characteristic corresponding to a video to which a preset time offset is applied, the second time characteristic sequence includes a second target time characteristic corresponding to the first target time characteristic, and the step of determining the buffer size information corresponding to the real video transmission buffer according to the first time characteristic sequence and the second time characteristic sequence includes:
calculating a feature distance between the first target temporal feature and the second target temporal feature;
and determining the video stream time difference according to the characteristic distance and the preset time offset.
4. The video streaming method according to claim 1, wherein the step of selecting a target transmission rate required for video streaming to the client according to the obtained network status parameter and the buffer size information comprises:
constructing video transmission state characteristics according to the acquired network state parameters and the size information of the cache region;
and predicting a target transmission rate required by video streaming transmission between the clients by inputting the video transmission state characteristics into a preset transmission rate prediction model.
5. The video streaming method according to claim 4, wherein the step of constructing the video transmission status characteristic according to the obtained network status parameter and the buffer size information comprises:
acquiring network state parameters, wherein the network state parameters comprise network bandwidth, video stream code rate and a video stream weight coefficient, and the video stream weight coefficient is used for representing the frequency of clicking the video stream by a user;
and splicing the cache region size information, the network bandwidth, the video stream code rate and the video stream weight coefficient into the video transmission state characteristic.
6. The video streaming method of claim 5, wherein obtaining the video stream weight coefficient comprises:
acquiring a video stream ID corresponding to a video stream to be transmitted, a corresponding request bit rate, a corresponding request time and a corresponding video stream parameter;
splicing the video stream ID, the request bit rate, the request time and the video stream parameters into a video stream weight characteristic;
and mapping the video stream weight characteristics into corresponding video stream weight coefficients.
7. The video streaming method according to claim 4, wherein after the step of predicting the target transmission rate required for video streaming to the client by inputting the video transmission state characteristic to a preset transmission rate prediction model, the video streaming method further comprises:
acquiring model parameter information of a preset transmission rate prediction model deployed on at least one video transmission thread at the current time step, wherein each video transmission thread is in different video transmission environments;
aggregating the model parameter information to obtain aggregated model parameter information;
and updating the preset transmission rate prediction model in real time according to the aggregated model parameter information so as to predict the target transmission rate of the next time step.
8. A video streaming method applied to a client, the video streaming method comprising:
acquiring client video stream data, and performing time feature extraction on the client video stream data according to a time feature extractor to obtain a client time feature sequence;
and sending the client time characteristic sequence to a server side so that the server side can carry out video streaming transmission to the client side according to the target transmission rate determined by the client time characteristic sequence.
9. A video streaming apparatus, applied to a server, the video streaming apparatus comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring the size information of a cache area of a virtual cache area of a server, and the virtual cache area is used for simulating a real video cache area of a client;
a transmission rate selection module, configured to select a target transmission rate required for video stream transmission to the client according to the acquired network state parameter and the size information of the cache area;
and the transmission module is used for transmitting the video stream to the client according to the target transmission rate.
10. A video streaming apparatus, applied to a client, the video streaming apparatus comprising:
the characteristic extraction module is used for acquiring client video stream data, and extracting time characteristics of the client video stream data according to the time characteristic extractor to obtain a client time characteristic sequence;
and the sending module is used for sending the client time characteristic sequence to a server so that the server can transmit video streams to the client according to the target transmission rate determined by the client time characteristic sequence.
11. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the video streaming method of any of claims 1 to 8.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a program implementing a video streaming method, the program implementing the video streaming method being executed by a processor to implement the steps of the video streaming method according to any one of claims 1 to 8.
CN202211386804.0A 2022-11-07 2022-11-07 Video stream transmission method, device, electronic device, and computer-readable storage medium Pending CN115802078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211386804.0A CN115802078A (en) 2022-11-07 2022-11-07 Video stream transmission method, device, electronic device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211386804.0A CN115802078A (en) 2022-11-07 2022-11-07 Video stream transmission method, device, electronic device, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN115802078A true CN115802078A (en) 2023-03-14

Family

ID=85435895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211386804.0A Pending CN115802078A (en) 2022-11-07 2022-11-07 Video stream transmission method, device, electronic device, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN115802078A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118714267A (en) * 2024-08-28 2024-09-27 贵州桥梁建设集团有限责任公司 A method and system for optimizing transmission of highway video surveillance video
WO2024244337A1 (en) * 2023-05-31 2024-12-05 腾讯科技(深圳)有限公司 Media data transmission method and apparatus, and electronic device, storage medium and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1557072A (en) * 2001-09-21 2004-12-22 ���˹���Ѷ��� Data communication method and system for calculating transmission rate for congestion control using buffer size
CN1983907A (en) * 2005-12-13 2007-06-20 中兴通讯股份有限公司 Method for controlling flow media transmitting rate
US20080109865A1 (en) * 2006-11-03 2008-05-08 Apple Computer, Inc. Dynamic adjustments of video streams
CN101296184A (en) * 2008-05-30 2008-10-29 华为技术有限公司 Method, system and device for data transmission
CN113301375A (en) * 2021-05-24 2021-08-24 上海绚显科技有限公司 Data sending method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1557072A (en) * 2001-09-21 2004-12-22 ���˹���Ѷ��� Data communication method and system for calculating transmission rate for congestion control using buffer size
CN1983907A (en) * 2005-12-13 2007-06-20 中兴通讯股份有限公司 Method for controlling flow media transmitting rate
US20080109865A1 (en) * 2006-11-03 2008-05-08 Apple Computer, Inc. Dynamic adjustments of video streams
CN101296184A (en) * 2008-05-30 2008-10-29 华为技术有限公司 Method, system and device for data transmission
CN113301375A (en) * 2021-05-24 2021-08-24 上海绚显科技有限公司 Data sending method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024244337A1 (en) * 2023-05-31 2024-12-05 腾讯科技(深圳)有限公司 Media data transmission method and apparatus, and electronic device, storage medium and program product
CN118714267A (en) * 2024-08-28 2024-09-27 贵州桥梁建设集团有限责任公司 A method and system for optimizing transmission of highway video surveillance video
CN118714267B (en) * 2024-08-28 2024-10-25 贵州桥梁建设集团有限责任公司 A method and system for optimizing transmission of highway video surveillance video

Similar Documents

Publication Publication Date Title
WO2022095303A1 (en) Method, computing device, and computer storage medium used for vehicle interaction
CN115802078A (en) Video stream transmission method, device, electronic device, and computer-readable storage medium
WO2022127620A1 (en) Voice wake-up method and apparatus, electronic device, and storage medium
CN110166791B (en) Connection establishing method, device, equipment and storage medium
WO2023116233A1 (en) Video stutter prediction method and apparatus, device and medium
US9716907B2 (en) Updating thin-client display based on a thin-out rate
CN109819322A (en) Video transmission method, device, computer readable storage medium and electronic equipment
CN115257727B (en) Obstacle information fusion method, device, electronic device and computer readable medium
US10992724B2 (en) Media playback apparatus and method including delay prevention system
CN111930709B (en) Data storage method, apparatus, electronic device, and computer readable medium
CN114389975B (en) Network bandwidth estimation method, device and system, electronic equipment and storage medium
CN111694757A (en) Application program testing method and device, electronic equipment and computer readable storage medium
CN112926628B (en) Action value determining method and device, learning framework, medium and equipment
CN116566819A (en) Simulation test communication method, simulation test communication device, electronic equipment and computer readable medium
WO2023138468A1 (en) Virtual object generation method and apparatus, device, and storage medium
WO2023116138A1 (en) Modeling method for multi-task model, promotional content processing method, and related apparatuses
CN113673446B (en) Image recognition method, device, electronic device and computer readable medium
CN112843677B (en) System delay determining method, device, equipment and storage medium
CN110276404A (en) Model training method, device and storage medium
WO2023207360A1 (en) Image segmentation method and apparatus, electronic device, and storage medium
CN116088537A (en) Vehicle obstacle avoidance method, device, electronic device and computer readable medium
CN116319932A (en) Training method, device, equipment and storage medium of content push model
CN115938013A (en) Method, apparatus, device and computer readable medium for monitoring data
CN115604584A (en) Visual angle prediction method, device, equipment and storage medium
CN118673312A (en) Training method, device, equipment and medium for multi-type target recognition model

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