Patent ID: 6920181

Claim:
A method for synchronizing an elementary audio stream with an elementary video stream, the video stream having a plurality of markers containing information for displaying frames associated with the video stream, the method comprising the steps of: sampling the markers in the video stream to obtain a time stamp and a memory stamp for each marker, the time stamp indicating a time position of the marker in the video stream, the memory stamp indicating a relative byte location for the marker in the video stream; storing values of the time stamp and the memory stamp for each marker; finding a video byte location in the video stream for a selected time position by reviewing stored values of the time stamps and memory stamps; finding an audio byte location in the audio stream for the selected time position, wherein said finding further includes: determining a total time value for the audio stream that represents an amount of time required to play the entire audio stream at a selected speed; determining a total bytes value for the audio stream that represents the total number of bytes occupied by the audio stream; calculating the audio byte location by multiplying the total bytes value by the selected time position and dividing by the total time value; and whereby the audio and video streams are synchronized for output at the audio byte location and the video byte location.