Re: Audio/video sync in xawtv

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Ori Pessach wrote:
> 
> Ok, somebody please tell me I'm not crazy:
> 
> Now, I don't like whining when I can instead read the source. It turns
> out that xawtv's capture code is trying hard to sync the video to the
> system's real time clock. I hacked it so it now synchs to the audio time
> line, and I no longer lose sync, even after capturing video for over an
> hour. Except for some minor issues, that's good enough for me.

I'd have thought that since AVI files don't store timestamps, there's no
other way to tie the video/audio streams together than to sync one to
the other (and assume that the capturing process did the same). If you
rely on the video/audio samples/sec rates being exact and therefore
being able to sync to absolute time, you're bound to drift, because
nothing ever is perfect. It's not so much a matter of having a crappy
sound card, as having a crappy a/v file format (AVI) that doesn't store
timestamps or any other sync information.

Could you post your patch?

Ben





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux