GNOME Bugzilla – Bug 723651
avidemux: VBR audio timestamps
Last modified: 2014-02-25 07:20:28 UTC
In get_buffer_info function, something is wrong. Second param is entry->total, but i wonder that it is entry_n. could you check it? thank you. /* given @entry_n in @stream, calculate info such as timestamps and * offsets for the entry. */ static void gst_avi_demux_get_buffer_info (GstAviDemux * avi, GstAviStream * stream, guint entry_n, GstClockTime * timestamp, GstClockTime * ts_end, guint64 * offset, guint64 * offset_end) { GstAviIndexEntry *entry; entry = &stream->index[entry_n]; if (stream->is_vbr) { /* VBR stream next timestamp */ if (stream->strh->type == GST_RIFF_FCC_auds) { if (timestamp) *timestamp = avi_stream_convert_frames_to_time_unchecked (stream, entry->total);
Thanks for your attention and concern. However, I had a look and afaik it is correct as it is. See also gst_avi_demux_add_index for how entry->total is determined, and (in many cases?) it might very well be equal to entry_n, but in case it is not there are reasons for it being different.
Some files timestamps was problem and i have seen more match av sync than before. I will check again that libsync and some problem case.
It would be great if you could make such a problematic file available for download, then we can have a look.
thank you^^ After i will check again more detail, share the url for downloading. take a few days..