WO2023134524A1 - Video coding configuration method, system and device, and storage medium - Google Patents

Video coding configuration method, system and device, and storage medium Download PDF

Info

Publication number
WO2023134524A1
WO2023134524A1 PCT/CN2023/070557 CN2023070557W WO2023134524A1 WO 2023134524 A1 WO2023134524 A1 WO 2023134524A1 CN 2023070557 W CN2023070557 W CN 2023070557W WO 2023134524 A1 WO2023134524 A1 WO 2023134524A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
gear
resolution
mapping information
basic data
Prior art date
Application number
PCT/CN2023/070557
Other languages
French (fr)
Chinese (zh)
Inventor
袁子逸
欧明
Original Assignee
百果园技术(新加坡)有限公司
袁子逸
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 百果园技术(新加坡)有限公司, 袁子逸 filed Critical 百果园技术(新加坡)有限公司
Publication of WO2023134524A1 publication Critical patent/WO2023134524A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/154Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion

Definitions

  • S140 Perform video encoding configuration based on the target resolution and the corresponding target bit rate.
  • Construction module 22 is used for constructing the functional relation of the total quality parameter of all users watching video and the first mapping information and the second mapping information;
  • the traversal module 23 is specifically used to traverse the basic data in combination with the preset resolution gear and the corresponding functional relationship; determine the target code rate when the total quality parameter takes the maximum value under the corresponding resolution gear, and use the resolution gear as the corresponding target resolution.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

Disclosed in the embodiments of the present application are a video coding configuration method, system and device, and a storage medium. According to the technical solution provided in the embodiments of the present application, the method comprises: collecting basic data, wherein the basic data comprises first mapping information of different code rates and corresponding total video watch times, and second mapping information of the different code rates and corresponding video quality parameters under different resolutions; constructing a function relationship between a total quality parameter of all users watching videos and the first mapping information and the second mapping information; traversing the basic data on the basis of the function relationship, and determining a target resolution and a corresponding target code rate when the value of the total quality parameter is the maximum; and performing video coding configuration on the basis of the target resolution and the corresponding target code rate. By using the technical means, video coding configuration can be accurately and rationally performed, and better video quality can be provided, thereby optimizing the video watching experience of users.

Description

