[Ffmpeg-devel] [PATCH]: A/V sync on nsv streams.

elupus elupus
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: 
> 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: nsvdec.patch
Type: application/octet-stream
Size: 3667 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061028/b9d067de/attachment.obj>

More information about the ffmpeg-devel mailing list