WO2018192518A1 - Dispositif et procédé de traitement de données et support d'informations - Google Patents

Dispositif et procédé de traitement de données et support d'informations Download PDF

Info

Publication number
WO2018192518A1
WO2018192518A1 PCT/CN2018/083501 CN2018083501W WO2018192518A1 WO 2018192518 A1 WO2018192518 A1 WO 2018192518A1 CN 2018083501 W CN2018083501 W CN 2018083501W WO 2018192518 A1 WO2018192518 A1 WO 2018192518A1
Authority
WO
WIPO (PCT)
Prior art keywords
transcoding
classification information
data
transcoded
preset
Prior art date
Application number
PCT/CN2018/083501
Other languages
English (en)
Chinese (zh)
Inventor
张宏顺
韩冰杰
林四新
李雅卿
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2018192518A1 publication Critical patent/WO2018192518A1/fr

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/40Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
    • 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/136Incoming video signal characteristics or properties

Definitions

  • the embodiments of the present invention relate to the field of Internet technologies, and in particular, to a data processing method and apparatus.
  • the embodiments of the present invention provide a data processing method, apparatus, and storage medium, which are used to solve the problem of low coding efficiency of an encoding device.
  • an embodiment of the present invention provides a data processing method, including:
  • an embodiment of the present invention provides a data processing apparatus including one or more processors and one or more memories, the one or more memories including computer readable instructions; The configuration is performed by the one or more processors to:
  • the present application also provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of the methods described above.
  • FIG. 1 is a schematic flowchart of a data processing method according to an embodiment of the present invention.
  • FIG. 2 is another schematic flowchart of a data processing method according to an embodiment of the present invention.
  • step S202 is a schematic flowchart of an implementation manner of step S202 provided by the present invention.
  • FIG. 4 is a schematic flowchart of a coding configuration according to an embodiment of the present invention.
  • FIG. 5 is still another schematic flowchart of a data processing method according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic flowchart diagram of an implementation manner of step S501 provided by the present invention.
  • FIG. 7 is a schematic flowchart diagram of an implementation manner of step S603 provided by the present invention.
  • FIG. 8 is a functional block diagram of a data processing apparatus according to an embodiment of the present invention.
  • FIG. 9 is a functional block diagram of a first processing unit according to an embodiment of the present invention.
  • FIG. 10 is a functional block diagram of a second configuration unit according to an embodiment of the present disclosure.
  • FIG. 11 is a functional block diagram of a second processing unit according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a data processing device according to an embodiment of the present invention.
  • first, second, third, etc. may be used to describe the classification information in embodiments of the present invention, such classification information should not be limited to these terms. These terms are only used to distinguish classification information from each other.
  • first classification information may also be referred to as second classification information without departing from the scope of the embodiments of the present invention.
  • second classification information may also be referred to as first classification information.
  • the word “if” as used herein may be interpreted as “when” or “when” or “in response to determining” or “in response to detecting.”
  • the phrase “if determined” or “if detected (conditions or events stated)” may be interpreted as “when determined” or “in response to determination” or “when detected (stated condition or event) “Time” or “in response to a test (condition or event stated)”.
  • each channel encodes the same parameters when transcoding different frame images. Since the video scenes with different complexity use the same coding parameters and the same number of coding channels when encoding, when the complexity of the video scene is high, the transcoding speed of each channel will be slower, resulting in the output of the transcoded content. Case. Correspondingly, when the complexity of the video scene is low, there is a case where the transcoding device processes the waste of resources.
  • the embodiments of the present invention provide corresponding Solution: By configuring the encoding parameters and adjusting the encoding parameters, the corresponding encoding parameters can be configured based on different types of data to be transcoded, and different number of transcoding channels can be configured for different data to be transcoded.
  • the data processing method provided by the present application may be applied to the encoding of the collected media content (for example, captured video) by the terminal device at the collecting end, and may also be applied to the server.
  • the encoding at the same time can also be applied to the encoding of the terminal device at the playing end (for example, when the user interacts with the live broadcast party, the terminal device at the playback end also needs to perform video transcoding).
  • the embodiments of the present invention provide the following embodiments.
  • FIG. 1 it is a schematic flowchart of a data processing method according to an embodiment of the present invention. As shown in the figure, the method includes the following steps:
  • Step S101 Acquire first classification information and second classification information of data to be transcoded.
  • the first classification information in the embodiment of the present invention specifically refers to image classification information of each frame of the data to be transcoded, that is, the type of each frame image, for example, each frame image can be classified into slow motion and general motion. And one of the violent.
  • the second classification information is classification information of the video that is to be transcoded based on the first classification information, that is, the type of the video, for example, the data to be transcoded can be classified into a slow motion video scene, general motion. One of a video scene and a strenuous motion video scene.
  • Step S102 configuring an encoding parameter corresponding to the first classification information.
  • the first classification information is classification information of each frame of the data to be transcoded
  • the corresponding coding parameter is an encoding parameter of each frame image
  • each frame image in the transcoding data is classified according to the first classification of the frame image.
  • the information sets different coding parameters, which improves the coding efficiency of the coding device.
  • Step S103 acquiring the number of transcoding channels corresponding to the second classification information according to the correspondence between the second classification information and the number of transcoding channels, and performing the transcoding according to the encoding parameter and the number of transcoding channels.
  • the data is transcoded.
  • different number of transcoding channels are set for the data to be encoded according to the second classification information of the data to be encoded. For example, when the data to be encoded belongs to a strenuous motion video scene, the number of channels to be set is small, and when the data to be encoded belongs to a general motion video scene, the number of channels is set. Therefore, the output encoding data jam phenomenon caused by the encoding device adopting the same number of paths for different data to be transcoded is avoided, and the resources of the encoding device are reasonably utilized, thereby improving the encoding efficiency.
  • the transcoding device is transcoded according to the encoding parameter and the number of transcoding paths.
  • the code is also called transcoding.
  • the first classification information is classification information corresponding to each frame of the image to be transcoded
  • the encoding parameter is an encoding parameter of the encoder corresponding to each frame of the image when encoding.
  • the number of transcoding channels is the number of encoding channels set in the transcoding device.
  • the encoding parameter is adjusted to refer to, in the process of encoding, not only the transcoding data is to be transcoded according to the encoding parameter, but also the transcoding data is transcoded according to the number of transcoding lines, that is, according to the transcoding parameter And the number of transcoding channels is transcoded.
  • FIG. 2 is another schematic flowchart of a data processing method according to an embodiment of the present invention. As shown in FIG. 2, in an implementation manner, before performing step S101, the following steps may be further included:
  • Step S201 receiving data to be transcoded.
  • the data to be transcoded may include video data, audio data, and text content.
  • the video data may be collected by a camera
  • the audio data is collected by a microphone
  • the text content obtained by inputting a dialog box.
  • Step S202 Determine first classification information and second classification information corresponding to the to-be-transcoded data according to a preset processing policy.
  • the determination parameter (also referred to as a motion parameter) of each frame image is first calculated according to a preset processing strategy, and then the first image of each frame is determined based on the determination condition in the preset processing strategy and the motion parameter.
  • Classification information calculating the proportion of each category in the first classification information according to the preset processing strategy, and calculating the classification parameter of the data to be transcoded, based on another determination condition in the preset processing strategy and The classification parameter determines the second classification information.
  • the data to be transcoded includes one or more frames, and the first classification information corresponding to the data to be transcoded includes the first classification information corresponding to each frame of the one or more frames;
  • FIG. 3 is a schematic flowchart of the implementation manner of step S202 provided by the present invention. As shown in FIG. 3, the method includes:
  • Step S301 After acquiring motion vector information of the data to be transcoded, calculate a motion parameter corresponding to each frame of the data to be transcoded.
  • Step S301 After acquiring motion vector information of the data to be transcoded, calculate a motion parameter corresponding to each frame of the data to be transcoded.
  • the motion estimation algorithm includes: dividing each frame of the image sequence into sub-blocks that do not overlap each other, and setting all the sub-blocks.
  • the displacement of the pixels is the same, and then the block most similar to the current block is found according to a certain matching criterion for each sub-block to reference frame within a given specific search range, that is, the matching block, the matching block and the current block are relative.
  • the displacement is the motion vector.
  • the motion vector includes a relative displacement between the plurality of sub-blocks in the frame image to be transcoded and the respective matching block, and the motion vector is used to represent the sub-block and the reference frame image in the frame image in the data to be transcoded. Match the differences in the blocks.
  • the motion parameter is used to characterize the difference between the frame image and the reference image in the data to be transcoded. Therefore, during the transcoding of the video data, the video data can be classified according to the motion vector of the current input code stream.
  • the present embodiment can record each frame of image by the following three parameters, that is, motion information of the picture (a parameter that represents motion information is called a motion parameter):
  • the variance of the motion vector of the sub-block whose motion vector is greater than zero in each frame of image is represented by mv_var.
  • the embodiment may also select other motion vector-based statistical parameters to represent the motion information of each frame of the image, which is not limited herein.
  • Step S302 Determine, according to the motion parameter, the first classification information corresponding to each frame of the screen based on the preset first processing policy.
  • the present embodiment divides each frame into three types: strenuous motion, slow motion, and general motion.
  • the frame picture is judged to be strenuous motion;
  • the condition 1 may be, for example, move_ratio ⁇ 0.07 and mv_avg ⁇ 15 and mv_var ⁇ 200
  • the condition 2 may be, for example, move_ratio ⁇ 0.3 and mv_avg ⁇ 5 and mv_var ⁇ 30
  • Condition 3 may be, for example, move_ratio ⁇ 0.8 and mv_avg ⁇ 3 and mv_var ⁇ 4.
  • the frame picture is judged to be strenuous motion;
  • the condition 1 may be, for example, move_ratio ⁇ 0.15 and mv_avg ⁇ 4 and mv_var ⁇ 10
  • the condition 2 may be, for example, move_ratio ⁇ 0.05 and mv_avg ⁇ 10 and mv_var ⁇ 60
  • Condition 3 may be, for example, move_ratio ⁇ 0.02.
  • the frame picture is judged to be a general motion.
  • Step S303 calculating, according to the first classification information, a classification parameter of the data to be transcoded based on the first preset condition.
  • the classification parameter of the data to be transcoded is determined according to the first classification information and the first preset condition.
  • the embodiment calculates the proportion of strenuous motion, general motion, and slow motion in the video data to be transcoded, and is represented by r_fast, r_common, and r_static, respectively. Then, the classification parameter of the data to be transcoded is calculated based on the first preset condition, for example, the first preset condition may satisfy the following formula:
  • mv_score represents the classification parameter of the data to be transcoded
  • r_fast represents the proportion of the severe motion classification in the transcoded video data
  • r_common represents the proportion of the general motion classification in the transcoded video data.
  • Step S304 determining, according to the classification parameter, the second classification information of the data to be transcoded based on the preset second processing policy.
  • the second processing policy of this embodiment may meet the following conditions, for example:
  • the data to be transcoded is determined to be a slow motion video scene
  • the data to be transcoded is determined to be a general motion video scene
  • the data to be transcoded is determined to be a strenuous motion video scene.
  • the coding parameter may be corresponding to the first classification information.
  • the medium encoding configuration corresponds to a slowly moving image frame
  • the faster encoding configuration corresponds to a general moving image frame
  • the superfast encoding configuration corresponds to a vigorously moving image frame.
  • the process of encoding mainly includes the following steps:
  • S401 Receive data to be transcoded, and determine a motion vector of the data to be transcoded.
  • S402 The controller determines first classification information and second classification information of the data to be transcoded according to the motion vector.
  • the controller determines, according to the first classification information and the second classification information, a transcoding parameter and a number of transcoding channels of the data to be transcoded (the transcoding parameter is also referred to as an encoding parameter, and the number of transcoding channels is also referred to as an encoding channel number).
  • S404 Perform x264 transcoding on the transcoded data according to the transcoding parameter and the number of transcoding lines to form a transcoded code stream.
  • the number of transcoding channels corresponding to the second classification information may be acquired according to the correspondence between the second classification information and the number of transcoding paths, and the coding parameters are performed. Adjustment.
  • the number of transcoding channels is the number of encoding channels set in the transcoding device, and the encoding parameters are adjusted, and when the transcoding process is performed, the encoding process is performed according to the encoding parameters and the number of encoding channels.
  • the number of transcoding channels corresponding to a slow motion video scene is 14 channels
  • the number of transcoding channels corresponding to a general motion video scene is 10 channels
  • the number of transcoding channels corresponding to a strenuous motion video scene is 7 channels, which can be converted in a coding parameter.
  • the number of code channels is adjusted to the corresponding number of ways.
  • FIG. 5 it is a schematic flowchart of a data processing method according to an embodiment of the present invention. As shown in FIG. 5, in an implementation manner, before performing step S101, the method may further include the following steps:
  • Step S501 configuring a correspondence between the second classification information and the number of transcoding channels.
  • step S103 the number of transcoding channels corresponding to the second classification information needs to be acquired according to the correspondence between the second classification information and the number of transcoding paths, and then the encoding parameters are adjusted, and the second classification information is
  • the correspondence relationship of the number of transcoding paths is generated by the configuration of step S501.
  • an embodiment of the present invention provides an embodiment herein.
  • FIG. 6 is a schematic flowchart of an implementation manner of step S501 according to an embodiment of the present invention. As shown in FIG. 6 , the method includes:
  • Step S601 acquiring first classification information and second classification information of the test data.
  • step S601 the following steps may also be included:
  • first classification information and the second classification information determination manner based on the test data are the same as the first classification information and the second classification information determination manner of the previously described data to be transcoded, and therefore are not described herein. .
  • step b) likewise comprises the following steps:
  • the first classification information and the second classification information determination process regarding the test data first calculate move_ratio, mv_avg, and mv_var of each frame image, and then determine, according to the determination condition, that each frame image belongs to slow motion, general motion, and strenuous exercise. In that category, the first classification information is obtained; then the proportions r_fast, r_common, and r_static of each frame image of the strenuous motion, general motion, and slow motion type in the video data to be transcoded are calculated, and the calculation is performed based on the calculation formula.
  • the classification parameter of the data to be transcoded determines, according to the determination condition, the test data belongs to the category of the slow motion video scene, the general motion video scene, and the strenuous motion video scene, that is, the second classification information is obtained.
  • each step has been described in detail when describing the data to be transcoded. Since the two methods are the same, that is, the same strategy, the same decision condition and the same calculation formula are used to obtain The first classification information and the second classification information of the test data are not described herein.
  • each test data should cover all the second classification information, and each test data should include a slow motion video scene, a general motion video scene, and a strenuous motion video scene.
  • the correspondence between the final second classification information and the number of transcoding channels is complete, and regardless of the classification type of the data to be transcoded, the correspondence between the second classification information and the number of transcoding lines can be retrieved.
  • the corresponding number of transcoding channels is used to complete the adjustment of the coding parameters.
  • Step S602 configuring coding parameters corresponding to the first classification information.
  • the encoding parameter configuration process based on the test data is the same as the previously described configuration process of the data to be transcoded, and the medium encoding configuration is still corresponding to the slowly moving image frame, and the fast encoding configuration corresponds to the image frame of the general motion.
  • the superfast coding configuration corresponds to the image frame of strenuous motion, and will not be described here.
  • Step S603 calculating the maximum number of transcoding paths that satisfy the second preset condition.
  • a calculation calculates a maximum number of transcoding paths corresponding to the second preset condition when the transcoding device performs the transcoding operation.
  • the working performance of the transcoding device can be characterized by using corresponding parameters
  • the second preset condition is a parameter range in which the transcoding device maintains a lower carding rate under the premise of rationally utilizing the processing resource thereof, and of course satisfies this
  • step S603 an embodiment of the present invention provides an embodiment herein.
  • FIG. 6 is a schematic flowchart of the implementation manner of step S603 according to an embodiment of the present invention. As shown in FIG. 7 , the method includes:
  • Step S701 calculating an overload rate and a maximum carding rate under the first preset number of transcoding paths.
  • Step S701 calculating an overload rate and a maximum carding rate under the first preset number of transcoding paths.
  • test data When determining the maximum number of transcoding paths corresponding to the test data, different types of test data are separately acquired. For one type of test data, a plurality of ways are preset, for example, 5 channels, 6 channels, and 7 channels, and the test data of the type is input into a preset number of channels for transcoding, and the number of each channel is determined.
  • the overload rate and the maximum card rate of the transcoding device are set to the maximum number of ways that the overload rate and the maximum card rate meet the preset conditions as the maximum number of channels corresponding to the test data.
  • the present embodiment defines an overload rate and a carding rate.
  • the overload rate may be a ratio of the number of acquisition times of the processing device CPU load rate greater than 80% to the specified collection times in the specified collection times collected according to the specified collection period. Setting the number of transcoding channels in the transcoding device for a first preset number of transcoding channels, and inputting the same number of test data (for example, a strenuous motion video scene) into the transcoding device respectively. Each channel performs transcoding processing, and periodically collects the load rate of the transcoding device.
  • the card rate is the ratio of the real-time frame rate of each transcoding channel to the reference frame rate, where the reference frame rate can be the value after the input frame rate is decremented by one.
  • the first preset number of transcoding channels refers to the total number of transcoding channels in the testing process, and the maximum carding rate is the maximum value of each cardton rate value corresponding to the number of transcoding channels per channel. For example, if the number of the first preset transcoding channels includes the number of 7 transcoding channels, it is necessary to calculate the respective cardon rates of the 7 transcoding channels, and then select the maximum value as the maximum card among the 7 card rates. Rate.
  • Step S702 obtaining the second preset number of transcoding channels corresponding to the preset overload rate and the preset maximum card rate respectively.
  • Step S702 performing one or more second preset transcoding paths corresponding to determining that the overload rate and the maximum card rate are less than a preset overload rate and a preset maximum card rate, respectively.
  • the corresponding overload rate and the maximum card rate are calculated, and when 5 to 7 are satisfied, the overload is satisfied.
  • the rate and the maximum carding rate are respectively less than the preset overload rate and the preset maximum card rate, and the 5th to 7th channels are represented by the second preset number of transcoding channels.
  • the preset overload rate of the implementation is 10%, and the preset maximum card rate is 1%.
  • other reasonable value ranges may be selected, and the embodiment of the present invention does not do this. limited.
  • the maximum number of transcoding paths can be determined by the following expression:
  • fps is the actual encoding frame rate
  • fps th is the target encoding frame rate
  • Frame(fps ⁇ fps th )/Frame indicates that the encoding frame rate is smaller than the target encoding frame rate and the ratio of the total number of frames
  • the CPU is the transcoding device.
  • the load consumption, CPU th is the load consumption threshold
  • T (CPU>CPU th )/T total is the ratio of the number of times the actual load of the transcoding device exceeds the load consumption threshold to the total number of acquisitions.
  • Step S703 using the maximum value of each of the second preset transcoding channels as the maximum number of transcoding channels.
  • the maximum value of the one or more second preset transcoding paths is performed as the maximum number of transcoding paths.
  • the number of the second preset transcoding channels is 5 to 7 channels, wherein the maximum value is 7 channels, so the maximum number of transcoding channels is 7 channels.
  • the embodiment of the present invention provides an implementation manner, including the following steps, in the step S701, in which the overload rate under the number of the first preset transcoding channels is calculated:
  • the load rate of the transcoding device of the first acquisition number is collected based on the preset period.
  • the load rate is one of the working performance parameters of the CPU of the transcoding device, and can be directly collected from the CPU.
  • the preset period and the first number of times can be set according to the actual application scenario. For example, every second is collected, and a total of 100 is collected. Times.
  • the first number of acquisitions is 100, and the load rate of 10 times is greater than the preset load rate threshold, and the second number of acquisitions is 10 times.
  • the first number of acquisitions is 100
  • the second number of acquisitions is 10
  • the first ratio between the second collection number and the first collection number is 10%
  • the current first preset transcoding path The overload rate under the number is 10%.
  • an embodiment of the present invention provides an embodiment, including the following steps:
  • the real-time frame rate is one of the parameters of the transcoding process, and can be directly collected from the transcoding device, and the reference frame rate is a value obtained by subtracting 1 from the input frame rate.
  • the following describes the correspondence between the configuration of the second classification information and the number of transcoding channels in a specific application scenario.
  • the classification parameters of each test video data information are calculated, and the second classification information of each test data is determined, as shown in Table 1.
  • the following takes a strenuous motion video scene as an example, and inputs a strenuous motion video scene (which may include any one of video 7-10, any two, any three, or any four) into a transcoding device to perform transcoding processing to determine the corresponding The number of transcoded roads. Taking the number of 5 channels of transcoding as the starting point, and increasing the number of transcoding channels in turn, respectively calculate the card rate and CPU overload rate under the number of 5-10 transcoding channels, as shown in Table 2.
  • the maximum value of the number of transcoding channels that satisfy the cardon rate less than 1% and the CPU overload rate is less than 10% is 7
  • the number of transcoded roads corresponding to the road, that is, the strenuous motion video scene is 7.
  • the same evaluation method is adopted.
  • the maximum value of each transcoding channel that satisfies the cardon rate less than 1% and the CPU overload rate is less than 10% is 10
  • the number of transcoding paths corresponding to the general motion video scene is 10; when processing the slow motion video scene, the maximum of the number of transcoding channels that satisfy the cardon rate less than 1% and the CPU overload rate is less than 10% is 14 channels, that is, the number of transcoding channels corresponding to the slow motion video scene is 14 channels.
  • the processing device may have a situation that when the number of transcoding channels is n, the processing resources are wasted, and when the number of transcoding channels is n+1, the carding rate occurs. Higher situation.
  • the processing device performs transcoding with a resolution of 1080P based on a strenuous motion video scene, and the number of transcoding channels is up to 7 channels. At this time, some processing resources of the processing device are not utilized, and the number of transcoding channels is increased to 8 channels.
  • the card has a high rate
  • the number of transcoding channels with a low resolution of 720P can be increased under the premise that the number of transcoded channels with the resolution of 1080P is unchanged. Therefore, the card ratio can be reduced to some extent under the premise of making full use of the processing resources.
  • Step S604 storing a correspondence between the second classification information and the maximum number of transcoding channels.
  • step S604 the correspondence between the established second classification information and the maximum number of transcoding channels is stored to the corresponding location, and when the encoding parameter adjustment needs to be performed, the corresponding number of transcoding channels is retrieved.
  • the process of configuring the coding parameter and the adjustment of the coding parameter is performed, and after acquiring different types of classification information of the data to be transcoded, the coding parameter corresponding to the first classification information is configured, and then the second and second The number of transcoding channels corresponding to the classification information is adjusted to adjust the previous coding parameters.
  • the corresponding coding parameters can be configured when processing different types of data to be transcoded, and the number of transcoding channels can be further adjusted. The waste of processing resources of the transcoding device is avoided, the carding rate in the transcoding process is reduced, and the transcoding efficiency is improved to some extent.
  • terminals involved in the embodiments of the present invention may include, but are not limited to, a personal computer (PC), a personal digital assistant (PDA), a wireless handheld device, a tablet computer, and a tablet computer.
  • PC personal computer
  • PDA personal digital assistant
  • Mobile phones MP3 players, MP4 players, etc.
  • execution body of S101 to S103 may be a data processing device, and the device may be located in an application of a local terminal, or may be a plug-in or a software development kit (SDK) located in an application of the local terminal.
  • SDK software development kit
  • the functional unit is not particularly limited in this embodiment of the present invention.
  • the application may be an application (nativeApp) installed on the terminal, or may be a web application (webApp) of the browser on the terminal, which is not limited by the embodiment of the present invention.
  • Embodiments of the present invention further provide an apparatus embodiment for implementing the steps and methods in the foregoing method embodiments.
  • FIG. 8 is a functional block diagram of a data processing apparatus according to an embodiment of the present invention. As shown in Figure 8, the device includes:
  • the obtaining unit 810 is configured to obtain first classification information and second classification information of the data to be transcoded determined by the first processing unit 800;
  • the first configuration unit 820 is configured to configure an encoding parameter corresponding to the first classification information acquired by the obtaining unit 810;
  • the adjusting unit 830 is configured to obtain the number of transcoding channels corresponding to the second classification information acquired by the obtaining unit 810 according to the correspondence between the second classification information and the number of transcoding paths, and the encoding parameter configured by the first configuration unit 820 Make adjustments.
  • the foregoing aspect and any possible implementation manner further provide an implementation manner, where the apparatus further includes:
  • the first processing unit 800 is configured to receive data to be transcoded
  • FIG. 9 is a functional block diagram of a first processing unit 800 according to an embodiment of the present invention.
  • the first processing unit 800 specifically includes the following aspects and any possible implementation manners:
  • a first calculation module 801 configured to calculate motion parameters corresponding to each frame of the data to be transcoded after acquiring motion vector information of the data to be transcoded;
  • the first determining module 802 is configured to determine, according to the motion parameter calculated by the first calculating module 801, the first category information corresponding to each frame of the screen according to the preset first processing policy;
  • the second calculation module 803 is configured to calculate, according to the first classification information determined by the first determining module 802, a classification parameter of the data to be transcoded based on the first preset condition;
  • the second determining module 804 is configured to determine, according to the classification parameter calculated by the second calculating module 803, the second classification information of the data to be transcoded based on the preset second processing policy.
  • the foregoing aspect and any possible implementation manner further provide an implementation manner, where the apparatus further includes:
  • the second configuration unit 840 is configured to configure a correspondence between the second classification information and the number of transcoding channels. Therefore, the adjusting unit 830 can adjust the correspondence between the second classification information and the number of transcoding channels to perform transcoding parameter adjustment.
  • FIG. 10 is a functional block diagram of a second configuration unit according to an embodiment of the present invention.
  • the second configuration unit 840 specifically includes:
  • the obtaining module 841 is configured to obtain first classification information and second classification information of the test data determined by the second processing unit 850;
  • the configuration module 842 is configured to configure an encoding parameter corresponding to the first classification information acquired by the obtaining module 841;
  • the processing module 843 is configured to calculate a maximum number of transcoding paths that meet the second preset condition
  • the storage module 844 is configured to store a correspondence between the second classification information acquired by the obtaining module 841 and the maximum number of transcoding paths calculated by the processing module 843.
  • the foregoing aspect and any possible implementation manner further provide an implementation manner, where the apparatus further includes:
  • a second processing unit 850 configured to receive test data
  • FIG. 11 is a functional block diagram of a second processing unit according to an embodiment of the present invention.
  • the second processing unit 850 specifically includes:
  • a third calculation module 851 configured to calculate, after acquiring the motion vector information of the test data, a motion parameter corresponding to each frame of the test data;
  • the third determining module 852 is configured to determine, according to the motion parameter calculated by the third calculating module 851, the first category information corresponding to each frame of the screen according to the preset first processing policy;
  • the fourth calculation module 853 is configured to calculate, according to the first classification information determined by the third determining module 852, a classification parameter of the test data according to a preset formula;
  • the fourth determining module 854 is configured to determine, according to the classification parameter calculated by the fourth calculating module 853, the second classification information of the test data based on the preset second policy.
  • processing module 853 specifically includes:
  • the calculating submodule 8531 is configured to calculate an overload rate and a maximum card rate under each first preset number of transcoding paths;
  • the obtaining sub-module 8532 is configured to obtain, from the calculating sub-module 8531, the corresponding second preset transcoding channels that are different from the preset overload rate and the preset maximum card rate respectively.
  • the submodule 8533 is selected to obtain the maximum value of each of the second preset transcoding channels in the submodule 8532 as the maximum number of transcoding channels.
  • calculation submodule 8531 is specifically configured to:
  • calculation submodule 8531 is specifically configured to:
  • the present application also provides a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements the steps of any of the methods described above.
  • FIG. 12 is a schematic structural diagram of a data processing device according to an embodiment of the present invention.
  • the data processing device includes at least an input port 1210, a processor 1220, a memory 1230, and an output port 1240.
  • the memory 1230 stores computer readable instructions
  • the processor 1220 executes computer scale instructions in the memory 1230 for performing the methods illustrated in Figures 1, 2, 3, 4, 5, 6, and 7 above. And the operations performed by the devices shown in Figures 8-11.
  • the data processing device receives the data to be transcoded through the input port 1210, and the processor 1220 determines the first classification information and the second classification information corresponding to the data to be transcoded according to the preset processing policy.
  • the data processing device obtains the data through the processor 1220.
  • the coding parameters corresponding to the first classification information are configured, and the corresponding information is obtained from the memory 1230 according to the correspondence between the second classification information and the number of transcoding channels.
  • the number of transcoding channels corresponding to the second classification information is adjusted, and the encoding parameters are adjusted.
  • the data processing device outputs the transcoded data through the output port 1240.
  • the corresponding relationship between the second classification information and the number of transcoding channels is obtained after the data processing device tests through the plurality of sets of test data, and the testing process is similar to the processing process of the data to be transcoded, and therefore is not described herein.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined. Or it can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the above software functional unit is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform the methods of the various embodiments of the present invention. Part of the steps.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .

