Multiplexing method preventing overflow of audio decoder buffer
View Patent ↗A time zone start time point calculating unit calculates a time zone to be set in a VOBU in accordance with audio bit rate. A time zone comparing unit compares a time point at which an audio pack is to be multiplexed with the time zone calculated by the time zone start time point calculating unit. A flag setting unit sets whether the audio pack is to be completed or not in accordance with the result of comparison by the time zone comparing unit. Therefore, a completing process takes place before a VOBU boundary, and a completed PCK will not be generated immediately after the VOBU boundary. Thus, generation of a buffer overflow can be prevented.
1. A multiplexing method for outputting a video pack and an audio pack multiplexed with each other, comprising the steps of:
calculating a time zone to be set in a video object unit, in accordance with audio bit rate;
comparing a time point of multiplexing the audio pack with the time zone calculated by said calculating step; and
setting whether the audio pack is to be completed or not in accordance with the result of comparison by said comparing step; wherein
said calculating step defines the time zone from a time point earlier by an audio pack period than a group-of-picture boundary time point to said video object unit boundary time point.
2. The multiplexing method for outputting a video pack and an audio pack multiplexed with each other according to claim 1 , wherein
said setting step sets, when audio frame length is not shorter than a prescribed value, whether the audio pack is to be completed or not in accordance with a result of comparison by said comparing step, and
said setting step sets, when said audio frame length is shorter than the prescribed value, forced completing of the audio frame immediately after said video object unit boundary time point.