[FFmpeg-devel] Bug - MP3 Issues
Michael Niedermayer
michaelni
Wed Dec 5 00:25:49 CET 2007
On Tue, Dec 04, 2007 at 03:49:02PM -0600, Brian Brice wrote:
[...]
> * MP3 audio demuxed from AVI:
> Generally, MP3 audio demuxed from AVI works pretty well. Everything
> decodes perfectly. The big issue here are PTS values. Often times
> the PTS values are skewed slightly, but that value grows as simple
> reading is done. Here is some sample output:
>
> audio current_pts=6320 next=6636
> audio current_pts=6636 next=6952
> audio current_pts=6892 next=7208 *
> audio current_pts=7149 next=7465 *
> audio current_pts=7465 next=7781
> audio current_pts=7812 next=8128 *
> audio current_pts=8159 next=8475
>
> The asterisked lines are ones where the current_pts didn't match the
> previously calculated next PTS (packet.pts + packet.duration). These
> inaccuracies in the PTS values causes problems when you're relying on
> them to be accurate, especially in sequential reading. :-( The clip
> that generates these PTS values is here:
>
> http://heapify.org/static/ffmpeg/d0pe-hairspraycam-sample.avi
ive not looked at the sample but i fear that you simply will have to accept
that many avi files are plain broken
try to remux it with -acodec copy i suspect that will fix it
also try to replace AVSTREAM_PARSE_TIMESTAMPS by AVSTREAM_PARSE_FULL in
avidec.c and also try AVSTREAM_PARSE_NONE
if NONE doesnt work then the AVI is broken like 99.9% avi files with mp3
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I hate to see young programmers poisoned by the kind of thinking
Ulrich Drepper puts forward since it is simply too narrow -- Roman Shaposhnik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071205/322b32ab/attachment.pgp>
More information about the ffmpeg-devel
mailing list