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 > >