CN109729384B - Video transcoding selection method and device - Google Patents

Video transcoding selection method and device Download PDF

Info

Publication number
CN109729384B
CN109729384B CN201811549955.7A CN201811549955A CN109729384B CN 109729384 B CN109729384 B CN 109729384B CN 201811549955 A CN201811549955 A CN 201811549955A CN 109729384 B CN109729384 B CN 109729384B
Authority
CN
China
Prior art keywords
quality
transcoding
video stream
code rate
quality factor
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
CN201811549955.7A
Other languages
Chinese (zh)
Other versions
CN109729384A (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.)
Bigo Technology Pte Ltd
Original Assignee
Guangzhou Baiguoyuan 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 Guangzhou Baiguoyuan Information Technology Co Ltd filed Critical Guangzhou Baiguoyuan Information Technology Co Ltd
Priority to CN201811549955.7A priority Critical patent/CN109729384B/en
Publication of CN109729384A publication Critical patent/CN109729384A/en
Application granted granted Critical
Publication of CN109729384B publication Critical patent/CN109729384B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention relates to the technical field of video processing, and provides a method and a device for selecting video transcoding, wherein the method comprises the steps of receiving a coded video stream and a coding quality parameter sent by a client; the encoding video stream is obtained by encoding a source video stream by a client according to an encoding quality parameter; acquiring a transcoding expected quality parameter, and comparing the transcoding expected quality parameter with the coding quality parameter; and selecting a corresponding transcoding mode to transcode the coded video stream according to the comparison result. The invention refers to the condition of the source video stream, avoids the waste of transcoding resources and improves the transcoding effect.

Description

