Re: how to do the "NTSC" video timer

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Chris,do you mean I can use the sound card as the timer source?It is a fancy
idea for me,and I don't know how to implement it,so can you give me a example?

"Chris P. [MVP]" wrote:

> On Sat, 6 Aug 2005 05:01:03 -0700, pango wrote:
>
> > Thanks Chris:
> > What I care is the AV sync problem when I use the "timeSetEvent()" to
> > do the 33ms timer,because the fps is faster than real(30.30fps>29.97fps),so
> > after some time the audio behind video.I think out a method to solve it:every
> > 3s ,drop a video frame,than the fps is close to real(about 30fps).
> > But I'm a newbie to video play working,so I'm not sure about my
> > method,and the fps is still faster than real about 0.03fps,so after 1
> > hours,the video will ahead audio about 3s,it is a big problem.So do you have
> > any suggest for my method?How can I play NTSC video that audio is still sync
> > with video?
>
> Because you have an audio track you can use this to govern the video
> rendering. Instead of trying to use the inaccurate system clock to count
> time, count time using the audio data. Count the number of audio samples
> that have been sent to the sound card, divide by the sample rate, multiply
> by the frame rate and you have a rock solid sync reference. Depending on
> what methods you are using to playback the audio, the method of getting the
> current sample count will vary.
>
.



Relevant Pages

  • Re: Recording Audio for a DVD
    ... break your video. ... videos I've seen that sound like they were recorded with a consumer ... video is gorgeous, if the audio stinks, it cheapens the value of the ... whatever you plug into this microphone jack, ...
    (rec.video.desktop)
  • Re: WMP11 stops playing files that played fine in wmp10
    ... Audio Codecs ... DMO WMAPro over S/PDIF DMO 0162 wmadmod.dll 11.0.5358.4827 DMO WMA Voice Decoder DMO 000A, 000B wmspdmod.dll 11.0.5358.4827 DMO Pixela Sampling Rate Regulator DMO 0001 ... ICM Intel IYUV codec IYUV iyuv_32.dll 5.1.2600.2180 ICM Microsoft RLE MRLE msrle32.dll 5.1.2600.2180 ICM Microsoft Video 1 MSVC msvidc32.dll 5.1.2600.0 ICM Microsoft YUV UYVY msyuv.dll 5.3.2600.2180 ICM Toshiba YUV Codec Y411 tsbyuv.dll 5.1.2600.0 ICM Microsoft YUV UYVY msyuv.dll 5.3.2600.2180 ...
    (microsoft.public.windowsmedia.player)
  • Re: import raw data in audacity?
    ... then it's a still image camera? ... not an audio newsgroup. ... That may sample rate convert the playback of your ... 7872 Hz file to something that your sound card likes. ...
    (rec.video.desktop)
  • Top MP3 players
    ... TV and video formats supported: ... Support for 480p and 576p component TV out ... Low-Complexity version of the H.264 Baseline Profile with AAC-LC audio ... Additional features: Calendar, Bass Boost, Volume control, Voice ...
    (microsoft.public.windows.vista.music_pictures_video)
  • Re: Acer Aspire AST180-VD4400A Desktop-Questions/Driver Availability
    ... Found one link saying the mobo(NVIDIA 6100 nForce 405) is fully Linux ... Several links indicated there is problems getting audio and NIC card ... Also found links about poor video quality for the onboard NVIDIA nForce ... I could use the NIC and Sound Card from the old HP Pavilion 8370 I'm replacingbut the video is a concern. ...
    (Ubuntu)