CN114222126A - Video transmission method and device, electronic equipment and storage medium - Google Patents

Video transmission method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114222126A
CN114222126A CN202111358151.0A CN202111358151A CN114222126A CN 114222126 A CN114222126 A CN 114222126A CN 202111358151 A CN202111358151 A CN 202111358151A CN 114222126 A CN114222126 A CN 114222126A
Authority
CN
China
Prior art keywords
video
quantization parameter
encoder
resolution
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111358151.0A
Other languages
Chinese (zh)
Inventor
张松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Xuanxian Technology Co ltd
Original Assignee
Shanghai Xuanxian 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 Shanghai Xuanxian Technology Co ltd filed Critical Shanghai Xuanxian Technology Co ltd
Priority to CN202111358151.0A priority Critical patent/CN114222126A/en
Publication of CN114222126A publication Critical patent/CN114222126A/en
Pending legal-status Critical Current

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

Abstract

The disclosure relates to a video transmission method, a video transmission device, electronic equipment and a storage medium, belonging to the field of audio and video development, wherein the method comprises the following steps: determining a video to be transmitted, the resolution of the video and the current network condition; determining the numerical value of a quantization parameter of an encoder according to the current network condition and the resolution; when the numerical value of the quantization parameter of the encoder does not meet the preset condition, adjusting the resolution of the video until the numerical value of the quantization parameter of the encoder meets the preset condition; the video is coded and transmitted according to the numerical value of the quantization parameter of the coder, so that under the condition of poor current network condition, the data volume of the video is reduced by adjusting the resolution ratio of the video, the coding quality of the video is ensured, the definition of the transmitted video is ensured, the video transmission efficiency is improved, under the condition that the coding code rate is reduced due to the influence of the network condition, the resolution ratio is adjusted, the data volume is reduced, the coding quality is ensured, the definition of the transmitted video is ensured, and the video transmission efficiency is improved.

Description

