[go: up one dir, main page]

CN118803245B - Bit rate determination method and device, electronic device and storage medium - Google Patents

Bit rate determination method and device, electronic device and storage medium Download PDF

Info

Publication number
CN118803245B
CN118803245B CN202411252730.0A CN202411252730A CN118803245B CN 118803245 B CN118803245 B CN 118803245B CN 202411252730 A CN202411252730 A CN 202411252730A CN 118803245 B CN118803245 B CN 118803245B
Authority
CN
China
Prior art keywords
bit rate
resolution
noise ratio
peak signal
image quality
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202411252730.0A
Other languages
Chinese (zh)
Other versions
CN118803245A (en
Inventor
蔡华元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haima Cloud Tianjin Information Technology Co Ltd
Original Assignee
Haima Cloud Tianjin Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Haima Cloud Tianjin Information Technology Co Ltd filed Critical Haima Cloud Tianjin Information Technology Co Ltd
Priority to CN202411252730.0A priority Critical patent/CN118803245B/en
Publication of CN118803245A publication Critical patent/CN118803245A/en
Application granted granted Critical
Publication of CN118803245B publication Critical patent/CN118803245B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234381Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by altering the temporal resolution, e.g. decreasing the frame rate by frame skipping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440281Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping

Landscapes

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

Abstract

本申请提供了一种码率确定方法与装置、电子设备及存储介质,方法包括:获取目标峰值信噪比范围,根据所述目标峰值信噪比范围确定物理分辨率和码率的关系,其中,在指定参考分辨率和参考码率的情况下,物理分辨率和码率通过目标调整因子进行关系表达,所述目标调整因子为指定值或根据所述参考码率确定,根据所述参考分辨率和参考码率确定出的峰值信噪比属于所述目标峰值信噪比范围;获取终端设备的物理分辨率,根据所述终端设备的物理分辨率,以及物理分辨率和码率的关系确定出适配所述终端设备的码率,能根据终端设备的分辨率确定出适配终端设备的码率。

The present application provides a method and device for determining a bit rate, an electronic device, and a storage medium. The method includes: obtaining a target peak signal-to-noise ratio range, and determining a relationship between a physical resolution and a bit rate according to the target peak signal-to-noise ratio range, wherein, in the case of specifying a reference resolution and a reference bit rate, the physical resolution and the bit rate are expressed in relationship through a target adjustment factor, the target adjustment factor is a specified value or is determined according to the reference bit rate, and a peak signal-to-noise ratio determined according to the reference resolution and the reference bit rate belongs to the target peak signal-to-noise ratio range; obtaining a physical resolution of a terminal device, and determining a bit rate adapted to the terminal device according to the physical resolution of the terminal device and the relationship between the physical resolution and the bit rate, and being able to determine a bit rate adapted to the terminal device according to the resolution of the terminal device.

Description

Code rate determining method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus for determining a code rate, an electronic device, and a storage medium.
Background
Cloud application (such as cloud game) is an application mode based on cloud computing technology, a user is connected to a cloud server through a network, the cloud server runs the application in real time, and application pictures are encoded and compressed through an encoder and then transmitted to terminal equipment of the user in a video stream mode. The input instruction of the user is also transmitted to the cloud server through the network so as to perform real-time interaction. The mode greatly reduces the hardware requirement on the user terminal equipment, so that the user terminal equipment can experience high-quality application only by having basic video decoding capability and network connection capability. The volume of the video can be obviously reduced through coding compression, and the storage and network transmission of the video are convenient. The coding rate is the data flow used in the unit time of the video file, and is set when the coder codes. The code rate is taken as an important parameter of video coding compression and is directly related to the image quality, network transmission and video storage of video.
There are many terminal devices that can currently use cloud applications, such as mobile phones, televisions, vehicle-mounted devices, and the like, and there is often a difference in physical resolution between different terminal devices. How to select a reasonable code rate according to the physical resolution of the terminal equipment becomes a technical problem to be solved.
Disclosure of Invention
Aiming at the technical problems existing in the prior art, the embodiment of the application provides a code rate determining method and device, electronic equipment and a storage medium.
In a first aspect, an embodiment of the present application provides a method for determining a code rate, including:
Acquiring a target peak signal-to-noise ratio range, and determining a relation between physical resolution and code rate according to the target peak signal-to-noise ratio range, wherein under the condition of designating reference resolution and reference code rate, the physical resolution and the code rate are expressed in relation through a target adjustment factor, the target adjustment factor is designated value or is determined according to the reference code rate, and the peak signal-to-noise ratio determined according to the reference resolution and the reference code rate belongs to the target peak signal-to-noise ratio range;
And acquiring the physical resolution of the terminal equipment, and determining the code rate adapted to the terminal equipment according to the physical resolution of the terminal equipment and the relation between the physical resolution and the code rate.
In a second aspect, an embodiment of the present application further provides a code rate determining apparatus, including:
The first determining unit is used for obtaining a target peak signal-to-noise ratio range, determining the relation between the physical resolution and the code rate according to the target peak signal-to-noise ratio range, wherein under the condition of designating a reference resolution and a reference code rate, the physical resolution and the code rate are expressed in relation through a target adjustment factor, the target adjustment factor is designated value or is determined according to the reference code rate, and the peak signal-to-noise ratio determined according to the reference resolution and the reference code rate belongs to the target peak signal-to-noise ratio range;
And the second determining unit is used for acquiring the physical resolution of the terminal equipment and determining the code rate suitable for the terminal equipment according to the physical resolution of the terminal equipment and the relation between the physical resolution and the code rate.
In a third aspect, embodiments of the present application also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the code rate determination method according to the first aspect.
In a fourth aspect, an embodiment of the present application further provides an electronic device, including a processor, a storage medium, and a bus, where the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the code rate determining method according to the first aspect.
In the above scheme, the finally determined code rate is determined based on the relationship between the physical resolution and the code rate, the relationship between the physical resolution and the code rate is determined based on the appointed reference resolution, the reference code rate and the target adjustment factor, and the peak signal-to-noise ratio determined according to the reference resolution and the reference code rate belongs to the target peak signal-to-noise ratio range, so that the cloud server obtains the cloud application video according to the finally determined code rate code, and after pushing the cloud application video to the terminal equipment, the image quality of the cloud application video played by the terminal equipment can meet the definition requirement.
Drawings
Fig. 1 is a flowchart of an embodiment of a code rate determining method according to an embodiment of the present application;
Fig. 2 is a schematic structural diagram of an embodiment of a code rate determining apparatus according to an embodiment of the present application;
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for the purpose of illustration and description only and are not intended to limit the scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. A flowchart, as used in this disclosure, illustrates operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to or removed from the flow diagrams by those skilled in the art under the direction of the present disclosure.
In addition, the described embodiments are only some, but not all, embodiments of the application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that the term "comprising" will be used in embodiments of the application to indicate the presence of the features stated hereafter, but not to exclude the addition of other features.
Referring to fig. 1, a flow chart of a code rate determining method according to an embodiment of the present application is shown, where the method includes:
S10, acquiring a target peak signal-to-noise ratio range, and determining a relation between physical resolution and code rate according to the target peak signal-to-noise ratio range, wherein under the condition of designating reference resolution and reference code rate, the physical resolution and the code rate are expressed in a relation way through a target adjustment factor, the target adjustment factor is designated value or is determined according to the reference code rate, and the peak signal-to-noise ratio determined according to the reference resolution and the reference code rate belongs to the target peak signal-to-noise ratio range;
In this embodiment, it should be noted that the target peak snr range may be set to a value range of the peak snr psnr (for example, 40dB-41 dB) or a specific psnr value (for example, 40 dB) according to the requirement, that is, the target peak snr range includes at least one psnr value. Under the condition of designating the reference resolution, a peak signal-to-noise ratio range corresponds to a relationship between physical resolution and code rate, and after determining the target peak signal-to-noise ratio range, the relationship between the physical resolution and the code rate corresponding to the target peak signal-to-noise ratio range can be determined through the corresponding relationship. In order to obtain the relationship of the physical resolution and the code rate, it is necessary to specify the reference resolution and the reference code rate and determine the target adjustment factor, that is, the relationship of the physical resolution and the code rate can be exhibited by the reference resolution, the reference code rate, and the target adjustment factor. The target adjustment factor may be a specified value (such as 1.2) or determined from the target peak signal-to-noise ratio range.
S11, acquiring physical resolution of the terminal equipment, and determining the code rate adapted to the terminal equipment according to the physical resolution of the terminal equipment and the relation between the physical resolution and the code rate.
In this embodiment, it should be noted that, after the relationship between the physical resolution and the code rate is determined, the physical resolution of the terminal device is substituted into the relationship, so as to obtain the code rate adapted to the terminal device. The cloud server encodes cloud application pictures generated in the cloud application running process by using the code rate of the adaptive terminal equipment and then pushes the encoded cloud application pictures to the terminal equipment, the terminal equipment decodes and plays the encoded video data, and the psnr of the played video belongs to the target peak signal-to-noise ratio range.
According to the code rate determining method provided by the embodiment of the application, the finally determined code rate is determined based on the relation between the physical resolution and the code rate, the relation between the physical resolution and the code rate is determined based on the appointed reference resolution, the reference code rate and the target adjustment factor, and the peak signal-to-noise ratio determined according to the reference resolution and the reference code rate belongs to the target peak signal-to-noise ratio range, so that the cloud server obtains the cloud application video according to the finally determined code rate, and the image quality of the cloud application video played by the terminal equipment can meet the definition requirement after the cloud application video is pushed to the terminal equipment.
On the basis of the foregoing method embodiment, the calculating process of the target adjustment factor may include:
Obtaining a minimum code rate in a plurality of pieces of first image quality evaluation data as a reference code rate, obtaining a plurality of adjustment factors based on the relation among the reference resolution, the reference code rate, the physical resolution and the code rate and a plurality of pieces of second image quality evaluation data, wherein each piece of first image quality evaluation data comprises a video resolution, a code rate and a peak signal-to-noise ratio, the resolution in each piece of first image quality evaluation data is the reference resolution, the peak signal-to-noise ratio in each piece of first image quality evaluation data belongs to the target peak signal-to-noise ratio range, each piece of second image quality evaluation data comprises a video resolution, a code rate and a peak signal-to-noise ratio, and the peak signal-to-noise ratio in each piece of second image quality evaluation data belongs to the target peak signal-to-noise ratio range;
and obtaining a target adjustment factor according to the plurality of adjustment factors.
In this embodiment, it should be noted that, a video source obtained by collecting and encoding a cloud application picture generated in a cloud application running process by using a recording tool and/or a video formed by a segment of a video obtained by encoding a cloud server or a partial frame of the obtained video may be used as the video source. When determining a part of frames, only a specific cloud application picture rendered by the cloud application can be saved, and video frames obtained after encoding the specific cloud application picture are found through pts (presentation TIME STAMP, display time stamp) time stamps. The video source may be updated as the cloud application is up-to-date. And then transcoding the video source into videos with different resolutions and code rates to obtain a plurality of sections of videos, and calculating the peak signal-to-noise ratio of each section of video in the plurality of sections of videos. Thus, the plurality of first image quality evaluation data and the plurality of second image quality evaluation data can be obtained from the resolution, the code rate and the peak signal-to-noise ratio corresponding to the multi-segment video.
And after the minimum code rate in the plurality of pieces of first image quality evaluation data is used as the reference code rate, substituting the reference resolution, the reference code rate and the resolution and the code rate of the plurality of pieces of second image quality evaluation data into the relation between the physical resolution and the code rate to obtain a plurality of adjustment factors. And then, the multiple adjustment factors can be processed according to a preset processing strategy to obtain target adjustment factors, for example, the multiple adjustment factors are weighted and summed to obtain the target adjustment factors, wherein the weighting coefficient of the weighted and summed adjustment factors can be set according to requirements.
The plurality of pieces of second image quality evaluation data may or may not include at least one piece of first image quality evaluation data.
On the basis of the embodiment of the method, the video can be obtained by collecting and encoding cloud application pictures.
On the basis of the foregoing method embodiment, the relationship between the physical resolution and the code rate may be:
bitrate=(width×height×ref_bitrate)/(ref_width×ref_height)×(factor_x)n;
Where n=log 2 ((ref_width×ref_height)/(width×height)), bit indicates a code rate, width and height indicate width and height of a physical resolution, respectively, ref_bit indicates a reference code rate, ref_width and ref_height indicate width and height of a reference resolution, respectively, and factor_x indicates a target adjustment factor.
Referring to fig. 2, a schematic structural diagram of a code rate determining device according to an embodiment of the present application is shown, where the device includes:
a first determining unit 20, configured to obtain a target peak signal-to-noise ratio range, determine a relationship between a physical resolution and a code rate according to the target peak signal-to-noise ratio range, where, in a case of specifying a reference resolution and a reference code rate, the physical resolution and the code rate are expressed in a relationship by a target adjustment factor, where the target adjustment factor is a specified value or is determined according to the reference code rate, and a peak signal-to-noise ratio determined according to the reference resolution and the reference code rate belongs to the target peak signal-to-noise ratio range;
And the second determining unit 21 is configured to obtain a physical resolution of the terminal device, and determine a code rate adapted to the terminal device according to the physical resolution of the terminal device and a relationship between the physical resolution and the code rate.
According to the code rate determining device provided by the embodiment of the application, the finally determined code rate is determined based on the relation between the physical resolution and the code rate, the relation between the physical resolution and the code rate is determined based on the appointed reference resolution, the reference code rate and the target adjustment factor, and the peak signal-to-noise ratio determined according to the reference resolution and the reference code rate belongs to the target peak signal-to-noise ratio range, so that the cloud server obtains the cloud application video according to the finally determined code rate, and the image quality of the cloud application video played by the terminal equipment can meet the definition requirement after the cloud application video is pushed to the terminal equipment.
On the basis of the foregoing apparatus embodiment, the calculating process of the target adjustment factor may include:
Obtaining a minimum code rate in a plurality of pieces of first image quality evaluation data as a reference code rate, obtaining a plurality of adjustment factors based on the relation among the reference resolution, the reference code rate, the physical resolution and the code rate and a plurality of pieces of second image quality evaluation data, wherein each piece of first image quality evaluation data comprises a video resolution, a code rate and a peak signal-to-noise ratio, the resolution in each piece of first image quality evaluation data is the reference resolution, the peak signal-to-noise ratio in each piece of first image quality evaluation data belongs to the target peak signal-to-noise ratio range, each piece of second image quality evaluation data comprises a video resolution, a code rate and a peak signal-to-noise ratio, and the peak signal-to-noise ratio in each piece of second image quality evaluation data belongs to the target peak signal-to-noise ratio range;
and obtaining a target adjustment factor according to the plurality of adjustment factors.
On the basis of the device embodiment, the video can be obtained by collecting and encoding cloud application pictures.
Based on the foregoing apparatus embodiment, the relationship between the physical resolution and the code rate may be:
bitrate=(width×height×ref_bitrate)/(ref_width×ref_height)×(factor_x)n;
Where n=log 2 ((ref_width×ref_height)/(width×height)), bit indicates a code rate, width and height indicate width and height of a physical resolution, respectively, ref_bit indicates a reference code rate, ref_width and ref_height indicate width and height of a reference resolution, respectively, and factor_x indicates a target adjustment factor.
The implementation process of the code rate determining device provided by the embodiment of the application is consistent with the code rate determining method provided by the embodiment of the application, and the achieved effect is the same as the code rate determining method provided by the embodiment of the application, and the details are not repeated here.
As shown in fig. 3, an electronic device according to an embodiment of the present application includes a processor 30, a memory 31 and a bus 32, where the memory 31 stores machine-readable instructions executable by the processor 30, and when the electronic device is running, the processor 30 communicates with the memory 31 through the bus 32, and the processor 30 executes the machine-readable instructions to perform steps of a code rate determining method as described above.
Specifically, the above-mentioned memory 31 and processor 30 can be general-purpose memories and processors, and are not particularly limited herein, and the above-mentioned code rate determination method can be performed when the processor 30 runs a computer program stored in the memory 31.
Corresponding to the above code rate determining method, the embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the above code rate determining method are performed.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily appreciate variations or alternatives within the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (10)

1.一种码率确定方法,其特征在于,应用于云服务器,包括:1. A method for determining a bit rate, characterized in that it is applied to a cloud server and comprises: 获取目标峰值信噪比范围,根据所述目标峰值信噪比范围确定物理分辨率和码率的关系,其中,在指定参考分辨率和参考码率的情况下,物理分辨率和码率通过目标调整因子进行关系表达,所述目标调整因子为指定值或根据所述参考码率确定,根据所述参考分辨率和参考码率确定出的峰值信噪比属于所述目标峰值信噪比范围;Obtaining a target peak signal-to-noise ratio range, and determining a relationship between a physical resolution and a bit rate according to the target peak signal-to-noise ratio range, wherein, in the case of specifying a reference resolution and a reference bit rate, the physical resolution and the bit rate are expressed in relationship through a target adjustment factor, the target adjustment factor is a specified value or is determined according to the reference bit rate, and a peak signal-to-noise ratio determined according to the reference resolution and the reference bit rate belongs to the target peak signal-to-noise ratio range; 获取终端设备的物理分辨率,根据所述终端设备的物理分辨率,以及物理分辨率和码率的关系确定出适配所述终端设备的码率;Acquire the physical resolution of the terminal device, and determine a bit rate adapted to the terminal device according to the physical resolution of the terminal device and the relationship between the physical resolution and the bit rate; 所述根据所述目标峰值信噪比范围确定物理分辨率和码率的关系,包括:The determining the relationship between the physical resolution and the bit rate according to the target peak signal-to-noise ratio range includes: 获取多条第一画质评估数据中最小码率作为参考码率,其中,每一条第一画质评估数据包含一段视频的分辨率、码率和峰值信噪比,每一条第一画质评估数据中的分辨率均为所述参考分辨率,每一条第一画质评估数据中的峰值信噪比均属于所述目标峰值信噪比范围,物理分辨率和码率的关系通过参考分辨率、参考码率和目标调整因子确定。The minimum bit rate among multiple first image quality assessment data is obtained as a reference bit rate, wherein each first image quality assessment data includes the resolution, bit rate and peak signal-to-noise ratio of a video, the resolution in each first image quality assessment data is the reference resolution, the peak signal-to-noise ratio in each first image quality assessment data belongs to the target peak signal-to-noise ratio range, and the relationship between the physical resolution and the bit rate is determined by the reference resolution, the reference bit rate and the target adjustment factor. 2.如权利要求1所述的方法,其特征在于,所述目标调整因子的计算过程,包括:2. The method according to claim 1, wherein the calculation process of the target adjustment factor comprises: 基于所述参考分辨率、参考码率、物理分辨率和码率的关系,以及多条第二画质评估数据得到多个调整因子,其中,每一条第二画质评估数据包含一段视频的分辨率、码率和峰值信噪比,每一条第二画质评估数据中的峰值信噪比均属于所述目标峰值信噪比范围,至少一条第二画质评估数据中的分辨率与所述参考分辨率不同;Based on the reference resolution, the reference bit rate, the relationship between the physical resolution and the bit rate, and multiple pieces of second image quality evaluation data, multiple adjustment factors are obtained, wherein each piece of second image quality evaluation data includes the resolution, bit rate and peak signal-to-noise ratio of a video, the peak signal-to-noise ratio in each piece of second image quality evaluation data belongs to the target peak signal-to-noise ratio range, and the resolution in at least one piece of second image quality evaluation data is different from the reference resolution; 根据所述多个调整因子得到目标调整因子。A target adjustment factor is obtained according to the multiple adjustment factors. 3.如权利要求2所述的方法,其特征在于,通过对云应用画面进行采集和编码得到所述视频。3. The method as claimed in claim 2 is characterized in that the video is obtained by capturing and encoding the cloud application screen. 4.如权利要求1至3任一项所述的方法,其特征在于,所述物理分辨率和码率的关系为:4. The method according to any one of claims 1 to 3, characterized in that the relationship between the physical resolution and the bit rate is: bitrate=(width×height×ref_bitrate)/(ref_width×ref_height)×(factor_x)nbitrate=(width×height×ref_bitrate)/(ref_width×ref_height)×(factor_x) n ; 其中,n=log2((ref_width×ref_height)/(width×height)),bitrate表示码率,width和height分别表示物理分辨率的宽和高,ref_bitrate表示参考码率,ref_width和ref_height分别表示参考分辨率的宽和高,factor_x表示目标调整因子。Where n = log 2 ((ref_width × ref_height) / (width × height)), bitrate represents the bit rate, width and height represent the width and height of the physical resolution respectively, ref_bitrate represents the reference bit rate, ref_width and ref_height represent the width and height of the reference resolution respectively, and factor_x represents the target adjustment factor. 5.一种码率确定装置,其特征在于,应用于云服务器,包括:5. A bit rate determination device, characterized in that it is applied to a cloud server, comprising: 第一确定单元,用于获取目标峰值信噪比范围,根据所述目标峰值信噪比范围确定物理分辨率和码率的关系,其中,在指定参考分辨率和参考码率的情况下,物理分辨率和码率通过目标调整因子进行关系表达,所述目标调整因子为指定值或根据所述参考码率确定,根据所述参考分辨率和参考码率确定出的峰值信噪比属于所述目标峰值信噪比范围;a first determining unit, configured to obtain a target peak signal-to-noise ratio range, and determine a relationship between a physical resolution and a bit rate according to the target peak signal-to-noise ratio range, wherein, in the case of specifying a reference resolution and a reference bit rate, the physical resolution and the bit rate are expressed in relationship through a target adjustment factor, the target adjustment factor is a specified value or is determined according to the reference bit rate, and a peak signal-to-noise ratio determined according to the reference resolution and the reference bit rate belongs to the target peak signal-to-noise ratio range; 第二确定单元,用于获取终端设备的物理分辨率,根据所述终端设备的物理分辨率,以及物理分辨率和码率的关系确定出适配所述终端设备的码率;A second determining unit is used to obtain a physical resolution of a terminal device, and determine a bit rate adapted to the terminal device according to the physical resolution of the terminal device and a relationship between the physical resolution and the bit rate; 所述根据所述目标峰值信噪比范围确定物理分辨率和码率的关系,包括:The determining the relationship between the physical resolution and the bit rate according to the target peak signal-to-noise ratio range includes: 获取多条第一画质评估数据中最小码率作为参考码率,其中,每一条第一画质评估数据包含一段视频的分辨率、码率和峰值信噪比,每一条第一画质评估数据中的分辨率均为所述参考分辨率,每一条第一画质评估数据中的峰值信噪比均属于所述目标峰值信噪比范围,物理分辨率和码率的关系通过参考分辨率、参考码率和目标调整因子确定。The minimum bit rate among multiple first image quality assessment data is obtained as a reference bit rate, wherein each first image quality assessment data includes the resolution, bit rate and peak signal-to-noise ratio of a video, the resolution in each first image quality assessment data is the reference resolution, the peak signal-to-noise ratio in each first image quality assessment data belongs to the target peak signal-to-noise ratio range, and the relationship between the physical resolution and the bit rate is determined by the reference resolution, the reference bit rate and the target adjustment factor. 6.如权利要求5所述的装置,其特征在于,所述目标调整因子的计算过程,包括:6. The device according to claim 5, wherein the calculation process of the target adjustment factor comprises: 基于所述参考分辨率、参考码率、物理分辨率和码率的关系,以及多条第二画质评估数据得到多个调整因子,其中,每一条第二画质评估数据包含一段视频的分辨率、码率和峰值信噪比,每一条第二画质评估数据中的峰值信噪比均属于所述目标峰值信噪比范围,至少一条第二画质评估数据中的分辨率与所述参考分辨率不同;Based on the reference resolution, the reference bit rate, the relationship between the physical resolution and the bit rate, and multiple pieces of second image quality evaluation data, multiple adjustment factors are obtained, wherein each piece of second image quality evaluation data includes the resolution, bit rate and peak signal-to-noise ratio of a video, the peak signal-to-noise ratio in each piece of second image quality evaluation data belongs to the target peak signal-to-noise ratio range, and the resolution in at least one piece of second image quality evaluation data is different from the reference resolution; 根据所述多个调整因子得到目标调整因子。A target adjustment factor is obtained according to the multiple adjustment factors. 7.如权利要求6所述的装置,其特征在于,通过对云应用画面进行采集和编码得到所述视频。7. The device as described in claim 6 is characterized in that the video is obtained by collecting and encoding the cloud application screen. 8.如权利要求5至7任一项所述的装置,其特征在于,所述物理分辨率和码率的关系为:8. The device according to any one of claims 5 to 7, characterized in that the relationship between the physical resolution and the bit rate is: bitrate=(width×height×ref_bitrate)/(ref_width×ref_height)×(factor_x)nbitrate=(width×height×ref_bitrate)/(ref_width×ref_height)×(factor_x) n ; 其中,n=log2((ref_width×ref_height)/(width×height)),bitrate表示码率,width和height分别表示物理分辨率的宽和高,ref_bitrate表示参考码率,ref_width和ref_height分别表示参考分辨率的宽和高,factor_x表示目标调整因子。Where n = log 2 ((ref_width × ref_height) / (width × height)), bitrate represents the bit rate, width and height represent the width and height of the physical resolution respectively, ref_bitrate represents the reference bit rate, ref_width and ref_height represent the width and height of the reference resolution respectively, and factor_x represents the target adjustment factor. 9.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行如权利要求1至4任一项所述的码率确定方法的步骤。9. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the bit rate determination method according to any one of claims 1 to 4 are executed. 10.一种电子设备,其特征在于,包括:处理器、存储介质和总线,所述存储介质存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述处理器与所述存储介质之间通过总线通信,所述处理器执行所述机器可读指令,以执行如权利要求1至4任一项所述的码率确定方法的步骤。10. An electronic device, characterized in that it comprises: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, when the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of the bit rate determination method as described in any one of claims 1 to 4.
CN202411252730.0A 2024-09-09 2024-09-09 Bit rate determination method and device, electronic device and storage medium Active CN118803245B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411252730.0A CN118803245B (en) 2024-09-09 2024-09-09 Bit rate determination method and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411252730.0A CN118803245B (en) 2024-09-09 2024-09-09 Bit rate determination method and device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN118803245A CN118803245A (en) 2024-10-18
CN118803245B true CN118803245B (en) 2025-01-03

Family

ID=93033861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411252730.0A Active CN118803245B (en) 2024-09-09 2024-09-09 Bit rate determination method and device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN118803245B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546755A (en) * 2013-08-22 2014-01-29 合一网络技术(北京)有限公司 Constant-bitrate self-adaptive resolution transcoding method
CN104010232A (en) * 2014-05-23 2014-08-27 惠州Tcl移动通信有限公司 Method and system for intelligently playing online videos, player and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187835B (en) * 2014-05-30 2019-02-15 阿里巴巴集团控股有限公司 Adaptive video code-transferring method and device based on content
CN110719457B (en) * 2019-09-17 2020-10-30 北京达佳互联信息技术有限公司 Video coding method and device, electronic equipment and storage medium
CN112672169A (en) * 2020-11-27 2021-04-16 西安万像电子科技有限公司 Self-adaptive display method, device and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546755A (en) * 2013-08-22 2014-01-29 合一网络技术(北京)有限公司 Constant-bitrate self-adaptive resolution transcoding method
CN104010232A (en) * 2014-05-23 2014-08-27 惠州Tcl移动通信有限公司 Method and system for intelligently playing online videos, player and mobile terminal

Also Published As

Publication number Publication date
CN118803245A (en) 2024-10-18

Similar Documents

Publication Publication Date Title
CN111918066B (en) Video encoding method, device, equipment and storage medium
CN111193923B (en) Video quality evaluation method and device, electronic equipment and computer storage medium
US9049420B1 (en) Relative quality score for video transcoding
JP7267368B2 (en) Method and Apparatus for Determining VR Multimedia Experience Quality
KR102867268B1 (en) Point cloud encoding method and device, point cloud decoding method and device, and computer-readable medium, and electronic device
CN111385576B (en) Video coding method and device, mobile terminal and storage medium
CN112533059B (en) Image rendering method and device, electronic equipment and storage medium
CN101223787A (en) Image encoder for textured regions
CN111263243B (en) Video coding method and device, computer readable medium and electronic equipment
CN108810545A (en) Method for video encoding, device, computer-readable medium and electronic equipment
CN111524110A (en) Video quality evaluation model construction method, evaluation method and device
CN111050169B (en) Method, device and terminal for generating quantization parameter in image coding
CN113852860A (en) Video processing method, device, system and storage medium
CN117649624A (en) Video image quality evaluation method, device, computer equipment and storage medium
CN118803245B (en) Bit rate determination method and device, electronic device and storage medium
CN111093091A (en) Video processing method, server and system
CN112584153B (en) Video Compression Method and Device Based on Just Perceptible Distortion Model
US10080032B2 (en) Lossy channel video blur avoidance
CN116800953A (en) Video quality assessment method and device
CN117714700A (en) A video encoding method, device, equipment, readable storage medium and product
CN115174919A (en) Video processing method, device, equipment and medium
CN120075451B (en) Video compression method, device, equipment and storage medium
CN119342043B (en) Cloud application picture blocking optimization method and device
CN119383383B (en) Picture processing method and device
CN115396672B (en) Bit stream storage method, device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant