Problem with encodec-i686-pc-linux-gnu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 7, 2009 at 4:13 PM, MK <maternick at o2.pl> wrote:

> Hello.
> I'm having problems with the program encodec-i686-pc-linux-gnu. When I
> type: ./encdec-i686-pc-linux-gnu Speex 2.wav 1.WAV it gives me this in on
> the output:
>
>  16:42:00.449 File wav_player.c player'2. WAV 'created: samp.rate = 22050,
> ch = 1, bufsize = 4KB, filesize = 49KB


I think that's the problem, the input WAV file is on different sampling rate
than the codec. The encdec sample doesn't have sample rate conversion (nor
sample rate checking apparently), so you must supply an input WAV file that
has the same sampling rate as the codec (e.g. 8KHz for GSM, etc.).

 -benny




> 16:42:00.449 wav_writer.c File writer'1. WAV 'created: samp.rate = 32000,
> bufsize = 4KBencdec-i686-pc-linux-gnu: .. / src / pjmedia-codec /
> speex_codec.c: 943: spx_codec_decode: Assertion `output_buf_len> =
> samples_per_frame <<1 'failed.
> And when I do this:./encdec-i686-pc-linux-gnu gsm 2.wav 1.WAVFile
> wav_player.c player'2. WAV 'created: samp.rate = 22050, ch = 1, bufsize =
> 4KB, filesize = 49KB 16:43:18.006 wav_writer.c File writer'1. WAV 'created:
> samp.rate = 8000, bufsize = 4KB 16:43:18.006 Starting silencedet.c talk
> burst (level threshold = 1312 = 1000) 16:43:18.017 Starting silencedet.c
> silence (threshold level = 836 = 926) 16:43:18.017 File wav_player.c port
> 000835.WAV EOF 16:43:18.506 pa_dev.c PortAudio sound library shutting down
> .. 16:43:18.506 g711 pool is not released by application, releasing a
> new 16:43:18.506 cellular pool is not released by application, releasing a
> new 16:43:18.506 Speex pool is not released by application, releasing a
> new 16:43:18.506 g722 pool is not released by application, releasing a new
> SuccessDuration: 3s.080Time: 0s.011
> It works, but the output file, 1.WAV takes up 44KB, although originally it
> has 49KB and a very low voice quality i.e. voice is slowed. Could someone
> explain to me how to use speex codec and why why gsm codec produce low voice
> quality?
>
> Regards, Michal
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090513/40d38997/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux