[Ffmpeg-devel] [PATCH]: A/V sync on nsv streams.
Michael Niedermayer
michaelni
Sat Oct 28 12:51:18 CEST 2006
Hi
On Sat, Oct 28, 2006 at 03:23:28AM +0200, elupus wrote:
> > > 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:
> > 9FF2128B147EF6730BADF133611EC787040B0FAB
> >
> > 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
> 64bit int.
patch looks ok
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
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
More information about the ffmpeg-devel
mailing list