Differences in converted .wav files
I have been using ffmpeg to downsample and convert a set of .wma files into .wav files. For technical reasons, we will need to do conversions on multiple machines, some of which run linux and some of which run Windows. We still want to minimize differences between files converted on different machines, though, since they will be processed by a speech recognizer, and we would like consistent recognizer hypotheses, no matter where the file was converted. However, it seems that the exact bytestream we get depends both on the particular machine and on the exact version of ffmpeg we use. The size of the converted file is always the same, but there are slight differences scattered throughout the file. My immediate thought was that this was some sort of floating-point roundoff issue, which should not affect recognition significantly. Does anyone on the list know exactly what these differences could result from, whether they are important, and what we can do to avoid them? Many thanks, Derrick Higgins Research Scientist Educational Testing Service Mail Stop 12-R Rosedale Road Princeton, NJ 08541 -------------------------------------------------- This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender; do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this e-mail is prohibited. Thank you for your compliance. --------------------------------------------------
Higgins, Derrick wrote:
I have been using ffmpeg to downsample and convert a set of .wma files into .wav files. For technical reasons, we will need to do conversions on multiple machines, some of which run linux and some of which run Windows. We still want to minimize differences between files converted on different machines, though, since they will be processed by a speech recognizer, and we would like consistent recognizer hypotheses, no matter where the file was converted.
However, it seems that the exact bytestream we get depends both on the particular machine and on the exact version of ffmpeg we use. The size of the converted file is always the same, but there are slight differences scattered throughout the file. My immediate thought was that this was some sort of floating-point roundoff issue, which should not affect recognition significantly. Does anyone on the list know exactly what these differences could result from, whether they are important, and what we can do to avoid them?
I remember a few months ago that someone fixed a rounding issue in FFmpeg. So if one version comes from before that fix and one version after, I wouldn't be surprised about different output. More valid would be a test between the same version compiled on 2 machines. If the output is still different it might be interesting to run some tests like RMS (audio gurus on the list might have better proposals). -- -Mike Melanson
participants (2)
-
DHiggins@ETS.ORG -
mike@multimedia.cx