P.S. A Google search turns up a lot of good hits, including this very complete
one:
http://www.philrees.co.uk/articles/timecode.htm
--
Jon Harris
SPAM blocker in place:
Remove 99 (but leave 7) to reply
"Jon Harris" <
[email protected]> wrote in message
news:II4og.26934$Xn.25874@trnddc05...
> "Erik de Castro Lopo" <
[email protected]> wrote in message
> news:
[email protected]...
>> "newsgroups.comcast.net" wrote:
>>>
>>> I am listening to the audio stream on the "line in" via Java's
>>> AudioInputStream (numBytes = inputStream.read(byteArray);)
>>>
>>> how do I extract the time code out of these sequence of bytes? I am not sure
>>> if this is possible w/o special hardware.
>>
>>
>> I designed hardware to do this for a company I once worked
>> for, but its definitely possible in software as well.
>>
>> Basically you'll need to find all the transitions, measure
>> the distance between them in samples. Once you have this
>> you need to find the sync word and then read off the bits.
>>
>> The vast majority of the information you need is available
>> here:
>>
>> http://en.wikipedia.org/wiki/Linear_timecode
>
> If you know the (approximate) rate of the timecode, then it is pretty simple.
> You can count a fixed number of samples from each transition to see if another
> transition is taking place. If the timecode is coming from an analog recorder
> with varispeed so it can be more than half or twice the nominal rate, it
> becomes a bit trickier.
>