CN114979721B - Video slicing method, device, equipment and storage medium - Google Patents
Video slicing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114979721B CN114979721B CN202210543058.5A CN202210543058A CN114979721B CN 114979721 B CN114979721 B CN 114979721B CN 202210543058 A CN202210543058 A CN 202210543058A CN 114979721 B CN114979721 B CN 114979721B
- Authority
- CN
- China
- Prior art keywords
- slicing
- scheme
- effective
- index
- slice
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000011156 evaluation Methods 0.000 claims description 25
- 230000005540 biological transmission Effects 0.000 claims description 10
- 239000002131 composite material Substances 0.000 claims 1
- 208000003028 Stuttering Diseases 0.000 description 14
- 238000005516 engineering process Methods 0.000 description 14
- 230000008014 freezing Effects 0.000 description 10
- 238000007710 freezing Methods 0.000 description 10
- 238000005457 optimization Methods 0.000 description 10
- 238000004364 calculation method Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 8
- 238000004590 computer program Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000012549 training Methods 0.000 description 3
- 239000013598 vector Substances 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000004140 cleaning Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
- H04N21/2402—Monitoring of the downstream path of the transmission network, e.g. bandwidth available
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
- H04N21/2405—Monitoring of the internal components or processes of the server, e.g. server load
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44209—Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/4424—Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本申请公开了一种视频切片方法、装置、设备和存储介质,该方法包括:获取预设区域内客户端播放视频相应切片的第一关联数据,并获取所述预设区域内服务器端与所述切片关联的第二关联数据;其中,所述第一关联数据包括所述客户端的卡顿数据、第一网络质量数据以及负载情况,所述第二关联数据包括所述服务器端的第二网络质量数据以及所述服务器所连接客户端的数目;根据所述第一关联数据和所述第二关联数据,确定所述预设区域的综合卡顿指数;若所述综合卡顿指数大于预设阈值,丢弃所述视频对应当前切片方。本申请实现客户端视频的流畅播放。
This application discloses a video slicing method, device, equipment and storage medium. The method includes: obtaining the first associated data of the corresponding slice of the video played by the client in the preset area, and obtaining the first associated data between the server and the video in the preset area. The second associated data associated with the slice; wherein, the first associated data includes the client's lagging data, first network quality data and load conditions, and the second associated data includes the second network quality of the server. data and the number of clients connected to the server; determine the comprehensive lag index of the preset area according to the first associated data and the second associated data; if the comprehensive lag index is greater than the preset threshold, Discard the video corresponding to the current slice. This application enables smooth playback of client videos.
Description
技术领域Technical field
本申请涉及通信计算机技术领域,尤其涉及一种视频切片方法、装置、设备及存储介质。The present application relates to the field of communication computer technology, and in particular to a video slicing method, device, equipment and storage medium.
背景技术Background technique
目前,服务器端通过相应切片方案对原始视频进行切片等处理,然后将得到的视频切片发送给客户端,以供客户端播放。Currently, the server performs slicing and other processing on the original video through the corresponding slicing scheme, and then sends the obtained video slices to the client for the client to play.
然而,客户端播放通过相应切片方案处理后得到的视频切片的过程中,需要通过卡顿指数调整服务器端的切片方案,使得客户端流畅地进行视频的播放,增强用户体验。However, when the client plays the video slices processed by the corresponding slicing scheme, the server-side slicing scheme needs to be adjusted through the lag index so that the client can play the video smoothly and enhance the user experience.
现有技术卡顿指数通常只根据卡顿次数与播放平均帧率计算获得,然而,只根据卡顿次数与播放平均帧率计算卡顿指数,数据来源单一,不能清晰、准确的反映出其它因素对卡顿情况造成的影响,基于此方式得到的卡顿指数会给后续切分方案的优化造成偏差,即难以准确对视频的切片方案进行调整,致使客户端视频播放不流畅。In the existing technology, the freeze index is usually calculated only based on the number of freezes and the average playback frame rate. However, the freeze index is calculated only based on the number of freezes and the average playback frame rate. The data comes from a single source and cannot clearly and accurately reflect other factors. The impact of freezing on the situation, the freezing index obtained based on this method will cause deviations in the optimization of subsequent slicing plans, that is, it is difficult to accurately adjust the video slicing plan, resulting in unsmooth video playback on the client.
发明内容Contents of the invention
本申请的主要目的在于提供一种视频切片方法、装置、设备和存储介质,旨在解决现有技术难以准确对视频的切片方案进行调整,致使客户端视频播放不流畅的技术问题。The main purpose of this application is to provide a video slicing method, device, equipment and storage medium, aiming to solve the technical problem that the existing technology is difficult to accurately adjust the video slicing scheme, resulting in unsmooth video playback on the client.
为实现上述目的,本申请提供一种视频切片方法,所述视频切片方法包括:To achieve the above objectives, this application provides a video slicing method, which includes:
获取预设区域内客户端播放视频相应切片的第一关联数据,并获取所述预设区域内服务器端与所述切片关联的第二关联数据;Obtain the first associated data of the corresponding slice of the video played by the client in the preset area, and obtain the second associated data of the server associated with the slice in the preset area;
其中,所述第一关联数据包括所述客户端的卡顿数据、第一网络质量数据以及负载情况,所述第二关联数据包括所述服务器端的第二网络质量数据以及所述服务器所连接客户端的数目;Wherein, the first associated data includes the client's lagging data, first network quality data and load conditions, and the second associated data includes the second network quality data of the server and the client connected to the server. number;
根据所述第一关联数据和所述第二关联数据,确定所述预设区域的综合卡顿指数;Determine a comprehensive stuck index of the preset area according to the first associated data and the second associated data;
若所述综合卡顿指数大于预设阈值,丢弃所述视频对应当前切片方案,并确定目标切片方案,以基于所述目标切片方案完成对所述视频的切片。If the comprehensive freezing index is greater than the preset threshold, the current slicing scheme corresponding to the video is discarded, and a target slicing scheme is determined to complete slicing the video based on the target slicing scheme.
可选地,所述根据所述第一关联数据和所述第二关联数据,确定所述预设区域的综合卡顿指数的步骤,包括:Optionally, the step of determining the comprehensive stuck index of the preset area based on the first correlation data and the second correlation data includes:
根据所述第一关联数据,确定所述客户端的客户端卡顿指数;Determine the client lagging index of the client according to the first associated data;
根据所述第二关联数据,确定服务端的综合评估系数;Determine the comprehensive evaluation coefficient of the server according to the second associated data;
根据所述客户端卡顿指数和所述综合评估系数,确定所述预设区域的综合卡顿指数。The comprehensive lag index of the preset area is determined according to the client lag index and the comprehensive evaluation coefficient.
可选地,所述根据所述第一关联数据,确定所述客户端的客户端卡顿指数的步骤,包括:Optionally, the step of determining the client lag index of the client based on the first associated data includes:
从所述卡顿数据中确定所述客户端上报的卡顿切片数;Determine the number of stuck slices reported by the client from the stuck data;
从所述卡顿数据中确定在任一卡顿切片上卡顿的所有客户端数目、并确定每个客户端在所述任一卡顿切片上的卡顿次数以及每个客户端在所述任一卡顿切片上总的卡顿时长;Determine the number of all clients that are stuck on any stuck slice from the stuck data, and determine the number of times each client is stuck on any stuck slice and the number of times each client is stuck on any stuck slice. The total lag time on a lag slice;
从所述第一网络质量数据以及负载情况中确定所述客户端的网络类型,并根据所述网络类型确定所述客户端在所述任一卡顿切片上的网络传输指数、网络延时指数以及硬件设备性能指数;Determine the network type of the client from the first network quality data and load conditions, and determine the network transmission index, network delay index and network delay index of the client on any stuck slice according to the network type. Hardware equipment performance index;
根据所述卡顿切片数、所述所有客户端数目、所述卡顿次数、所述卡顿时长、所述网络传输指数、所述网络延时指数以及所述硬件设备性能指数,计算客户端卡顿指数;According to the number of stuck slices, the number of all clients, the number of stuck times, the stuck duration, the network transmission index, the network delay index and the hardware device performance index, calculate the client Caton index;
所述根据所述第二关联数据,确定服务端的综合评估系数的步骤,包括:The step of determining the comprehensive evaluation coefficient of the server based on the second associated data includes:
从所述第二网络质量数据中确定所述服务器端的使用带宽;Determine the used bandwidth of the server side from the second network quality data;
根据所述服务器所连接客户端的数目以及所述使用带宽,计算所述服务器端对应的综合评估系数。According to the number of clients connected to the server and the used bandwidth, a comprehensive evaluation coefficient corresponding to the server is calculated.
可选地,所述确定目标切片方案的步骤,包括:Optionally, the step of determining the target slicing scheme includes:
获取所述预设区域的历史有效切片方案;Obtain the historical effective slicing scheme of the preset area;
根据所述历史有效切片方案,生成所述目标切片方案。The target slicing plan is generated based on the historical effective slicing plan.
可选地,所述根据所述历史有效切片方案,生成所述目标切片方案的步骤,包括:Optionally, the step of generating the target slicing scheme according to the historical effective slicing scheme includes:
从所有的历史有效切片方案中确定对视频进行切片的平均切片大小和平均综合卡顿指数;Determine the average slice size and average comprehensive stuttering index for slicing the video from all historical effective slicing plans;
获取每个历史有效切片方案的有效切片大小和有效综合卡顿指数;Obtain the effective slice size and effective comprehensive lag index of each historical effective slicing plan;
从所述历史有效切片方案中选取第一有效切片方案,基于所述平均切片大小、平均综合卡顿指数、所述第一有效切片方案的有效切片大小以及所述第一有效切片方案的有效综合卡顿指数,得到第一切片大小;A first effective slicing plan is selected from the historical effective slicing plans based on the average slice size, the average comprehensive stuttering index, the effective slice size of the first effective slicing plan, and the effective synthesis of the first effective slicing plan. Caton index, get the first slice size;
基于所述第一切片大小,确定所述第一有效切片方案是否为目标切片方案;Based on the first slice size, determine whether the first effective slicing scheme is a target slicing scheme;
若所述第一有效切片方案不是目标切片方案,基于所述第一切片大小、所述第一有效切片方案、所述当前切片方案以及所述当前切片方案的当前切片大小,从所述历史有效切片方案中确定目标切片方案。If the first effective slicing plan is not the target slicing plan, based on the first slice size, the first effective slicing plan, the current slicing plan and the current slice size of the current slicing plan, from the history Determine the target tiling scheme among the valid tiling schemes.
可选地,所述基于所述第一切片大小、所述第一有效切片方案、所述当前切片方案以及所述当前切片方案的当前切片大小,从所述历史有效切片方案中确定目标切片方案的步骤,包括:Optionally, the target slice is determined from the historical effective slicing plan based on the first slice size, the first effective slicing plan, the current slicing plan and the current slice size of the current slicing plan. Program steps include:
基于所述第一切片大小、所述第一有效切片方案、所述当前切片方案以及所述当前切片方案的当前切片大小,确定所述目标切片方案的选取方向;Determine the selection direction of the target slicing plan based on the first slice size, the first effective slicing plan, the current slicing plan, and the current slice size of the current slicing plan;
基于所述选取方向,从所述历史有效切片方案中确定其他有效切片方案;Based on the selection direction, determine other effective slicing plans from the historical effective slicing plans;
基于所述平均切片大小、平均综合卡顿指数、所述其他有效切片方案的有效切片大小以及所述其他有效切片方案的有效综合卡顿指数,得到第二切片大小;Obtain the second slice size based on the average slice size, the average comprehensive lag index, the effective slice size of the other effective slicing schemes, and the effective comprehensive lag index of the other effective slicing schemes;
基于所述第二切片大小,确定所述其他有效切片方案是否为目标切片方案;Based on the second slice size, determine whether the other valid slicing scheme is the target slicing scheme;
若所述其他有效切片方案不是目标切片方案,迭代返回至基于所述选取方向,从所述历史有效切片方案中确定其他有效切片方案的步骤,直至从所述历史有效切片方案中确定目标切片方案。If the other valid slicing schemes are not the target slicing scheme, iterate back to the step of determining other valid slicing schemes from the historical valid slicing schemes based on the selection direction until the target slicing scheme is determined from the historical valid slicing schemes. .
可选地,所述若所述其他有效切片方案不是目标切片方案,迭代返回至基于所述选取方向,从所述历史有效切片方案中确定其他有效切片方案的步骤,直至从所述历史有效切片方案中确定目标切片方案的步骤,包括:Optionally, if the other valid slicing scheme is not the target slicing scheme, iteratively returns to the step of determining other valid slicing schemes from the historical valid slicing schemes based on the selection direction, until the step of determining other valid slicing schemes from the historical valid slicing schemes is The steps in the plan to determine the target tiling plan include:
若所述其他有效切片方案不是目标切片方案,且存在预设次数的在时间维度上相邻的有效切片方案的切片大小调整变化量小于预设变化量时,获取预设的扰动值;If the other valid slicing scheme is not the target slicing scheme, and there is a preset number of valid slicing schemes adjacent in the time dimension whose slice size adjustment changes are less than the preset change, obtain the preset disturbance value;
迭代返回至基于所述选取方向和所述预设的扰动值,从所述历史有效切片方案中确定其他有效切片方案的步骤,直至从所述历史有效切片方案中确定目标切片方案。Iterate back to the step of determining other valid slicing schemes from the historical valid slicing schemes based on the selection direction and the preset disturbance value until the target slicing scheme is determined from the historical valid slicing schemes.
本申请还提供一种视频切片装置,所述视频切片装置包括:This application also provides a video slicing device, which includes:
获取模块,用于获取预设区域内客户端播放视频相应切片的第一关联数据,并获取所述预设区域内服务器端与所述切片关联的第二关联数据;The acquisition module is used to obtain the first associated data of the corresponding slice of the video played by the client in the preset area, and obtain the second associated data associated with the slice by the server in the preset area;
其中,所述第一关联数据包括所述客户端的卡顿数据、第一网络质量数据以及负载情况,所述第二关联数据包括所述服务器端的第二网络质量数据以及所述服务器所连接客户端的数目;Wherein, the first associated data includes the client's lagging data, first network quality data and load conditions, and the second associated data includes the second network quality data of the server and the client connected to the server. number;
第一确定模块,用于根据所述第一关联数据和所述第二关联数据,确定所述预设区域的综合卡顿指数;A first determination module, configured to determine the comprehensive stuck index of the preset area according to the first associated data and the second associated data;
第二确定模块,用于若所述综合卡顿指数大于预设阈值,丢弃所述视频对应当前切片方案,并确定目标切片方案,以基于所述目标切片方案完成对所述视频的切片。The second determination module is configured to discard the current slicing scheme corresponding to the video if the comprehensive freezing index is greater than a preset threshold, and determine a target slicing scheme to complete slicing the video based on the target slicing scheme.
本申请还提供一种视频切片设备,所述视频切片设备为实体节点设备,所述视频切片设备包括:存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的所述视频切片方法的程序,所述视频切片方法的程序被处理器执行时可实现如上述的视频切片方法的步骤。This application also provides a video slicing device. The video slicing device is an entity node device. The video slicing device includes: a memory, a processor, and the program stored on the memory and capable of running on the processor. A program of a video slicing method. When the program of the video slicing method is executed by a processor, the steps of the video slicing method as described above can be implemented.
本申请还提供一种存储介质,所述存储介质上存储有实现上述视频切片方法的程序,所述视频切片方法的程序被处理器执行时实现如上述的视频切片方法的步骤。The present application also provides a storage medium on which a program for implementing the above video slicing method is stored. When the program for the video slicing method is executed by a processor, the steps of the above video slicing method are implemented.
本申请还提供一种计算机程序产品、包括计算机程序,该计算机程序被处理器执行时实现上述的视频切片方法的步骤。This application also provides a computer program product, including a computer program, which implements the steps of the above video slicing method when executed by a processor.
本申请提供一种视频切片方法、装置、设备及存储介质,与现有技术中只根据卡顿次数与播放平均帧率计算获得卡顿指数,造成难以准确对视频的切片方案进行调整,致使客户端视频播放不流畅相比,在本申请中,融合预设区域内客户端的第一关联数据和服务器端的第二关联数据(所述第一关联数据包括所述客户端的卡顿数据、第一网络质量数据以及负载情况,所述第二关联数据包括所述服务器端的第二网络质量数据以及所述服务器所连接客户端的数目)来确定综合评估卡顿指数,也即,综合评估卡顿指数基于客户端和服务器端更多维度的数据得到,因而,基于该综合评估卡顿指数能够更准确的反映出当前视频的切片方案是否合理,也即,后续切分方案的优化不会因卡顿指数的偏差而造成优化偏差,反而,能够针对性的调整,也即,若所述综合卡顿指数大于预设阈值,能够针对性地,准确确定新的目标切片方案(准确对视频的切片方案进行调整),以基于所述目标切片方案完成对所述视频的切片,实现客户端视频的流畅播放。This application provides a video slicing method, device, equipment and storage medium. Unlike the existing technology, which only calculates the lag index based on the number of lags and the average playback frame rate, it is difficult to accurately adjust the video slicing scheme, causing customers to Compared with the unsmooth video playback on the client, in this application, the first associated data of the client in the preset area and the second associated data of the server are merged (the first associated data includes the lag data of the client, the first network quality data and load conditions, the second associated data includes the second network quality data of the server and the number of clients connected to the server) to determine the comprehensive evaluation of the stuck index, that is, the comprehensive evaluated stuck index is based on the client More dimensional data is obtained from both the client and the server. Therefore, based on this comprehensive evaluation, the lag index can more accurately reflect whether the current video slicing scheme is reasonable. That is, the optimization of the subsequent slicing scheme will not be affected by the lag index. Deviation causes optimization deviation, but can be adjusted in a targeted manner. That is, if the comprehensive stuck index is greater than the preset threshold, a new target slicing plan can be accurately determined in a targeted manner (accurately adjust the slicing plan of the video ) to complete slicing of the video based on the target slicing scheme to achieve smooth playback of the client video.
附图说明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 explain the embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings needed to describe the embodiments or the prior art. Obviously, for those of ordinary skill in the art, It is said that other drawings can be obtained based on these drawings without exerting creative labor.
图1为本申请视频切片方法第一实施例的流程示意图;Figure 1 is a schematic flow chart of the first embodiment of the video slicing method of the present application;
图2为本申请视频切片方法中步骤S20的细化步骤流程示意图;Figure 2 is a schematic flowchart of the detailed steps of step S20 in the video slicing method of the present application;
图3为本申请实施例方案涉及的硬件运行环境的设备结构示意图;Figure 3 is a schematic diagram of the equipment structure of the hardware operating environment involved in the embodiment of the present application;
图4为本申请视频切片方法涉及的第一场景示意图;Figure 4 is a schematic diagram of the first scene involved in the video slicing method of this application;
图5为本申请视频切片方法涉及的第二场景示意图。Figure 5 is a schematic diagram of the second scene involved in the video slicing method of this application.
本申请目的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
本申请实施例提供一种视频切片方法,在本申请视频切片方法的第一实施例中,参照图1,所述视频切片方法包括:An embodiment of the present application provides a video slicing method. In the first embodiment of the video slicing method of the present application, referring to Figure 1, the video slicing method includes:
步骤S10,获取预设区域内客户端播放视频相应切片的第一关联数据,并获取所述预设区域内服务器端与所述切片关联的第二关联数据;Step S10, obtain the first associated data of the corresponding slice of the video played by the client in the preset area, and obtain the second associated data associated with the slice by the server in the preset area;
其中,所述第一关联数据包括所述客户端的卡顿数据、第一网络质量数据以及负载情况,所述第二关联数据包括所述服务器端的第二网络质量数据以及所述服务器所连接客户端的数目;Wherein, the first associated data includes the client's lagging data, first network quality data and load conditions, and the second associated data includes the second network quality data of the server and the client connected to the server. number;
步骤S20,根据所述第一关联数据和所述第二关联数据,确定所述预设区域的综合卡顿指数;Step S20: Determine the comprehensive stuck index of the preset area according to the first associated data and the second associated data;
步骤S30,若所述综合卡顿指数大于预设阈值,丢弃所述视频对应当前切片方案,并确定目标切片方案,以基于所述目标切片方案完成对所述视频的切片。Step S30: If the comprehensive freezing index is greater than a preset threshold, discard the current slicing plan corresponding to the video, and determine a target slicing plan to complete slicing the video based on the target slicing plan.
在本实施例中,所述视频切片方法应用于视频切片装置,所述视频切片装置属于视频切片设备,所述视频切片设备属于视频切片系统,该视频切片设备属于视频切片系统包括服务器端和客户端。In this embodiment, the video slicing method is applied to a video slicing device. The video slicing device belongs to a video slicing device. The video slicing device belongs to a video slicing system. The video slicing device belongs to a video slicing system including a server and a client. end.
在本实施例中,针对的应用场景为:In this embodiment, the application scenarios are:
第一:现有技术卡顿指数通常只根据卡顿次数与播放平均帧率计算获得,然而,只根据卡顿次数与播放平均帧率计算卡顿指数,数据来源单一,不能清晰、准确的反映出其它因素对卡顿情况造成的影响,基于此方式得到的卡顿指数会给后续切分方案的优化造成偏差,即难以准确对视频的切片方案进行调整,致使客户端视频播放不流畅。First: The freeze index in the existing technology is usually calculated only based on the number of freezes and the average playback frame rate. However, the freeze index is calculated only based on the number of freezes and the average playback frame rate. The data comes from a single source and cannot reflect clearly and accurately. In addition to the impact of other factors on the stuttering situation, the stuttering index obtained based on this method will cause deviations in the optimization of subsequent slicing plans, that is, it is difficult to accurately adjust the video slicing plan, resulting in unsmooth video playback on the client.
在本申请中,综合评估卡顿指数基于客户端和服务器端更多维度的数据得到,因而,基于该综合评估卡顿指数能够更准确的反映出当前视频的切片方案是否合理,也即,后续切分方案的优化不会因卡顿指数的偏差而造成优化偏差,反而,能够针对性的调整,也即,若所述综合卡顿指数大于预设阈值,能够针对性地,准确确定新的目标切片方案(准确对视频的切片方案进行调整),以基于所述目标切片方案完成对所述视频的切片,实现客户端视频的流畅播放。In this application, the comprehensive evaluation of the lag index is based on more dimensional data from the client and the server. Therefore, based on the comprehensive evaluation of the lag index, it can more accurately reflect whether the current video slicing scheme is reasonable, that is, subsequent The optimization of the segmentation plan will not cause optimization deviation due to the deviation of the stuck index. On the contrary, it can be adjusted in a targeted manner. That is, if the comprehensive stuck index is greater than the preset threshold, the new stuck index can be accurately determined in a targeted manner. Target slicing scheme (accurately adjust the slicing scheme of the video) to complete slicing of the video based on the target slicing scheme to achieve smooth playback of the client video.
第二:现有技术中,通常将固定且单一的切片方案应用于不同区域、不同视频播放场景,致使不同区域和/或者不同播放场景存在播放卡顿的问题。Second: In the existing technology, a fixed and single slicing scheme is usually applied to different regions and different video playback scenarios, resulting in the problem of playback lag in different regions and/or different playback scenarios.
在本申请中,以切片服务的区域为单元,根据分析不同预设区域各自的综合卡顿指数,为不同区域提供各自最佳的目标切片方案,实现切片方案区域级别的定制化。In this application, the area of the slicing service is taken as a unit, and based on the analysis of the comprehensive lag index of different preset areas, the best target slicing scheme is provided for different areas to achieve regional-level customization of the slicing scheme.
第三:现有技术中,预设区域内人员流动、网络技术设备升级等不同外在条件变化,难以在切片方案上体现,致使存在播放卡顿的问题。Third: In the existing technology, changes in different external conditions such as the flow of people in the preset area and the upgrade of network technology equipment are difficult to reflect in the slicing scheme, resulting in the problem of playback lag.
在本申请中,预设区域内人员流动、网络技术设备升级等不同外在条件变化,能够及时准确反馈到该第一关联数据和第二关联数据上,因而,基于第一关联数据和第二关联数据实现对切片方案进行动态的调节,使得切片方案调整更灵活,更贴合不同用户需求,为用户带来持续的优化播放体验。In this application, changes in different external conditions such as personnel movement and network technology equipment upgrades in the preset area can be timely and accurately fed back to the first associated data and the second associated data. Therefore, based on the first associated data and the second associated data, The associated data enables dynamic adjustment of the slicing plan, making the slicing plan adjustment more flexible and more suitable for different user needs, providing users with a continuously optimized playback experience.
第四:现有技术中,只能根据相关人员(易变动)过往经验和技术,通过机械的、漫长的线下、线上测试来调整切片方案。Fourth: In the existing technology, the slicing plan can only be adjusted through mechanical and lengthy offline and online testing based on the past experience and technology of relevant personnel (which are subject to change).
在本申请中,通过对预设区域内的历史有效切片方案综合计算生成目标切片方案,降低单次引入偏差值,提升目标切片方案生成的准确性,提升切片方案的优化速率。In this application, the target slicing plan is generated by comprehensively calculating the historical effective slicing plans in the preset area, reducing the single-introduction deviation value, improving the accuracy of the target slicing plan generation, and improving the optimization speed of the slicing plan.
第五:现有技术中,切片方案易陷入局部最优(相邻切片方案对应切片大小变化量小于相应数值)。Fifth: In the existing technology, the slicing scheme is easy to fall into local optimality (the change in slice size corresponding to the adjacent slicing scheme is smaller than the corresponding value).
在本申请中,并通过引入扰动因子来避免切片方案陷入局部最优,从而达到全局最优提升用户播放的流畅性。In this application, a disturbance factor is introduced to prevent the slicing scheme from falling into a local optimum, thereby achieving a global optimum and improving the smoothness of user playback.
具体步骤如下:Specific steps are as follows:
步骤S10,获取预设区域内客户端播放视频相应切片的第一关联数据,并获取所述预设区域内服务器端与所述切片关联的第二关联数据;Step S10, obtain the first associated data of the corresponding slice of the video played by the client in the preset area, and obtain the second associated data associated with the slice by the server in the preset area;
其中,所述第一关联数据包括所述客户端的卡顿数据、第一网络质量数据以及负载情况,所述第二关联数据包括所述服务器端的第二网络质量数据以及所述服务器所连接客户端的数目;Wherein, the first associated data includes the client's lagging data, first network quality data and load conditions, and the second associated data includes the second network quality data of the server and the client connected to the server. number;
在本实施例中,需要说明的是,预设区域可以是一个城市,也可以是城市内一个市区,该预设区域还可以与基站对应,也即,某一基站的辖区为一个预设区域。In this embodiment, it should be noted that the preset area can be a city or an urban area within the city. The preset area can also correspond to a base station. That is, the jurisdiction of a certain base station is a preset area. area.
获取预设区域内客户端播放视频相应切片的第一关联数据包括:Obtaining the first associated data of the corresponding slice of the video played by the client in the preset area includes:
实时获取预设区域内客户端播放视频相应切片的第一关联数据;Obtain the first associated data of the corresponding slice of the video played by the client in the preset area in real time;
或者每间隔预设时间段获取预设区域内客户端播放视频相应切片的第一关联数据。Or the first associated data of the corresponding slice of the video played by the client in the preset area is obtained every preset time period.
或者在检测到预设区域内客户端播放视频相应切片的第一关联数据变化时,获取预设区域内客户端播放视频相应切片的第一关联数据。Or when a change in the first associated data of the corresponding slice of the video played by the client in the preset area is detected, the first associated data of the corresponding slice of the video played by the client in the preset area is obtained.
作为一种示例,所述第一关联数据包括所述客户端的卡顿数据、第一网络质量数据以及负载情况。As an example, the first associated data includes the client's lagging data, first network quality data, and load conditions.
作为一种示例,所述客户端的卡顿数据包括(单位时段内)每个客户端的卡顿数据,包括卡顿次数、卡顿时间以及卡顿发生时对应播放切片的切片位置等,所述客户端的第一网络质量数据为网络质量情况,包括网络类型、网络带宽以及网络延时等,所述负载情况包括客户端cpu使用率,客户端内存使用率等。As an example, the client's lag data includes the lag data of each client (within a unit period), including the number of lags, the lag time, and the slice position of the corresponding playback slice when the lag occurs. The client The first network quality data on the client is network quality status, including network type, network bandwidth, network delay, etc. The load status includes client CPU usage, client memory usage, etc.
在本实施例中,在得到第一关联数据后,对第一关联数据进行初步过滤和清洗,也即,如图4,图5所示,从第一关联数据中剔除乱码、负值、过大值等异常数据。In this embodiment, after obtaining the first associated data, preliminary filtering and cleaning are performed on the first associated data, that is, as shown in Figure 4 and Figure 5, garbled characters, negative values, and excessive values are removed from the first associated data. Abnormal data such as large values.
在本实施例中,还获取所述预设区域内服务器端与所述切片关联的第二关联数据。In this embodiment, second association data associated with the slice on the server side in the preset area is also obtained.
其中,获取所述预设区域内服务器端与所述切片关联的第二关联数据包括:Wherein, obtaining the second association data associated with the slice on the server side in the preset area includes:
实时获取所述预设区域内服务器端与所述切片关联的第二关联数据;Obtain in real time the second associated data associated with the slice on the server side in the preset area;
或者每间隔预设时间段获取所述预设区域内服务器端与所述切片关联的第二关联数据。Or the second association data associated with the slice on the server side in the preset area is obtained every preset time period.
或者在检测到预设区域内客户端播放视频相应切片的第一关联数据变化时,获取所述预设区域内服务器端与所述切片关联的第二关联数据。Or when a change in the first associated data of the corresponding slice of the video played by the client in the preset area is detected, the second associated data associated with the slice by the server in the preset area is obtained.
在本实施例中,所述第二关联数据包括所述服务器端的第二网络质量数据(网络带宽,网络延时等)以及所述服务器所连接客户端的数目。In this embodiment, the second associated data includes second network quality data (network bandwidth, network delay, etc.) of the server and the number of clients connected to the server.
在本实施例中,在得到第二关联数据后,对第二关联数据进行初步过滤和清洗,也即,如图4,图5所示,从第二关联数据中剔除乱码、负值、过大值等异常数据。In this embodiment, after the second associated data is obtained, the second associated data is initially filtered and cleaned, that is, as shown in Figure 4 and Figure 5, garbled characters, negative values, and excessive values are removed from the second associated data. Abnormal data such as large values.
步骤S20,根据所述第一关联数据和所述第二关联数据,确定所述预设区域的综合卡顿指数;Step S20: Determine the comprehensive stuck index of the preset area according to the first associated data and the second associated data;
在本实施例中,综合考量第一关联数据和所述第二关联数据,进而,得到所述预设区域的综合卡顿指数。In this embodiment, the first associated data and the second associated data are comprehensively considered, and then the comprehensive stuck index of the preset area is obtained.
其中,得到所述预设区域的综合卡顿指数的方式包括:Among them, the method of obtaining the comprehensive stuck index of the preset area includes:
方式一:将第一关联数据和所述第二关联数据转化为特征向量,将所述特征向量输入至预设指数确定模型中,基于所述指数确定模型,确定所述预设区域的综合卡顿指数,其中,所述指数确定模型是基于具有预设标签的训练数据,对预设基础模型进行迭代训练得到的,该指数确定模型训练过程中确定每个特征向量的影响程度。Method 1: Convert the first associated data and the second associated data into feature vectors, input the feature vectors into a preset index determination model, and determine the comprehensive card of the preset area based on the index determination model. Dayton index, wherein the index determination model is obtained by iteratively training a preset basic model based on training data with preset labels, and the index determines the degree of influence of each feature vector during the training process of the model.
方式二:将第一关联数据和所述第二关联数据代入至预设综合卡顿指数的计算公式中,基于所述预设综合卡顿指数的计算公式,确定所述预设区域的综合卡顿指数。Method 2: Substitute the first associated data and the second associated data into the calculation formula of the preset comprehensive lag index, and determine the comprehensive lag of the preset area based on the calculation formula of the preset comprehensive lag index. Dayton index.
方式三,所述根据所述第一关联数据和所述第二关联数据,确定所述预设区域的综合卡顿指数的步骤,包括:Method 3: The step of determining the comprehensive stuck index of the preset area based on the first associated data and the second associated data includes:
步骤S21,根据所述第一关联数据,确定所述客户端的客户端卡顿指数;Step S21: Determine the client lagging index of the client according to the first associated data;
在本实施例中,根据所述第一关联数据和客户端卡顿指数模型,确定所述客户端的客户端卡顿指数。In this embodiment, the client lag index of the client is determined based on the first associated data and the client lag index model.
其中,所述根据所述第一关联数据,确定所述客户端的客户端卡顿指数的步骤,包括:Wherein, the step of determining the client lag index of the client based on the first associated data includes:
步骤A1,从所述卡顿数据中确定所述客户端上报的卡顿切片数;Step A1: Determine the number of stuck slices reported by the client from the stuck data;
步骤A2,从所述卡顿数据中确定在任一卡顿切片上卡顿的所有客户端数目、并确定每个客户端在所述任一卡顿切片上的卡顿次数以及每个客户端在所述任一卡顿切片上总的卡顿时长;Step A2: Determine the number of all clients that are stuck on any stuck slice from the stuck data, and determine the number of times each client is stuck on any stuck slice and the number of times each client is stuck on any stuck slice. The total lag duration on any of the lag slices;
步骤A3,从所述第一网络质量数据以及负载情况中确定所述客户端的网络类型,并根据所述网络类型确定所述客户端在所述任一卡顿切片上的网络传输指数、网络延时指数以及硬件设备性能指数;Step A3: Determine the network type of the client from the first network quality data and load conditions, and determine the network transmission index and network delay of the client on any stuck slice according to the network type. Time index and hardware device performance index;
步骤A4,根据所述卡顿切片数、所述所有客户端数目、所述卡顿次数、所述卡顿时长、所述网络传输指数、所述网络延时指数以及所述硬件设备性能指数,计算客户端卡顿指数;Step A4: According to the number of stuck slices, the number of all clients, the number of stuck times, the stuck duration, the network transmission index, the network delay index and the hardware device performance index, Calculate client lag index;
具体地,客户端卡顿指数的计算公式如下:Specifically, the calculation formula of the client lag index is as follows:
上述公式中,N为切片总数,M为上报的卡顿切片数,K为在第m个切片(任一卡顿切片)上报卡顿的人数(所有客户端数目),λi为每个人在该切片的卡顿次数(每个客户端在所述任一卡顿切片上的卡顿次数),ti为每个人在切片i上总的卡顿时长(每个客户端在所述任一卡顿切片上总的卡顿时长),δi=|bi||di||hi|,δi∈(0,1],|a1|表示当a1值大于1时取值为1(其中a1表示bi、di或者hi)。In the above formula, N is the total number of slices, M is the number of reported lag slices, K is the number of people (the number of all clients) who reported lag in the m-th slice (any lag slice), and λ i is the number of lags reported by each person. The number of lags in this slice (the number of lags for each client on any of the lag slices), t i is the total lag time for each person on slice i (the number of lags for each client on any of the lag slices). The total lag duration on the lag slice), δ i = |b i ||d i ||h i |, δ i ∈ (0,1], |a1| means that when the value of a1 is greater than 1, the value is 1 (where a1 represents bi, di or hi).
在上述公式1中,由用户在切片i上网络传输指数bi(用户网络传输速率/网络传输速率阈值)、网络延时指数di(用户网络延迟时间/网络延迟阈值)和硬件指数综合生成hi(根据用户使用的设备性能取不同值,默认为1)。In the above formula 1, hi ( Different values are taken according to the performance of the device used by the user, and the default is 1).
在具体实现时,根据客户端的网络类型,确定所述客户端在所述任一卡顿切片上的网络传输指数、网络延时指数以及硬件设备性能指,如:3G、4G、WIFI等不同的网络类型,网络传输和延时阈值等会有所调整。In specific implementation, according to the network type of the client, the network transmission index, network delay index and hardware device performance index of the client on any of the stuck slices are determined, such as: 3G, 4G, WIFI and other different Network type, network transmission and delay thresholds will be adjusted.
步骤S22,根据所述第二关联数据,确定服务端的综合评估系数;Step S22: Determine the comprehensive evaluation coefficient of the server based on the second associated data;
在本实施例中,根据所述第二关联数据,确定服务端的综合评估系数η。In this embodiment, the comprehensive evaluation coefficient η of the server is determined based on the second associated data.
具体地,所述根据所述第二关联数据,确定服务端的综合评估系数的步骤,包括:Specifically, the step of determining the comprehensive evaluation coefficient of the server based on the second associated data includes:
步骤B1,从所述第二网络质量数据中确定所述服务器端的使用带宽;Step B1: Determine the used bandwidth of the server from the second network quality data;
步骤B2,根据所述服务器所连接客户端的数目以及所述使用带宽,计算所述服务器端对应的综合评估系数。Step B2: Calculate the comprehensive evaluation coefficient corresponding to the server based on the number of clients connected to the server and the used bandwidth.
在本实施例中,η∈(0,1]为服务端的综合评估系数,由阈值连接数/客户端连接数,阈值带宽/使用带宽,CPU使用率等综合计算生成,每一项取值均为(0,1],|a|表示当a2值大于1时取值为1(其中a2表示上式中的)。In this embodiment, eta ∈ (0, 1] is the comprehensive evaluation coefficient of the server, which is generated by comprehensive calculations such as the number of threshold connections/number of client connections, threshold bandwidth/used bandwidth, CPU usage, etc., and the value of each item is is (0, 1], |a| means that when a2 value is greater than 1, the value is 1 (where a2 means in the above formula ).
步骤S23,根据所述客户端卡顿指数和所述综合评估系数,确定所述预设区域的综合卡顿指数。Step S23: Determine the comprehensive lag index of the preset area based on the client lag index and the comprehensive evaluation coefficient.
在本实施例中,其中,综合卡顿指数计算公式如下:In this embodiment, the comprehensive lag index calculation formula is as follows:
G=ηC 公式(3);G=ηC formula (3);
C为公式(1)中计算得到的客户端卡顿指数,η为公式(2)中计算得到的综合评估系数。C is the client freezing index calculated in formula (1), and eta is the comprehensive evaluation coefficient calculated in formula (2).
步骤S30,若所述综合卡顿指数大于预设阈值,丢弃所述视频对应当前切片方案,并确定目标切片方案,以基于所述目标切片方案完成对所述视频的切片。Step S30: If the comprehensive freezing index is greater than a preset threshold, discard the current slicing plan corresponding to the video, and determine a target slicing plan to complete slicing the video based on the target slicing plan.
在本实施例中,若所述综合卡顿指数小于等于预设阈值,所述视频对应当前切片方案是有效的。In this embodiment, if the comprehensive freezing index is less than or equal to the preset threshold, the current slicing scheme corresponding to the video is valid.
在本实施例中,若所述综合卡顿指数大于预设阈值,丢弃所述视频对应当前切片方案,并基于当前切片方案或者历史切片方案确定目标切片方案,以基于所述目标切片方案完成对所述视频的切片。In this embodiment, if the comprehensive freezing index is greater than the preset threshold, the current slicing scheme corresponding to the video is discarded, and the target slicing scheme is determined based on the current slicing scheme or the historical slicing scheme to complete the processing based on the target slicing scheme. Slices of said video.
本申请提供一种视频切片方法、装置、设备及存储介质,与现有技术中只根据卡顿次数与播放平均帧率计算获得卡顿指数,造成难以准确对视频的切片方案进行调整,致使客户端视频播放不流畅相比,在本申请中,融合预设区域内客户端的第一关联数据和服务器端的第二关联数据(所述第一关联数据包括所述客户端的卡顿数据、第一网络质量数据以及负载情况,所述第二关联数据包括所述服务器端的第二网络质量数据以及所述服务器所连接客户端的数目)来确定综合评估卡顿指数,也即,综合评估卡顿指数基于客户端和服务器端更多维度的数据得到,因而,基于该综合评估卡顿指数能够更准确的反映出当前视频的切片方案是否合理,也即,后续切分方案的优化不会因卡顿指数的偏差而造成优化偏差,反而,能够针对性的调整,也即,若所述综合卡顿指数大于预设阈值,能够针对性地,准确确定新的目标切片方案(准确对视频的切片方案进行调整),以基于所述目标切片方案完成对所述视频的切片,实现客户端视频的流畅播放。This application provides a video slicing method, device, equipment and storage medium. Unlike the existing technology, which only calculates the lag index based on the number of lags and the average playback frame rate, it is difficult to accurately adjust the video slicing scheme, causing customers to Compared with the unsmooth video playback on the client, in this application, the first associated data of the client in the preset area and the second associated data of the server are merged (the first associated data includes the lag data of the client, the first network quality data and load conditions, the second associated data includes the second network quality data of the server and the number of clients connected to the server) to determine the comprehensive evaluation of the stuck index, that is, the comprehensive evaluated stuck index is based on the client More dimensional data is obtained from both the client and the server. Therefore, based on this comprehensive evaluation, the lag index can more accurately reflect whether the current video slicing scheme is reasonable. That is, the optimization of the subsequent slicing scheme will not be affected by the lag index. Deviation causes optimization deviation, but can be adjusted in a targeted manner. That is, if the comprehensive stuck index is greater than the preset threshold, a new target slicing plan can be accurately determined in a targeted manner (accurately adjust the slicing plan of the video ) to complete slicing of the video based on the target slicing scheme to achieve smooth playback of the client video.
进一步地,基于本申请中第一实施例,提供本申请的另一实施例,在该实施例中,所述确定目标切片方案的步骤,包括:Further, based on the first embodiment of the present application, another embodiment of the present application is provided. In this embodiment, the step of determining the target slicing scheme includes:
步骤S31,获取所述预设区域的历史有效切片方案;Step S31, obtain the historical effective slicing scheme of the preset area;
步骤S32,根据所述历史有效切片方案,生成所述目标切片方案。Step S32: Generate the target slicing plan according to the historical effective slicing plan.
在本实施例中,通过对预设区域内的历史有效切片方案综合计算生成目标切片方案,提升目标切片方案生成的准确性,提升切片方案的优化速率,即新切片大小,通过对本区域(预设区域内)之前N次有效的切片方案(历史有效切片方案)综合计算生成。In this embodiment, the target slicing plan is generated by comprehensively calculating the historical effective slicing plans in the preset area, thereby improving the accuracy of the target slicing plan generation and improving the optimization speed of the slicing plan, that is, the new slice size. Assume that the previous N effective slicing plans (historical effective slicing plans) within the area are comprehensively calculated and generated.
所述根据所述历史有效切片方案,生成所述目标切片方案的步骤,包括:The step of generating the target slicing plan according to the historical effective slicing plan includes:
步骤S321,从所有的历史有效切片方案中确定对视频进行切片的平均切片大小和平均综合卡顿指数;Step S321: Determine the average slice size and average comprehensive stuttering index for slicing the video from all historical effective slicing plans;
步骤S322,获取每个历史有效切片方案的有效切片大小和有效综合卡顿指数;Step S322, obtain the effective slice size and effective comprehensive stuck index of each historical effective slice plan;
步骤S323,从所述历史有效切片方案中选取第一有效切片方案,基于所述平均切片大小、平均综合卡顿指数、所述第一有效切片方案的有效切片大小以及所述第一有效切片方案的有效综合卡顿指数,得到第一切片大小;Step S323: Select a first effective slicing plan from the historical effective slicing plans based on the average slice size, the average comprehensive stuttering index, the effective slice size of the first effective slicing plan, and the first effective slicing plan. The effective comprehensive stuttering index is used to obtain the first slice size;
步骤S324,基于所述第一切片大小,确定所述第一有效切片方案是否为目标切片方案;Step S324: Based on the first slice size, determine whether the first effective slicing plan is a target slicing plan;
步骤S325,若所述第一有效切片方案不是目标切片方案,基于所述第一切片大小、所述第一有效切片方案、所述当前切片方案以及所述当前切片方案的当前切片大小,从所述历史有效切片方案中确定目标切片方案。Step S325: If the first effective slicing plan is not the target slicing plan, based on the first slice size, the first effective slicing plan, the current slicing plan and the current slice size of the current slicing plan, from The target slicing scheme is determined among the historical valid slicing schemes.
需要说明的是,预设区域内亦可存储多个切片方案,在用户频繁上报卡顿时主动更换切片方案,但是本实施例中预设区域内所有用户相同分辨率默认使用相同切片。It should be noted that multiple slicing plans can also be stored in the preset area, and the slicing plans are actively changed when users frequently report freezes. However, in this embodiment, all users with the same resolution in the preset area use the same slice by default.
具体地,目标切片方案的确定公式为:Specifically, the formula for determining the target slicing scheme is:
具体地,如上述公式(4),从所有的历史有效切片方案中确定对视频进行切片的平均切片大小和平均综合卡顿指数/>例如,/>分别为N次切片方案的平均切片大小和平均综合卡顿指数。Specifically, as shown in the above formula (4), the average slice size for slicing the video is determined from all historical effective slicing plans. and average comprehensive lag index/> For example,/> are respectively the average slice size and the average comprehensive stuttering index of N slicing plans.
如上述公式(4),获取每个历史有效切片方案的有效切片大小和有效综合卡顿指数,具体地,St,Gt分别为每个历史有效切片方案的有效切片大小和有效综合卡顿指数。As shown in the above formula (4), the effective slice size and effective comprehensive stuck index of each historical effective slicing scheme are obtained. Specifically, S t and G t are the effective slice size and effective comprehensive stuck index of each historical effective slicing scheme respectively. index.
如上述公式(4),T为已有的有效切片方案数量(T建议10以上)。As shown in the above formula (4), T is the number of existing effective slicing plans (T is recommended to be more than 10).
如上述公式(4),从所述历史有效切片方案中选取第一有效切片方案,基于所述平均切片大小、平均综合卡顿指数、所述第一有效切片方案的有效切片大小以及所述第一有效切片方案的有效综合卡顿指数,得到第一切片大小,具体地,S为需要计算的切片大小(本次需要计算的切片大小可以为第一切片大小或者其他切片大小),Sl可以为当前计算区域(预设区域内)上次切片大小,则基于当前计算区域(预设区域内)上次切片大小,计算S是否符合要求,若S不符合要求(在S为第一切片大小时,所述第一有效切片方案不是目标切片方案),基于所述第一切片大小、所述第一有效切片方案、所述当前切片方案以及所述当前切片方案的当前切片大小,从所述历史有效切片方案中确定目标切片方案。若S符合要求,从所述历史有效切片方案中确定第一有效切片方案为目标切片方案。As shown in the above formula (4), the first effective slicing plan is selected from the historical effective slicing plan based on the average slice size, the average comprehensive stuttering index, the effective slice size of the first effective slicing plan and the third effective slicing plan. The effective comprehensive stuck index of an effective slicing scheme is used to obtain the first slice size. Specifically, S is the slice size that needs to be calculated (the slice size that needs to be calculated this time can be the first slice size or other slice sizes), S l can be the last slice size of the current calculation area (within the preset area). Based on the last slice size of the current calculation area (within the preset area), calculate whether S meets the requirements. If S does not meet the requirements (where S is the first slice size, the first valid slicing scheme is not the target slicing scheme), based on the first slice size, the first valid slicing scheme, the current slicing scheme and the current slice size of the current slicing scheme , determine the target slicing scheme from the historical effective slicing scheme. If S meets the requirements, the first valid slicing scheme is determined as the target slicing scheme from the historical valid slicing schemes.
在本实施例中,S是否符合要求,根据S对应的综合卡顿指数是否大于预设阈值确定。In this embodiment, whether S meets the requirements is determined based on whether the comprehensive stuck index corresponding to S is greater than the preset threshold.
所述基于所述第一切片大小、所述第一有效切片方案、所述当前切片方案以及所述当前切片方案的当前切片大小,从所述历史有效切片方案中确定目标切片方案的步骤,包括:the step of determining a target slicing plan from the historical effective slicing plans based on the first slice size, the first effective slicing plan, the current slicing plan and the current slice size of the current slicing plan, include:
步骤C1,基于所述第一切片大小、所述第一有效切片方案、所述当前切片方案以及所述当前切片方案的当前切片大小,确定所述目标切片方案的选取方向;Step C1: Determine the selection direction of the target slicing plan based on the first slice size, the first effective slicing plan, the current slicing plan, and the current slice size of the current slicing plan;
步骤C2,基于所述选取方向,从所述历史有效切片方案中确定其他有效切片方案;Step C2: Based on the selection direction, determine other effective slicing plans from the historical effective slicing plans;
步骤C3,基于所述平均切片大小、平均综合卡顿指数、所述其他有效切片方案的有效切片大小以及所述其他有效切片方案的有效综合卡顿指数,得到第二切片大小;Step C3: Obtain the second slice size based on the average slice size, the average comprehensive lag index, the effective slice size of the other effective slicing schemes, and the effective comprehensive lag index of the other effective slicing schemes;
步骤C4,基于所述第二切片大小,确定所述其他有效切片方案是否为目标切片方案;Step C4: Based on the second slice size, determine whether the other valid slicing scheme is the target slicing scheme;
步骤C5,若所述其他有效切片方案不是目标切片方案,迭代返回至基于所述选取方向,从所述历史有效切片方案中确定其他有效切片方案的步骤,直至从所述历史有效切片方案中确定目标切片方案。Step C5: If the other valid slicing scheme is not the target slicing scheme, iterate back to the step of determining other valid slicing schemes from the historical valid slicing schemes based on the selection direction until the other valid slicing schemes are determined from the historical valid slicing schemes. Target tiling scheme.
在本实施例中,基于所述第一切片大小、所述第一有效切片方案、所述当前切片方案以及所述当前切片方案的当前切片大小,确定所述目标切片方案的选取方向,也即,在本实施例中,根据当前切片大小确定的当前综合卡顿指数,以及所述第一切片大小的第一综合卡顿指数,确定选取所述目标切片方案的选取方向。In this embodiment, the selection direction of the target slicing plan is determined based on the first slice size, the first effective slicing plan, the current slicing plan, and the current slice size of the current slicing plan, also That is, in this embodiment, the selection direction for selecting the target slicing scheme is determined based on the current comprehensive lag index determined by the current slice size and the first comprehensive lag index of the first slice size.
具体地,若第一综合卡顿指数大于当前综合卡顿指数,则从所述历史有效切片方案中反向确定其他有效切片方案,例如,当前综合卡顿指数为12方案,若第一综合卡顿指数为13方案,则确定其他有效切片方案为12往1的方向,若第一综合卡顿指数小于当前综合卡顿指数,则从所述历史有效切片方案中正向确定其他有效切片方案,例如,当前综合卡顿指数为12方案,若第一综合卡顿指数为13方案,则确定其他有效切片方案为13往T如20的方向。Specifically, if the first comprehensive lag index is greater than the current comprehensive lag index, then other effective slicing plans are reversely determined from the historical effective slicing plans. For example, the current comprehensive lag index is a 12 plan. If the first comprehensive lag index If the stutter index is 13, then other valid slicing schemes are determined to be 12 in the direction of 1. If the first comprehensive stutter index is smaller than the current comprehensive stutter index, then other valid slicing schemes are positively determined from the historical valid slicing schemes, for example , the current comprehensive lag index is the 12 solution, if the first comprehensive lag index is the 13 solution, then determine other effective slicing solutions to be 13 in the direction of T such as 20.
基于所述平均切片大小、平均综合卡顿指数、所述其他有效切片方案的有效切片大小以及所述其他有效切片方案的有效综合卡顿指数,得到第二切片大小,基于所述第二切片大小,确定所述其他有效切片方案是否为目标切片方案,若所述其他有效切片方案不是目标切片方案,迭代返回至基于所述选取方向,从所述历史有效切片方案中确定其他有效切片方案的步骤,直至从所述历史有效切片方案中确定目标切片方案。Based on the average slice size, the average comprehensive lag index, the effective slice size of the other effective slicing schemes, and the effective comprehensive lag index of the other effective slicing schemes, a second slice size is obtained, based on the second slice size , determine whether the other valid slicing scheme is the target slicing scheme, and if the other valid slicing scheme is not the target slicing scheme, iteratively return to the step of determining other valid slicing schemes from the historical valid slicing scheme based on the selection direction. , until the target slicing scheme is determined from the historical valid slicing schemes.
在本实施例中,实现有序选取目标切片方案,提升效率。In this embodiment, the target slicing scheme is selected in an orderly manner to improve efficiency.
进一步地,基于本申请中上述实施例,提供本申请的另一实施例,所述若所述其他有效切片方案不是目标切片方案,迭代返回至基于所述选取方向,从所述历史有效切片方案中确定其他有效切片方案的步骤,直至从所述历史有效切片方案中确定目标切片方案的步骤,包括:Further, based on the above-mentioned embodiments of the present application, another embodiment of the present application is provided. If the other valid slicing scheme is not the target slicing scheme, iteratively returns to the historical valid slicing scheme based on the selection direction. The step of determining other valid tiling schemes, up to the step of determining the target tiling scheme from the historical valid tiling schemes, includes:
步骤D1,若所述其他有效切片方案不是目标切片方案,且存在预设次数的在时间维度上相邻的有效切片方案的切片大小调整变化量小于预设变化量时,获取预设的扰动值;Step D1: If the other valid slicing schemes are not the target slicing scheme, and there are a preset number of valid slicing schemes adjacent in the time dimension whose slice size adjustment changes are less than the preset change amount, obtain a preset disturbance value. ;
步骤D2,迭代返回至基于所述选取方向和所述预设的扰动值,从所述历史有效切片方案中确定其他有效切片方案的步骤,直至从所述历史有效切片方案中确定目标切片方案。Step D2: Iteratively return to the step of determining other effective slicing plans from the historical effective slicing plans based on the selection direction and the preset disturbance value until the target slicing plan is determined from the historical effective slicing plans.
在本实施例中, In this embodiment,
在本实施例中,公式(5)与公式(4)的区别在于增加了σ,具体地,σ为为一个随机扰动值,σ∈[-0.25Sl,0.25Sl],防止陷入局部最优解,当连续M(取值建议3到8)次相邻切片方案切片大小调整变化量小于ΔS时,即:|St-St-1|<ΔS时,增加σ增量。In this embodiment, the difference between formula (5) and formula (4) lies in the addition of σ. Specifically, σ is a random disturbance value, σ∈[-0.25S l , 0.25S l ], to prevent falling into a local minimum. Optimal solution: when the change in slice size adjustment for M consecutive (3 to 8) consecutive adjacent slicing plans is less than ΔS, that is, when |St-St-1|<ΔS, increase the σ increment.
在本实施例中,在本申请中,并通过引入扰动因子来避免切片方案陷入局部最优,从而达到全局最优提升用户播放的流畅性。In this embodiment, in this application, a disturbance factor is introduced to prevent the slicing scheme from falling into a local optimum, thereby achieving a global optimum and improving the smoothness of user playback.
参照图3,图3是本申请实施例方案涉及的硬件运行环境的设备结构示意图。Referring to Figure 3, Figure 3 is a schematic diagram of the equipment structure of the hardware operating environment involved in the embodiment of the present application.
如图3所示,该视频切片设备可以包括:处理器1001,例如CPU,存储器1005,通信总线1002。其中,通信总线1002用于实现处理器1001和存储器1005之间的连接通信。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储设备。As shown in Figure 3, the video slicing device may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize connection communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.
可选地,该视频切片设备还可以包括矩形用户接口、网络接口、摄像头、RF(RadioFrequency,射频)电路,传感器、音频电路、WiFi模块等等。矩形用户接口可以包括显示屏(Display)、输入子模块比如键盘(Keyboard),可选矩形用户接口还可以包括标准的有线接口、无线接口。网络接口可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。Optionally, the video slicing device may also include a rectangular user interface, a network interface, a camera, an RF (Radio Frequency, radio frequency) circuit, a sensor, an audio circuit, a WiFi module, and so on. The rectangular user interface may include a display screen (Display) and an input sub-module such as a keyboard (Keyboard). The optional rectangular user interface may also include standard wired interfaces and wireless interfaces. Optional network interfaces may include standard wired interfaces and wireless interfaces (such as WI-FI interfaces).
本领域技术人员可以理解,图3中示出的视频切片设备结构并不构成对视频切片设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the video slicing device shown in Figure 3 does not constitute a limitation on the video slicing device, and may include more or fewer components than shown, or some components may be combined, or different components may be used. layout.
如图3所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块以及视频切片程序。操作系统是管理和控制视频切片设备硬件和软件资源的程序,支持视频切片程序以及其它软件和/或程序的运行。网络通信模块用于实现存储器1005内部各组件之间的通信,以及与视频切片系统中其它硬件和软件之间通信。As shown in Figure 3, memory 1005, which is a storage medium, may include an operating system, a network communication module, and a video slicing program. The operating system is a program that manages and controls the hardware and software resources of the video slicing device and supports the operation of the video slicing program and other software and/or programs. The network communication module is used to implement communication between components within the memory 1005, as well as communication with other hardware and software in the video slicing system.
在图3所示的视频切片设备中,处理器1001用于执行存储器1005中存储的视频切片程序,实现上述任一项所述的视频切片方法的步骤。In the video slicing device shown in Figure 3, the processor 1001 is used to execute the video slicing program stored in the memory 1005 to implement the steps of any of the above video slicing methods.
本申请视频切片设备具体实施方式与上述视频切片方法各实施例基本相同,在此不再赘述。The specific implementation of the video slicing device of the present application is basically the same as the above embodiments of the video slicing method, and will not be described again here.
本申请还提供一种视频切片装置,所述视频切片装置包括:This application also provides a video slicing device, which includes:
获取模块,用于获取预设区域内客户端播放视频相应切片的第一关联数据,并获取所述预设区域内服务器端与所述切片关联的第二关联数据;The acquisition module is used to obtain the first associated data of the corresponding slice of the video played by the client in the preset area, and obtain the second associated data associated with the slice by the server in the preset area;
其中,所述第一关联数据包括所述客户端的卡顿数据、第一网络质量数据以及负载情况,所述第二关联数据包括所述服务器端的第二网络质量数据以及所述服务器所连接客户端的数目;Wherein, the first associated data includes the client's lagging data, first network quality data and load conditions, and the second associated data includes the second network quality data of the server and the client connected to the server. number;
第一确定模块,用于根据所述第一关联数据和所述第二关联数据,确定所述预设区域的综合卡顿指数;A first determination module, configured to determine the comprehensive stuck index of the preset area according to the first associated data and the second associated data;
第二确定模块,用于若所述综合卡顿指数大于预设阈值,丢弃所述视频对应当前切片方案,并确定目标切片方案,以基于所述目标切片方案完成对所述视频的切片。The second determination module is configured to discard the current slicing scheme corresponding to the video if the comprehensive freezing index is greater than a preset threshold, and determine a target slicing scheme to complete slicing the video based on the target slicing scheme.
可选地,所述第一确定模块包括:Optionally, the first determining module includes:
第一确定单元,用于根据所述第一关联数据,确定所述客户端的客户端卡顿指数;A first determining unit configured to determine the client lagging index of the client based on the first associated data;
第二确定单元,用于根据所述第二关联数据,确定服务端的综合评估系数;a second determination unit, configured to determine the comprehensive evaluation coefficient of the server based on the second associated data;
第三确定单元,用于根据所述客户端卡顿指数和所述综合评估系数,确定所述预设区域的综合卡顿指数。The third determination unit is configured to determine the comprehensive lag index of the preset area according to the client lag index and the comprehensive evaluation coefficient.
可选地,所述第一确定单元包括:Optionally, the first determining unit includes:
第一确定子单元,用于从所述卡顿数据中确定所述客户端上报的卡顿切片数;The first determining subunit is used to determine the number of stuck slices reported by the client from the stuck data;
第二确定子单元,用于从所述卡顿数据中确定在任一卡顿切片上卡顿的所有客户端数目、并确定每个客户端在所述任一卡顿切片上的卡顿次数以及每个客户端在所述任一卡顿切片上总的卡顿时长;The second determination subunit is used to determine the number of all clients that are stuck on any stuck slice from the stuck data, and determine the number of stalls of each client on any stuck slice; The total lag time of each client on any of the lag slices;
第三确定子单元,用于从所述第一网络质量数据以及负载情况中确定所述客户端的网络类型,并根据所述网络类型确定所述客户端在所述任一卡顿切片上的网络传输指数、网络延时指数以及硬件设备性能指数;A third determination subunit, configured to determine the network type of the client from the first network quality data and load conditions, and determine the network type of the client on any stuck slice according to the network type. Transmission index, network delay index and hardware device performance index;
第一计算子单元,用于根据所述卡顿切片数、所述所有客户端数目、所述卡顿次数、所述卡顿时长、所述网络传输指数、所述网络延时指数以及所述硬件设备性能指数,计算客户端卡顿指数;A first calculation subunit, configured to calculate the number of stuck slices, the number of all clients, the number of stuck times, the stuck duration, the network transmission index, the network delay index and the Hardware device performance index, calculate client lag index;
第四确定子单元,用于所述根据所述第二关联数据,确定服务端的综合评估系数的步骤,包括:The fourth determination subunit, used for the step of determining the comprehensive evaluation coefficient of the server based on the second associated data, includes:
第五确定子单元,用于从所述第二网络质量数据中确定所述服务器端的使用带宽;The fifth determination subunit is used to determine the used bandwidth of the server side from the second network quality data;
第二计算子单元,用于根据所述服务器所连接客户端的数目以及所述使用带宽,计算所述服务器端对应的综合评估系数。The second calculation subunit is used to calculate the comprehensive evaluation coefficient corresponding to the server according to the number of clients connected to the server and the used bandwidth.
可选地,所述第二确定模块包括:Optionally, the second determination module includes:
获取单元,用于获取所述预设区域的历史有效切片方案;An acquisition unit, configured to acquire the historical effective slicing scheme of the preset area;
生成单元,用于根据所述历史有效切片方案,生成所述目标切片方案。A generating unit, configured to generate the target slicing plan according to the historical effective slicing plan.
可选地,所述生成单元包括:Optionally, the generating unit includes:
第六确定子单元,用于从所有的历史有效切片方案中确定对视频进行切片的平均切片大小和平均综合卡顿指数;The sixth determination subunit is used to determine the average slice size and the average comprehensive stuttering index for slicing the video from all historical valid slicing schemes;
第一获取子单元,用于获取每个历史有效切片方案的有效切片大小和有效综合卡顿指数;The first acquisition subunit is used to obtain the effective slice size and effective comprehensive stuck index of each historical effective slicing scheme;
第二获取子单元,用于从所述历史有效切片方案中选取第一有效切片方案,基于所述平均切片大小、平均综合卡顿指数、所述第一有效切片方案的有效切片大小以及所述第一有效切片方案的有效综合卡顿指数,得到第一切片大小;The second acquisition subunit is used to select a first effective slicing plan from the historical effective slicing plan, based on the average slice size, the average comprehensive stuttering index, the effective slice size of the first effective slicing plan and the The effective comprehensive stuck index of the first effective slicing scheme is used to obtain the first slice size;
第七确定子单元,用于基于所述第一切片大小,确定所述第一有效切片方案是否为目标切片方案;A seventh determination subunit, configured to determine whether the first effective slicing scheme is a target slicing scheme based on the first slice size;
第八确定子单元,用于若所述第一有效切片方案不是目标切片方案,基于所述第一切片大小、所述第一有效切片方案、所述当前切片方案以及所述当前切片方案的当前切片大小,从所述历史有效切片方案中确定目标切片方案。The eighth determination subunit is configured to determine, if the first valid slicing scheme is not the target slicing scheme, based on the first slice size, the first valid slicing scheme, the current slicing scheme and the current slicing scheme. The current tile size determines the target tiling scheme from the historical valid tiling schemes.
可选地,所述第八确定子单元用于实现:Optionally, the eighth determination subunit is used to implement:
基于所述第一切片大小、所述第一有效切片方案、所述当前切片方案以及所述当前切片方案的当前切片大小,确定所述目标切片方案的选取方向;Determine the selection direction of the target slicing plan based on the first slice size, the first effective slicing plan, the current slicing plan, and the current slice size of the current slicing plan;
基于所述选取方向,从所述历史有效切片方案中确定其他有效切片方案;Based on the selection direction, determine other effective slicing plans from the historical effective slicing plans;
基于所述平均切片大小、平均综合卡顿指数、所述其他有效切片方案的有效切片大小以及所述其他有效切片方案的有效综合卡顿指数,得到第二切片大小;Obtain the second slice size based on the average slice size, the average comprehensive lag index, the effective slice size of the other effective slicing schemes, and the effective comprehensive lag index of the other effective slicing schemes;
基于所述第二切片大小,确定所述其他有效切片方案是否为目标切片方案;Based on the second slice size, determine whether the other valid slicing scheme is the target slicing scheme;
若所述其他有效切片方案不是目标切片方案,迭代返回至基于所述选取方向,从所述历史有效切片方案中确定其他有效切片方案的步骤,直至从所述历史有效切片方案中确定目标切片方案。If the other valid slicing schemes are not the target slicing scheme, iterate back to the step of determining other valid slicing schemes from the historical valid slicing schemes based on the selection direction until the target slicing scheme is determined from the historical valid slicing schemes. .
可选地,所述第八确定子单元用于实现:Optionally, the eighth determination subunit is used to implement:
若所述其他有效切片方案不是目标切片方案,且存在预设次数的在时间维度上相邻的有效切片方案的切片大小调整变化量小于预设变化量时,获取预设的扰动值;If the other valid slicing scheme is not the target slicing scheme, and there is a preset number of valid slicing schemes adjacent in the time dimension whose slice size adjustment changes are less than the preset change, obtain the preset disturbance value;
迭代返回至基于所述选取方向和所述预设的扰动值,从所述历史有效切片方案中确定其他有效切片方案的步骤,直至从所述历史有效切片方案中确定目标切片方案。Iterate back to the step of determining other valid slicing schemes from the historical valid slicing schemes based on the selection direction and the preset disturbance value until the target slicing scheme is determined from the historical valid slicing schemes.
本申请视频切片装置的具体实施方式与上述视频切片方法各实施例基本相同,在此不再赘述。The specific implementation of the video slicing device of the present application is basically the same as the above embodiments of the video slicing method, and will not be described again here.
本申请实施例提供了一种存储介质,且所述存储介质存储有一个或者一个以上程序,所述一个或者一个以上程序还可被一个或者一个以上的处理器执行以用于实现上述任一项所述的视频切片方法的步骤。Embodiments of the present application provide a storage medium, and the storage medium stores one or more programs. The one or more programs can also be executed by one or more processors to implement any of the above. The steps of the video slicing method.
本申请存储介质具体实施方式与上述视频切片方法各实施例基本相同,在此不再赘述。The specific implementation of the storage medium of this application is basically the same as the above embodiments of the video slicing method, and will not be described again here.
本申请还提供一种计算机程序产品、包括计算机程序,该计算机程序被处理器执行时实现上述的视频切片方法的步骤。This application also provides a computer program product, including a computer program, which implements the steps of the above video slicing method when executed by a processor.
本申请计算机程序产品的具体实施方式与上述视频切片方法各实施例基本相同,在此不再赘述。The specific implementation of the computer program product of the present application is basically the same as the above embodiments of the video slicing method, and will not be described again here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the terms "comprising", "comprises" or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device that includes a series of elements not only includes those elements, It also includes other elements not expressly listed or inherent in the process, method, article or apparatus. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article or apparatus that includes that element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above serial numbers of the embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. implementation. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or the part that contributes to the existing technology. The computer software product is stored in a storage medium (such as ROM/RAM, disk, CD), including several instructions to cause a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and do not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the description and drawings of the present invention may be directly or indirectly used in other related technical fields. , are all similarly included in the scope of patent protection of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210543058.5A CN114979721B (en) | 2022-05-18 | 2022-05-18 | Video slicing method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210543058.5A CN114979721B (en) | 2022-05-18 | 2022-05-18 | Video slicing method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114979721A CN114979721A (en) | 2022-08-30 |
CN114979721B true CN114979721B (en) | 2024-02-23 |
Family
ID=82985792
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210543058.5A Active CN114979721B (en) | 2022-05-18 | 2022-05-18 | Video slicing method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114979721B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117640655B (en) * | 2023-12-05 | 2024-10-25 | 中移互联网有限公司 | Data transmission method and device, electronic equipment and storage medium |
Citations (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932670A (en) * | 2012-11-29 | 2013-02-13 | 百视通网络电视技术发展有限责任公司 | Method and system for segmenting streaming media |
WO2015014773A1 (en) * | 2013-07-29 | 2015-02-05 | Koninklijke Kpn N.V. | Providing tile video streams to a client |
CN105187950A (en) * | 2014-05-29 | 2015-12-23 | 中国移动通信集团内蒙古有限公司 | Video file playing method, equipment and system |
WO2016011823A1 (en) * | 2014-07-22 | 2016-01-28 | 中兴通讯股份有限公司 | Method for acquiring live video slice, server, and storage medium |
CN105430533A (en) * | 2015-12-31 | 2016-03-23 | 武汉鸿瑞达信息技术有限公司 | HLS video-on-demand acceleration method and system |
CN106528756A (en) * | 2016-11-07 | 2017-03-22 | 王昱淇 | Network map data organization method based on space-time relevance |
WO2017170692A1 (en) * | 2016-04-01 | 2017-10-05 | 株式会社Nttドコモ | Slice management system and slice management method |
CN109756757A (en) * | 2019-03-21 | 2019-05-14 | 北京数码视讯软件技术发展有限公司 | Live data processing method and processing device, live broadcasting method and device and direct broadcast server |
CN109921941A (en) * | 2019-03-18 | 2019-06-21 | 腾讯科技(深圳)有限公司 | Network servicequality evaluates and optimizes method, apparatus, medium and electronic equipment |
WO2020034082A1 (en) * | 2018-08-14 | 2020-02-20 | 海能达通信股份有限公司 | Slicing-based rtp stream transmission method, device, terminal and server |
WO2020062789A1 (en) * | 2018-09-27 | 2020-04-02 | 中兴通讯股份有限公司 | Video service quality assessment method, apparatus and device, and readable storage medium |
CN111158546A (en) * | 2019-12-27 | 2020-05-15 | 北京奇艺世纪科技有限公司 | Media information display method and device, storage medium and electronic device |
WO2020151803A1 (en) * | 2019-01-21 | 2020-07-30 | Telefonaktiebolaget Lm Ericsson (Publ) | Technique for implementing a resource reallocation in a network slicing based system |
CN111741328A (en) * | 2020-06-18 | 2020-10-02 | 苏州科达科技股份有限公司 | Video analysis method, electronic device, storage medium and system |
CN111800877A (en) * | 2020-06-30 | 2020-10-20 | 中国联合网络通信集团有限公司 | Terminal resource allocation method and device and electronic equipment |
CN111836291A (en) * | 2019-04-18 | 2020-10-27 | 中国移动通信有限公司研究院 | Slice resource scheduling method and network element |
CN111884868A (en) * | 2020-09-07 | 2020-11-03 | 中国联合网络通信集团有限公司 | Network slice reservation method and device |
CN112243264A (en) * | 2020-10-14 | 2021-01-19 | 中国联合网络通信集团有限公司 | Method, system and network equipment for customizing service |
CN112584192A (en) * | 2020-12-14 | 2021-03-30 | 广州虎牙科技有限公司 | Network quality monitoring method and device and server |
CN112737817A (en) * | 2020-12-15 | 2021-04-30 | 云南电网有限责任公司 | Network slice resource dynamic partitioning method and device based on multi-parameter determination |
KR20210048261A (en) * | 2019-10-23 | 2021-05-03 | 에스케이텔레콤 주식회사 | Surppoting apparatus for slice management, and method thereof for connection management |
CN112819054A (en) * | 2021-01-25 | 2021-05-18 | 中国联合网络通信集团有限公司 | Slice template configuration method and device |
CN112995712A (en) * | 2021-02-10 | 2021-06-18 | 北京字节跳动网络技术有限公司 | Method, device and equipment for determining stuck factors and storage medium |
WO2021190090A1 (en) * | 2020-03-27 | 2021-09-30 | 北京金山云网络技术有限公司 | Playback stuttering determination method and apparatus, and electronic terminal |
CN113543160A (en) * | 2020-04-14 | 2021-10-22 | 中国移动通信集团浙江有限公司 | 5G slice resource allocation method and device, computing equipment and computer storage medium |
CN113727198A (en) * | 2020-05-25 | 2021-11-30 | 中兴通讯股份有限公司 | Slice video pause identification method, network equipment and storage medium |
CN113727199A (en) * | 2021-08-31 | 2021-11-30 | 安徽旭帆信息科技有限公司 | HLS slice rapid playing starting method |
CN113835985A (en) * | 2021-09-27 | 2021-12-24 | 北京基调网络股份有限公司 | Method, device and equipment for monitoring and analyzing cause of stuck |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7558466B2 (en) * | 2003-12-08 | 2009-07-07 | Canon Kabushiki Kaisha | Moving image playback apparatus and its control method, computer program, and computer-readable storage medium |
US11039315B2 (en) * | 2018-08-01 | 2021-06-15 | At&T Intellectual Property I, L.P. | On-demand super slice instantiation and orchestration |
-
2022
- 2022-05-18 CN CN202210543058.5A patent/CN114979721B/en active Active
Patent Citations (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932670A (en) * | 2012-11-29 | 2013-02-13 | 百视通网络电视技术发展有限责任公司 | Method and system for segmenting streaming media |
WO2015014773A1 (en) * | 2013-07-29 | 2015-02-05 | Koninklijke Kpn N.V. | Providing tile video streams to a client |
CN105187950A (en) * | 2014-05-29 | 2015-12-23 | 中国移动通信集团内蒙古有限公司 | Video file playing method, equipment and system |
WO2016011823A1 (en) * | 2014-07-22 | 2016-01-28 | 中兴通讯股份有限公司 | Method for acquiring live video slice, server, and storage medium |
CN105430533A (en) * | 2015-12-31 | 2016-03-23 | 武汉鸿瑞达信息技术有限公司 | HLS video-on-demand acceleration method and system |
WO2017170692A1 (en) * | 2016-04-01 | 2017-10-05 | 株式会社Nttドコモ | Slice management system and slice management method |
CN106528756A (en) * | 2016-11-07 | 2017-03-22 | 王昱淇 | Network map data organization method based on space-time relevance |
WO2020034082A1 (en) * | 2018-08-14 | 2020-02-20 | 海能达通信股份有限公司 | Slicing-based rtp stream transmission method, device, terminal and server |
WO2020062789A1 (en) * | 2018-09-27 | 2020-04-02 | 中兴通讯股份有限公司 | Video service quality assessment method, apparatus and device, and readable storage medium |
WO2020151803A1 (en) * | 2019-01-21 | 2020-07-30 | Telefonaktiebolaget Lm Ericsson (Publ) | Technique for implementing a resource reallocation in a network slicing based system |
CN109921941A (en) * | 2019-03-18 | 2019-06-21 | 腾讯科技(深圳)有限公司 | Network servicequality evaluates and optimizes method, apparatus, medium and electronic equipment |
CN109756757A (en) * | 2019-03-21 | 2019-05-14 | 北京数码视讯软件技术发展有限公司 | Live data processing method and processing device, live broadcasting method and device and direct broadcast server |
CN111836291A (en) * | 2019-04-18 | 2020-10-27 | 中国移动通信有限公司研究院 | Slice resource scheduling method and network element |
KR20210048261A (en) * | 2019-10-23 | 2021-05-03 | 에스케이텔레콤 주식회사 | Surppoting apparatus for slice management, and method thereof for connection management |
CN111158546A (en) * | 2019-12-27 | 2020-05-15 | 北京奇艺世纪科技有限公司 | Media information display method and device, storage medium and electronic device |
WO2021190090A1 (en) * | 2020-03-27 | 2021-09-30 | 北京金山云网络技术有限公司 | Playback stuttering determination method and apparatus, and electronic terminal |
CN113543160A (en) * | 2020-04-14 | 2021-10-22 | 中国移动通信集团浙江有限公司 | 5G slice resource allocation method and device, computing equipment and computer storage medium |
CN113727198A (en) * | 2020-05-25 | 2021-11-30 | 中兴通讯股份有限公司 | Slice video pause identification method, network equipment and storage medium |
CN111741328A (en) * | 2020-06-18 | 2020-10-02 | 苏州科达科技股份有限公司 | Video analysis method, electronic device, storage medium and system |
CN111800877A (en) * | 2020-06-30 | 2020-10-20 | 中国联合网络通信集团有限公司 | Terminal resource allocation method and device and electronic equipment |
CN111884868A (en) * | 2020-09-07 | 2020-11-03 | 中国联合网络通信集团有限公司 | Network slice reservation method and device |
CN112243264A (en) * | 2020-10-14 | 2021-01-19 | 中国联合网络通信集团有限公司 | Method, system and network equipment for customizing service |
CN112584192A (en) * | 2020-12-14 | 2021-03-30 | 广州虎牙科技有限公司 | Network quality monitoring method and device and server |
CN112737817A (en) * | 2020-12-15 | 2021-04-30 | 云南电网有限责任公司 | Network slice resource dynamic partitioning method and device based on multi-parameter determination |
CN112819054A (en) * | 2021-01-25 | 2021-05-18 | 中国联合网络通信集团有限公司 | Slice template configuration method and device |
CN112995712A (en) * | 2021-02-10 | 2021-06-18 | 北京字节跳动网络技术有限公司 | Method, device and equipment for determining stuck factors and storage medium |
CN113727199A (en) * | 2021-08-31 | 2021-11-30 | 安徽旭帆信息科技有限公司 | HLS slice rapid playing starting method |
CN113835985A (en) * | 2021-09-27 | 2021-12-24 | 北京基调网络股份有限公司 | Method, device and equipment for monitoring and analyzing cause of stuck |
Also Published As
Publication number | Publication date |
---|---|
CN114979721A (en) | 2022-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10447776B2 (en) | Method and apparatus for distributing media content | |
EP3542537B1 (en) | Leveraging aggregated network statistics for enhancing quality and user experience for live video streaming from mobile devices | |
CN103916679B (en) | A kind of method, equipment and system for being used to provide video information | |
CN105307010B (en) | A video upload system and method for a cloud video live broadcast platform | |
WO2017071251A1 (en) | Information pushing method and device | |
US10152779B2 (en) | Method and apparatus for image filtering | |
CN107277013B (en) | Live broadcast system in peer-to-peer network and node management method | |
JP2007317068A (en) | Recommendation device and recommendation system | |
CN109286855A (en) | Panoramic video transmission method, transmission device and transmission system | |
US11330252B2 (en) | Apparatus and method for providing content with multiplane image transcoding | |
CN114979721B (en) | Video slicing method, device, equipment and storage medium | |
CN114065863A (en) | Method, device and system for federal learning, electronic equipment and storage medium | |
US12047658B2 (en) | Control apparatus, control method, and program | |
CN105844107B (en) | Data processing method and device | |
Hsu | Mec-assisted fov-aware and qoe-driven adaptive 360 video streaming for virtual reality | |
CN104769960B (en) | Information processing equipment and information processing method | |
CN106233732B (en) | Dynamic media transcoding for P2P communication | |
CN112672227B (en) | Service processing method, device, node and storage medium based on edge node | |
EP3631752B1 (en) | Mutual noise estimation for videos | |
Biswas et al. | A Kalman filter based low complexity throughput prediction algorithm for 5G cellular networks | |
EP2941857B1 (en) | Site-based server selection | |
JP2009169644A (en) | Image generating apparatus, information terminal, image generating method and program | |
CN111158707B (en) | Unloading method and device in edge computing environment | |
CN115134639A (en) | Video gear determining method, device, server, storage medium and system | |
Xu et al. | Predictive prefetching for MPEG DASH over LTE networks |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |