FW: A wav file for streamutil.c

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

 



I was incorrect (or misleading at best) on some of my details below. I'm
discovering more about the problem I am having and will post the details
(along with a question still most likely) at that time. I just didn't want
anyone to waste time thinking about what could be wrong with my scenario
below since it looks like some of my assertions were misleading.

Thanks,

Brad


-----Original Message-----
From: Brad Radaker [mailto:brad@xxxxxxxxxxx] 
Sent: Wednesday, December 03, 2008 4:33 PM
To: 'pjsip list'
Subject: RE: A wav file for streamutil.c

Hi there,

I am also trying to stream a .wav file with streamutil. It is a mono 16-bit
PCM .wav file at 8KHz. When I stream it to another instance of streamutil on
by development PC (i.e. 2 instances on the same machine) it works fine, but
when I stream it from my PC to a Windows Mobile instance of streamutil it
OCCASIONALLY works fine but most of the time it plays at turtle-like speed
(super slooooooow, sounds like Gomer Pyle on valium). Any idea why? I've
tried debugging it but I can't figure it out. Also, when I run it
ActiveSync'd through the debugger it behaves a little differently. In the
first couple seconds the audio "skips" a few times, then it self-corrects
and the rest of the .wav plays fine (about a 5 second .wav of someone
talking). But when I stream it outside of that environment (both over Wi-Fi
and via ActiveSync, but just not through the Visual Studio IDE's debugger),
I get the super-slow audio through the whole thing.

I am using the PJSIP libraries successfully for a push-to-talk application,
and that all works just fine. It's only when I try to send a .wav file via
streamutil that I seem to have this problem. I was just trying to write a
little utility real quick (famous last words) and thought this would be an
easy way to do it.

Any ideas?



-----Original Message-----
From: Nanang Izzuddin [mailto:nanang@xxxxxxxxx] 
Sent: Thursday, November 27, 2008 11:11 AM
To: pjsip list
Subject: Re: A wav file for streamutil.c

Hi,

The first I guess, however the others usually will be ok too.
Basically, pjmedia wav player only supports for wav file with single
data chunk, raw PCM or G.711 coded, which is commonly used.

Regards,
nanang


On Thu, Nov 27, 2008 at 10:50 PM, cedric leveque
<levequecedric at hotmail.com> wrote:
> Thanks for your response.
>
> what could be better, creating a wav file with another pjsip sample, or
> getting a wav file from a CD or on the web ?
>
>> Date: Thu, 27 Nov 2008 22:34:31 +0700
>> From: nanang@xxxxxxxxx
>> To: pjsip at lists.pjsip.org
>> Subject: Re: A wav file for streamutil.c
>>
>> Hi,
>>
>> Ah, since streamutil don't do any resampling or channel number
>> adjustment, please use a mono channel wav file with the same clock
>> rate as the codec used, e.g: if you want to stream using G.711
>> (default) use a mono wav file with clock rate 8KHz, GSM is also 8KHz,
>> G.722 is 16KHz.
>>
>> Regards,
>> nanang
>>
>>
>> On Thu, Nov 27, 2008 at 5:55 PM, cedric leveque
>> <levequecedric at hotmail.com> wrote:
>> > Hi,
>> >
>> > I'm trying to use streamutil.c with a wav file to stream.
>> > Without using a wav file, it work fine, but when I'm trying to use a
wav
>> > file, application abandon because of an failed assertion :
>> >
>> > '/root/Bureau/streamutil' --remote=13.0.0.254:4000
>> > --play-file='/root/Bureau/Bolero.wav' --local-port=4060
>> > 10:41:14.462 os_core_unix.c pjlib 1.0 for POSIX initialized
>> > Direction is set to --send-only because of --play-file
>> > 10:41:14.482 pasound.c PortAudio sound library initialized, status=0
>> > 10:41:14.482 pasound.c PortAudio host api count=2
>> > 10:41:14.482 pasound.c Sound device count=4
>> > 10:41:14.482 pjlib select() I/O Queue created (0x8fc0e24)
>> > 10:41:14.483 strm0x8fc4d0c VAD temporarily disabled
>> > 10:41:14.483 rtp.c pjmedia_rtp_session_init: ses=0x8fcdd94,
>> > default_pt=0, ssrc=0x7bed5d1a
>> > 10:41:14.483 rtp.c pjmedia_rtp_session_init: ses=0x8fce99c,
>> > default_pt=0, ssrc=0x7bed5d1a
>> > 10:41:14.483 stream.c Stream strm0x8fc4d0c created
>> > 10:41:14.483 wav_player.c File player '/root/Bureau/Bolero.wav'
created:
>> > samp.rate=44100, ch=2, bufsize=4KB, filesize=158947KB
>> > streamutil: ../src/pjmedia/master_port.c:66:
pjmedia_master_port_create:
>> > Assertion `u_port->info.clock_rate == d_port->info.clock_rate' failed.
>> > Abandon
>> >
>> > Which kind of wav file can I use with Application ?
>> >
>> > Regards,
>> > C?dric.
>> >
>> > ________________________________
>> > T?l?phonez gratuitement ? tous vos proches avec Windows Live Messenger
!
>> > T?l?chargez-le maintenant !
>> > _______________________________________________
>> > 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
>> >
>> >
>>
>> _______________________________________________
>> 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
>
>
> ________________________________
> Qui vous permet d'enregistrer la TV sur votre PC et lire vos emails sur
> votre mobile ? la r?ponse en vid?o la r?ponse en vid?o
> _______________________________________________
> 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
>
>






[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