A wav file for streamutil.c

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

 



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



[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