[FFmpeg-devel] Audio Video Sync issue with dvr-ms files
Michael Niedermayer
michaelni
Sun May 13 13:37:44 CEST 2007
Hi
On Sat, May 12, 2007 at 08:07:02PM -0400, Jonathon Elwood wrote:
[...]
> > also your debuging information is wrong, more specifically the
> > packet_key_frame is complete nonsense
> >
> > see, following are the true frame types as output by the parser,
> > 1 are key frames, the file is ABC_SD.dvr-ms
> >
> > audio 7431 -9223372036854775808 type:1
> > audio -9223372036854775808 -9223372036854775808 type:1
> > audio -9223372036854775808 -9223372036854775808 type:1
> > video -9223372036854775808 -9223372036854775808 type:1
> > video -9223372036854775808 -9223372036854775808 type:3
> > video -9223372036854775808 -9223372036854775808 type:3
> > audio 7559 -9223372036854775808 type:1
> > audio -9223372036854775808 -9223372036854775808 type:1
> > audio -9223372036854775808 -9223372036854775808 type:1
> > video -9223372036854775808 -9223372036854775808 type:2
> > video -9223372036854775808 -9223372036854775808 type:3
> > video -9223372036854775808 -9223372036854775808 type:3
> > audio 7655 -9223372036854775808 type:1
> > audio -9223372036854775808 -9223372036854775808 type:1
> > audio -9223372036854775808 -9223372036854775808 type:1
> > video -9223372036854775808 -9223372036854775808 type:2
> > video -9223372036854775808 -9223372036854775808 type:3
> > video 8138 -9223372036854775808 type:3
> > audio 7751 -9223372036854775808 type:1
> > audio -9223372036854775808 -9223372036854775808 type:1
> > audio -9223372036854775808 -9223372036854775808 type:1
> > audio 7847 -9223372036854775808 type:1
> > audio -9223372036854775808 -9223372036854775808 type:1
> > audio -9223372036854775808 -9223372036854775808 type:1
> >
> > this shows clearly that the file begins with key frames like one would
> > expect
>
> 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 GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- 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/20070513/e6a96252/attachment.pgp>
More information about the ffmpeg-devel
mailing list