<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Yes, we could use one encoder for all the participants, but then you
    couldn't have different views per participant, or have different
    encoding parameters per participant or perform bit rate adaptation
    per participant (planed).<br>
    <br>
    Currently the architecture has been thought to be able to be as
    flexible as possible.. so it could be possible in the same
    conference to have an H264 participant in HD at 2MBs watching 16
    people at the same time, and participants in a mobile  phone using
    qcif and h263 at 128kbs watching only the hd one.. for example.. but
    that comes with a cost. Anyway, I expect anyone deploying that kind
    of service to be able to afford buying a nice server or cluster or
    servers.. :)<br>
    <br>
    Best regards<br>
    Sergio<br>
    <br>
    El 30/05/2011 14:21, Kiran N escribió:
    <blockquote cite="mid:13901.7475.qm@web95616.mail.in.yahoo.com"
      type="cite">
      <table border="0" cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td style="font: inherit;" valign="top">
              <div id="yiv1287351342">
                <table id="yiv1287351342bodyDrftID"
                  class="yiv1287351342" border="0" cellpadding="0"
                  cellspacing="0">
                  <tbody>
                    <tr>
                      <td id="yiv1287351342drftMsgContent"
                        style="font-style: inherit; font-variant:
                        inherit; font-weight: inherit; line-height:
                        inherit; font-size-adjust: inherit;
                        font-stretch: inherit; font-family: arial;
                        font-size: 10pt;">
                        <div id="yiv1287351342">
                          <table id="yiv1287351342bodyDrftID"
                            class="yiv1287351342" border="0"
                            cellpadding="0" cellspacing="0">
                            <tbody>
                              <tr>
                                <td id="yiv1287351342drftMsgContent"
                                  style="font-style: inherit;
                                  font-variant: inherit; font-weight:
                                  inherit; line-height: inherit;
                                  font-size-adjust: inherit;
                                  font-stretch: inherit; font-family:
                                  arial; font-size: 10pt;">
                                  <pre>Hi Sergio,

Thanks for the quick response. I was able to reduce the CPU utilization to
6% (when only one participant is present in the conference) by performing the following
1. Re-compile the x264 module with yasm support.
2. Changed to QCIF format
3. FPS is reduced to 10.

The reason for why I am sticking to H.264 is that, I am testing the application 
with both Eyebeam and SIP
 Communicator. For some reason, SIP Communicator is 
not able to understand the H.263-1998 format from the MCU and thus nothing is shown 
on the
 screen.

I may be wrong, I had a peek into the code and thus came to know that
a VideoEncoder object is made for each participant and thus when there are 2 participants
the CPU usage is 12% (6 + 6) and when its 3 participants the usage is 18%.
This might be a stupid question, but it came to my mind
Isn't it possible for us to have a single VideoEncoder per conference?

Thanks and Regards,
Kiran


&gt;Hi Kiran,

&gt;The CPU utilization is something that we cannot reduce, it is bound to 
&gt;the encoding process, which is something expensive if using h264.

&gt;You can do one of the following things, reduce the video quality (either 
&gt;going to QCIF, or H263 or reducing fps) or increase the CPU power of 
&gt;your server. I have made test with up to 8 participants using HD(720P) 
&gt;video at 30fps.

&gt;Also, the mcu allows you have more than one mixer configured to be able 
&gt;to use more than one server at a time.

&gt;Best regards
&gt;Sergio

--- On <b>Mon, 30/5/11, Kiran N <i><a class="moz-txt-link-rfc2396E" href="mailto:nkirankurup@yahoo.com">&lt;nkirankurup@yahoo.com&gt;</a></i></b> wrote:
</pre>
                                  <blockquote style="border-left: 2px
                                    solid rgb(16, 16, 255); margin-left:
                                    5px; padding-left: 5px;"><br>
                                    From: Kiran N
                                    <a class="moz-txt-link-rfc2396E" href="mailto:nkirankurup@yahoo.com">&lt;nkirankurup@yahoo.com&gt;</a><br>
                                    Subject: CPU Utilization of H.264
                                    Conference with MCU<br>
                                    To: <a class="moz-txt-link-abbreviated" href="mailto:asterisk-video@lists.digium.com">asterisk-video@lists.digium.com</a><br>
                                    Date: Monday, 30 May, 2011, 12:56 PM<br>
                                    <br>
                                    <div id="yiv1287351342">
                                      <table border="0" cellpadding="0"
                                        cellspacing="0">
                                        <tbody>
                                          <tr>
                                            <td style="font: inherit;"
                                              valign="top">Hi -,<br>
                                              <br>
                                              <br>
                                              I am trying to use 2X2
                                              conference with H.264
                                              Codec with CIF format.
                                              With a single person in
                                              the conference i could see
                                              that the CPU utilization
                                              has gone to 25% and when
                                              the second fellow joins,
                                              it went up to 50%. I could
                                              see that H.264 encoder
                                              (x264 lib) is the one
                                              responsible for most of
                                              the CPU utilization. <br>
                                              <br>
                                              Does this mean that I
                                              would not be able to run
                                              more that 2-3 conferences
                                              (say 2X2) active on a
                                              system? Is there any way,
                                              we can reduce the CPU
                                              usage? <br>
                                              Any help in this regard
                                              will be greatly
                                              appreciated.<br>
                                              <br>
                                              Thanks and Regards,<br>
                                              Kiran<br>
                                            </td>
                                          </tr>
                                        </tbody>
                                      </table>
                                    </div>
                                  </blockquote>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </div>
            </td>
          </tr>
        </tbody>
      </table>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --

asterisk-video mailing list
To UNSUBSCRIBE or update options visit:
   <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-video">http://lists.digium.com/mailman/listinfo/asterisk-video</a></pre>
    </blockquote>
    <br>
  </body>
</html>