From: SourceForge.net <no...@so...> - 2005-11-12 18:25:11
|
Bugs item #1313100, was opened at 2005-10-04 17:40 Message generated for change (Comment added) made by bouvigne You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100290&aid=1313100&group_id=290 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Libraries Group: Quality >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Jack Twilley (jtwilley) Assigned to: Nobody/Anonymous (nobody) Summary: LAME segfaults with low bitrate encoding Initial Comment: I have a program which takes in text files and generates WAV files of Morse code with libsndfile. I then push these WAV files through LAME, and 99.5% of the time there's no problem. That other 0.5% of the time, though, I get segmentation faults. Attached is the source to the Morse code generator, called "tomorse.c". I compile it on FreeBSD with the following command line: gcc -o tomorse tomorse.c -I/usr/local/include -L/usr/local/lib -lsndfile Your mileage may vary. I have also attached one of the input files which consistently causes segmentation faults. I generate the Morse code WAV files with the following command: ./tomorse -c 20 -s 5 < 38.txt > 38-5.wav Be warned that this WAV file is over 200M in size. I've listened to the WAV file and it sounds right. Now use LAME to convert the WAV to MP3 like this: lame --quiet -f -m s -a --resample 8 38-5.wav 38-5.mp3 You will get many "Internal buffer inconsistency. flushbits <> ResvSize" messages, a couple of other errors and a core dump at the end. I'm almost positive it's not a fault of the tomorse code, but I've asked the folks on the libsndfile mailing list to look it over just to make sure. It is interesting that the 13-wpm version of the WAV file does not have the problems that the 5-wpm version does. If you use this command line: ./tomorse -c 20 -s 13 < 38.txt > 38-13.wav And this command line: lame --quiet -f -m s -a --resample 8 38-13.wav 38-13.mp3 No errors are reported. Thanks for your time! I am using LAME version 3.96.1 on FreeBSD 5.4-STABLE. ---------------------------------------------------------------------- >Comment By: Gabriel Bouvigne (bouvigne) Date: 2005-11-12 18:25 Message: Logged In: YES user_id=1056 Should be fixed in current CVS, please re-open if still not working. ---------------------------------------------------------------------- Comment By: Takehiro TOMINAGA (takehiro) Date: 2005-10-08 06:12 Message: Logged In: YES user_id=1071 I didn't test it yet, but this is probably related #1227632. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100290&aid=1313100&group_id=290 |