A wav file for streamutil.c

CL
cedric leveque
Thu, Nov 27, 2008 10:55 AM

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 initializedDirection 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=158947KBstreamutil: ../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.


Inédit ! Des Emoticônes Déjantées! Installez les dans votre Messenger !
http://www.ilovemessenger.fr/Emoticones/EmoticonesDejantees.aspx

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 initializedDirection 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=158947KBstreamutil: ../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. _________________________________________________________________ Inédit ! Des Emoticônes Déjantées! Installez les dans votre Messenger ! http://www.ilovemessenger.fr/Emoticones/EmoticonesDejantees.aspx
NI
Nanang Izzuddin
Thu, Nov 27, 2008 3:34 PM

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@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

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@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@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
CL
cedric leveque
Thu, Nov 27, 2008 3:50 PM

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@pjsip.org> To: pjsip@lists.pjsip.org> Subject: Re: [pjsip] 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@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@lists.pjsip.org> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org> >> >> > _______________________________________________> Visit our blog: http://blog.pjsip.org> > pjsip mailing list> pjsip@lists.pjsip.org> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Email envoyé avec Windows Live Hotmail. Dites adieux aux spam et virus, passez à Hotmail ! C'est gratuit !
http://www.windowslive.fr/hotmail/default.asp

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@pjsip.org> To: pjsip@lists.pjsip.org> Subject: Re: [pjsip] 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@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@lists.pjsip.org> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org> >> >> > _______________________________________________> Visit our blog: http://blog.pjsip.org> > pjsip mailing list> pjsip@lists.pjsip.org> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _________________________________________________________________ Email envoyé avec Windows Live Hotmail. Dites adieux aux spam et virus, passez à Hotmail ! C'est gratuit ! http://www.windowslive.fr/hotmail/default.asp
NI
Nanang Izzuddin
Thu, Nov 27, 2008 4:10 PM

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@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@pjsip.org
To: pjsip@lists.pjsip.org
Subject: Re: [pjsip] 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@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@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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

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@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@pjsip.org >> To: pjsip@lists.pjsip.org >> Subject: Re: [pjsip] 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@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@lists.pjsip.org >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > >> > >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@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@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
CL
cedric leveque
Thu, Nov 27, 2008 6:31 PM

Thanks,

I think I will create a wav file thanks to other PSMEDIA example (one recorded sound from microphone to wav file) when I get a microphone.
Because all free legal wav file I get from web or other seem to be encoded in an other way.

I have tested with other file but application said to me file isn't supported, but here it is an assertion failed so i was a little trouble, but certainly because clock rate is not to 8 hz.

Otherwise very good example, with a little update, I can run it after an SIP session etablishment, and with rtp port in the sdp body negociated.

Regards,
Cédric.> Date: Thu, 27 Nov 2008 23:10:44 +0700> From: nanang@pjsip.org> To: pjsip@lists.pjsip.org> Subject: Re: [pjsip] 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@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@pjsip.org> >> To: pjsip@lists.pjsip.org> >> Subject: Re: [pjsip] 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@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@lists.pjsip.org> >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org> >> >> >> >> >>> >> _______________________________________________> >> Visit our blog: http://blog.pjsip.org> >>> >> pjsip mailing list> >> pjsip@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@lists.pjsip.org> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org> >> >> > _______________________________________________> Visit our blog: http://blog.pjsip.org> > pjsip mailing list> pjsip@lists.pjsip.org> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Email envoyé avec Windows Live Hotmail. Dites adieux aux spam et virus, passez à Hotmail ! C'est gratuit !
http://www.windowslive.fr/hotmail/default.asp

Thanks, I think I will create a wav file thanks to other PSMEDIA example (one recorded sound from microphone to wav file) when I get a microphone. Because all free legal wav file I get from web or other seem to be encoded in an other way. I have tested with other file but application said to me file isn't supported, but here it is an assertion failed so i was a little trouble, but certainly because clock rate is not to 8 hz. Otherwise very good example, with a little update, I can run it after an SIP session etablishment, and with rtp port in the sdp body negociated. Regards, Cédric.> Date: Thu, 27 Nov 2008 23:10:44 +0700> From: nanang@pjsip.org> To: pjsip@lists.pjsip.org> Subject: Re: [pjsip] 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@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@pjsip.org> >> To: pjsip@lists.pjsip.org> >> Subject: Re: [pjsip] 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@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@lists.pjsip.org> >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org> >> >> >> >> >>> >> _______________________________________________> >> Visit our blog: http://blog.pjsip.org> >>> >> pjsip mailing list> >> pjsip@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@lists.pjsip.org> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org> >> >> > _______________________________________________> Visit our blog: http://blog.pjsip.org> > pjsip mailing list> pjsip@lists.pjsip.org> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _________________________________________________________________ Email envoyé avec Windows Live Hotmail. Dites adieux aux spam et virus, passez à Hotmail ! C'est gratuit ! http://www.windowslive.fr/hotmail/default.asp
BR
Brad Radaker
Wed, Dec 3, 2008 9:32 PM

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@pjsip.org]
Sent: Thursday, November 27, 2008 11:11 AM
To: pjsip list
Subject: Re: [pjsip] 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@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@pjsip.org
To: pjsip@lists.pjsip.org
Subject: Re: [pjsip] 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@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

!


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@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

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@pjsip.org] Sent: Thursday, November 27, 2008 11:11 AM To: pjsip list Subject: Re: [pjsip] 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@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@pjsip.org >> To: pjsip@lists.pjsip.org >> Subject: Re: [pjsip] 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@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@lists.pjsip.org >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > >> > >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@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@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
RI
Rawshan Iajdani
Wed, Dec 3, 2008 10:24 PM

I am trying to implement TCP on symbian.. But I get an error transport type
not supported.. any clue???

I am trying to implement TCP on symbian.. But I get an error transport type not supported.. any clue???