MSACM: winemp3 codec crashes on seek, (no longer) reimplement
Alex Villacís Lasso
a_villacis at palosanto.com
Wed Feb 8 18:41:14 CST 2006
Eric Pouech wrote:
> Alex Villacís Lasso wrote:
>> Eric Pouech wrote:
>>> > Are there any issues
>>>> I should take into account before trying this?
>>> first of all, are we sure that the issue comes from the decoder
>>> itself (and not some wine wrapper around it) ?
>> I performed the following test: with the sample VB application, I
>> modified the winemp3 code to write the input buffer (mp3) and the
>> decoded output buffer (PCM) at the end of separate files. Then I
>> played the mp3 samples file. This one plays correctly (rules out
>> mangling of input buffers). The output file has quirks, but plays a
>> little better than the output from the VB application (no delays),
>> which suggest that there are some timing issues with the winemp3
>> code, or that the output duration, as reported by winemp3, is
>> slightly incorrect.
> or simply, that the sequence of:
> - getting mp3 encoded data
> - pushing them to the decoder for decoding
> - pushing the decoded data to the speaker
> runs slower than the expected pace...
> which doesn't blame only step2, or the decoder itself. for example,
> putting the decoder in a separate thread would greatly improve, or
> using smaller packets in step 1.
I also ran tests with a different movie which uses the Indeo codecs
(native) for decoding. This one runs smoothly (with audio AND video). In
my opinion, this is additional evidence that the winemp3 codec is at
fault (especially since my sample movie uses a not-installed DivX video
codec which therefore does not consume any CPU, as it is running in
audio-only mode). The native Indeo codec also does not crash on seek.
On a side note, is there anybody in the list with experience with
GStreamer programming? The base GStreamer framework is LGPL, so it
*might* be legally possible to write a GStreamer wrapper for wine. Of
course, there might be an architecture difference that makes this
impossible, so any feedback will be appreciated.
Alex Villacís Lasso
More information about the wine-devel