[FFmpeg-devel] Audio Video Sync issue with dvr-ms files
Michael Niedermayer
michaelni
Mon Jun 11 03:42:38 CEST 2007
Hi
On Sun, Jun 10, 2007 at 04:19:58PM -0400, Jonathon Elwood wrote:
> On 5/13/07, Michael Niedermayer <michaelni at gmx.at> wrote:
> > Hi
> >
> > On Sat, May 12, 2007 at 08:07:02PM -0400, Jonathon Elwood wrote:
> > [...]
> > > Could you share the code you used for your debug above? I'd like to
> > > see how you pulled the frame type from the parser.
> >
> > --- parser.c (revision 8781)
> > +++ parser.c (working copy)
> > @@ -168,6 +168,11 @@
> > if (index < 0)
> > index = 0;
> > s->cur_offset += index;
> > +
> > +if(*poutbuf_size){
> > + av_log(NULL, AV_LOG_ERROR, "new frame %d %Ld %Ld type:%d\n", avctx->codec_type, pts, dts, s->pict_type);
> > +}
> > +
> > return index;
> > }
> >
> >
> > the "new frame 1/0" was then simply replaced by "audio"/"video" for
> > readablility
> >
> > [...]
> Michael, thank you for sending the parser debug code. It has helped
> me figure out a few more things?however, I do have a quick question.
>
> Currently, the asf demuxer starts reading all the packets and then at
> some point everything is reset and it starts reading from the
> beginning again (I haven't confirmed this, but I'm assuming this is
> because of John Donaghy's code to detect the audio codec). Is there
> currently a variable I can use to tell the reset happened? Obviously
> I can create my own, but if there is already something that exists I
> would rather just use it.
hmm, i dont think theres a clean way to detect it, and there also shouldnt
be any need to except for debuging (and for that a simple static int should
do)
or is there some case iam missing?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
If you really think that XML is the answer, then you definitly missunderstood
the question -- Attila Kinali
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070611/61d02c52/attachment.pgp>
More information about the ffmpeg-devel
mailing list