[Ffmpeg-devel] [PATCH] Fix asf header decoding issue
Patrice Bensoussan
patrice.bensoussan
Sat Oct 22 23:44:55 CEST 2005
Hello Diego,
Here is another patch which fixes an issue in the decoding of the asf
header. Basically, the duration of the playback and the time stamp of
the end position doesn't seem to be read in the right order. This
causes the duration and bitrate to have negative values on some
files. (see below the output of ffmpeg before/after the fix on a file
showing the issue).
Regards,
Patrice
- Before fix :
patrice-bensoussans-ibook-g4:~/Desktop patriceb$ ./ffmpeg -i bug.wma
bug.mp3
ffmpeg version CVS, build 3211266, Copyright (c) 2000-2004 Fabrice
Bellard
configuration: --enable-mp3lame --enable-faac --enable-small
built on Aug 24 2005 20:02:45, gcc: 3.3 20030304 (Apple Computer,
Inc. build 1809)
Input #0, asf, from 'bug.wma':
Duration: 00:00:-1.-5, start: 1.579000, bitrate: -42837 kb/s
Stream #0.0: Audio: wmav2, 44100 Hz, stereo, 80 kb/s
Output #0, mp3, to 'bug.mp3':
Stream #0.0: Audio: mp3, 44100 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
size= 6206kB time=794.4 bitrate= 64.0kbits/s
video:0kB audio:6206kB global headers:0kB muxing overhead 0.000000%
- After fix :
patrice-bensoussans-ibook-g4:~/Desktop patriceb$ ./ffmpeg -i bug.wma
bug.mp3
ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice
Bellard
configuration: --enable-small --enable-mp3lame --enable-faac --
extra-ldflags=-L/Users/patriceb/tmp/WMA/opt/lib --extra-cflags=-I/
Users/patriceb/tmp/WMA/opt/include
built on Oct 19 2005 23:05:37, gcc: 3.3 20030304 (Apple Computer,
Inc. build 1809)
Input #0, asf, from 'bug.wma':
Duration: 00:13:14.2, start: 1.579000, bitrate: 80 kb/s
Stream #0.0: Audio: wmav2, 44100 Hz, stereo, 80 kb/s
Output #0, mp3, to 'bug.mp3':
Stream #0.0: Audio: mp3, 44100 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
size= 6206kB time=794.4 bitrate= 64.0kbits/s
video:0kB audio:6206kB global headers:0kB muxing overhead 0.000000%
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_asf_duration_bitrate.patch
Type: application/octet-stream
Size: 732 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20051022/bc69c1d5/attachment.obj>
-------------- next part --------------
More information about the ffmpeg-devel
mailing list