Streaming Multi-Channel PCM

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

 



Hi Benny et al,

it's my first time here in the mailing list, even if I've been reading 
your precious suggestions for 2 months.
I like so much your software and its flexibility.

I've to develop an application that should split/comb a G711 pcma 16 
channels (custom pjmedia port) and do separately RTP streaming for each 
channel.

It's just a media flow, let assume that all remote addresses are hard 
coded at the moment.
I started from the streamutil.c code and also tried to use your comments 
here: http://trac.pjsip.org/repos/wiki/FAQ#pjsua-lib-perf

I successfully streamed 1 single channel from the custom port.
I'm trying now with 2 channels, the application start streaming but on 
remote sites there is only silence.

What I did is the following (added to streamutil):

Custom port and splitcomb creation:
- create_pcm_port(pool, 8000, 2, &pcm_port)
- pjmedia_splitcomb_create(..., &splitcomb_port)

To connect custom port to splitcomb:
- pjmedia_conf_create(...,PJMEDIA_CONF_NO_DEVICE, &pcm_conf_port)
- pjmedia_conf_add_port(pcm_conf_port, pool, pcm_port, NULL, &slot1)
- pjmedia_conf_add_port(pcm_conf_port, pool, splitcomb_port, NULL, &slot2)
- pjmedia_conf_connect_port(pcm_conf_port, slot1, slot2, 0)

To streamout channel 1:
- pjmedia_conf_create(...,PJMEDIA_CONF_NO_DEVICE, &pcmch1_conf)
- pcmch1_mp=pjmedia_conf_get_master_port(pcmch1_conf)
- pjmedia_splitcomb_set_channel(splitcomb_port, 0, 0, pcmch1_mp)
- pjmedia_master_port_create(pool, pcmch1_mp, stream_port1, &master_port1)
- pjmedia_master_port_start(master_port1)
- pjmedia_stream_start(stream1)

Does anybody know what's wrong in my pseudo-code?

Thanks a lot,
Fabio




[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