Re: SegFaults :-(
"tech list" <[email protected]>
| Newsgroups | gmane.comp.audio.mp3.encoders |
|---|---|
| Message-ID | <[email protected]> |
I think you can try changing to a higher sample rate and check. Maybe the lowpass setting is incorrect for 8KHz. On 6/20/06, Michele O-Zone Pinassi <liste-PrgQ/[email protected]> wrote: > > Hi all, > i'm using LAME inside one of my project and i often get this segfault: > > OH OH ! SIGNAL 11 RECEIVED ! > ====== BACKTRACE ====== > [1] /usr/local/lib/libmp3lame.so.0(lame_init_params+0x1b) [0x40131f5b] > [2] [0xffffe440] > .... > > this is how i init lame: > > int MP3_Init(lame_global_flags *lgf) { > lame_set_VBR(lgf, vbr_rh); > lame_set_preset_expopts(lgf, 3); > lame_set_lowpassfreq(lgf, 19000); > lame_set_VBR_min_bitrate_kbps(lgf, 48); > lame_set_mode(lgf, JOINT_STEREO); > lame_set_quality(lgf, 5); > lame_set_num_channels(lgf,2); > lame_set_in_samplerate(lgf,AUDIO_SAMPLERATE); > lame_set_no_short_blocks(lgf, 1); > > if(lame_init_params(lgf) < 0) { > LOG_Write(LOG_ERROR,"[MP3LAME] Error INITIALIZING Lame"); > return 0; > } > return 1; > } > > AUDIO_SAMPLERATE = 8000 > > I encode a PCM 16bit stream. Suggestions ? > > Thanks, Michele > > -- > ---- > O-Zone ! No (C) 2005 > WEB @ http://www.zerozone.it > BLOG @ http://blog.zerozone.it/user/o-zone > > -- > ---- > O-Zone ! No (C) 2005 > WEB @ http://www.zerozone.it > BLOG @ http://blog.zerozone.it/user/o-zone > _______________________________________________ > mp3encoder mailing list > [email protected] > https://minnie.tuhs.org/mailman/listinfo/mp3encoder >