一种视频编码配置方法、系统、设备及存储介质A video coding configuration method, system, device and storage medium
本申请要求在2022年01月14日提交中国专利局、申请号为202210044704.3的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with application number 202210044704.3 submitted to the China Patent Office on January 14, 2022, the entire content of which is incorporated herein by reference.
技术领域technical field
本申请实施例涉及视频编码技术领域,尤其涉及一种视频编码配置方法、系统、设备及存储介质。The embodiments of the present application relate to the technical field of video coding, and in particular, to a video coding configuration method, system, device, and storage medium.
背景技术Background technique
流媒体技术是指将一连串的媒体数据压缩后,以流的方式在网络中分段传送,实现在网络上实时传输影音的技术。在进行数据压缩时,为了适应不同用户的网络带宽,需要对原始视频进行编码,才能通过网络传输给用户。目前,为了满足不同用户对于画质和流畅度的要求,提升用户观看视频的体验,运营方会设置一个合理的、能够满足大多数用户需求的编码配置表,根据该编码配置表进行原始视频编码,以适应不同用户的视频观看需求。Streaming media technology refers to the technology that compresses a series of media data and transmits them in segments in the network in the form of streams, so as to realize real-time transmission of audio and video on the network. When performing data compression, in order to adapt to the network bandwidth of different users, the original video needs to be encoded before it can be transmitted to users through the network. At present, in order to meet the requirements of different users for image quality and fluency, and improve the user experience of watching videos, the operator will set up a reasonable encoding configuration table that can meet the needs of most users, and perform original video encoding according to the encoding configuration table , to meet the video viewing needs of different users.
但是,传统的编码配置表大多根据运营经验人为设置,其设置编码配置参数的主观性较大,难以基于合理、准确的编码配置参数地进行视频编码。以此编码的视频难以达到理想的视频画质需求,影响用户的视频观看体验。However, most traditional encoding configuration tables are artificially set based on operating experience, and the setting of encoding configuration parameters is relatively subjective, making it difficult to perform video encoding based on reasonable and accurate encoding configuration parameters. It is difficult for the video encoded in this way to meet the ideal video quality requirements, which affects the user's video viewing experience.
发明内容Contents of the invention
本申请实施例提供一种视频编码配置方法、系统、设备及存储介质,能够准确配置视频编码的码率和分辨率,解决视频编码配置的误差问题。Embodiments of the present application provide a video coding configuration method, system, device, and storage medium, which can accurately configure a bit rate and resolution of video coding, and solve the error problem of video coding configuration.
在第一方面,本申请实施例提供了一种视频编码配置方法,包括:In the first aspect, the embodiment of the present application provides a video coding configuration method, including:
收集基础数据,基础数据包括不同码率与对应视频观看总时长的第一映射信息,以及不同分辨率下,不同码率与对应视频质量参数的第二映射信息;Collecting basic data, the basic data includes the first mapping information of different bit rates and the corresponding total video viewing time, and the second mapping information of different bit rates and corresponding video quality parameters under different resolutions;
构建所有用户观看视频的总质量参数与第一映射信息以及第二映射信息的函数关系;Construct the functional relationship between the total quality parameters of all users watching videos and the first mapping information and the second mapping information;
基于函数关系遍历基础数据,确定总质量参数取值最大情况下的目标分辨率和对应的目标码率;Traverse the basic data based on the functional relationship, and determine the target resolution and the corresponding target bit rate when the total quality parameter takes the maximum value;
基于目标分辨率和对应的目标码率进行视频编码配置。Configure video encoding based on the target resolution and corresponding target bit rate.
在第二方面,本申请实施例提供了一种视频编码配置系统,包括:In the second aspect, the embodiment of the present application provides a video coding configuration system, including:
收集模块,用于收集基础数据,基础数据包括不同码率与对应视频观看总 时长的第一映射信息,以及不同分辨率下,不同码率与对应视频质量参数的第二映射信息;The collection module is used to collect basic data, and the basic data includes the first mapping information of different bit rates and corresponding video viewing total duration, and the second mapping information of different bit rates and corresponding video quality parameters under different resolutions;
构建模块,用于构建所有用户观看视频的总质量参数与第一映射信息以及第二映射信息的函数关系;A building block for constructing the functional relationship between the total quality parameters of all users watching videos and the first mapping information and the second mapping information;
遍历模块,用于基于函数关系遍历基础数据,确定总质量参数取值最大情况下的目标分辨率和对应的目标码率;The traversal module is used to traverse the basic data based on the functional relationship, and determine the target resolution and the corresponding target bit rate under the maximum value of the total quality parameter;
配置模块,用于基于目标分辨率和对应的目标码率进行视频编码配置。A configuration module, configured to perform video encoding configuration based on a target resolution and a corresponding target bit rate.
在第三方面,本申请实施例提供了一种视频编码配置设备,包括:In a third aspect, the embodiment of the present application provides a video coding configuration device, including:
存储器以及一个或多个处理器;memory and one or more processors;
所述存储器,用于存储一个或多个程序;The memory is used to store one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如第一方面所述的视频编码配置方法。When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the video encoding configuration method as described in the first aspect.
在第四方面,本申请实施例提供了一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行如第一方面所述的视频编码配置方法。In a fourth aspect, the embodiment of the present application provides a storage medium containing computer-executable instructions, and the computer-executable instructions are used to execute the video encoding configuration method as described in the first aspect when executed by a computer processor.
本申请实施例通过收集基础数据,基础数据包括不同码率与对应视频观看总时长的第一映射信息,以及不同分辨率下,不同码率与对应视频质量参数的第二映射信息;构建所有用户观看视频的总质量参数与第一映射信息以及第二映射信息的函数关系;基于函数关系遍历基础数据,确定总质量参数取值最大情况下的目标分辨率和对应的目标码率;基于目标分辨率和对应的目标码率进行视频编码配置。采用上述技术手段,通过遍历基础数据优选目标分辨率和对应的目标码率,以此可以准确、合理进行视频编码配置,提供较优的视频质量,进而优化用户的视频观看体验。The embodiment of the present application collects the basic data, the basic data includes the first mapping information of different bit rates and the corresponding total video viewing time, and the second mapping information of different bit rates and corresponding video quality parameters under different resolutions; constructs all user Watch the functional relationship between the total quality parameter of the video and the first mapping information and the second mapping information; traverse the basic data based on the functional relationship, and determine the target resolution and the corresponding target bit rate when the total quality parameter takes the maximum value; based on the target resolution rate and the corresponding target bit rate for video encoding configuration. Using the above-mentioned technical means, by traversing the basic data to optimize the target resolution and the corresponding target bit rate, video encoding configuration can be performed accurately and reasonably, providing better video quality, and further optimizing the user's video viewing experience.
附图说明Description of drawings
图1是本申请实施例提供的一种视频编码配置方法的流程图;FIG. 1 is a flow chart of a video encoding configuration method provided in an embodiment of the present application;
图2是本申请实施例中的基础数据收集流程图;Fig. 2 is the flow chart of basic data collection in the embodiment of the present application;
图3是本申请实施例中不同码率档位下的目标分辨率和目标码率确定流程图;Fig. 3 is a flow chart of determining the target resolution and the target code rate under different code rate gears in the embodiment of the present application;
图4是本申请实施例中不同分辨率档位下的目标分辨率和目标码率确定流程图;Fig. 4 is a flow chart of determining the target resolution and target code rate under different resolution gears in the embodiment of the present application;
图5是本申请实施例中的视频编码配置流程图;Fig. 5 is a flow chart of video encoding configuration in the embodiment of the present application;
图6是本申请实施例中视频编码流程图;Fig. 6 is a flow chart of video encoding in the embodiment of the present application;
图7是本申请实施例提供的一种视频编码配置系统的结构示意图;FIG. 7 is a schematic structural diagram of a video encoding configuration system provided by an embodiment of the present application;
图8是本申请实施例提供的一种视频编码配置设备的结构示意图。FIG. 8 is a schematic structural diagram of a video encoding configuration device provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案和优点更加清楚,下面结合附图对本申请具体实施例作进一步的详细描述。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In order to make the purpose, technical solution and advantages of the present application clearer, specific embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only parts relevant to the present application are shown in the drawings but not all content. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe various operations (or steps) as sequential processing, many of the operations may be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.
本申请提供的视频编码配置方法,旨在通过收集基础数据构建用户观看总质量参数的函数关系,基于函数关系遍历收集到的基础数据,即可确定在总质量参数取值最大时对应的分辨率和码率取值,依此得到的分辨率和码率进行视频编码配置,可以确保用户观看视频的总质量参数达到相对的最优状态,进而优化用户的视频观看体验。The video encoding configuration method provided by this application aims to construct the functional relationship of the total quality parameters viewed by users by collecting basic data, and then traverse the collected basic data based on the functional relationship to determine the corresponding resolution when the total quality parameter takes the maximum value and bit rate value, and the video encoding configuration based on the obtained resolution and bit rate can ensure that the total quality parameters of the user watching the video reach a relatively optimal state, thereby optimizing the user's video viewing experience.
随着计算机、手机等智能设备与其相关技术的飞速发展,互联网应用已经逐渐渗透到生活的方方面面,切实改变了人们的生活方式。而硬件设备算力的提升与流媒体技术的革新,也带动了视频、网络直播行业的发展,人们得以在各种终端上实时观看到清晰流畅的视频,极大丰富了我们的精神生活。流媒体技术(Streaming Media)是指将一连串的媒体数据压缩后,以流的方式在网络中分段传送,实现在网络上实时传输影音以供观赏的一种技术。在流媒体技术中,数据压缩是必不可少的一环。一个不经压缩的YUV420格式、帧率24的720P视频每秒的数据量高达200M,以现在的民用网络带宽已然无法满足传输需求。为了适应用户的网络带宽,需要对原始视频进行编码,才能通过网络传输给用户。With the rapid development of smart devices such as computers and mobile phones and related technologies, Internet applications have gradually penetrated into all aspects of life and have actually changed people's lifestyles. The improvement of the computing power of hardware equipment and the innovation of streaming media technology have also driven the development of the video and webcast industries. People can watch clear and smooth videos in real time on various terminals, which greatly enriches our spiritual life. Streaming Media technology refers to a technology that compresses a series of media data and transmits them in segments in the network in a streaming manner, so as to realize real-time transmission of audio and video on the network for viewing. In streaming media technology, data compression is an essential part. An uncompressed YUV420 format, 720P video with a frame rate of 24 has a data volume of up to 200M per second, which cannot meet the transmission requirements with the current civilian network bandwidth. In order to adapt to the user's network bandwidth, the original video needs to be encoded before it can be transmitted to the user through the network.
另一方面,在网络直播场景中,对于视频码率波动比较敏感,瞬时且较大的码率波动可能会造成直播播放卡顿,给用户带来负面体验。而直播用户群体数量庞大,不同的用户对于视频清晰度和流畅度的要求也会受到个人审美、不 同地区网络状况等多种因素的影响,所以单一的视频编码方式无法满足大部分用户的要求。那么设计一个合理的、能够满足大多数用户需求的编码配置表就显得十分必要。基于合理的编码配置表,用户就可以选择自己能够接受的编码配置对应编码视频进行观看,满足不同用户对于画质和流畅度的要求,提升用户观看视频的体验。On the other hand, in the live webcast scene, it is more sensitive to the fluctuation of the video bit rate, and the instantaneous and large bit rate fluctuation may cause the live broadcast to freeze, and bring negative experience to the user. However, the number of live broadcast users is huge, and different users' requirements for video clarity and fluency will also be affected by various factors such as personal aesthetics and network conditions in different regions. Therefore, a single video encoding method cannot meet the requirements of most users. So it is very necessary to design a reasonable encoding configuration table that can meet the needs of most users. Based on a reasonable encoding configuration table, users can choose an acceptable encoding configuration to watch the encoded video, which meets the requirements of different users for image quality and fluency, and improves the user's experience in watching videos.
由于传统的编码配置表大多根据运营经验人为设置,其设置编码配置参数的主观性较大,难以基于合理、准确的编码配置参数地进行视频编码。基于此,提供本申请实施例的一种视频编码配置方法,以解决现有视频编码配置的误差问题。Since the traditional encoding configuration tables are mostly set artificially based on operating experience, the setting of encoding configuration parameters is relatively subjective, and it is difficult to perform video encoding based on reasonable and accurate encoding configuration parameters. Based on this, a video coding configuration method according to an embodiment of the present application is provided to solve the error problem of existing video coding configurations.
实施例:Example:
图1给出了本申请实施例提供的一种视频编码配置方法的流程图,本实施例中提供的视频编码配置方法可以由视频编码配置设备执行,该视频编码配置设备可以通过软件和/或硬件的方式实现,该视频编码配置设备可以是两个或多个物理实体构成,也可以是一个物理实体构成。一般而言,该视频编码配置设备可以是视频平台、网络直播平台的视频编码服务器等处理设备。Figure 1 shows a flow chart of a video encoding configuration method provided in an embodiment of the present application. The video encoding configuration method provided in this embodiment can be executed by a video encoding configuration device, and the video encoding configuration device can use software and/or Realized by means of hardware, the video encoding configuration device may be composed of two or more physical entities, or may be composed of one physical entity. Generally speaking, the video encoding configuration device may be a processing device such as a video platform, a video encoding server of a live network platform, or the like.
下述以该视频编码配置设备为执行视频编码配置方法的主体为例,进行描述。参照图1,该视频编码配置方法具体包括:The following description will be made by taking the video encoding configuration device as the main body executing the video encoding configuration method as an example. Referring to Figure 1, the video encoding configuration method specifically includes:
S110、收集基础数据,基础数据包括不同码率与对应视频观看总时长的第一映射信息,以及不同分辨率下,不同码率与对应视频质量参数的第二映射信息。S110. Collect basic data. The basic data includes first mapping information of different bit rates and corresponding video viewing durations, and second mapping information of different bit rates and corresponding video quality parameters under different resolutions.
本申请实施例在进行视频编码配置时,提供了基于最大化用户整体观看画质的视频编码配置设计方案。通过结合不同码率与对应视频观看总时长的函数曲线,以及不同分辨率下,不同码率与对应视频质量参数的函数曲线,计算出一个使得所有用户观看视频的客观质量最大的,包含视频分辨率与码率两种参数的编码配置表。以用于对业务中的原始视频进行转码,进而满足大部分用户的观看需求,提升用户观看体验。The embodiment of the present application provides a video coding configuration design solution based on maximizing the user's overall viewing quality when performing video coding configuration. By combining the function curves of different bit rates and the corresponding total video viewing time, and the function curves of different bit rates and corresponding video quality parameters under different resolutions, a method that maximizes the objective quality of videos watched by all users, including video resolution Encoding configuration table of two parameters of rate and code rate. It is used to transcode the original video in the business, so as to meet the viewing needs of most users and improve the viewing experience of users.
在计算编码配置表之前,需要收集相关基础数据,基础数据及包含了上述不同码率与对应视频观看总时长的函数曲线,以及不同分辨率下,不同码率与对应视频质量参数的函数曲线。其中,定义不同码率与对应视频观看总时长的函数曲线为第一映射信息,定义不同分辨率下,不同码率与对应视频质量参数的函数曲线为第二映射信息。需要说明的是,上述映射信息可以使用函数曲线、 公式等形式进行表示,本申请实施例对映射信息的具体表达方式不做固定限制,在此不多赘述。Before calculating the encoding configuration table, it is necessary to collect relevant basic data, including the function curves of the above-mentioned different bit rates and the corresponding total video viewing time, as well as the function curves of different bit rates and corresponding video quality parameters under different resolutions. Among them, the first mapping information defines the function curves of different bit rates and the corresponding total video viewing time, and defines the function curves of different bit rates and corresponding video quality parameters under different resolutions as the second mapping information. It should be noted that the above mapping information may be expressed in forms such as function curves and formulas, and the embodiment of the present application does not impose fixed restrictions on the specific expression manner of the mapping information, so details will not be repeated here.
进一步地,在进行数据收集时,参照图2,分别进行第一映射信息和第二映射信息的获取。其中。对于第一映射信息,通过获取对应业务场景(如视频直播、视频输出等场景)中,用户的历史观看数据。历史观看数据中包含了不同用户观看不同码率视频的时长信息。基于该历史观看数据,确定所有用户在设定时间段内对各个不同码率的视频的观看总时长,对应一个码率值确定一个视频观看总时长,然后基于已确定的不同码率下的视频观看总时长,即可对应构建该第一映射信息。Further, when collecting data, referring to FIG. 2 , the first mapping information and the second mapping information are respectively acquired. in. For the first mapping information, historical viewing data of users in corresponding service scenarios (such as live video broadcast, video output, etc.) are acquired. The historical viewing data contains the duration information of different users watching videos with different bitrates. Based on the historical viewing data, determine the total viewing time of all users for videos with different bit rates within the set time period, determine the total viewing time of a video corresponding to a bit rate value, and then based on the determined video under different bit rates The first mapping information can be correspondingly constructed according to the total viewing time.
其中,视频观看总时长可以精确到秒,码率可以精确到100Kbps。时长和码率精度可以根据实际的业务特性进行调整,如在设计编码配置表时,需要码率精确到10Kbps,那么在此前收集数据时,就可以将码率粒度变成10Kbps。并且,由于用户观看不同视频时码率是变化的,因此以码率为横坐标,纵坐标是该码率下所有用户的视频观看总时长,以此构建该第一映射信息的函数曲线。Among them, the total viewing time of the video can be accurate to the second, and the bit rate can be accurate to 100Kbps. The duration and bit rate accuracy can be adjusted according to the actual business characteristics. For example, when designing the encoding configuration table, the bit rate needs to be accurate to 10Kbps, then when collecting data before, the bit rate granularity can be changed to 10Kbps. Moreover, since the code rate changes when users watch different videos, the abscissa is the code rate, and the ordinate is the total video viewing time of all users under the code rate, so as to construct the function curve of the first mapping information.
另一方面,对于第二映射信息,首先选取一批和后续视频编码配置时,在业务场景上相关联的视频。优选地,可以选取覆盖各种不同业务场景的视频,以确保后续编码配置可以适应不同业务场景。然后对获取到的视频按照不同分辨率、不同码率进行编码,以确定编码后视频的视频质量参数。On the other hand, for the second mapping information, first select a batch of videos associated with the subsequent video encoding configuration in the business scenario. Preferably, videos covering various business scenarios can be selected to ensure that subsequent encoding configurations can adapt to different business scenarios. Then the acquired video is encoded according to different resolutions and different bit rates, so as to determine the video quality parameters of the encoded video.
可选地,选取码率区间[100Kbps,3000Kbps],码率步长100Kbps进行多次不同分辨率的CBR(恒定比特率)编码。编码时的分辨率不能大于视频原始分辨率,例如分辨率720P的视频可以进行720P/540P/480P/360P分辨率的编码。具体编码分辨率可根据实际业务场景需要进行选择与调整。对这批视频进行编码后,即可计算各个视频的客观质量,即视频质量参数。视频质量参数可以使用PSNR(峰值信噪比)、SSIM(结构相似性)、VMAF(视频多方法评估融合)等评价方式确定,本申请实施例对具体的视频质量参数评价方式不做固定限制,在此不多赘述。以此,基于不同分辨率下、不同码率对应的视频质量参数,即可构建该第二映射信息的函数曲线。需要说明的是,第二映射信息对应每一个分辨率档位构建一个函数曲线,函数曲线中以码率为横坐标,纵坐标是该码率下的视频质量参数。Optionally, select a code rate interval [100Kbps, 3000Kbps], and perform CBR (constant bit rate) coding with different resolutions multiple times with a code rate step size of 100Kbps. The encoding resolution cannot be greater than the original resolution of the video. For example, a video with a resolution of 720P can be encoded at a resolution of 720P/540P/480P/360P. The specific encoding resolution can be selected and adjusted according to the needs of actual business scenarios. After encoding the batch of videos, the objective quality of each video, that is, the video quality parameter, can be calculated. Video quality parameters can be determined using evaluation methods such as PSNR (Peak Signal-to-Noise Ratio), SSIM (Structural Similarity), VMAF (Video Multi-Method Evaluation Fusion), and the embodiments of the present application do not make fixed restrictions on specific video quality parameter evaluation methods. I won't go into details here. In this way, based on the video quality parameters corresponding to different bit rates under different resolutions, the function curve of the second mapping information can be constructed. It should be noted that the second mapping information constructs a function curve corresponding to each resolution gear, in which the code rate is used as the abscissa, and the ordinate is the video quality parameter at the code rate.
S120、构建所有用户观看视频的总质量参数与第一映射信息以及第二映射信息的函数关系。S120. Construct a functional relationship between the total quality parameters of videos watched by all users and the first mapping information and the second mapping information.
进一步地,基于上述第一映射信息和第二映射信息,构建所有用户观看视频的总质量参数以上述映射信息的函数关系。本申请实施例定义所有用户在不同分辨率、不同码率、观看不同时长视频的视频质量参数之和为总质量参数,该总质量参数反映所有用户观看视频的总体情况。可以理解的是,总质量参数越高,表明全局用户观看视频的质量参数越高,得到的观看体验也就越好。后续依据该函数关系找到最大化总质量参数的目标分辨率和目标码率,即可用于视频编码配置,提供适宜、准确的视频编码配置效果,优化用户观看体验。Further, based on the above-mentioned first mapping information and the second mapping information, a functional relationship between the total quality parameters of videos watched by all users and the above-mentioned mapping information is constructed. The embodiment of the present application defines the sum of video quality parameters of all users watching videos of different resolutions, different bit rates, and different durations as the total quality parameter, and the total quality parameter reflects the overall situation of all users watching videos. It can be understood that the higher the total quality parameter, the higher the quality parameter of the video watched by global users, and the better the viewing experience obtained. Then find the target resolution and target bit rate that maximize the total quality parameters based on this functional relationship, which can be used for video encoding configuration, providing appropriate and accurate video encoding configuration effects, and optimizing user viewing experience.
其中,假设第一映射信息中不同码率与对应视频观看总时长满足函数关系:Among them, it is assumed that the different bit rates in the first mapping information and the total viewing time of the corresponding video satisfy a functional relationship:
watch_time=f(x)watch_time=f(x)
其中,watch_time表示对应码率下的视频观看总时长,x表示视频的码率,x∈(0,+∞)。Among them, watch_time indicates the total video viewing time under the corresponding bit rate, x indicates the bit rate of the video, x∈(0,+∞).
又假设第一映射信息中,不同分辨率下,不同码率与视频质量参数满足函数关系:It is also assumed that in the first mapping information, under different resolutions, different bit rates and video quality parameters satisfy a functional relationship:
quality=g(x)quality=g(x)
其中quality表示对应分辨率、码率下的视频质量参数,x表示视频的码率,x∈(0,+∞)。Where quality represents the video quality parameter corresponding to the resolution and bit rate, x represents the bit rate of the video, and x∈(0,+∞).
那么给定某个特定码率b Kbps,在该码率下,所有用户在设定时间观看视频的总质量参数可以表示为:Then given a specific code rate b Kbps, at this code rate, the total quality parameters of all users watching the video at the set time can be expressed as:
total_quality b=watch_time b*quality b=f(b)*g(b) total_quality b = watch_time b *quality b = f(b)*g(b)
其中total_quality表示总质量参数,f(b)表示视频码率为b Kbps时,用户的总观看时长;g(b)表示视频码率为bKbps时的视频质量参数。Wherein total_quality represents the total quality parameter, f(b) represents the total viewing time of the user when the video code rate is b Kbps; g(b) represents the video quality parameter when the video code rate is bKbps.
那么针对所有可能的视频码率值,所有用户整体观看视频的总质量参数可以表示为:Then, for all possible video bitrate values, the total quality parameters of all users watching videos as a whole can be expressed as:
Figure PCTCN2023070557-appb-000001
Figure PCTCN2023070557-appb-000001
在实际应用中,由于基础数据无法获取到连续的码率与用户观看总时长,以及码率与视频质量参数的函数,但是基于基础数据,能够得到离散的码率与用户观看总时长,以及码率与视频质量参数的函数。那么上述函数关系公式就可以表示为:In practical applications, due to the basic data, it is impossible to obtain the continuous bit rate and the total viewing time of the user, as well as the function of the bit rate and video quality parameters, but based on the basic data, it is possible to obtain the discrete bit rate and the total viewing time of the user, as well as the code function of rate and video quality parameters. Then the above functional relationship formula can be expressed as:
Figure PCTCN2023070557-appb-000002
Figure PCTCN2023070557-appb-000002
其中,total_quality表示总质量参数,x表示码率,取值区间为[n,m],f(x)表示第一映射信息,g(x)表示第二映射信息。Wherein, total_quality represents the total quality parameter, x represents the code rate, and the value interval is [n, m], f(x) represents the first mapping information, and g(x) represents the second mapping information.
本申请实施例的中,设定码率取值区间为[100Kbps,3000Kbps],则上述函数关系公式可退化为:In the embodiment of the present application, the code rate range is set to [100Kbps, 3000Kbps], then the above functional relationship formula can be degenerated into:
Figure PCTCN2023070557-appb-000003
Figure PCTCN2023070557-appb-000003
其中x表示视频码率,x∈[100,3000],为100的整数倍,单位Kbps。Where x represents the video code rate, x∈[100,3000] is an integer multiple of 100, and the unit is Kbps.
S130、基于函数关系遍历基础数据,确定总质量参数取值最大情况下的目标分辨率和对应的目标码率。S130. Traverse the basic data based on the functional relationship, and determine a target resolution and a corresponding target bit rate when the total quality parameter takes a maximum value.
基于上述函数关系公式,通过遍历预先收集的基础数据,将不同的第一映射信息和第二映射信息代入该函数关系公式,即可确定在总质量参数取值最大时,对应第一映射信息和第二映射信息中,分辨率和码率的取值。定义此时确定的分辨率为目标分辨率,对应的码率为目标码率,以用于后续的视频编码配置。Based on the above functional relationship formula, by traversing the pre-collected basic data, and substituting different first mapping information and second mapping information into the functional relationship formula, it can be determined that when the total quality parameter takes the largest value, the corresponding first mapping information and In the second mapping information, values of resolution and bit rate. The resolution determined at this time is defined as the target resolution, and the corresponding bit rate is the target bit rate for subsequent video encoding configuration.
具体地,为了便于后续视频编码配置,会预先设定不同码率档位,然后通过遍历上述函数关系确定在总质量参数取值最大时,各个码率档位下的码率值及分辨率值。以此构建不同码率档位的编码配置表,方便视频编码时基于对应档位进行编码配置,提升视频编码配置效率。Specifically, in order to facilitate the subsequent video encoding configuration, different bit rate gears are preset, and then the bit rate value and resolution value of each bit rate gear are determined when the total quality parameter takes the maximum value by traversing the above functional relationship . In this way, the encoding configuration table of different bit rate gears is constructed, which facilitates encoding configuration based on the corresponding gear during video encoding, and improves the efficiency of video encoding configuration.
如图3所示,不同码率档位下的目标分辨率和目标码率确定流程包括:As shown in Figure 3, the target resolution and target bit rate determination process under different bit rate gears includes:
S1301、根据预设定的码率档位数量信息及码率取值区间变换函数关系;S1301. According to the pre-set information on the number of code rate stalls and the code rate value range, transform the functional relationship;
S1302、基于变换后的函数关系遍历基础数据,确定在对应码率档位下,总质量参数取值最大时的目标分辨率和对应的目标码率。S1302. Traverse the basic data based on the transformed functional relationship, and determine the target resolution and the corresponding target code rate when the total quality parameter takes the maximum value under the corresponding code rate gear.
可以理解的是,在按照实际需求的码率档位数量,构建对应的码率值未知参数,然后代入函数关系中得到对应的分解公式,通过遍历基础数据即可确定在总质量参数取值最大时,各个码率档位下的码率值及分辨率值。It is understandable that, according to the number of bit rate gears actually required, the corresponding unknown parameters of the bit rate value are constructed, and then substituted into the functional relationship to obtain the corresponding decomposition formula. By traversing the basic data, it can be determined that the value of the total quality parameter is the largest. , the bitrate value and resolution value under each bitrate gear.
为了简化模型,假设用户为了观看视频时保持良好的视频流畅度,会采取保守的行为。即当用户的观看视频码率处于编码配置表某两个档位的编码码率之间时,会选择较低码率对应的档位进行观看;而当用户观看视频的码率低于编码配置表最低档位对应编码码率时,用户只能选择最低档位视频进行观看。To simplify the model, it is assumed that users will take conservative behaviors in order to maintain good video fluency while watching videos. That is, when the user's viewing video bit rate is between the encoding bit rates of two gears in the encoding configuration table, the gear corresponding to the lower bit rate will be selected for viewing; and when the user's viewing video bit rate is lower than the encoding configuration When the lowest gear in the table corresponds to the encoding bit rate, the user can only choose the lowest gear to watch the video.
则如果设计编码配置表中的最低档位对应码率为b lowKbps,最高档位对应码率为b highKbps,且满足关系100≤b low<b high≤3000,即码率取值区间[n,m]为 [100Kbps,3000Kbps],取值粒度为100,那么未来用户观看视频的总质量参数将变为: Then if the code rate corresponding to the lowest gear in the design code configuration table is b low Kbps, and the code rate corresponding to the highest gear is b high Kbps, and the relationship 100≤b low <b high ≤3000 is satisfied, that is, the code rate range [ n, m] is [100Kbps, 3000Kbps], and the value granularity is 100, then the total quality parameter of the user watching the video in the future will become:
Figure PCTCN2023070557-appb-000004
Figure PCTCN2023070557-appb-000004
可选地,设定码率档位包括预设定的第一档位和第二档位,第二档位的码率高于第一档位;在编码配置表中仅设置了两个不同的档位的情况下,最低档位对应码率为b low Kbps,最高档位对应码率为b high Kbps,那么未来用户观看视频的总质量参数为: Optionally, the set code rate gear includes a preset first gear and a second gear, and the code rate of the second gear is higher than the first gear; only two different gears are set in the encoding configuration table In the case of the gears, the lowest gear corresponds to a bit rate of b low Kbps, and the highest gear corresponds to a bit rate of b high Kbps, then the total quality parameter for users to watch videos in the future is:
Figure PCTCN2023070557-appb-000005
Figure PCTCN2023070557-appb-000005
将等号右边的前两项合并后,After combining the first two terms to the right of the equal sign,
则对应的,该函数关系的公式可变换为:Correspondingly, the formula of the functional relationship can be transformed into:
Figure PCTCN2023070557-appb-000006
Figure PCTCN2023070557-appb-000006
其中,b low表示第一档位的码率,b high表示第二档位的码率,码率取值区间为[100,3000],单位为Kbps。 Among them, b low represents the code rate of the first gear, b high represents the code rate of the second gear, and the value range of the code rate is [100,3000], and the unit is Kbps.
进一步地,为了设计出最大化用户整体观看画质的包含二档位的视频编码配置表,只需找到最大化上式时对应的最低档码率和最高档码率,也即:Further, in order to design a video encoding configuration table including two gears that maximizes the overall viewing quality of the user, it is only necessary to find the lowest and highest bit rate corresponding to the maximization of the above formula, that is:
Figure PCTCN2023070557-appb-000007
Figure PCTCN2023070557-appb-000007
可以理解的是,f(x)与g(x)分别对应上述第一映射信息和第二映射信息,由于基础数据均为一些离散的点对,因此无需通过数学方法找到上式总质量参数取值最大时对应的目标参数。只需遍历基础数据所有可能的情况,就能找到使用户整体观看画质最大时(即总质量参数最大时)的二档位编码配置表对应码率和分辨率。同理,对于三档位、四档位编码配置表或者不同分辨率的编码配置表也可以使用同样的方式进行设计,只是随着档位与分辨率的种类增多,遍历的数据量会几何倍数增加。实际应用中,为了便于视频编码配置,可设置较少数量的档位数目,使其计算量维持在一个可控且可接受的范围内。以此,完 成编码配置各个目标分辨率和对应码率的计算。It can be understood that f(x) and g(x) respectively correspond to the above-mentioned first mapping information and second mapping information. Since the basic data are some discrete point pairs, there is no need to use mathematical methods to find the total quality parameter of the above formula The target parameter corresponding to the maximum value. Only by traversing all possible situations of the basic data, you can find the bit rate and resolution corresponding to the second-level encoding configuration table when the user's overall viewing quality is the largest (that is, when the total quality parameter is the largest). In the same way, the same method can be used to design the three-level, four-level coding configuration tables or coding configuration tables with different resolutions, but as the types of gears and resolutions increase, the amount of traversed data will increase geometrically. Increase. In practical applications, in order to facilitate video encoding configuration, a smaller number of gears can be set to keep the calculation amount within a controllable and acceptable range. In this way, the calculation of each target resolution and corresponding bit rate of the encoding configuration is completed.
可选地,在进行目标分辨率和目标码率的确定过程中,还可以对应不同预设定的分辨率档位分别进行目标信息的计算。参照图4,不同分辨率档位下的目标分辨率和目标码率确定流程包括:Optionally, during the process of determining the target resolution and the target bit rate, the target information may also be calculated corresponding to different preset resolution levels. Referring to Figure 4, the target resolution and target bit rate determination process under different resolution gears includes:
S1303、结合预设定的分辨率档位以及对应的函数关系遍历基础数据;S1303, traversing the basic data in combination with the preset resolution gear and the corresponding functional relationship;
S1304、确定对应分辨率档位下,总质量参数取值最大时的目标码率,并以分辨率档位作为对应的目标分辨率。S1304. Determine the target code rate when the total quality parameter takes the maximum value under the corresponding resolution gear, and use the resolution gear as the corresponding target resolution.
可以理解的是,上述函数关系可以基于所有分辨率档位统一构建,也可以基于不同的分辨率档位分别对应构建。只是以此进行叠加的视频质量参数g(x)不同而已。而在结合预设定的分辨率档位以及对应的函数关系确定目标分辨率和目标码率时,同样参照上述函数关系,通过基础数据遍历,确定固定分辨率档位下,最大化总质量参数时的目标码率。此时计算总质量参数所使用的第二映射信息g(x),应当是该分辨率档位下的视频质量参数。对于目标分辨率,则以该对应分辨率进行取值。例如,当前分辨率档位为720P,则以720P作为目标分辨率。以此来确定目标分辨率和对应的目标码率。It can be understood that the above functional relationship can be constructed uniformly based on all resolution levels, or can be constructed correspondingly based on different resolution levels. Only the video quality parameter g(x) for overlaying is different. When determining the target resolution and target bit rate in combination with the preset resolution gear and the corresponding functional relationship, the above functional relationship is also referred to, and the basic data is traversed to determine the fixed resolution gear to maximize the total quality parameter. when the target bit rate. At this time, the second mapping information g(x) used for calculating the total quality parameter should be the video quality parameter at the resolution level. For the target resolution, the corresponding resolution is used to obtain the value. For example, if the current resolution is 720P, then 720P is used as the target resolution. In this way, the target resolution and the corresponding target bit rate are determined.
S140、基于目标分辨率和对应的目标码率进行视频编码配置。S140. Perform video encoding configuration based on the target resolution and the corresponding target bit rate.
最终,基于计算得到的目标分辨率和目标码率,在进行视频编码配置时,如图5所示,视频编码流程包括:Finally, based on the calculated target resolution and target bit rate, when performing video encoding configuration, as shown in Figure 5, the video encoding process includes:
S1401、基于目标分辨率和对应的目标码率构建编码配置表;S1401. Construct an encoding configuration table based on the target resolution and the corresponding target bit rate;
S1402、在进行视频编码配置时,基于当前视频的原始分辨率查询编码配置表,选择对应的目标码率进行当前视频的转码。S1402. When performing video encoding configuration, query the encoding configuration table based on the original resolution of the current video, and select a corresponding target bit rate to perform transcoding of the current video.
可以理解的是,编码配置表中包含了不同档位码率及对应的分辨率信息。根据原始视频分辨率,即可在编码配置表中找到相映射的目标码率,进而使用该码率进行视频编码,以使最终输出视频的画质达到相对最优,优化各个用户的视频观看体验。It can be understood that the encoding configuration table includes different gear rates and corresponding resolution information. According to the original video resolution, you can find the corresponding target bit rate in the encoding configuration table, and then use this bit rate for video encoding, so that the quality of the final output video can be relatively optimal and optimize the video viewing experience of each user .
此外,本申请实施例还通过确定用户端选择的档位信息,基于档位信息选择相应的目标分辨率和目标码率进行用户端的视频编码配置,档位信息包括分辨率档位和码率档位。用户端视频播放应用会预先对应编码配置表不同档位的码率和分辨率设置相映射的档位信息,以供用户选择适应自身需求,且播放画质达到相对最优的目标分辨率和目标码率。In addition, the embodiment of the present application also determines the gear information selected by the user terminal, and selects the corresponding target resolution and target bit rate based on the gear information to configure the video encoding of the user terminal. The gear information includes the resolution gear and the bit rate gear. bit. The user-side video playback application will pre-correspond to the gear information mapped to the bit rate and resolution settings of different gears in the encoding configuration table, so that users can choose to meet their own needs, and the playback quality can reach the relatively optimal target resolution and target code rate.
示例性的,参照图6,本申请实施例在进行视频编码时,首先进行基础数 据收集。收集相关业务视频一段时间内,用户观看视频码率的分布情况。并以横坐标为视频码率,纵坐标为用户在这段时间内以该码率观看视频的总时长,绘制出用户观看分布曲线(即第一映射信息),用于表征这段时间内的用户的网络状况及偏好。另外,通过采集一批能代表实际业务场景的视频,按照不同的分辨率、码率进行多次编码,并计算视频质量参数。以码率为横坐标,视频质量参数为纵坐标,为不同分辨率绘制出不同的客观质量曲线(即第二映射信息)。Exemplarily, referring to FIG. 6, the embodiment of the present application first collects basic data when performing video encoding. Collects the distribution of video bitrates watched by users over a period of time related to business videos. And take the abscissa as the video code rate, and the ordinate as the total time that the user watches the video with this code rate during this period, and draws the user's viewing distribution curve (i.e. the first mapping information), which is used to characterize the video during this period. The user's network conditions and preferences. In addition, by collecting a batch of videos that can represent actual business scenarios, multiple encodings are performed according to different resolutions and bit rates, and video quality parameters are calculated. With the code rate as the abscissa and the video quality parameter as the ordinate, different objective quality curves (that is, the second mapping information) are drawn for different resolutions.
然后结合用户观看分布曲线和不同分辨率的客观质量曲线,根据实际业务场景需要的不同档位数目,计算出使得用户观看视频总质量参数最大的编码配置表,编码配置表主要包含视频的编码分辨率信息和编码码率信息。Then, combined with the user viewing distribution curve and the objective quality curves of different resolutions, and according to the number of different gears required by the actual business scenario, the encoding configuration table that maximizes the total quality parameters of the video watched by the user is calculated. The encoding configuration table mainly includes the encoding resolution of the video. Rate information and code rate information.
最后根据得到的编码配置表,对业务场景中的视频进行编码,得到不同档位的视频。以此,用户即可根据自己需求选择合适的档位进行观看。通过设置最大化用户整体观看画质的视频编码配置表,结合用户观看视频的码率时长分布与视频客观质量曲线,计算出最大化用户观看视频质量的编码配置表,对源视频进行分档位转码,从而满足大部分用户的观看需求。Finally, according to the obtained encoding configuration table, the video in the business scenario is encoded to obtain videos of different gears. In this way, users can choose the appropriate gear to watch according to their needs. By setting the video encoding configuration table that maximizes the overall viewing quality of the user, combined with the bit rate time distribution of the user watching the video and the objective quality curve of the video, the encoding configuration table that maximizes the quality of the video watched by the user is calculated, and the source video is divided into gears. Transcoding to meet the viewing needs of most users.
上述,通过收集基础数据,基础数据包括不同码率与对应视频观看总时长的第一映射信息,以及不同分辨率下,不同码率与对应视频质量参数的第二映射信息;构建所有用户观看视频的总质量参数与第一映射信息以及第二映射信息的函数关系;基于函数关系遍历基础数据,确定总质量参数取值最大情况下的目标分辨率和对应的目标码率;基于目标分辨率和对应的目标码率进行视频编码配置。采用上述技术手段,通过遍历基础数据优选目标分辨率和对应的目标码率,以此可以准确、合理进行视频编码配置,提供较优的视频质量,进而优化用户的视频观看体验。As mentioned above, by collecting the basic data, the basic data includes the first mapping information of different bit rates and the corresponding total video viewing time, and the second mapping information of different bit rates and corresponding video quality parameters under different resolutions; build all users to watch video The functional relationship between the total quality parameter of the total quality parameter and the first mapping information and the second mapping information; traverse the basic data based on the functional relationship, and determine the target resolution and the corresponding target bit rate under the maximum value of the total quality parameter; based on the target resolution and The corresponding target bit rate is configured for video encoding. Using the above-mentioned technical means, by traversing the basic data to optimize the target resolution and the corresponding target bit rate, video encoding configuration can be performed accurately and reasonably, providing better video quality, and further optimizing the user's video viewing experience.
在上述实施例的基础上,图7为本申请提供的一种视频编码配置系统的结构示意图。参考图7,本实施例提供的视频编码配置系统具体包括:收集模块21、构建模块22、遍历模块23和配置模块24。On the basis of the foregoing embodiments, FIG. 7 is a schematic structural diagram of a video encoding configuration system provided by the present application. Referring to FIG. 7 , the video encoding configuration system provided in this embodiment specifically includes: a collection module 21 , a construction module 22 , a traversal module 23 and a configuration module 24 .
其中,收集模块21用于收集基础数据,基础数据包括不同码率与对应视频观看总时长的第一映射信息,以及不同分辨率下,不同码率与对应视频质量参数的第二映射信息;Wherein, the collection module 21 is used to collect basic data, and the basic data includes the first mapping information of different code rates and corresponding video viewing total duration, and the second mapping information of different code rates and corresponding video quality parameters under different resolutions;
构建模块22用于构建所有用户观看视频的总质量参数与第一映射信息以及第二映射信息的函数关系; Construction module 22 is used for constructing the functional relation of the total quality parameter of all users watching video and the first mapping information and the second mapping information;
遍历模块23用于基于函数关系遍历基础数据,确定总质量参数取值最大情况下的目标分辨率和对应的目标码率;The traversal module 23 is used to traverse the basic data based on the functional relationship, and determine the target resolution and the corresponding target code rate under the maximum value of the total quality parameter;
配置模块24用于基于目标分辨率和对应的目标码率进行视频编码配置。The configuration module 24 is configured to perform video encoding configuration based on the target resolution and the corresponding target bit rate.
其中,遍历模块23具体用于根据预设定的码率档位数量信息及码率取值区间变换函数关系;基于变换后的函数关系遍历基础数据,确定在对应码率档位下,总质量参数取值最大时的目标分辨率和对应的目标码率。Wherein, the traversal module 23 is specifically used to transform the functional relationship according to the preset code rate gear quantity information and the code rate value interval; traverse the basic data based on the transformed functional relationship, and determine the total quality under the corresponding code rate gear. The target resolution and the corresponding target bit rate when the parameter takes the maximum value.
函数关系的公式为:The formula for the functional relationship is:
Figure PCTCN2023070557-appb-000008
Figure PCTCN2023070557-appb-000008
其中,total_quality表示总质量参数,x表示码率,取值区间为[n,m],f(x)表示第一映射信息,g(x)表示第二映射信息。Wherein, total_quality represents the total quality parameter, x represents the code rate, and the value interval is [n, m], f(x) represents the first mapping information, and g(x) represents the second mapping information.
遍历模块23具体用于结合预设定的分辨率档位以及对应的函数关系遍历基础数据;确定对应分辨率档位下,总质量参数取值最大时的目标码率,并以分辨率档位作为对应的目标分辨率。The traversal module 23 is specifically used to traverse the basic data in combination with the preset resolution gear and the corresponding functional relationship; determine the target code rate when the total quality parameter takes the maximum value under the corresponding resolution gear, and use the resolution gear as the corresponding target resolution.
其中,码率档位包括预设定的第一档位和第二档位,第二档位的码率高于第一档位;Wherein, the code rate gear includes a preset first gear and a second gear, and the code rate of the second gear is higher than that of the first gear;
对应的,变换后函数关系的公式为:Correspondingly, the formula of the transformed functional relationship is:
Figure PCTCN2023070557-appb-000009
Figure PCTCN2023070557-appb-000009
其中,b low表示第一档位的码率,b high表示第二档位的码率,码率取值区间为[n,m],单位为Kbps,取值粒度为c。 Among them, b low represents the code rate of the first gear, b high represents the code rate of the second gear, the code rate range is [n, m], the unit is Kbps, and the value granularity is c.
此外,配置模块24具体用于确定用户端选择的档位信息,基于档位信息选择相应的目标分辨率和目标码率进行用户端的视频编码配置,档位信息包括分辨率档位和码率档位;In addition, the configuration module 24 is specifically used to determine the gear information selected by the user terminal, and select the corresponding target resolution and target bit rate based on the gear information to configure the video encoding of the user terminal. The gear information includes the resolution gear and the bit rate gear. bit;
基于目标分辨率和对应的目标码率构建编码配置表;在进行视频编码配置时,基于当前视频的原始分辨率查询编码配置表,选择对应的目标码率进行当前视频的转码。Construct the encoding configuration table based on the target resolution and the corresponding target bit rate; when performing video encoding configuration, query the encoding configuration table based on the original resolution of the current video, and select the corresponding target bit rate to transcode the current video.
上述,通过收集基础数据,基础数据包括不同码率与对应视频观看总时长的第一映射信息,以及不同分辨率下,不同码率与对应视频质量参数的第二映射信息;构建所有用户观看视频的总质量参数与第一映射信息以及第二映射信息的函数关系;基于函数关系遍历基础数据,确定总质量参数取值最大情况下 的目标分辨率和对应的目标码率;基于目标分辨率和对应的目标码率进行视频编码配置。采用上述技术手段,通过遍历基础数据优选目标分辨率和对应的目标码率,以此可以准确、合理进行视频编码配置,提供较优的视频质量,进而优化用户的视频观看体验。As mentioned above, by collecting the basic data, the basic data includes the first mapping information of different bit rates and the corresponding total video viewing time, and the second mapping information of different bit rates and corresponding video quality parameters under different resolutions; build all users to watch video The functional relationship between the total quality parameter of the total quality parameter and the first mapping information and the second mapping information; traverse the basic data based on the functional relationship, and determine the target resolution and the corresponding target bit rate under the maximum value of the total quality parameter; based on the target resolution and The corresponding target bit rate is configured for video encoding. Using the above-mentioned technical means, by traversing the basic data to optimize the target resolution and the corresponding target bit rate, video encoding configuration can be performed accurately and reasonably, providing better video quality, and further optimizing the user's video viewing experience.
本申请实施例提供的视频编码配置系统可以用于执行上述实施例提供的视频编码配置方法,具备相应的功能和有益效果。The video coding configuration system provided in the embodiment of the present application can be used to execute the video coding configuration method provided in the above embodiment, and has corresponding functions and beneficial effects.
在上述实际上例的基础上,本申请实施例还提供了一种视频编码配置设备,参照图8,该视频编码配置设备包括:处理器31、存储器32、通信模块33、输入装置34及输出装置35。存储器32作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请任意实施例所述的视频编码配置方法对应的程序指令/模块(例如,视频编码配置系统中的收集模块、构建模块、遍历模块和配置模块)。通信模块33用于进行数据传输。处理器31通过运行存储在存储器中的软件程序、指令以及模块,从而执行设备的各种功能应用以及数据处理,即实现上述的视频编码配置方法。输入装置34可用于接收输入的数字或字符信息,以及产生与设备的用户设置以及功能控制有关的键信号输入。输出装置35可包括显示屏等显示设备。上述提供的视频编码配置设备可用于执行上述实施例提供的视频编码配置方法,具备相应的功能和有益效果。On the basis of the above practical example, the embodiment of the present application also provides a video coding configuration device, referring to FIG. Device 35. The memory 32, as a computer-readable storage medium, can be used to store software programs, computer-executable programs and modules, such as program instructions/modules corresponding to the video encoding configuration method described in any embodiment of the present application (for example, video encoding configuration system collection module, building module, traversal module, and configuration module) in . The communication module 33 is used for data transmission. The processor 31 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory, that is, realizes the above-mentioned video encoding configuration method. The input device 34 can be used for receiving inputted numerical or character information, and generating key signal input related to user setting and function control of the device. The output device 35 may include a display device such as a display screen. The video coding configuration device provided above can be used to execute the video coding configuration method provided in the above embodiment, and has corresponding functions and beneficial effects.
在上述实施例的基础上,本申请实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种视频编码配置方法,存储介质可以是任何的各种类型的存储器设备或存储设备。当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的视频编码配置方法,还可以执行本申请任意实施例所提供的视频编码配置方法中的相关操作。On the basis of the above-mentioned embodiments, the embodiments of the present application also provide a storage medium containing computer-executable instructions, the computer-executable instructions are used to execute a video encoding configuration method when executed by a computer processor, and the storage medium It can be any of various types of memory devices or storage devices. Of course, a storage medium containing computer-executable instructions provided in the embodiments of the present application, the computer-executable instructions are not limited to the above-mentioned video encoding configuration method, and may also implement the video encoding configuration provided in any embodiment of the application Related operations in the method.
上述仅为本申请的较佳实施例及所运用的技术原理。本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行的各种明显变化、重新调整及替代均不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由权利要求的范围决定。The above are only preferred embodiments of the present application and the applied technical principles. The present application is not limited to the specific embodiments described here, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not depart from the protection scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present application, and the present application The scope is determined by the scope of the claims.