Video transmission method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of audio and video development technologies, and in particular, to a video transmission method and apparatus, an electronic device, and a storage medium.
Background
At present, in the process of audio and video communication, because the real-time requirement is high, the network condition needs to be monitored, and under the condition of poor network condition, an audio and video sending end needs to reduce the number of sent data packets, mainly reducing the sending quantity of video data packets.
In the related art, the coding rate of an encoder is adjusted in real time according to the network condition to reduce the sending amount of video data packets. However, in the above scheme, the lower the coding rate is, the more serious the local mosaic condition of the video is, the more serious the screen-blooming condition is, and the video transmission efficiency is poor.
Disclosure of Invention
The present disclosure provides a video transmission method, an apparatus, an electronic device, and a storage medium, to at least solve the problems in the related art that the lower the coding rate, the more severe the local mosaic condition of a video, the more severe the screen-splash condition, and the poor video transmission efficiency. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a video transmission method, including: determining a video to be transmitted, the resolution of the video and the current network condition; determining the numerical value of a quantization parameter of an encoder according to the current network condition and the resolution; when the numerical value of the encoder quantization parameter does not meet a preset condition, adjusting the resolution of the video until the numerical value of the encoder quantization parameter meets the preset condition; and carrying out coding transmission processing on the video according to the value of the quantization parameter of the coder.
According to a second aspect of the embodiments of the present disclosure, there is provided a video transmission apparatus including: the device comprises a first determining module, a second determining module and a control module, wherein the first determining module is used for determining a video to be transmitted, the resolution ratio of the video and the current network condition; a second determining module, configured to determine a value of a quantization parameter of an encoder according to the current network condition and the resolution; the adjusting module is used for adjusting the resolution of the video until the numerical value of the encoder quantization parameter meets the preset condition when the numerical value of the encoder quantization parameter does not meet the preset condition; and the first processing module is used for carrying out coding transmission processing on the video according to the numerical value of the quantization parameter of the coder.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the video transmission method as described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium having instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the video transmission method as described above.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor of an electronic device, enables the electronic device to perform a video transmission method as described above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: determining a video to be transmitted, the resolution of the video and the current network condition; determining the numerical value of a quantization parameter of an encoder according to the current network condition and the resolution; when the numerical value of the quantization parameter of the encoder does not meet the preset condition, adjusting the resolution of the video until the numerical value of the quantization parameter of the encoder meets the preset condition; the video is coded and transmitted according to the numerical value of the quantization parameter of the coder, so that under the condition of poor current network condition, the data volume of the video is reduced by adjusting the resolution of the video, the coding quality of the video is ensured, the definition of the transmitted video is ensured, and the video transmission efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow chart illustrating a method of video transmission according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating yet another method of video transmission according to an exemplary embodiment;
FIG. 3 is a schematic diagram of video transmission;
FIG. 4 is a schematic diagram illustrating the structure of a video transmission device according to an exemplary embodiment;
FIG. 5 is a block diagram illustrating an electronic device for video transmission in accordance with an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
At present, in the process of audio and video communication, because the real-time requirement is high, the network condition needs to be monitored, and under the condition of poor network condition, an audio and video sending end needs to reduce the number of sent data packets, mainly reducing the sending quantity of video data packets.
In the related art, the coding rate of an encoder is adjusted in real time according to the network condition to reduce the sending amount of video data packets. However, in the above scheme, the lower the coding rate is, the more serious the local mosaic condition of the video is, the more serious the screen-blooming condition is, and the video transmission efficiency is poor.
Therefore, the present disclosure provides a video transmission method, an apparatus, and an electronic device, mainly aiming at the technical problems in the related art that the lower the coding rate, the more serious the local mosaic condition of the video, the more serious the screen-splash condition, and the poor video transmission efficiency.
Fig. 1 is a flow chart illustrating a video transmission method according to an exemplary embodiment, as shown in fig. 1, including the following steps.
In step 101, the video to be transmitted, the resolution of the video, and the current network conditions are determined.
It should be noted that the main execution subject of the video transmission method of the present disclosure is a video transmission apparatus. The video transmission method of the embodiment of the present disclosure may be performed by the video transmission apparatus of the embodiment of the present disclosure, and the video transmission apparatus of the embodiment of the present disclosure may be configured in any electronic device to perform the video transmission method of the embodiment of the present disclosure.
The electronic device may be any device having a computing capability, for example, a Personal Computer (PC), a mobile terminal, a server, and the like, and the mobile terminal may be a hardware device having various operating systems, touch screens, and/or display screens, such as an in-vehicle device, a mobile phone, a tablet Computer, a Personal digital assistant, and a wearable device.
In the embodiment of the present disclosure, the network condition may be, for example, a network bandwidth. The network condition can be determined by a bandwidth estimation module, wherein the bandwidth estimation module detects the current network condition in real time through interaction with the network.
It should be noted that the resolution of the video may refer to the resolution of the image in the video. The resolution of an image is proportional to the size information of the image, and the larger the resolution, the larger the size information, the larger the data amount of the image, and further the data amount of the video. The resolution of the video affects the size of each frame of image in the video and is in direct proportion to the size of the video image, namely, the higher the resolution of the video is, the larger the image in the video is, the more the pixel points are, and the larger the size of the corresponding video file is.
In step 102, the value of the quantization parameter of the encoder is determined according to the current network condition and the resolution.
In the embodiment of the present disclosure, a Quantizer Parameter (QP) reflects a spatial detail compression condition, and is determined according to a current network condition and a resolution. Under the condition of determining the resolution, the better the current network condition is, the higher the coding code rate is, the smaller the QP value is, and the higher the coding quality is; the worse the current network condition, the lower the coding code rate, the larger the QP value, and the worse the coding quality. Under the condition that the current network condition is determined, the higher the resolution is, the higher the QP value is, and the worse the coding quality is; the smaller the resolution, the smaller the QP value, and the higher the coding quality.
In step 103, when the value of the quantization parameter of the encoder does not satisfy the predetermined condition, the resolution of the video is adjusted until the value of the quantization parameter of the encoder satisfies the predetermined condition.
The preset condition may be, for example, less than or equal to a preset numerical threshold. Correspondingly, the process of the video transmission device determining whether the value of the quantization parameter of the encoder meets the preset condition may be, for example, determining whether the value of the quantization parameter of the encoder is greater than a value threshold; when the numerical value of the quantization parameter of the encoder is larger than the numerical value threshold, determining that the numerical value of the quantization parameter of the encoder does not meet the preset condition; and when the value of the quantization parameter of the encoder is smaller than or equal to the value threshold, determining that the value of the quantization parameter of the encoder meets a preset condition.
In the embodiment of the present disclosure, when the value of the quantization parameter of the encoder meets the preset condition, the video may be encoded and transmitted directly according to the value of the quantization parameter of the encoder.
In step 104, the video is encoded and transmitted according to the value of the quantization parameter of the encoder.
In conclusion, the video to be transmitted, the resolution of the video and the current network condition are determined; determining the numerical value of a quantization parameter of an encoder according to the current network condition and the resolution; when the numerical value of the quantization parameter of the encoder does not meet the preset condition, adjusting the resolution of the video until the numerical value of the quantization parameter of the encoder meets the preset condition; the video is coded and transmitted according to the numerical value of the quantization parameter of the coder, and under the condition that the coding code rate is reduced due to the influence of network conditions, the resolution ratio is adjusted, the data volume is reduced, the coding quality is ensured, the definition of the transmitted video is ensured, and the video transmission efficiency is improved.
In order to accurately adjust the resolution of a video until the value of the quantization parameter of the encoder meets the preset condition, as shown in fig. 2, fig. 2 is a flowchart of another video transmission method according to an exemplary embodiment, in the embodiment of the present disclosure, when the resolution of the video is adjusted, the video may be sequentially adjusted according to a plurality of scale values, so as to select a larger scale value from the plurality of scale values when the value of the quantization parameter of the encoder meets the preset condition, further ensure the transmission efficiency of the video, and ensure the definition of the transmitted video, which is specifically implemented as follows:
in step 201, the video to be transmitted, the resolution of the video, and the current network conditions are determined.
In step 202, the value of the quantization parameter of the encoder is determined according to the current network condition and the resolution.
In step 203, a preset proportion sequence is obtained, wherein a plurality of proportion values in the proportion sequence are sorted in a descending order.
Wherein the proportional value comprises at least one of the following values: 3/4, 1/2, 3/8.
In step 204, the resolution of the video is adjusted according to the scale values in the scale sequence sequentially for each scale value in the scale sequence, so as to obtain the adjusted resolution.
In step 205, the values of the quantization parameters of the encoder are updated according to the adjusted resolution and the current network status until the values of the quantization parameters of the encoder satisfy the preset conditions.
In the embodiment of the present disclosure, the preset condition may be, for example, a value threshold, and when the value of the quantization parameter of the encoder is smaller than or equal to the value threshold, it is determined that the value of the quantization parameter of the encoder satisfies the preset condition. In addition, in order to avoid the excessive data amount of the video and the poor transmission efficiency, a smaller value threshold may be set, and a value range is determined according to the two value thresholds, wherein the value of the quantization parameter of the encoder needs to be within the value range, i.e., needs to be greater than or equal to the minimum value in the value range, and needs to be less than or equal to the maximum value in the value range.
For example, the preset value range of the encoder quantization parameter of the video coding standard H264 is [24,37], for example, the resolution of the current video is 720p (720x1280), the value of the encoder quantization parameter fed back by the encoder is 38, which means that the coding quality of the current video is low, it is required to firstly reduce the resolution by 3/4 of the resolution of the current video being 720p, i.e. the resolution of the video is reduced to 540p (540x960), and then monitor the value of the encoder quantization parameter fed back by the encoder at 540p, if the value of the encoder quantization parameter is still greater than 37, then reduce the resolution by 1/2 of the resolution of the current video being 720p, and continuously observe whether the value of the encoder quantization parameter is less than or equal to 37, if the value of the encoder quantization parameter is less than 37, it is determined that the value of the encoder quantization parameter satisfies the preset condition, and if the value of the quantization parameter of the encoder is larger than 37, determining that the value of the quantization parameter of the encoder does not meet the preset condition, and continuing to reduce the resolution according to 1/2 of which the resolution of the current video is 720p until the value of the quantization parameter of the encoder meets the preset condition.
In step 206, the video is encoded and transmitted according to the value of the quantization parameter of the encoder.
In the embodiment of the present disclosure, the detailed descriptions of steps 201, 202, and 206 may refer to steps 101, 102, and 104 in the embodiment of fig. 1, and the detailed descriptions of the present disclosure are omitted.
In conclusion, the video to be transmitted, the resolution of the video and the current network condition are determined; determining the numerical value of a quantization parameter of an encoder according to the current network condition and the resolution; acquiring a preset proportional sequence, wherein a plurality of proportional numerical values in the proportional sequence are sorted in a descending order; sequentially aiming at each proportion numerical value in the proportion sequence, adjusting the resolution of the video according to the proportion numerical value to obtain the adjusted resolution; and updating the numerical value of the quantization parameter of the encoder according to the adjusted resolution and the current network condition until the numerical value of the quantization parameter of the encoder meets the preset condition, and adjusting the resolution, reducing the data volume, ensuring the encoding quality, ensuring the definition of the transmitted video and improving the video transmission efficiency under the condition that the encoding code rate is reduced due to the influence of the network condition.
In order that those skilled in the art will more clearly understand the disclosure, the description will now be given by way of example.
Fig. 3 is a schematic diagram of video transmission, and as shown in fig. 3, a BWE module (Bandwidth Estimator) is used for Bandwidth estimation, interacting with the network through (1) and (2), detecting the current network condition in real time, simultaneously feeding back the coding rate estimated by the BWE module to a video coder in real time through (3), feeding back a QP value of each coded video frame to a newly-added VideoResolutionAdap module (video resolution adapter) in real time through (4) in the coding process of the video coder, sequentially adjusting the resolution by the VideoResolutionAdap module according to the QP value fed back by the video coder in proportions of 3/4, 1/2 and 3/8 until the QP value meets the requirements of the VideoResolutionAdap module, and simultaneously, feeding back the adjusted resolution ratio meeting the condition to a video encoder through a step (5), and transmitting the video data to a Network through a step (6) after the video encoder encodes the video according to the resolution ratio.
In order to implement the above embodiments, the present disclosure provides a video transmission apparatus.
Fig. 4 is a schematic structural diagram of a video transmission apparatus according to an exemplary embodiment, and referring to fig. 4, the video transmission apparatus 400 may include: a first determination module 410, a second determination module 420, an adjustment module 430, and a first processing module 440.
The first determining module 410 is configured to determine a video to be transmitted, a resolution of the video, and a current network condition; a second determining module 420, configured to determine a value of a quantization parameter of an encoder according to the current network condition and the resolution; an adjusting module 430, configured to adjust the resolution of the video until the value of the encoder quantization parameter satisfies a preset condition when the value of the encoder quantization parameter does not satisfy the preset condition; the first processing module 440 is configured to perform encoding transmission processing on the video according to the value of the encoder quantization parameter.
As a possible implementation manner of the embodiment of the present disclosure, the adjusting module 430 is specifically configured to perform: acquiring a preset proportion sequence, wherein a plurality of proportion numerical values in the proportion sequence are sorted in a descending order; sequentially aiming at each proportion numerical value in the proportion sequence, adjusting the resolution of the video according to the proportion numerical value to obtain the adjusted resolution; and updating the numerical value of the quantization parameter of the encoder according to the adjusted resolution and the current network condition until the numerical value of the quantization parameter of the encoder meets the preset condition.
As a possible implementation manner of the embodiment of the present disclosure, the ratio value includes at least one of the following values: 3/4, 1/2, 3/8.
As a possible implementation manner of the embodiment of the present disclosure, the video transmission apparatus 400 further includes a second determining module.
And the second processing module is configured to perform encoding transmission processing on the video according to the value of the encoder quantization parameter when the value of the encoder quantization parameter meets the preset condition.
As a possible implementation manner of the embodiment of the present disclosure, the preset condition is a preset numerical threshold; the video transmission apparatus 400 further comprises a third determination module and a fourth determination module; the third determining module is configured to determine that the value of the encoder quantization parameter does not satisfy the preset condition when the value of the encoder quantization parameter is greater than the value threshold; the fourth determining module is configured to determine that the value of the encoder quantization parameter satisfies the preset condition when the value of the encoder quantization parameter is smaller than or equal to the value threshold. With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The video transmission device of the embodiment of the disclosure determines the video to be transmitted, the resolution of the video and the current network condition; determining the numerical value of a quantization parameter of an encoder according to the current network condition and the resolution; when the numerical value of the quantization parameter of the encoder does not meet the preset condition, adjusting the resolution of the video until the numerical value of the quantization parameter of the encoder meets the preset condition; and the video is coded and transmitted according to the numerical value of the quantization parameter of the coder, so that the coding quality and the definition of the video are ensured under the condition of reducing the coding code rate caused by network influence.
Fig. 5 is a block diagram illustrating an electronic device for a video transmission method according to an example embodiment.
As shown in fig. 5, the electronic device 500 includes:
a memory 510 and a processor 520, a bus 530 connecting the different components (including the memory 510 and the processor 520), the memory 510 storing a computer program, which when executed by the processor 520 implements the video transmission method according to the embodiments of the present disclosure.
Bus 530 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The electronic device 500 typically includes a variety of electronic device readable media. Such media may be any available media that is accessible by electronic device 500 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 510 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)540 and/or cache memory 550. The electronic device 500 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 560 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 530 by one or more data media interfaces. Memory 510 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.
A program/utility 580 having a set (at least one) of program modules 570 may be stored, for instance, in memory 510, such program modules 570 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 570 generally perform the functions and/or methods of the embodiments described in this disclosure.
The electronic device 500 may also communicate with one or more external devices 590 (e.g., keyboard, pointing device, display 591, etc.), one or more devices that enable a user to interact with the electronic device 500, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 500 to communicate with one or more other computing devices. Such communication may occur over input/output (I/O) interfaces 592. Also, the electronic device 500 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 593. As shown in FIG. 5, the network adapter 593 communicates with the other modules of the electronic device 800 via the bus 530. It should be appreciated that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 520 executes various functional applications and data processing by executing programs stored in the memory 510.
It should be noted that, for the implementation process and the technical principle of the electronic device of the embodiment, reference is made to the foregoing explanation of the video transmission method of the embodiment of the present disclosure, and details are not described here again.
The electronic device provided by the embodiment of the disclosure can execute the video transmission method as described above, and determine the video to be transmitted, the resolution of the video and the current network condition; determining the numerical value of a quantization parameter of an encoder according to the current network condition and the resolution; when the numerical value of the quantization parameter of the encoder does not meet the preset condition, adjusting the resolution of the video until the numerical value of the quantization parameter of the encoder meets the preset condition; the video is coded and transmitted according to the numerical value of the quantization parameter of the coder, and under the condition that the coding code rate is reduced due to the influence of network conditions, the resolution ratio is adjusted, the data volume is reduced, the coding quality is ensured, the definition of the transmitted video is ensured, and the video transmission efficiency is improved.
In order to implement the above embodiments, the present disclosure also provides a storage medium.
Wherein the instructions in the storage medium, when executed by a processor of the electronic device, enable the electronic device to perform the video transmission method as previously described.
To implement the above embodiments, the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor of an electronic device, enables the electronic device to perform the video transmission method as described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A video transmission method, comprising:
determining a video to be transmitted, the resolution of the video and the current network condition;
determining the numerical value of a quantization parameter of an encoder according to the current network condition and the resolution;
when the numerical value of the encoder quantization parameter does not meet a preset condition, adjusting the resolution of the video until the numerical value of the encoder quantization parameter meets the preset condition;
and carrying out coding transmission processing on the video according to the value of the quantization parameter of the coder.
2. The method of claim 1, wherein the adjusting the resolution of the video to the value of the encoder quantization parameter satisfies the predetermined condition comprises:
acquiring a preset proportion sequence, wherein a plurality of proportion numerical values in the proportion sequence are sorted in a descending order;
sequentially aiming at each proportion numerical value in the proportion sequence, adjusting the resolution of the video according to the proportion numerical value to obtain the adjusted resolution;
and updating the numerical value of the quantization parameter of the encoder according to the adjusted resolution and the current network condition until the numerical value of the quantization parameter of the encoder meets the preset condition.
3. The method of claim 2, wherein the ratio value comprises at least one of: 3/4, 1/2, 3/8.
4. The method of claim 1, further comprising:
and when the numerical value of the quantization parameter of the encoder meets the preset condition, carrying out encoding transmission processing on the video according to the numerical value of the quantization parameter of the encoder.
5. The method according to any one of claims 1 to 4, wherein the preset condition is a preset numerical threshold; the method further comprises the following steps:
when the value of the encoder quantization parameter is larger than the value threshold, determining that the value of the encoder quantization parameter does not meet the preset condition;
and when the value of the encoder quantization parameter is smaller than or equal to the value threshold, determining that the value of the encoder quantization parameter meets the preset condition.
6. A video transmission apparatus, comprising:
the device comprises a first determining module, a second determining module and a control module, wherein the first determining module is used for determining a video to be transmitted, the resolution ratio of the video and the current network condition;
a second determining module, configured to determine a value of a quantization parameter of an encoder according to the current network condition and the resolution;
the adjusting module is used for adjusting the resolution of the video until the numerical value of the encoder quantization parameter meets the preset condition when the numerical value of the encoder quantization parameter does not meet the preset condition;
and the first processing module is used for carrying out coding transmission processing on the video according to the numerical value of the quantization parameter of the coder.
7. The apparatus of claim 6, wherein the adjustment module is specifically configured to perform:
acquiring a preset proportion sequence, wherein a plurality of proportion numerical values in the proportion sequence are sorted in a descending order;
sequentially aiming at each proportion numerical value in the proportion sequence, adjusting the resolution of the video according to the proportion numerical value to obtain the adjusted resolution;
and updating the numerical value of the quantization parameter of the encoder according to the adjusted resolution and the current network condition until the numerical value of the quantization parameter of the encoder meets the preset condition.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the video transmission method of any of claims 1-5.
9. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the video transmission method of any of claims 1-5.
10. A computer program product, comprising a computer program which, when executed by a processor of an electronic device, enables the electronic device to perform the video transmission method of any of claims 1-5.
CN202111358151.0A 2021-11-16 2021-11-16 Video transmission method and device, electronic equipment and storage medium Pending CN114222126A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111358151.0A CN114222126A (en) 2021-11-16 2021-11-16 Video transmission method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111358151.0A CN114222126A (en) 2021-11-16 2021-11-16 Video transmission method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114222126A true CN114222126A (en) 2022-03-22