Landscapes

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

Abstract

Les modes de réalisation de la présente invention concernent un dispositif et un procédé de traitement de données et un support d'informations. Le procédé consiste : à acquérir des premières informations de catégorie et des secondes informations de catégorie de données à transcoder ; à configurer un paramètre de codage correspondant aux premières informations de catégorie ; à acquérir un numéro de trajet de transcodage correspondant aux secondes informations de catégorie conformément à la relation correspondante entre les secondes informations de catégorie et le numéro de trajet de transcodage ; et à réaliser un traitement de transcodage sur les données à transcoder conformément au paramètre de codage et au numéro de trajet de transcodage. La présente invention concerne également un support d'informations et un dispositif correspondant.
PCT/CN2018/083501 2017-04-19 2018-04-18 Dispositif et procédé de traitement de données et support d'informations WO2018192518A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710258739.6 2017-04-19
CN201710258739.6A CN108737831B (zh) 2017-04-19 2017-04-19 一种数据处理方法及装置

Publications (1)

Publication Number Publication Date
WO2018192518A1 true WO2018192518A1 (fr) 2018-10-25

Family

ID=63856503

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/083501 WO2018192518A1 (fr) 2017-04-19 2018-04-18 Dispositif et procédé de traitement de données et support d'informations

Country Status (2)

