[jitsi-dev] How to use silk codecs in AVTransmit2, AVReceive2 while using libjitsi


#1

Dear team,

I would like to thank you very much for libjitsi. I am trying and love it.
AVTransmit2 and AVReceive2 classes are clear example, I can tested audio
with PCMU, G722 codecs, but I tried speex and silk they did not work. Pls
tell me what something wrong I made.

on AVTransmit2 class, method: initialize():
.......
switch (device.getMediaType())
            {
            case AUDIO:
                *encoding = "SILK"; // original : PCMU*
                clockRate = 8000;
                /* PCMU has a static RTP payload type number assigned. */
                dynamicRTPPayloadType = -1;
                break;
........

on AVTransmit2 class, method: start()
.................
  switch (device.getMediaType())
            {
            case AUDIO:
               * encoding = "SILK"; // original: PCMU*
                clockRate = 8000;
                /* PCMU has a static RTP payload type number assigned. */
                dynamicRTPPayloadType = -1;
                break;
......................

what things I need to change more to make SILK testing working?

···

-------------------
Best Regards,
Hong Nguyen


#2

Hello,

···

On 8/16/13 12:17 PM, Nguyen Manh Hong wrote:

Dear team,

I would like to thank you very much for libjitsi. I am trying and love
it. AVTransmit2 and AVReceive2 classes are clear example, I can tested
audio with PCMU, G722 codecs, but I tried speex and silk they did not
work. Pls tell me what something wrong I made.

on AVTransmit2 class, method: initialize():
.......
switch (device.getMediaType())
            {
            case AUDIO:
                *encoding = "SILK"; // original : PCMU*
                clockRate = 8000;
                /* PCMU has a static RTP payload type number assigned. */
                dynamicRTPPayloadType = -1;
                break;
........

on AVTransmit2 class, method: start()
.................
  switch (device.getMediaType())
            {
            case AUDIO:
               *encoding = "SILK"; // original: PCMU*
                clockRate = 8000;
                /* PCMU has a static RTP payload type number assigned. */
                dynamicRTPPayloadType = -1;
                break;
......................

what things I need to change more to make SILK testing working?

I am not sure this is all that you need, but you need to assign a
dynamic RTP payload type number for SILK (see the comment at line 161 in
AVTransmit2.java). You will also need to assign the same number for SILK
on the receiving end.

Regards,
Boris


#3

Thank Boris very much, it works.

Regards,
Hong

···

-----Original Message-----
From: Boris Grozev [mailto:boris@jitsi.org]
Sent: Friday, August 16, 2013 4:33 PM
To: Jitsi Developers
Cc: Nguyen Manh Hong
Subject: Re: [jitsi-dev] How to use silk codecs in AVTransmit2, AVReceive2
while using libjitsi

Hello,

On 8/16/13 12:17 PM, Nguyen Manh Hong wrote:

Dear team,

I would like to thank you very much for libjitsi. I am trying and love
it. AVTransmit2 and AVReceive2 classes are clear example, I can tested
audio with PCMU, G722 codecs, but I tried speex and silk they did not
work. Pls tell me what something wrong I made.

on AVTransmit2 class, method: initialize():
.......
switch (device.getMediaType())
            {
            case AUDIO:
                *encoding = "SILK"; // original : PCMU*
                clockRate = 8000;
                /* PCMU has a static RTP payload type number assigned. */
                dynamicRTPPayloadType = -1;
                break;
........

on AVTransmit2 class, method: start()
.................
  switch (device.getMediaType())
            {
            case AUDIO:
               *encoding = "SILK"; // original: PCMU*
                clockRate = 8000;
                /* PCMU has a static RTP payload type number assigned. */
                dynamicRTPPayloadType = -1;
                break;
......................

what things I need to change more to make SILK testing working?

I am not sure this is all that you need, but you need to assign a dynamic
RTP payload type number for SILK (see the comment at line 161 in
AVTransmit2.java). You will also need to assign the same number for SILK on
the receiving end.

Regards,
Boris


#4

For the record, as you've probably noticed, libjitsi is a little bit
poor in examples so, if you'd like to add new ones, feel free to sent
them over.

Cheers,
Emil

···

On Fri, Aug 16, 2013 at 12:33 PM, Hong <nguyenmanhhong@gmail.com> wrote:

Thank Boris very much, it works.

Regards,
Hong

-----Original Message-----
From: Boris Grozev [mailto:boris@jitsi.org]
Sent: Friday, August 16, 2013 4:33 PM
To: Jitsi Developers
Cc: Nguyen Manh Hong
Subject: Re: [jitsi-dev] How to use silk codecs in AVTransmit2, AVReceive2
while using libjitsi

Hello,

On 8/16/13 12:17 PM, Nguyen Manh Hong wrote:

Dear team,

I would like to thank you very much for libjitsi. I am trying and love
it. AVTransmit2 and AVReceive2 classes are clear example, I can tested
audio with PCMU, G722 codecs, but I tried speex and silk they did not
work. Pls tell me what something wrong I made.

on AVTransmit2 class, method: initialize():
.......
switch (device.getMediaType())
            {
            case AUDIO:
                *encoding = "SILK"; // original : PCMU*
                clockRate = 8000;
                /* PCMU has a static RTP payload type number assigned. */
                dynamicRTPPayloadType = -1;
                break;
........

on AVTransmit2 class, method: start()
.................
  switch (device.getMediaType())
            {
            case AUDIO:
               *encoding = "SILK"; // original: PCMU*
                clockRate = 8000;
                /* PCMU has a static RTP payload type number assigned. */
                dynamicRTPPayloadType = -1;
                break;
......................

what things I need to change more to make SILK testing working?

I am not sure this is all that you need, but you need to assign a dynamic
RTP payload type number for SILK (see the comment at line 161 in
AVTransmit2.java). You will also need to assign the same number for SILK on
the receiving end.

Regards,
Boris

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
Jitsi
emcho@jitsi.org PHONE: +33.1.77.62.43.30
https://jitsi.org FAX: +33.1.77.62.47.31