Receive with Streamutil.c

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

 



Hi,

thanks for the fast answer.

both (sender and receiver) uses PCMU the file is also PCMU with 8000Hz and 16Bit. 
There exist another sample programm called playfile.c, which play wav files. This has the same problem on my maschine. But, it works fine with 48000Hz and 16Bit L16. 

So, I tried to use --codec=PCMA --recv-only or codec=L16 --recv-only in the streamutil.c.

Then the computer bring this error message.

PJSipRTP: ../src/pjmedia/codec.c:307: pjmedia_codec_mgr_find_codecs_by_id: Assertion `mgr && codec_id && count && *count' failed.

If I uses an self program ALSA application it works with PCMU and 8000hz.

best regards
Steven

> From: thfalk@xxxxxxxxx
> Date: Wed, 30 Jun 2010 17:00:58 +0200
> To: pjsip at lists.pjsip.org
> Subject: Re: Receive with Streamutil.c
> 
> Hi,
> 
> this message says, that it can't set the sample rate requested:
> 
> 2010/6/30 St Burcher <stburcher at hotmail.com>:
> > ...
> > Expression 'SetApproximateSampleRate( pcm, hwParams, sr )' failed in
> > 'src/../../../portaudio/src/hostapi/alsa/pa_linux_alsa.c', line: 1294
> 
> All the other messages or following from tihs because the alsa device
> is not ready. The sample rate requested by streamutil depends on the
> codec it has been given on the command line. There are also some alsa
> configuration which don't support all sample rates.
> 
> It works with --record-file because in this case the alsa device
> doesn't get openend. You should check what rate is requested and that
> your alsa device is configured for resampling if it doesn't support
> this rate in the hardware.
> 
> Best regards,
> 
> Thomas
> 
> _______________________________________________
> 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
 		 	   		  
_________________________________________________________________
http://redirect.gimas.net/?n=M1007xIMFreunde4
Echte Freunde sagen's per Messenger!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100701/2c08dcd3/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