Country Link
CN (1) CN108737831B (fr)
WO (1) WO2018192518A1 (fr)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677653A (zh) * 2019-09-27 2020-01-10 腾讯科技(深圳)有限公司 视频编解码方法和装置及存储介质
CN115589489A (zh) * 2022-10-19 2023-01-10 抖音视界有限公司 视频转码方法、装置、设备、存储介质及视频点播***

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404767A (zh) * 2008-11-24 2009-04-08 崔天龙 一种基于图像分析及人工智能的可变参数的自动化视频转码方法
CN101583036A (zh) * 2009-06-22 2009-11-18 浙江大学 像素域视频转码中确定运动特征和高效编码模式关系的方法
US20110002382A1 (en) * 2009-07-02 2011-01-06 Takahiro Takimoto Moving image encoding apparatus, moving image encoding method, and video device
CN103686206A (zh) * 2014-01-02 2014-03-26 中安消技术有限公司 一种云环境下的视频转码方法和***

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001061153A (ja) * 1999-08-24 2001-03-06 Denso Corp 動画像符号化装置
CN101459848B (zh) * 2008-12-26 2010-11-10 西安交通大学 一种分布式多格式数字视频转码结构设计方法
CN101583037A (zh) * 2009-06-22 2009-11-18 浙江大学 一种利用运动特征的像素域视频转码结构设计方法
US9973767B2 (en) * 2014-09-05 2018-05-15 Arris Enterprises Llc Adaptive bit rate co-operative transcoding
CN104602018B (zh) * 2014-10-21 2018-09-18 腾讯科技(北京)有限公司 视频数据的运动信息的获取方法和装置、编码方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404767A (zh) * 2008-11-24 2009-04-08 崔天龙 一种基于图像分析及人工智能的可变参数的自动化视频转码方法
CN101583036A (zh) * 2009-06-22 2009-11-18 浙江大学 像素域视频转码中确定运动特征和高效编码模式关系的方法
US20110002382A1 (en) * 2009-07-02 2011-01-06 Takahiro Takimoto Moving image encoding apparatus, moving image encoding method, and video device
CN103686206A (zh) * 2014-01-02 2014-03-26 中安消技术有限公司 一种云环境下的视频转码方法和***

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677653A (zh) * 2019-09-27 2020-01-10 腾讯科技(深圳)有限公司 视频编解码方法和装置及存储介质
CN110677653B (zh) * 2019-09-27 2024-01-09 腾讯科技(深圳)有限公司 视频编解码方法和装置及存储介质
US11979577B2 (en) 2019-09-27 2024-05-07 Tencent Technology (Shenzhen) Company Limited Video encoding method, video decoding method, and related apparatuses
CN115589489A (zh) * 2022-10-19 2023-01-10 抖音视界有限公司 视频转码方法、装置、设备、存储介质及视频点播***
CN115589489B (zh) * 2022-10-19 2024-04-19 抖音视界有限公司 视频转码方法、装置、设备、存储介质及视频点播***