Claims (10)

  1. 一种视频编码配置方法,其特征在于,包括:A video coding configuration method, characterized in that, comprising:
    收集基础数据,所述基础数据包括不同码率与对应视频观看总时长的第一映射信息,以及不同分辨率下,不同码率与对应视频质量参数的第二映射信息;collecting basic data, the basic data including the first mapping information of different bit rates and corresponding video viewing total duration, and the second mapping information of different bit rates and corresponding video quality parameters under different resolutions;
    构建所有用户观看视频的总质量参数与所述第一映射信息以及所述第二映射信息的函数关系;Constructing the functional relationship between the total quality parameters of all users watching videos and the first mapping information and the second mapping information;
    基于所述函数关系遍历所述基础数据,确定所述总质量参数取值最大情况下的目标分辨率和对应的目标码率;Traverse the basic data based on the functional relationship, and determine a target resolution and a corresponding target bit rate when the total quality parameter takes a maximum value;
    基于所述目标分辨率和对应的所述目标码率进行视频编码配置。Perform video encoding configuration based on the target resolution and the corresponding target bit rate.
  2. 根据权利要求1所述的视频编码配置方法,其特征在于,所述基于所述函数关系遍历所述基础数据,确定所述总质量参数取值最大情况下的目标分辨率和对应的目标码率,包括:The video encoding configuration method according to claim 1, wherein the basic data is traversed based on the functional relationship, and the target resolution and the corresponding target bit rate are determined when the total quality parameter takes the maximum value ,include:
    根据预设定的码率档位数量信息及码率取值区间变换所述函数关系;Transforming the functional relationship according to the preset code rate stall number information and code rate value interval;
    基于变换后的所述函数关系遍历所述基础数据,确定在对应码率档位下,所述总质量参数取值最大时的目标分辨率和对应的目标码率。Traverse the basic data based on the transformed functional relationship, and determine a target resolution and a corresponding target code rate when the total quality parameter takes a maximum value under a corresponding code rate gear.
  3. 根据权利要求2所述的视频编码配置方法,其特征在于,所述函数关系的公式为:The video coding configuration method according to claim 2, wherein the formula of the functional relationship is:
    Figure PCTCN2023070557-appb-100001
    Figure PCTCN2023070557-appb-100001
    其中,total_quality表示所述总质量参数,x表示码率,取值区间为[n,m],f(x)表示所述第一映射信息,g(x)表示所述第二映射信息。Wherein, total_quality represents the total quality parameter, x represents a code rate, and the value range is [n, m], f(x) represents the first mapping information, and g(x) represents the second mapping information.
  4. 根据权利要求3所述的视频编码配置方法,其特征在于,所述基于所述函数关系遍历所述基础数据,确定所述总质量参数取值最大情况下的目标分辨率和对应的目标码率,包括:The video encoding configuration method according to claim 3, wherein the basic data is traversed based on the functional relationship, and the target resolution and the corresponding target bit rate are determined when the total quality parameter takes the maximum value ,include:
    结合预设定的分辨率档位以及对应的所述函数关系遍历所述基础数据;Combining the preset resolution gear and the corresponding functional relationship to traverse the basic data;
    确定对应分辨率档位下,所述总质量参数取值最大时的目标码率,并以所述分辨率档位作为对应的目标分辨率。Determine the target code rate when the total quality parameter takes the maximum value under the corresponding resolution gear, and use the resolution gear as the corresponding target resolution.
  5. 根据权利要求4所述的视频编码配置方法,其特征在于,所述码率档位包括预设定的第一档位和第二档位,所述第二档位的码率高于所述第一档位;The video encoding configuration method according to claim 4, wherein the code rate gear includes a preset first gear and a second gear, and the code rate of the second gear is higher than the first gear;
    对应的,变换后所述函数关系的公式为:Correspondingly, the formula of the functional relationship after transformation is:
    Figure PCTCN2023070557-appb-100002
    Figure PCTCN2023070557-appb-100002
    其中,b low表示所述第一档位的码率,b high表示所述第二档位的码率,码率取值区间为[n,m],单位为Kbps,取值粒度为c。 Wherein, b low represents the code rate of the first gear, b high represents the code rate of the second gear, the code rate range is [n, m], the unit is Kbps, and the value granularity is c.
  6. 根据权利要求4所述的视频编码配置方法,其特征在于,所述基于所述目标分辨率和对应的所述目标码率进行视频编码配置,包括:The video coding configuration method according to claim 4, wherein the video coding configuration based on the target resolution and the corresponding target bit rate includes:
    确定用户端选择的档位信息,基于所述档位信息选择相应的目标分辨率和目标码率进行所述用户端的视频编码配置,所述档位信息包括分辨率档位和码率档位。Determine the gear information selected by the user terminal, and select a corresponding target resolution and target bit rate based on the gear information to perform video encoding configuration on the user end, where the gear information includes a resolution gear and a code rate gear.
  7. 根据权利要求1所述的视频编码配置方法,其特征在于,所述基于所述目标分辨率和对应的所述目标码率进行视频编码配置,还包括:The video encoding configuration method according to claim 1, wherein the performing video encoding configuration based on the target resolution and the corresponding target bit rate further comprises:
    基于所述目标分辨率和对应的所述目标码率构建编码配置表;Constructing an encoding configuration table based on the target resolution and the corresponding target bit rate;
    在进行视频编码配置时,基于当前视频的原始分辨率查询所述编码配置表,选择对应的目标码率进行当前视频的转码。When performing video encoding configuration, the encoding configuration table is queried based on the original resolution of the current video, and a corresponding target bit rate is selected for transcoding of the current video.
  8. 一种视频编码配置系统,其特征在于,包括:A video coding configuration system, characterized in that it includes:
    收集模块,用于收集基础数据,所述基础数据包括不同码率与对应视频观看总时长的第一映射信息,以及不同分辨率下,不同码率与对应视频质量参数的第二映射信息;The collection module is used to collect basic data, and the basic data includes first mapping information of different bit rates and corresponding video viewing total duration, and second mapping information of different bit rates and corresponding video quality parameters under different resolutions;
    构建模块,用于构建所有用户观看视频的总质量参数与所述第一映射信息以及所述第二映射信息的函数关系;A building block for building a functional relationship between the total quality parameters of all users watching videos and the first mapping information and the second mapping information;
    遍历模块,用于基于所述函数关系遍历所述基础数据,确定所述总质量参数取值最大情况下的目标分辨率和对应的目标码率;A traversal module, configured to traverse the basic data based on the functional relationship, and determine a target resolution and a corresponding target bit rate when the total quality parameter takes a maximum value;
    配置模块,用于基于所述目标分辨率和对应的所述目标码率进行视频编码配置。A configuration module, configured to perform video encoding configuration based on the target resolution and the corresponding target bit rate.
  9. 一种视频编码配置设备,其特征在于,包括:A video encoding configuration device, characterized in that it includes:
    存储器以及一个或多个处理器;memory and one or more processors;
    所述存储器,用于存储一个或多个程序;The memory is used to store one or more programs;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-7任一所述的视频编码配置方法。When the one or more programs are executed by the one or more processors, the one or more processors are made to implement the video encoding configuration method according to any one of claims 1-7.
  10. 一种包含计算机可执行指令的存储介质,其特征在于,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-7任一所述的视频编码配置方法。A storage medium containing computer-executable instructions, wherein the computer-executable instructions are used to execute the video encoding configuration method according to any one of claims 1-7 when executed by a computer processor.
