Re: Unsychronous recording from DV cameras

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Thore,
i like to get more detailed information about this
device and resulting sync problem.
I have special version of our Mux filter along
with log module.
Using this creates detailed log file during capture which
helps me to see the reason for loosing a/v sync.
Please send email contact to info@xxxxxxxxxxxx,

regards, enze

"Thore Karlsen [DShow MVP]" wrote:

On Wed, 12 Apr 2006 08:30:01 -0700, enze
<enze@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Since the video and audio are
separate devices, they use use different clocks, and chances are they
will drift slightly. So after an hour they might be a second out of
sync, after two hours they might be two seconds out of sync

Right, i posted same before

I have tried
all kinds of solutions (mine and others), and nothing I have seen has
worked particularly well.

Did you also tried our actual CapSwitchFilter's ?
I have not been told about problems until now,
our a/v synchronization accuracy is 2-3ms/h .

Yes, I did try it, and unfortunately, the audio was very out of sync
with the video. Several seconds out of sync after only half an hour.
Also, the audio sample information on the statistics page stopped
updating after about 45 minutes, and the portion of the file in which
the audio samples appeared to stop arriving was not playable.

This was with an AverMedia Cardbus PCMCIA card (using a PCMCIA adapter
card in my desktop system), and I set up a simple graph in GraphEdit
which was basically just the AverMedia source filter connected to your
mux, and I configured your mux to write to an AVI file. Then I let it
run for about an hour.

What is interesting about this is that I believe the AverMedia uses the
Philips SAA713x capture chip, and the specs for the chip says this:

"A field-locked audio clock samples a constant number of audio clocks
per video field, guaranteeing synchronization between audio and video
streams."

Other things I tried:

- Plain DirectShow capture graph with AVI mux: Didn't work, regardless
of whether I set the master stream or not. A second or two out of sync
after an hour.

- VirtualVCR: Didn't work, regardless of whether I enabled audio
resampling or not.

- VirtualDub: Did not work if I didn't enable audio resampling. Did a
pretty good job if I enabled audio resampling, but not perfect.

- Application that came with the card: Sync seemed to be perfect, but I
found some Philips DLLs that can be used to access the card directly,
and I'm wondering if they're doing that instead of using DirectShow. I'm
not sure exactly what they are doing.

In all cases, audio and video were perfectly synchronized with no
noticeable latency on preview. That might be because of rate matching in
the DirectSound renderer, I don't know.

I also tried another card with the same chipset, and got the same
results. Same thing with some USB devices I've tried before. It's all
very depressing.

--
New to newsgroups? Read: http://dev.6581.com/newsgroups.html

.



Relevant Pages

  • Re: Unsychronous recording from DV cameras
    ... sync, after two hours they might be two seconds out of sync ... Yes, I did try it, and unfortunately, the audio was very out of sync ... This was with an AverMedia Cardbus PCMCIA card (using a PCMCIA adapter ... "A field-locked audio clock samples a constant number of audio clocks ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Audio sync issues
    ... According to this, all DVD-V audio is 48khz, or higher, 44.1 khz is not ... Sampling rate shouldnt affect sync. ... Seperate the audio streamfrom the video stream-called demuxing. ...
    (rec.video.dvd.tech)
  • Re: DTV audio / vidio sync
    ... stay in sync. ... make delay adjustments differentially, any delay of some part of the A/V ...
    (sci.engr.television.broadcast)
  • Re: wav file import to AVID...again
    ... We sync everything in Telecine just fine. ... down to 23.976 then I would see how the audio may not stay in sync. ... you maintain digital standards for all NTSC input and output at 23.976 fps. ...
    (rec.arts.movies.production.sound)
  • Re: Unsychronous recording from DV cameras
    ... What you need is correct timestamps, something DirectShow does not provide in the design and always make audio/video sync a gamble. ... The only time audio/video is accurately in sync is when the source send packet with audio video muxed. ...
    (microsoft.public.win32.programmer.directx.video)