Audio and video transcoding apparatus and method, device, medium, and product
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsZhidong Zhang, Liang Wang
Life of this patent
Estimating the term…
Abstract
Provided are an audio and video transcoding method performed by a computer device. The method includes: obtaining first multimedia data in a first format; processing the first multimedia data in the first format into intermediate data through a first transcoding operation; processing the intermediate data into at least two pieces of second multimedia data in second formats through at least two second transcoding operations, the first transcoding operation and the at least two second transcoding operations being operations performed based on that a media bus provides a data communication channel; and outputting the at least two pieces of second multimedia data in the second formats.
Claims20
A method performed by a computer device, the method comprising:
- obtaining first multimedia data in a first format;
- processing the first multimedia data in the first format into intermediate data through a decoding operation in a first transcoding module;
- processing the intermediate data into at least two pieces of second multimedia data in second formats through two distinct encoding operations in at least two second transcoding modules, the first transcoding module and the at least two second transcoding modules being configured to access the intermediate data stored in a data queue via a media bus that provides a data communication channel to the data queue, the at least two second transcoding modules further including a transcoding module A and a transcoding module B, wherein processing the intermediate data comprises:
- obtaining, by the transcoding module A and the transcoding module B, the intermediate data, at a first position and a second position in the data queue, from the media bus, wherein the intermediate data includes audio data and video data and the second position is different from the first position,
- preprocessing, by the transcoding module A and the transcoding module B, the audio data in one preprocessing manner to obtain at least two pieces of preprocessed audio data, wherein each piece of the preprocessed audio data corresponds to a same audio format,
- preprocessing, by the transcoding module A and the transcoding module B, the video data in at least two preprocessing manners to obtain at least two pieces of preprocessed video data, wherein each piece of the preprocessed video data corresponds to a different video format,
- transmitting, by the transcoding module A and the transcoding module B, the at least two pieces of preprocessed audio data and the at least two pieces of preprocessed video data to the data queue via the media bus, and
- processing, by the transcoding module A and the transcoding module B, the at least two pieces of preprocessed audio data and the at least two pieces of preprocessed video data stored at different locations in the data queue via the media bus to obtain the at least two pieces of second multimedia data in the second formats, wherein the at least two pieces of second multimedia data have the same audio format and different video formats;
- and
- outputting a first piece of the at least two pieces of second multimedia data to a first terminal and a second piece of the at least two pieces of second multimedia data to a second terminal, wherein the first terminal is configured to play the first piece according to the audio format and a first video format and the second terminal is configured to play the second piece according to the audio format and a second video format.
A computer device, comprising a processor and a memory, the memory having at least one program stored therein, when loaded and executed by the processor, causing the computer device to implement an audio and video transcoding method including:
- obtaining first multimedia data in a first format;
- processing the first multimedia data in the first format into intermediate data through a decoding operation in a first transcoding module;
- processing the intermediate data into at least two pieces of second multimedia data in second formats through two distinct encoding operations in at least two second transcoding modules, the first transcoding module and the at least two second transcoding modules being configured to access the intermediate data stored in a data queue via a media bus that provides a data communication channel to the data queue, the at least two second transcoding modules further including a transcoding module A and a transcoding module B, wherein processing the intermediate data comprises:
- obtaining, by the transcoding module A and the transcoding module B, the intermediate data, at a first position and a second position in the data queue, from the media bus, wherein the intermediate data includes audio data and video data and the second position is different from the first position,
- preprocessing, by the transcoding module A and the transcoding module B, the audio data in one preprocessing manner to obtain at least two pieces of preprocessed audio data, wherein each piece of the preprocessed audio data corresponds to a same audio format,
- preprocessing, by the transcoding module A and the transcoding module B, the video data in at least two preprocessing manners to obtain at least two pieces of preprocessed video data, wherein each piece of the preprocessed video data corresponds to a different video format,
- transmitting, by the transcoding module A and the transcoding module B, the at least two pieces of preprocessed audio data and the at least two pieces of preprocessed video data to the data queue via the media bus, and
- processing, by the transcoding module A and the transcoding module B, the at least two pieces of preprocessed audio data and the at least two pieces of preprocessed video data stored at different locations in the data queue via the media bus to obtain the at least two pieces of second multimedia data in the second formats, wherein the at least two pieces of second multimedia data have the same audio format and different video formats;
- and
- outputting a first piece of the at least two pieces of second multimedia data to a first terminal and a second piece of the at least two pieces of second multimedia data to a second terminal, wherein the first terminal is configured to play the first piece according to the audio format and a first video format and the second terminal is configured to play the second piece according to the audio format and a second video format.
A non-transitory computer-readable storage medium, having at least one segment of program code stored therein, when loaded and executed by a processor of a computer device, causing the computer device to implement an audio and video transcoding method including:
- obtaining first multimedia data in a first format;
- processing the first multimedia data in the first format into intermediate data through a decoding operation in a first transcoding module;
- processing the intermediate data into at least two pieces of second multimedia data in second formats through two distinct encoding operations in at least two second transcoding modules, the first transcoding module and the at least two second transcoding modules being configured to access the intermediate data stored in a data queue via a media bus that provides a data communication channel to the data queue, the at least two second transcoding modules further including a transcoding module A and a transcoding module B, wherein processing the intermediate data comprises:
- obtaining, by the transcoding module A and the transcoding module B, the intermediate data, at a first position and a second position in the data queue, from the media bus, wherein the intermediate data includes audio data and video data and the second position is different from the first position,
- preprocessing, by the transcoding module A and the transcoding module B, the audio data in one preprocessing manner to obtain at least two pieces of preprocessed audio data, wherein each piece of the preprocessed audio data corresponds to a same audio format,
- preprocessing, by the transcoding module A and the transcoding module B, the video data in at least two preprocessing manners to obtain at least two pieces of preprocessed video data, wherein each piece of the preprocessed video data corresponds to a different video format,
- transmitting, by the transcoding module A and the transcoding module B, the at least two pieces of preprocessed audio data and the at least two pieces of preprocessed video data to the data queue via the media bus, and
- processing, by the transcoding module A and the transcoding module B, the at least two pieces of preprocessed audio data and the at least two pieces of preprocessed video data stored at different locations in the data queue via the media bus to obtain the at least two pieces of second multimedia data in the second formats, wherein the at least two pieces of second multimedia data have the same audio format and different video formats;
- and
- outputting a first piece of the at least two pieces of second multimedia data to a first terminal and a second piece of the at least two pieces of second multimedia data to a second terminal, wherein the first terminal is configured to play the first piece according to the audio format and a first video format and the second terminal is configured to play the second piece according to the audio format and a second video format.
Dependencies are inferred from the claim text.