Method for synchronizing audio and video and related apparatus
AssigneeRealtek Semiconductor Corp.
InventorChen-Wei Yu
Life of this patent
Estimating the term…
Abstract
An audio and video synchronization method is provided, which includes the following operations: obtaining a first presentation time stamp (PTS) of a first video data and a second PTS of a second video data; selecting a master PTS corresponding to an audio data or to a vertical synchronization (Vsync) pulse; calculating a first timestamp difference value between the first PTS and the master PTS, and calculating a second timestamp difference value between the second PTS and the master PTS; and selectively outputting either the first video data or the second video data according to the first timestamp difference value, the second timestamp difference value, and whether the first video data has been outputted for a predetermined number of times.
Claims20
An audio and video synchronization method, comprising:
- obtaining a first presentation time stamp (PTS) of a first video data and a second PTS of a second video data, wherein the first video data and the second video data are corresponding to two different frames, respectively;
- selecting a master PTS corresponding to an audio data or to a vertical synchronization (Vsync) pulse;
- calculating a first timestamp difference value between the first PTS and the master PTS, and calculating a second timestamp difference value between the second PTS and the master PTS;
- and
- selectively outputting either the first video data or the second video data according to the first timestamp difference value, the second timestamp difference value, and whether the first video data has been outputted for a predetermined number of times.
An audio and video synchronization method, comprising:
- obtaining a first PTS of a first video data and a second PTS of a second video data, wherein the first video data and the second video data are corresponding to two different frames, respectively;
- selecting a master PTS corresponding to an audio data or to a Vsync pulse;
- calculating a first timestamp difference value between the first PTS and the master PTS, and calculating a second timestamp difference value between the second PTS and the master PTS;
- and
- determining whether to omit the second video data according to the first timestamp difference value, the second timestamp difference value, and whether the first video data has been outputted.
An audio and video processing apparatus, comprising:
- a decoder, configured to decode a video stream and an audio stream to obtain a first video data, a second video data, and an audio data;
- an encoding and transmission unit, configured to output the audio data and a Vsync pulse, and configured to selectively output either the first video data or the second video data;
- and
- a synchronization controller, coupled with the decoder and the encoding and transmission unit, configured to receive a first PTS of the first video data, a second PTS of the second video data, and a master PTS corresponding to the audio data or to the Vsync pulse, configured to calculate a first timestamp difference value between the first PTS and the master PTS, and configured to calculate a second timestamp difference value between the second PTS and the master PTS,
- wherein the synchronization controller is further configured to indicate the encoding and transmission unit to selectively output either the first video data or the second video data according to the first timestamp difference value, the second timestamp difference value, and whether the first video data has been outputted for a predetermined number of times.
Dependencies are inferred from the claim text.