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

Jonathon Elwood jaelwood
Sun May 13 02:07:02 CEST 2007


On 5/12/07, Michael Niedermayer <michaelni at gmx.at> wrote:
> Hi
[...]
> there is you just have to subtract the timestamp discontinuity at the
> occurance of the first valid timestamp from the initial cur_dts
> somewhere in av_find_stream_info()
> also see the disscussions with wolfram on the mailinglist, some
> of them where related to this, though not related to dvr-ms

Thank you, I'll try to figure out how to do this.

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




More information about the ffmpeg-devel mailing list