[FFmpeg-devel] Audio Video Sync issue with dvr-ms files

Jonathon Elwood jaelwood
Sun Jun 10 22:19:58 CEST 2007


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.




More information about the ffmpeg-devel mailing list