Also Published As

Publication number Publication date
CN108737831B (zh) 2023-04-07
CN108737831A (zh) 2018-11-02

Similar Documents

Publication Publication Date Title
JP6472872B2 (ja) リアル・タイム・ビデオ要約
US10601891B2 (en) Cloud streaming service system and cloud streaming service method for utilizing an optimal GPU for video decoding based on resource conditions, and apparatus for the same
WO2019001006A1 (fr) Procédé et dispositif de codage et de décodage de données d'image
JP6109956B2 (ja) ビデオコンテンツを前処理するエンコーダハードウェアの活用
CN107454446A (zh) 基于体验质量分析的视频帧管理方法及其装置
KR101620933B1 (ko) 제스쳐 인식 메커니즘을 제공하는 방법 및 장치
KR101643026B1 (ko) 비디오 이미지들 내의 블러를 계산하기 위한 방법 및 장치
CN104469398B (zh) 一种网络视频画面处理方法及装置
WO2023134523A1 (fr) Procédé et appareil de codage vidéo adaptatif de contenu, dispositif et support de stockage
CN106961603A (zh) 帧内编码帧码率分配方法和装置
CN108156459A (zh) 可伸缩视频传输方法及***
Zeng et al. 3D-SSIM for video quality assessment
WO2018192518A1 (fr) Dispositif et procédé de traitement de données et support d'informations
Yang et al. Fovr: Attention-based vr streaming through bandwidth-limited wireless networks
CA3182110A1 (fr) Regulation de debit basee sur l'apprentissage de renforcement
CN103929640A (zh) 用于管理视频流播的技术
CN105208388A (zh) 视频通讯中动态调整编码帧率的方法和***
CN112104867B (zh) 一种视频处理方法、视频处理装置、智能设备及存储介质
US20140099039A1 (en) Image processing device, image processing method, and image processing system
CN114945097B (zh) 视频流处理方法及装置
CN108989905B (zh) 媒体流控制方法、装置、计算设备及存储介质
US20230018087A1 (en) Data coding method and apparatus, and computer-readable storage medium
CN116980662A (zh) 流媒体播放方法、装置、电子设备、存储介质及程序产品
CN107547913B (zh) 视频数据播放和处理方法、客户端及设备
CN106254873B (zh) 一种视频编码方法及视频编码装置

Legal Events

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

Ref document number: 18787171

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18787171

Country of ref document: EP

Kind code of ref document: A1