Video transcoding selection method and device
Technical Field
The invention relates to the technical field of video processing, in particular to a method and a device for selecting video transcoding.
Background
With the wide application of self-media, video processing becomes a key element of self-media popularization. In current short video applications, including live, short video, and on-demand video streaming, transcoding is usually added to enable users to be able to forward videos of different qualities.
However, in the current transcoding operation of the video, after the client uploads the encoded video stream to the server, since the server cannot determine the source video condition, transcoding can be performed only in a fixed manner, which easily causes the waste of transcoding resources and affects the transcoding effect.
Disclosure of Invention
In order to overcome the technical problems, in particular to the problem that transcoding is performed only in a fixed mode in the prior art, which easily causes transcoding resource waste, the following technical scheme is proposed:
in a first aspect, the present invention provides a method for selecting video transcoding, including the following steps:
receiving a coded video stream and the coding quality parameter sent by a client; the encoding video stream is obtained by encoding a source video stream by a client according to an encoding quality parameter;
acquiring a transcoding expected quality parameter, and comparing the transcoding expected quality parameter with the coding quality parameter;
and selecting a corresponding transcoding mode to transcode the coded video stream according to the comparison result.
In one embodiment, the encoding quality parameter comprises a first quality factor and a first code rate;
the transcoding desired quality parameter comprises a second bitrate and a second quality factor.
In one embodiment, the step of comparing the transcoding desired quality parameter with the coding quality parameter comprises:
and respectively comparing the second code rate with the first code rate, and comparing the second quality factor with the first quality factor.
In one embodiment, the step of selecting a corresponding transcoding mode to transcode the encoded video stream according to the result of the comparison includes:
and when the second code rate is greater than the first code rate, selecting a CRF (conditional random access) coding mode to transcode the coded video stream.
In one embodiment, the encoding quality parameter further comprises an average quality factor of the encoded video stream;
the step of comparing the transcoding desired quality parameter with the encoding quality parameter comprises:
comparing the second code rate with the first code rate respectively, and comparing the second quality factor with the average quality factor;
the step of selecting a corresponding transcoding mode to transcode the encoded video stream according to the result of the comparison comprises:
and when the second code rate is less than or equal to the first code rate and the second quality factor is equal to the average quality factor, carrying out ABF transcoding on the coded video stream.
In one embodiment, the encoding quality parameter further comprises an average quality factor of the video stream;
the step of comparing the transcoding desired quality parameter with the encoding quality parameter comprises:
comparing the second code rate with the first code rate respectively, and comparing the second quality factor with the average quality factor;
the step of selecting a corresponding transcoding mode to transcode the encoded video stream according to the result of the comparison comprises:
and when the second code rate is less than or equal to the first code rate and the second quality factor is less than the average quality factor, performing CRF transcoding on the coded video stream.
In one embodiment, the method further comprises:
when the second code rate is less than or equal to the first code rate and the second quality factor is greater than the first quality factor, transcoding the video stream is not required.
In a second aspect, the present invention further provides a method for selecting video transcoding, including the following steps:
coding the video data according to the coding quality parameter to obtain a coded video stream;
sending the encoded video stream and the encoding quality parameter to a server; and the server compares the coding quality parameters with the transcoding expected quality parameters and selects a corresponding transcoding mode to transcode the coded video stream.
In a third aspect, the present invention further provides a method for selecting video transcoding, including the following steps: the client encodes the source video stream according to the encoding quality parameter and sends the encoded video stream and the encoding quality parameter to the server;
the server acquires a transcoding expected quality parameter and compares the transcoding expected quality parameter with the coding quality parameter;
and the server selects a corresponding transcoding mode to transcode the coded video stream according to the comparison result.
In a fourth aspect, the present invention further provides a device for selecting video transcoding, including:
the receiving module is used for receiving the coding video stream and the coding quality parameter sent by the client; the encoding video stream is obtained by encoding a source video stream by a client according to an encoding quality parameter;
the comparison module is used for acquiring the transcoding expected quality parameter and comparing the transcoding expected quality parameter with the coding quality parameter;
and the transcoding module is used for selecting a corresponding transcoding mode to transcode the coded video stream according to the comparison result.
In a fifth aspect, the present invention further provides a device for selecting video transcoding, including:
the encoding module is used for encoding the source video stream according to the encoding quality parameter to obtain an encoded video stream;
a sending module, configured to send the encoded video stream and the encoding quality parameter to a server; and the server compares the coding quality parameters with the transcoding expected quality parameters and selects a corresponding transcoding mode to transcode the coded video stream.
In a sixth aspect, the present invention also provides a computer apparatus, comprising:
one or more processors;
a memory;
one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more computer programs configured to perform the method of selecting for video transcoding of any of the embodiments of the first to third aspects described above.
In a seventh aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for selecting video transcoding described in any of the embodiments of the first to third aspects.
According to the video transcoding selection method and device, in the transcoding process, the video stream quality condition and the parameter condition of the coded video stream coded by the source video stream are considered, different transcoding modes are selected according to the comparison result of the transcoding expected quality parameter and the coding quality parameter and corresponding to different transcoding expected quality requirements, the waste of video transcoding resources is avoided, the transcoding effect is improved, and the video display effect of a user is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a method of selecting video transcoding according to an embodiment of the present invention;
fig. 2 is a schematic operation flow diagram of a method for selecting video transcoding according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for selecting video transcoding according to another embodiment of the present invention;
fig. 4 is a schematic view of an operation interface of the method for selecting video transcoding shown in fig. 3 according to the present invention;
fig. 5 is a flowchart of a method of selecting video transcoding according to another embodiment of the present invention;
fig. 6 is a schematic diagram of a selection device for video transcoding according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a selection apparatus for video transcoding according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a computer device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As will be understood by those skilled in the art, a "terminal" as used herein includes both devices that include a wireless signal receiver, which are devices having only a wireless signal receiver without transmit capability, and devices that include receive and transmit hardware, which have devices capable of performing two-way communication over a two-way communication link. Such a device may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data processing, facsimile and/or data Communications capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global Positioning System) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "terminal" or "terminal device" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. As used herein, the "terminal Device" may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, or a smart tv, a set-top box, etc.
As will be appreciated by those skilled in the art, a remote network device, as used herein, includes, but is not limited to, a computer, a network host, a single network server, a collection of multiple network servers, or a cloud of multiple servers. Here, the Cloud is composed of a large number of computers or network servers based on Cloud Computing (Cloud Computing), which is a kind of distributed Computing, a super virtual computer composed of a group of loosely coupled computer sets. In the embodiment of the present invention, the communication between the remote network device, the terminal device and the WNS server may be implemented by any communication method, including but not limited to, mobile communication based on 3GPP, LTE, and WIMAX, computer network communication based on TCP/IP and UDP protocols, and short-distance wireless transmission based on bluetooth and infrared transmission standards.
The problem that transcoding resources are wasted due to the fact that transcoding is conducted only in a fixed mode at present is solved. The invention provides a method for selecting video transcoding executed by a server, and referring to fig. 1, fig. 1 is a flowchart of a method for selecting video transcoding according to an embodiment, and the method includes the following steps:
s110, receiving the coded video stream and the coding quality parameter sent by the client; and the encoding video stream is obtained by encoding the source video stream by the client according to the encoding quality parameter.
In this step, the user may obtain the source video stream through an image input device of the client, such as a camera, and share the recorded video with the user on the corresponding platform through a program specified by the client, such as a program installed on a live broadcast platform or a short video platform on the client. Since the capacity of a source video stream is large, for example, the capacity required for recording a 1080P video stream for 4 minutes is about 600Mb, in order to smoothly transmit the source video stream, the source video stream needs to be encoded, that is, the source video data needs to be compressed to form an encoded video stream, and then the encoded video stream needs to be transmitted.
The encoding video stream is obtained by setting an encoding quality parameter according to a transmission requirement at a client in order to meet the transmission requirement, and encoding the source video stream.
And the server receives the coded video stream and the coding quality parameter through the client so as to carry out transcoding subsequently.
And S120, acquiring the transcoding expected quality parameter, and comparing the transcoding expected quality parameter with the coding quality parameter.
In this step, transcoding desired quality parameters are set at the server according to the desired requirements for transcoding. When the server receives the coding quality parameters generated in step S110, it compares them with the transcoded expected quality parameters, so as to confirm the comparison between the coded video stream and the transcoded expected requirement.
S130, selecting a corresponding transcoding mode to transcode the coded video stream according to the comparison result.
Comparing the coding quality parameter with the expected code quality parameter according to the result obtained in step S120. And according to the comparison result, determining a corresponding transcoding mode for the coded video stream by considering the parameters of the coded video stream, improving the utilization rate of video transcoding resources and other factors.
The video transcoding selection method provided by the embodiment of the invention considers the video stream quality condition and the parameter condition of the coded video stream coded by the source video stream, selects different transcoding modes corresponding to different coded video stream conditions, and improves the utilization rate of video transcoding resources, thereby improving the transcoding effect and finally being beneficial to realizing the improvement of the video display effect of a user.
For the above-mentioned encoding quality parameters, in the present embodiment, the first quality factor c _ quality and the first code rate cbpp are included.
In the embodiment provided by the invention, the quality factor is marked as quality, and the code rate is marked as bpp.
The code rate is the number of data bits transmitted per unit time during data transmission. The higher the code rate, the higher the precision, and the closer the quality of the processed video stream is to the source video stream. The quality factor can represent the quality of the corresponding video stream. As for an encoded video stream, the higher the corresponding first quality factor c _ quality, the higher the quality of the encoded video stream. The code rate is proportional to the quality factor.
Therefore, the encoding quality parameters including the first quality factor c _ quality and the first code rate cbpp can reflect the quality condition of the encoded video stream, so that the server can parse the encoded video stream after the original video stream is encoded through the encoding quality parameters, and accurate data of the source video is provided for subsequent transcoding selection.
And after the server receives the coded video stream sent by the client, the first quality factor c _ quality and the first code rate cbpp, the server acquires the set transcoding expected quality parameters. Wherein the transcoding desired quality parameter comprises a second bitrate sbpp and a second quality factor s _ quality. And reflecting the expected quality of the transcoding through the set second quality factor s _ quality and the second code rate sbpp.
In one embodiment, the step of comparing the transcoding desired quality parameter with the coding quality parameter comprises: comparing the second code rate sbpp with the first code rate cbpp, and comparing the second quality factor s _ quality with the first quality factor c _ quality, respectively. When the second code rate sbpp is less than or equal to the first code rate cbpp and the second quality factor s _ quality is greater than the first quality factor c _ quality, since the desired quality of the transcoding is higher than the quality of the encoded video stream but the second code rate sbpp is lower than the first code rate cbpp, the second code rate sbpp cannot meet the desired quality of the transcoding, that is, the transcoding resource does not meet the quality requirement of the transcoding, and at this time, the corresponding transcoding operation cannot be performed, and the corresponding transcoding operation is directly ended.
And if the second code rate sbpp is greater than the first code rate cbpp, transcoding the coded video stream in a CRF coding mode by using the set second code rate sbpp as a boundary and the second code rate sbpp representing the transcoding expected quality. In this embodiment, since the second code rate sbpp is greater than the first code rate cbpp, the transcoding expected quality is higher than the encoding quality, which helps to improve the transcoding effect.
In another embodiment, if the encoding quality parameter further comprises an average quality factor c _ avg _ quality of the encoded video stream, the step of comparing the transcoding desired quality parameter with the encoding quality parameter comprises at least the following two parallel cases.
The first case is that the second code rate sbpp is compared with the first code rate cbpp and the second quality factor s _ quality is compared with the average quality factor c _ avg _ quality, respectively. At this time, if the obtained comparison result is that the second bitrate sbpp is less than or equal to the first bitrate cbpp and the second quality factor s _ quality is equal to the average quality factor c _ avg _ quality, the quality of the encoded video stream is close to the transcoding expected quality, and the first bitrate cbpp of the encoded video stream just meets the transcoding expected quality, at this time, the encoded video stream is transcoded in an ABR encoding manner directly according to the first bitrate cbpp of the encoding quality parameter without considering the first quality factor c _ quality in the encoding quality parameter and the second bitrate sbpp and the second quality factor s _ quality in the transcoding expected quality parameter.
In the second case, the second code rate sbpp is also compared with the first code rate cbpp and the second quality factor s _ quality is compared with the average quality factor c _ avg _ quality, respectively. If the transcoding desired quality is less than the encoded video stream quality when the second bitrate sbpp is less than or equal to the first bitrate cbpp and the second quality factor s _ quality is less than the average quality factor c _ avg _ quality, there may be a case where the first bitrate cbpp of the encoded video stream is not fully utilized to complete transcoding of the encoded video stream since the first bitrate cbpp of the encoded video stream is greater than the second bitrate sbpp of the transcoding desired quality, and then the encoded video stream is transcoded in CRF coding mode with the second bitrate sbpp of the transcoding desired quality parameter and the second quality factor s _ quality as the specified transcoding bitrate and the specified desired transcoding quality.
According to the above description of the embodiment of the method for selecting transcoding performed by the server, a flowchart of the method for selecting transcoding of video can be obtained, as shown in fig. 2.
S210, receiving an encoded video stream sent by a client and a first bitrate cbpp, a first quality factor c _ quality and an average quality factor c _ avg _ quality of the encoding quality parameters;
s220, acquiring a second code rate sbpp and a second quality factor S _ quality of the transcoding expected quality parameter;
s230, switching to S270, wherein the second code rate sbpp is less than or equal to the first code rate cbpp, and the second quality factor S _ quality is greater than the first quality factor c _ quality;
s240, the second code rate sbpp is less than or equal to the first code rate cbpp, the second quality factor S _ quality is equal to the average quality factor c _ avg _ quality, and S280 is switched;
s250, the second code rate sbpp is less than or equal to the first code rate cbpp, the second quality factor S _ quality is less than the average quality factor c _ avg _ quality, and S290 is carried out;
s260, converting the second code rate sbpp to S290, wherein the second code rate sbpp is greater than the first code rate cbpp;
s270, ending;
s280, transcoding in an ABR coding mode;
and S290, transcoding in a CRF coding mode.
The video transcoding selection method solves the problem that in the prior art, a server only carries out transcoding in a fixed mode so as to easily cause transcoding resource waste, and in the transcoding operation, the server refers to a first code rate cbpp and a first quality factor c _ quality or an average quality factor c _ avg _ quality for encoding an original video stream and respectively compares the first code rate cbpp and the second quality factor s _ quality with a second code rate sbpp and a second quality factor s _ quality in transcoding expected quality parameters, and the transcoding mode can be directly selected according to the condition of a source video stream from transcoding. When transcoding is carried out, only the ABR coding is carried out on the coded video stream according to the second code rate sbpp of the specified coding rate, or the CRF coding is carried out on the second code rate sbpp of the coding rate and/or the second quality factor s _ quality of the specified expected coding quality, so that the transcoding can meet the transcoding expected quality as much as possible according to different transcoding resource conditions.
The problem that transcoding resources are wasted due to the fact that transcoding is conducted only in a fixed mode at present is solved. The invention provides a method for selecting video transcoding executed by a client, and referring to fig. 3, fig. 3 is a flowchart of a method for selecting video transcoding according to an embodiment, and the method includes the following steps:
and S310, encoding the source video stream according to the encoding quality parameter to obtain an encoded video stream.
In this step, a user uses the image input device of the client, as shown in the operation interface of the client in fig. 4, at this time, the client is a mobile terminal, the user starts a live program by clicking a "start live" control key 410 in a live interface of the mobile terminal, and the mobile terminal can acquire a source video stream through a front camera and share a recorded video with a user on a corresponding platform through the live program. Since the capacity of a video stream is large, for example, the capacity required for recording a 1080P video stream for 4 minutes is about 600Mb, in order to smoothly transmit the source video stream, the source video stream needs to be encoded, that is, the source video stream needs to be compressed to form an encoded video stream, and then the encoded video stream needs to be transmitted.
The encoded video stream is obtained by setting an encoding quality parameter at a client according to a transmission requirement so as to encode the original video stream in order to meet the transmission requirement.
S320, sending the coded video stream and the coding quality parameter to a server; and the server compares the coding quality parameters with the transcoding expected quality parameters and selects a corresponding transcoding mode to transcode the coded video stream.
The client sends the encoded video stream and the corresponding encoding quality parameter obtained in step S310 to the server. And the server compares the coding quality parameters with the acquired transcoding expected quality parameters, and selects a corresponding transcoding mode according to the obtained comparison result by combining the factors of considering the parameters of the coded video stream, improving the utilization rate of video transcoding resources and the like.
The video transcoding selection method provided by the embodiment of the invention provides reference comparison of data for subsequent video transcoding according to the video stream quality condition and the parameter condition of the coded video stream coded by the source video stream, is favorable for selecting a transcoding mode according to the conditions of the source video stream and the corresponding coded video stream, and overcomes the problem that transcoding resources are easily wasted due to the fact that transcoding is only carried out in a fixed mode at present, so that the transcoding effect is improved, and finally the video display effect of a user is improved.
For the above-mentioned encoding quality parameters, in the present embodiment, the first quality factor c _ quality and the first code rate cbpp are included.
The code rate is the number of data bits transmitted per unit time during data transmission. The higher the code rate, the higher the precision, and the closer the processed video stream is to the original video stream. The quality factor can represent the quality of the corresponding video stream. As for an encoded video stream, the higher the corresponding first quality factor c _ quality, the higher the quality of the encoded video stream. The code rate is proportional to the quality factor.
Therefore, the encoding quality parameters including the first quality factor c _ quality and the first code rate cbpp can reflect the quality condition of the encoded video stream, so that after the client transmits the first quality factor c _ quality and the first code rate cbpp to the server, the encoded video stream obtained by encoding the source video stream can be analyzed through the encoding quality parameters, and accurate data of the source video stream are provided for subsequent transcoding selection.
And the client sends the coded video stream, the first quality factor c _ quality and the first code rate cbpp to the server, and compares the coded video stream with the transcoding expected quality parameter obtained and set by the server. Wherein the transcoding desired quality parameter comprises a second bitrate sbpp and a second quality factor s _ quality. And reflecting the expected quality of the transcoding through the set second quality factor s _ quality and the second code rate sbpp.
In one embodiment, the second code rate sbpp and the first code rate cbpp are compared, and the second quality factor s _ quality and the first quality factor c _ quality are compared, respectively. When the second code rate sbpp is less than or equal to the first code rate cbpp and the second quality factor s _ quality is greater than the first quality factor c _ quality, since the desired quality of the transcoding is higher than the quality of the encoded video stream but the second code rate sbpp is lower than the first code rate cbpp, the second code rate sbpp cannot meet the desired quality of the transcoding, that is, the transcoding resource does not meet the quality requirement of the transcoding, and at this time, the corresponding transcoding operation cannot be performed, and the corresponding transcoding operation is directly ended.
And if the second code rate sbpp is greater than the first code rate cbpp, transcoding the coded video stream in a CRF coding mode by using the set second code rate sbpp as a boundary and the second code rate sbpp representing the transcoding expected quality. In this embodiment, since the second code rate sbpp is greater than the first code rate cbpp, the transcoding expected quality is higher than the encoding quality, which helps to improve the transcoding effect.
In one embodiment, if the encoding quality parameter further includes an average quality factor c _ avg _ quality of the encoded video stream, the comparing the transcoding expected quality parameter with the encoding quality parameter includes at least the following two parallel cases. The first case is that the second code rate sbpp is compared with the first code rate cbpp and the second quality factor s _ quality is compared with the average quality factor c _ avg _ quality, respectively. At this time, if the obtained comparison result is that the second bitrate sbpp is less than or equal to the first bitrate cbpp and the second quality factor s _ quality is equal to the average quality factor c _ avg _ quality, the quality of the encoded video stream is close to the transcoding expected quality, and the first bitrate cbpp of the encoded video stream just meets the transcoding expected quality, at this time, the encoded video stream is transcoded in an ABR encoding manner directly according to the first bitrate cbpp of the encoding quality parameter without considering the first quality factor c _ quality in the encoding quality parameter and the second bitrate sbpp and the second quality factor s _ quality in the transcoding expected quality parameter.
In the second case, the second code rate sbpp is also compared with the first code rate cbpp and the second quality factor s _ quality is compared with the average quality factor c _ avg _ quality, respectively. If the transcoding desired quality is less than the encoded video stream quality when the second bitrate sbpp is less than or equal to the first bitrate cbpp and the second quality factor s _ quality is less than the average quality factor c _ avg _ quality, there may be a case where the first bitrate cbpp of the encoded video stream is not fully utilized to complete transcoding of the encoded video stream since the first bitrate cbpp of the encoded video stream is greater than the second bitrate sbpp of the transcoding desired quality, and then the encoded video stream is transcoded in CRF coding mode with the second bitrate sbpp of the transcoding desired quality parameter and the second quality factor s _ quality as the specified transcoding bitrate and the specified desired transcoding quality.
The video transcoding selection method solves the problem that transcoding resources are easily wasted due to the fact that transcoding is performed only in a fixed mode in the prior art, in the transcoding operation, a client provides a first code rate cbpp and a first quality factor c _ quality or an average quality factor c _ avg _ quality of an original video stream code, the first code rate cbpp and the first quality factor c _ quality or the average quality factor c _ avg _ quality are respectively compared with a second code rate sbpp and a second quality factor s _ quality in transcoding expected quality parameters, and the transcoding mode can be directly selected according to the situation of a source video stream from transcoding. When transcoding is carried out, only the ABR coding is carried out on the coded video stream according to the second code rate sbpp of the specified coding rate, or the CRF coding is carried out on the second code rate sbpp of the coding rate and/or the second quality factor s _ quality of the specified expected coding quality, so that the transcoding can meet the transcoding expected quality as much as possible according to different transcoding resource conditions.
The problem that transcoding resources are wasted due to the fact that transcoding is conducted only in a fixed mode at present is solved. The invention provides a method for selecting video transcoding interactively executed by a client and a server, and referring to fig. 5, fig. 5 is a flowchart of the method for selecting video transcoding of an embodiment, and the method comprises the following steps:
s510, the client encodes the video data according to the encoding quality parameters, and sends the encoded video stream and the encoding quality parameters to a server.
In this step, a user may obtain a source video stream through an image input device of the client, such as a camera, and share the recorded video with the user on the corresponding platform through a program specified by the client, such as a program installed on a live broadcast platform or a short video platform at the client. Since the capacity of a video stream is large, for example, the capacity required for recording a 1080P video stream for 4 minutes is about 600Mb, in order to smoothly transmit the source video stream, the source video stream needs to be encoded, that is, the source video stream needs to be compressed to form an encoded video stream, and then the encoded video stream needs to be transmitted.
The encoding video stream is obtained by setting an encoding quality parameter according to a transmission requirement at a client in order to meet the transmission requirement, and encoding the source video stream.
And the server receives the coded video stream and the coding quality parameter through the client so as to carry out transcoding subsequently.
S520, the server acquires the transcoding expected quality parameter and compares the transcoding expected quality parameter with the coding quality parameter.
In this step, transcoding desired quality parameters are set at the server according to the desired requirements for transcoding. When the server receives the encoding quality parameters generated in step S510, it compares them with the transcoded expected quality parameters, so as to confirm the comparison between the encoded video stream and the transcoded expected requirement.
S530, the server selects a corresponding transcoding mode to transcode the coded video stream according to the comparison result.
And determining a corresponding transcoding mode for the coded video stream according to the comparison result of the coding quality parameter and the code expected quality parameter obtained in the step S520 and by considering the parameters of the coded video stream, the utilization rate of video transcoding resources and other factors.
The video transcoding selection method provided by the embodiment of the invention considers the video stream quality condition and the parameter condition of the coded video stream coded by the original video stream, selects different transcoding modes corresponding to different coded video stream conditions, and improves the utilization rate of video transcoding resources, thereby improving the transcoding effect and finally being beneficial to realizing the improvement of the video display effect of a user.
For the above-mentioned encoding quality parameters, in the present embodiment, the first quality factor c _ quality and the first code rate cbpp are included.
The code rate is the number of data bits transmitted per unit time during data transmission. The higher the code rate, the higher the accuracy, and the closer the quality of the processed video stream is to the source video stream. The quality factor can represent the quality of the corresponding video stream. As for an encoded video stream, the higher the corresponding first quality factor c _ quality, the higher the quality of the encoded video stream. The code rate is proportional to the quality factor.
Therefore, the encoding quality parameters including the first quality factor c _ quality and the first code rate cbpp can reflect the quality condition of the encoded video stream, so that the server can analyze the encoded video stream after the source video stream is encoded according to the encoding quality parameters, and accurate data of the source video stream is provided for subsequent transcoding selection.
And after the server receives the coded video stream sent by the client, the first quality factor c _ quality and the first code rate cbpp, the server acquires the set transcoding expected quality parameters. Wherein the transcoding desired quality parameter comprises a second bitrate sbpp and a second quality factor s _ quality. And reflecting the expected quality of the transcoding through the set second quality factor s _ quality and the second code rate sbpp.
In one embodiment, the transcoding desired quality parameter is compared to the encoding quality parameter: comparing the second code rate sbpp with the first code rate cbpp, and comparing the second quality factor s _ quality with the first quality factor c _ quality, respectively. When the second code rate sbpp is less than or equal to the first code rate cbpp and the second quality factor s _ quality is greater than the first quality factor c _ quality, since the desired quality of the transcoding is higher than the quality of the encoded video stream but the second code rate sbpp is lower than the first code rate cbpp, the second code rate sbpp cannot meet the desired quality of the transcoding, that is, the transcoding resource does not meet the quality requirement of the transcoding, and at this time, the corresponding transcoding operation cannot be performed, and the corresponding transcoding operation is directly ended.
And if the second code rate sbpp is greater than the first code rate cbpp, transcoding the coded video stream in a CRF coding mode by using the set second code rate sbpp as a boundary and the second code rate sbpp representing the transcoding expected quality. In this embodiment, since the second code rate sbpp is greater than the first code rate cbpp, the transcoding expected quality is higher than the encoding quality, which helps to improve the transcoding effect.
In another embodiment, if the encoding quality parameter further comprises an average quality factor c _ avg _ quality of the encoded video stream, the step of comparing the transcoding desired quality parameter with the encoding quality parameter comprises at least the following two parallel cases.
The first case is that the second code rate sbpp is compared with the first code rate cbpp and the second quality factor s _ quality is compared with the average quality factor c _ avg _ quality, respectively. At this time, if the obtained comparison result is that the second bitrate sbpp is less than or equal to the first bitrate cbpp and the second quality factor s _ quality is equal to the average quality factor c _ avg _ quality, the quality of the encoded video stream is close to the transcoding expected quality, and the first bitrate cbpp of the encoded video stream just meets the transcoding expected quality, at this time, the encoded video stream is transcoded in an ABR encoding manner directly according to the first bitrate cbpp of the encoding quality parameter without considering the first quality factor c _ quality in the encoding quality parameter and the second bitrate sbpp and the second quality factor s _ quality in the transcoding expected quality parameter.
In the second case, the second code rate sbpp is also compared with the first code rate cbpp and the second quality factor s _ quality is compared with the average quality factor c _ avg _ quality, respectively. If the transcoding desired quality is less than the encoded video stream quality when the second bitrate sbpp is less than or equal to the first bitrate cbpp and the second quality factor s _ quality is less than the average quality factor c _ avg _ quality, there may be a case where the first bitrate cbpp of the encoded video stream is not fully utilized to complete transcoding of the encoded video stream since the first bitrate cbpp of the encoded video stream is greater than the second bitrate sbpp of the transcoding desired quality, and then the encoded video stream is transcoded in CRF coding mode with the second bitrate sbpp of the transcoding desired quality parameter and the second quality factor s _ quality as the specified transcoding bitrate and the specified desired transcoding quality.
The method for selecting the video transcoding solves the problem that in the prior art, a server only performs transcoding in a fixed mode without the help of parameters provided by a client and related to a source video stream, and transcoding resources are easily wasted. When transcoding is carried out, only the ABR coding is carried out on the coded video stream according to the second code rate sbpp of the specified coding rate, or the CRF coding is carried out on the second code rate sbpp of the coding rate and/or the second quality factor s _ quality of the specified expected coding quality, so that the transcoding can meet the transcoding expected quality as much as possible according to different transcoding resource conditions.
Based on the same inventive concept as the method for selecting video transcoding performed by the server, an embodiment of the present invention further provides a device for selecting video transcoding, as shown in fig. 6, including:
a receiving module 610, configured to receive an encoded video stream and the encoding quality parameter sent by a client; the encoding video stream is obtained by encoding a source video stream by a client according to an encoding quality parameter;
a comparing module 620, configured to obtain a transcoding expected quality parameter, and compare the transcoding expected quality parameter with the encoding quality parameter;
and a transcoding module 630, configured to select a corresponding transcoding method to transcode the encoded video stream according to the comparison result.
Based on the same inventive concept as the video transcoding selecting method executed by the client, an embodiment of the present invention further provides a video transcoding selecting apparatus, as shown in fig. 7, including:
the encoding module 710 is configured to encode the source video stream according to the encoding quality parameter to obtain an encoded video stream;
a sending module 720, configured to send the encoded video stream and the encoding quality parameter to a server; and the server compares the coding quality parameters with the transcoding expected quality parameters and selects a corresponding transcoding mode to transcode the coded video stream.
Referring to fig. 8, fig. 8 is a schematic diagram illustrating an internal structure of a computer device according to an embodiment. In the present invention, the computer device includes a client and/or a server. As shown in fig. 8, the computer device includes a processor 810, a storage medium 820, a memory 830, and a network interface 840 connected by a system bus. The storage medium 820 of the computer device stores an operating system, a database, and computer readable instructions, wherein the database may store control information sequences, and the computer readable instructions, when executed by the processor 810, may cause the processor 810 to implement a method for selecting video transcoding. When the computer device is a server, the processor 810 can implement the functions of the receiving module 610, the comparing module 620 and the transcoding module 630 in the selecting apparatus for video transcoding in the embodiment shown in fig. 6; when the computer device is a client, the processor 810 can implement the functions of the encoding module 710 and the sending module 720 in the selecting device for video transcoding in the embodiment shown in fig. 7. The processor 810 of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory 830 of the computer device may have stored therein computer readable instructions that, when executed by the processor 810, may cause the processor 810 to perform a method of selecting for video transcoding. The network interface 840 of the computer device is used for communicating with the terminal connection. Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
If the client is a mobile terminal, as shown in fig. 9, for convenience of description, only the part related to the embodiment of the present invention is shown, and details of the method are not disclosed. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, etc., taking the terminal as the mobile phone as an example:
fig. 9 is a block diagram showing a partial structure of a mobile phone related to a terminal provided by an embodiment of the present invention. Referring to fig. 9, the handset includes: radio Frequency (RF) circuit 910, memory 920, input unit 930, display unit 940, sensor 950, audio circuit 960, wireless fidelity (Wi-Fi) module 970, processor 980, and power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 7 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 9:
the RF circuit 910 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information of a base station and then processing the received downlink information to the processor 980; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a voiceprint playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 930 may include a touch panel 931 and other input devices 932. The touch panel 931, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 931 (e.g., a user's operation on or near the touch panel 931 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a preset program. Alternatively, the touch panel 931 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 980, and can receive and execute commands sent by the processor 980. In addition, the touch panel 931 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 930 may include other input devices 932 in addition to the touch panel 931. In particular, other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 940 may include a Display panel 941, and optionally, the Display panel 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 931 may cover the display panel 941, and when the touch panel 931 detects a touch operation on or near the touch panel 931, the touch panel transmits the touch operation to the processor 980 to determine the type of the touch event, and then the processor 980 provides a corresponding visual output on the display panel 941 according to the type of the touch event. Although in fig. 7, the touch panel 931 and the display panel 941 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 931 and the display panel 941 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 941 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 941 and/or backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and the electrical signal is converted into a voiceprint signal by the speaker 961 for output; microphone 962, on the other hand, converts the collected voiceprint signals into electrical signals, which are received by audio circuit 960 and converted into audio data, which are processed by audio data output processor 980, either through RF circuit 910 for transmission to, for example, another cell phone, or output to memory 920 for further processing.
Wi-Fi belongs to short-distance wireless transmission technology, and a mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through a Wi-Fi module 970, and provides wireless broadband internet access for the user. Although fig. 7 shows the Wi-Fi module 970, it is understood that it does not belong to the essential constitution of the cellular phone and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The handset also includes a power supply 990 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 980 via a power management system, thereby providing management of charging, discharging, and power consumption via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiment of the present invention, the processor 980 included in the terminal further has the following functions: the rights 1 content. That is, the processor 980 has a function of executing the selecting method of video transcoding according to any of the above embodiments, and details thereof are not described herein.
In one embodiment, the present invention also provides a storage medium storing computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of:
when the computer device is a server, the steps executed are as follows: receiving a coded video stream and the coding quality parameter sent by a client; the encoding video stream is obtained by encoding a source video stream by a client according to an encoding quality parameter; acquiring a transcoding expected quality parameter, and comparing the transcoding expected quality parameter with the coding quality parameter; and selecting a corresponding transcoding mode to transcode the coded video stream according to the comparison result.
When the computer equipment is a client, the executed steps are as follows: encoding the source video stream according to the encoding quality parameter to obtain an encoded video stream; sending the encoded video stream and the encoding quality parameter to a server; and the server compares the coding quality parameters with the transcoding expected quality parameters and selects a corresponding transcoding mode to transcode the coded video stream.
When the computer device is a combination of a server and a client, the steps performed are: the client encodes the source video stream according to the encoding quality parameter and sends the encoded video stream and the encoding quality parameter to the server; the server acquires a transcoding expected quality parameter and compares the transcoding expected quality parameter with the coding quality parameter; and the server selects a corresponding transcoding mode to transcode the coded video stream according to the comparison result.
The beneficial effects of the invention are that the above embodiments are combined: the parameters related to the source video stream provided by the client are synchronously referenced, and the corresponding transcoding mode is selected according to the video transcoding resources, so that the utilization rate of the video transcoding resources is improved, and the transcoding effect is improved.
According to the video transcoding selection method provided by the embodiment of the invention, in the transcoding process, the video stream quality condition and the parameter condition of the coded video stream coded by the source video stream are considered, and different transcoding modes are selected according to the comparison result of the transcoding expected quality parameter and the coding quality parameter and corresponding to different transcoding expected quality requirements, so that the waste of video transcoding resources is avoided, the transcoding effect is improved, and the improvement of the video display effect of a user is facilitated finally.
In the video transcoding selection method, in the transcoding operation, a server refers to a first code rate cbpp and a first quality factor c _ quality or an average quality factor c _ avg _ quality provided by a client and used for encoding an original video stream, and compares the first code rate cbpp and the average quality factor c _ avg _ quality with a second code rate sbpp and a second quality factor s _ quality in transcoding expected quality parameters respectively, and the transcoding mode can be selected directly according to the condition of the source video stream from transcoding. When transcoding is carried out, only the ABR coding is carried out on the coded video stream according to the second code rate sbpp of the specified coding rate, or the CRF coding is carried out according to the second code rate sbpp of the specified coding rate and/or the second quality factor s _ quality of the specified expected coding quality, so that the transcoding can meet the transcoding expected quality as much as possible according to different transcoding resource conditions.
In summary, the invention selects a corresponding transcoding mode according to the transcoding resources and the transcoding expected quality through the comparison of the encoding quality parameters and the transcoding expected quality parameters of the original video stream, thereby solving the problem that transcoding resources are easily wasted because transcoding is performed only in a fixed mode in the prior art.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
According to the video transcoding selection method and device, the video stream quality condition and the parameter condition of the coded video stream coded by the original video stream are considered, different transcoding modes are selected corresponding to different coded video stream conditions, the utilization rate of video transcoding resources is improved, the transcoding effect is improved, and the video display effect of a user is improved.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A method for selecting video transcoding is characterized by comprising the following steps:
receiving a coded video stream and a coding quality parameter sent by a client; the encoding method comprises the steps that an encoding video stream is obtained by encoding a source video stream by a client according to encoding quality parameters, wherein the encoding quality parameters comprise a first quality factor, an average quality factor and a first code rate, the first quality factor is used for evaluating the quality of the encoding video stream, and the first code rate is the data bit number transmitted in unit time during data transmission of the encoding video stream and is used for evaluating the degree that the quality of the video stream is close to the source video stream; the first quality factor is proportional to a first code rate;
acquiring a transcoding expected quality parameter, comparing a second code rate in the transcoding expected quality parameter with a first code rate of the coding quality parameter, and comparing a second quality factor in the transcoding expected quality parameter with a first quality factor or an average quality factor of the coding quality parameter; wherein the transcoding desired quality parameter comprises a second quality factor and a second bitrate;
and simultaneously selecting a corresponding transcoding mode to transcode the coded video stream according to the first quality factor, the average quality and the second quality factor and the comparison result of the first code rate and the second code rate.
2. The method of claim 1, wherein the step of selecting a corresponding transcoding method to transcode the encoded video stream according to the result of the comparison comprises:
and when the second code rate is greater than the first code rate, selecting a CRF (conditional random access) coding mode to transcode the coded video stream.
3. The method of claim 1, wherein the encoding quality parameter further comprises an average quality factor of the encoded video stream;
the step of comparing the transcoding desired quality parameter with the encoding quality parameter comprises:
comparing the second code rate with the first code rate respectively, and comparing the second quality factor with the average quality factor;
the step of selecting a corresponding transcoding mode to transcode the encoded video stream according to the result of the comparison comprises:
and when the second code rate is less than or equal to the first code rate and the second quality factor is equal to the average quality factor, carrying out ABR transcoding on the coded video stream.
4. The method of claim 1, wherein the encoding quality parameter further comprises an average quality factor of the video stream;
the step of comparing the transcoding desired quality parameter with the encoding quality parameter comprises:
comparing the second code rate with the first code rate respectively, and comparing the second quality factor with the average quality factor;
the step of selecting a corresponding transcoding mode to transcode the encoded video stream according to the result of the comparison comprises:
and when the second code rate is less than or equal to the first code rate and the second quality factor is less than the average quality factor, performing CRF transcoding on the coded video stream.
5. The method of claim 1, further comprising:
when the second code rate is less than or equal to the first code rate and the second quality factor is greater than the first quality factor, transcoding the video stream is not required.
6. A method for selecting video transcoding is characterized by comprising the following steps:
encoding the source video stream according to the encoding quality parameter to obtain an encoded video stream; the encoding quality parameters comprise a first quality factor, an average quality factor and a first code rate, wherein the first quality factor is used for evaluating the quality of the encoded video stream, and the first code rate is the number of data bits transmitted in unit time during data transmission of the encoded video stream and is used for evaluating the degree that the quality of the video stream is close to that of the source video stream; the first quality factor is proportional to a first code rate;
sending the encoded video stream and the encoding quality parameter to a server; the server compares a second code rate in the transcoding expected quality parameters with a first code rate of the coding quality parameters, compares a first quality factor, an average quality and a second quality factor of the coding quality parameters with a second quality factor and a second code rate of the transcoding expected quality parameters respectively, and selects a corresponding transcoding mode to transcode the coded video stream; the transcoding desired quality parameter comprises a second quality factor and a second bitrate.
7. A method for selecting video transcoding is characterized by comprising the following steps:
the client encodes the source video stream according to the encoding quality parameter and sends the encoded video stream and the encoding quality parameter to the server; the encoding quality parameters comprise a first quality factor, an average quality factor and a first code rate, wherein the first quality factor is used for evaluating the quality of the encoded video stream, and the first code rate is the number of data bits transmitted in unit time during data transmission of the encoded video stream and is used for evaluating the degree that the quality of the video stream is close to that of the source video stream; the first quality factor is proportional to a first code rate;
the server acquires the transcoding expected quality parameters, compares a second code rate in the transcoding expected quality parameters with a first code rate of the coding quality parameters, and compares a second quality factor in the transcoding expected quality parameters with a first quality factor or an average quality factor of the coding quality parameters; wherein the transcoding desired quality parameter comprises a second quality factor and a second bitrate;
and the server selects a corresponding transcoding mode to transcode the coded video stream according to the comparison result.
8. An apparatus for selecting video transcoding, comprising:
the receiving module is used for receiving the coded video stream and the coding quality parameter sent by the client; the encoding method comprises the steps that an encoding video stream is obtained by encoding a source video stream by a client according to encoding quality parameters, wherein the encoding quality parameters comprise a first quality factor, an average quality factor and a first code rate, the first quality factor is used for evaluating the quality of the encoding video stream, and the first code rate is the data bit number transmitted in unit time during data transmission of the encoding video stream and is used for evaluating the degree that the quality of the video stream is close to the source video stream; the first quality factor is proportional to a first code rate;
the comparison module is used for acquiring the transcoding expected quality parameters, comparing a second code rate in the transcoding expected quality parameters with a first code rate of the coding quality parameters, and comparing a second quality factor in the transcoding expected quality parameters with a first quality factor or an average quality factor of the coding quality parameters; wherein the transcoding desired quality parameter comprises a second quality factor and a second bitrate;
and the transcoding module is used for selecting a corresponding transcoding mode to transcode the coded video stream according to the first quality factor, the average quality and the second quality factor and the comparison result of the first code rate and the second code rate.
9. An apparatus for selecting video transcoding, comprising:
the encoding module is used for encoding the source video stream according to the encoding quality parameter to obtain an encoded video stream; the encoding quality parameters comprise a first quality factor, an average quality factor and a first code rate, wherein the first quality factor is used for evaluating the quality of the encoded video stream, and the first code rate is the number of data bits transmitted in unit time during data transmission of the encoded video stream and is used for evaluating the degree that the quality of the video stream is close to that of the source video stream; the first quality factor is proportional to a first code rate;
a sending module, configured to send the encoded video stream and the encoding quality parameter to a server; the server compares a second code rate in the transcoding expected quality parameters with a first code rate of the coding quality parameters, compares a first quality factor, an average quality and a second quality factor of the coding quality parameters with a second quality factor and a second code rate of the transcoding expected quality parameters respectively, and selects a corresponding transcoding mode to transcode the coded video stream; the transcoding desired quality parameter comprises a second quality factor and a second bitrate.
10. A computer device, comprising:
one or more processors;
a memory;
one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more computer programs configured to perform the method of selecting for video transcoding of any of claims 1 to 5 or 6 or 7.
11. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the method of selecting for video transcoding of any of claims 1 to 5 or 6 or 7.
CN201811549955.7A 2018-12-18 2018-12-18 Video transcoding selection method and device Active CN109729384B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811549955.7A CN109729384B (en) 2018-12-18 2018-12-18 Video transcoding selection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811549955.7A CN109729384B (en) 2018-12-18 2018-12-18 Video transcoding selection method and device

Publications (2)

Publication Number Publication Date
CN109729384A CN109729384A (en) 2019-05-07
CN109729384B true CN109729384B (en) 2021-11-19

Family

ID=66296785

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811549955.7A Active CN109729384B (en) 2018-12-18 2018-12-18 Video transcoding selection method and device

Country Status (1)

Country Link
CN (1) CN109729384B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166797B (en) * 2019-05-17 2022-02-01 北京达佳互联信息技术有限公司 Video transcoding method and device, electronic equipment and storage medium
CN111107395B (en) * 2019-12-31 2021-08-03 广州市百果园网络科技有限公司 Video transcoding method, device, server and storage medium
CN111277827B (en) 2020-02-24 2022-12-20 腾讯科技(深圳)有限公司 Video data processing method, device, equipment and readable storage medium
CN111901631B (en) * 2020-07-30 2023-02-17 有半岛(北京)信息科技有限公司 Transcoding method, device, server and storage medium for live video
CN113486939A (en) * 2021-06-30 2021-10-08 平安证券股份有限公司 Method, device, terminal and storage medium for processing pictures
CN113938681A (en) * 2021-09-26 2022-01-14 浪潮云信息技术股份公司 System and method for controlling video code rate in multiple modes

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065339A (en) * 2010-11-09 2011-05-18 中国电信股份有限公司 Method and system for playing audio and video media stream
CN107846590A (en) * 2016-09-19 2018-03-27 阿里巴巴集团控股有限公司 The method and video encoder of a kind of Video coding

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017036568A1 (en) * 2015-09-04 2017-03-09 Telefonaktiebolaget Lm Ericsson (Publ) Improved cloud dvr storage

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065339A (en) * 2010-11-09 2011-05-18 中国电信股份有限公司 Method and system for playing audio and video media stream
CN107846590A (en) * 2016-09-19 2018-03-27 阿里巴巴集团控股有限公司 The method and video encoder of a kind of Video coding

Also Published As

Publication number Publication date
CN109729384A (en) 2019-05-07

Similar Documents

Publication Publication Date Title
CN109729384B (en) Video transcoding selection method and device
CN108322685B (en) Video frame insertion method, storage medium and terminal
CN107005721B (en) Live broadcast room video stream push control method, corresponding server and mobile terminal
CN106412691B (en) Video image intercepting method and device
CN108235058B (en) Video quality processing method, storage medium and terminal
CN106412702B (en) Video clip intercepting method and device
CN108259975B (en) Video playing method, storage medium and terminal
CN108322780B (en) Prediction method of platform user behavior, storage medium and terminal
WO2015058656A1 (en) Live broadcast control method and main broadcast device
CN109168013B (en) Method, device and equipment for extracting frame and computer readable storage medium
CN108337533B (en) Video compression method and device
CN111010576B (en) Data processing method and related equipment
CN111612093A (en) Video classification method, video classification device, electronic equipment and storage medium
CN108834132B (en) Data transmission method and equipment and related medium product
CN107295591B (en) Call method, device, computer storage medium and mobile terminal
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN108460769B (en) image processing method and terminal equipment
CN109495769B (en) Video communication method, terminal, smart television, server and storage medium
CN107330867B (en) Image synthesis method, image synthesis device, computer-readable storage medium and computer equipment
CN108877733B (en) Color temperature adjusting method and related device
CN112691363A (en) Cross-terminal switching method and related device for cloud games
CN112888024B (en) Data processing method, data processing device, storage medium and electronic equipment
CN109286414B (en) Antenna determination method and terminal
CN107894958B (en) Junk information cleaning method, terminal, server and computer readable storage medium
CN111372127B (en) Data transmission method and related device

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
TR01 Transfer of patent right

Effective date of registration: 20220523

Address after: 31a, 15th floor, building 30, maple commercial city, bangrang Road, Brazil

Patentee after: Baiguoyuan Technology (Singapore) Co.,Ltd.

Address before: Building B-1, North District, Wanda Commercial Plaza, Wanbo business district, No. 79, Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU BAIGUOYUAN INFORMATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right