<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic PCM data size for audio encoding in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/PCM-data-size-for-audio-encoding/m-p/858664#M7501</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I've been trying to use audio encoder classes included in IPP samples to compress PCM samples I am getting from an audio board.&lt;BR /&gt;&lt;BR /&gt;What I have is a stereo buffer of 2 channels/16bit/48000  frequency. The size of the buffer is 3840 bytes for each frame, i.e. 1920 per channel ( = 48000Hz / 25 frames in PAL).&lt;BR /&gt;&lt;BR /&gt;AACEncoder doesn't accept this data since it expects a buffer of at least 2048 bytes per channel. Same is valid for MP3Encoder, though in case of the latter incoming uncompressed buffer supposes to be about 2304 bytes per channel.&lt;BR /&gt;&lt;BR /&gt;I am not quite sure what I am doing wrong. I looked into the source code of AACEncoder and the size requirements do not seem to depend on frequency but solely on a number of channels.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Serge&lt;BR /&gt;</description>
    <pubDate>Wed, 15 Apr 2009 09:13:01 GMT</pubDate>
    <dc:creator>skorolev</dc:creator>
    <dc:date>2009-04-15T09:13:01Z</dc:date>
    <item>
      <title>PCM data size for audio encoding</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/PCM-data-size-for-audio-encoding/m-p/858664#M7501</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I've been trying to use audio encoder classes included in IPP samples to compress PCM samples I am getting from an audio board.&lt;BR /&gt;&lt;BR /&gt;What I have is a stereo buffer of 2 channels/16bit/48000  frequency. The size of the buffer is 3840 bytes for each frame, i.e. 1920 per channel ( = 48000Hz / 25 frames in PAL).&lt;BR /&gt;&lt;BR /&gt;AACEncoder doesn't accept this data since it expects a buffer of at least 2048 bytes per channel. Same is valid for MP3Encoder, though in case of the latter incoming uncompressed buffer supposes to be about 2304 bytes per channel.&lt;BR /&gt;&lt;BR /&gt;I am not quite sure what I am doing wrong. I looked into the source code of AACEncoder and the size requirements do not seem to depend on frequency but solely on a number of channels.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Serge&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Apr 2009 09:13:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/PCM-data-size-for-audio-encoding/m-p/858664#M7501</guid>
      <dc:creator>skorolev</dc:creator>
      <dc:date>2009-04-15T09:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: PCM data size for audio encoding</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/PCM-data-size-for-audio-encoding/m-p/858665#M7502</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;P&gt;Hello, there is comment from our expert:&lt;BR /&gt;&lt;BR /&gt;Serge,&lt;/P&gt;
&lt;P&gt;Yes, you are right, size of AAC audio frame is equal to 1024 samples per channel (2048 bytes), size of MP3 frame - 1152 samples per channel (2304 bytes). It means that every call GetFrame of encoder encodes exactly frame_size * num_channels samples of input data. This size doesn't depend on sample frequency. As you can see, in your case AAC can encode 46.875 audio frames per second (48000/1024), MP3 ~ 41.6667. These numbers don't equal to video frame rate (25 frames per second). It means, that you should encode audio and video streams independently and use time stamps for further synchronization.&lt;/P&gt;
&lt;P&gt;PS. You wrote "The size of the buffer is 3840 bytes for each frame, i.e. 1920 per channel ( = 48000Hz / 25 frames in PAL)." I think that you wanted to write "The size of the buffer is 3840 * 2 bytes for each frame, i.e. 1920 * 2 per channel ( = 48000Hz * (16 bit/ 8 bit) / 25 frames in PAL)."&lt;/P&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Regards,&lt;BR /&gt; Vladimir</description>
      <pubDate>Thu, 16 Apr 2009 11:27:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/PCM-data-size-for-audio-encoding/m-p/858665#M7502</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2009-04-16T11:27:36Z</dc:date>
    </item>
  </channel>
</rss>