PCT/CN2023/070557 2022-01-14 2023-01-04 Video coding configuration method, system and device, and storage medium WO2023134524A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210044704.3 2022-01-14
CN202210044704.3A CN114554208A (en) 2022-01-14 2022-01-14 Video coding configuration method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023134524A1 true WO2023134524A1 (en) 2023-07-20

Family

ID=81671729

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/070557 WO2023134524A1 (en) 2022-01-14 2023-01-04 Video coding configuration method, system and device, and storage medium

Country Status (2)

Country Link
CN (1) CN114554208A (en)
WO (1) WO2023134524A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554208A (en) * 2022-01-14 2022-05-27 百果园技术(新加坡)有限公司 Video coding configuration method, system, equipment and storage medium
CN116962757B (en) * 2023-09-20 2023-12-12 腾讯科技(深圳)有限公司 Video code rate grade determining method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769754A (en) * 2018-05-14 2018-11-06 中国科学院计算技术研究所 A kind of video playback method and system based on video playback terminal
CN110719457A (en) * 2019-09-17 2020-01-21 北京达佳互联信息技术有限公司 Video coding method and device, electronic equipment and storage medium
CN111031347A (en) * 2019-11-29 2020-04-17 广州市百果园信息技术有限公司 Video processing method and device, electronic equipment and storage medium
US11128869B1 (en) * 2018-10-22 2021-09-21 Bitmovin, Inc. Video encoding based on customized bitrate table
WO2022001559A1 (en) * 2020-06-29 2022-01-06 北京金山云网络技术有限公司 Video encoding method and apparatus, electronic device and machine-readable storage medium
CN114554208A (en) * 2022-01-14 2022-05-27 百果园技术(新加坡)有限公司 Video coding configuration method, system, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769754A (en) * 2018-05-14 2018-11-06 中国科学院计算技术研究所 A kind of video playback method and system based on video playback terminal
US11128869B1 (en) * 2018-10-22 2021-09-21 Bitmovin, Inc. Video encoding based on customized bitrate table
CN110719457A (en) * 2019-09-17 2020-01-21 北京达佳互联信息技术有限公司 Video coding method and device, electronic equipment and storage medium
CN111031347A (en) * 2019-11-29 2020-04-17 广州市百果园信息技术有限公司 Video processing method and device, electronic equipment and storage medium
WO2022001559A1 (en) * 2020-06-29 2022-01-06 北京金山云网络技术有限公司 Video encoding method and apparatus, electronic device and machine-readable storage medium
CN114554208A (en) * 2022-01-14 2022-05-27 百果园技术(新加坡)有限公司 Video coding configuration method, system, equipment and storage medium

