摘要 |
PROBLEM TO BE SOLVED: To multiplex audio and video data by a simple algorithm without using a floating decimal point arithmetic operation so as not to cause a reception buffer to be overflowed without taking a residual storage capacity into account. SOLUTION: A CPU 424 controls a data quantity generated by a video encoder 20 so as to distribute video data to video frames without causing a fraction. The CPU 424 calculates a data quantity A of audio data to be multiplexed for each frame and a data quantity B of audio data to be multiplexed for each of a prescribed number of frames such as 30 frames based on a data rate of audio data generated by the video encoder 24, adds '1' to the data quantity A depending whether or not a data quantity C of the audio data that are multiplexed for 30 frames is more than the data quantity B to calculate a data quantity D. Moreover, the CPU 424 controls each component of a data multiplexer 2 to multiplex the video data by a prescribed quantity with the data quantity D calculated by each frame. |