Family

ID=80697332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111358151.0A Pending CN114222126A (en) 2021-11-16 2021-11-16 Video transmission method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114222126A (en)

Similar Documents

Publication Publication Date Title
US11070794B2 (en) Video quality assessment method and apparatus
WO2021068598A1 (en) Encoding method and device for screen sharing, and storage medium and electronic equipment
US7616208B2 (en) Method and system for application broadcast
US20200267396A1 (en) Human visual system adaptive video coding
CN106961603A (en) Intracoded frame code rate allocation method and device
CN114245209B (en) Video resolution determination, model training and video coding method and device
EP4135325A1 (en) Method and apparatus for encoding video, electronic device, and storage medium
KR20230028250A (en) Reinforcement learning-based rate control
US20240098316A1 (en) Video encoding method and apparatus, real-time communication method and apparatus, device, and storage medium
EP3913916A1 (en) Method and apparatus for coding video, electronic device and computer-readable storage medium
CN115529300A (en) System and method for automatically adjusting key frame quantization parameter and frame rate
CN111539948B (en) Video quality evaluation method, device, electronic equipment and storage medium
CN114222126A (en) Video transmission method and device, electronic equipment and storage medium
CN112804527A (en) Image output method, image output device and computer-readable storage medium
CN114071190B (en) Cloud application video stream processing method, related device and computer program product
CN108668166B (en) Coding method, device and terminal equipment
US6731325B1 (en) Methods and apparatus for selecting wire video size
CN115767149A (en) Video data transmission method and device
CN110677728B (en) Method, device and equipment for playing video and storage medium
CN114051144A (en) Video compression method and device, computer equipment and storage medium
GB2600796A (en) Method and apparatus for coding video, device and medium
US20190306500A1 (en) Bit rate optimization system and method
CN102948147A (en) Video rate control based on transform-coefficients histogram
US20180199031A1 (en) Video encoding apparatus and video data amount encoding method
CN114760309A (en) Business interaction method, device, equipment and medium of terminal based on cloud service

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