Also Published As

Publication number Publication date
CN114554208A (en) 2022-05-27

Similar Documents

Publication Publication Date Title
WO2023134524A1 (en) Video coding configuration method, system and device, and storage medium
CN105847807B (en) For optimizing computer system, the method for the coding of input video
CN105187835B (en) Adaptive video code-transferring method and device based on content
CN102802089B (en) Shifting video code rate regulation method based on experience qualitative forecast
CN103975601B (en) The rate distortion complexity optimization of Video coding
US10491911B2 (en) Transcoding on-the-fly (TOTF)
CN102868666B (en) Based on the implementation method of the mutual stream media quality Surveillance of Consumer&#39;s Experience
CN106331711B (en) A kind of dynamic code rate control method based on network characterization and video features
US20130304934A1 (en) Methods and systems for controlling quality of a media session
CN109286855A (en) Transmission method, transmitting device and the Transmission system of panoramic video
CN101951331B (en) Digital household network multimedia sharing system and sharing method thereof
Li et al. Joint communication and computational resource allocation for qoe-driven point cloud video streaming
WO2023134523A1 (en) Content adaptive video coding method and apparatus, device and storage medium
CN111669617A (en) Live video stream transmission method based on intelligent edge
WO2023142591A1 (en) Video encoding method and apparatus, video decoding method and apparatus, computer device, and storage medium
WO2015085873A1 (en) Video code stream obtaining method and apparatus
CN108810468B (en) Video transmission device and method for optimizing display effect
WO2024017106A1 (en) Code table updating method, apparatus, and device, and storage medium
CN108769754B (en) Video playback method and system based on video playback terminal
Yang et al. Sur-driven video coding rate control for jointly optimizing perceptual quality and buffer control
CN112437301B (en) Code rate control method and device for visual analysis, storage medium and terminal
WO2014066975A1 (en) Methods and systems for controlling quality of a media session
JP2021100243A (en) Image storage service provision method, computer program, and computing device
WO2023202159A1 (en) Video playing methods and apparatuses
CN114025190B (en) Multi-code rate scheduling method and multi-code rate scheduling device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23739868

Country of ref document: EP

Kind code of ref document: A1