[Ffmpeg-devel] [PATCH]: A/V sync on nsv streams.
Sat Oct 28 03:23:28 CEST 2006
> > Since the demuxer provides no other means of knowing sync
> between audio and
> > video I suppose it could make sence to use a timebase wich
> would give this
> > completly correct, if video has timebase a/b, then use
> 1/(1000b) for audio,
> > and set dts to frame*1000*a + sync*b. Would that be acceptable?
> yes, besides what idiot designed nsv?
> Michael GnuPG fingerprint:
> In the past you could go to a library and read, borrow or
> copy any book
> Today you'd get arrested for mere telling someone where the library is
Alright, here is an updated patch which does as given above. Had some
initial issues with int's overflowing, but the current abit uggly way works
good. It keeps sync on the samples I've tried. It does generate rather huge
timestamps thou. 1000*1001*frames, but it should be within the margin for a
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3667 bytes
Desc: not available
More information about the ffmpeg-devel