<?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 Re: MP3Encoder and bits per sample. in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/MP3Encoder-and-bits-per-sample/m-p/892632#M11706</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336498"&gt;Vladimir Dudnik (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Hello, what version of IPP do you use?&lt;BR /&gt;&lt;BR /&gt;Vladimir&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Hi Vladimir,&lt;BR /&gt;&lt;BR /&gt;We are using 6.0, Update 2.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 29 May 2009 11:02:06 GMT</pubDate>
    <dc:creator>mhand75</dc:creator>
    <dc:date>2009-05-29T11:02:06Z</dc:date>
    <item>
      <title>MP3Encoder and bits per sample.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MP3Encoder-and-bits-per-sample/m-p/892630#M11704</link>
      <description>&lt;P&gt;I am using the UMC MP3Encoder class. I am having trouble figuring out how to handle audio files with 8 bits per sample. When trying to encode these files, I get distorted audio (the MP3 audio that results from the encoding is about half the length that it should be and vocals sound like a chipmunk). This only happens when I am working with WAV files that have a bits per sample of 8. When I test files with 16 it works fine. &lt;BR /&gt;&lt;BR /&gt;Is there something I am doing wrong with my initialization:&lt;BR /&gt;&lt;BR /&gt;// Read wav file into buffer&lt;BR /&gt;AudioData inMediaBuffer;&lt;BR /&gt;WavFile::Info wavInfo;&lt;BR /&gt;.... Read in WAV file ....&lt;BR /&gt;&lt;BR /&gt;// Setup encoder defaults&lt;BR /&gt;MP3EncoderParams MP3EncoderParams;&lt;BR /&gt;MP3EncoderParams.m_pData = &amp;amp;inMediaBuffer; &lt;BR /&gt;&lt;BR /&gt;MP3EncoderParams.m_info_in.sample_frequency = wavInfo.sample_rate;&lt;BR /&gt;MP3EncoderParams.m_info_in.channels = wavInfo.channels_number;&lt;BR /&gt;MP3EncoderParams.m_info_in.channel_mask = wavInfo.channel_mask;&lt;BR /&gt;MP3EncoderParams.m_info_in.bitPerSample = wavInfo.resolution;&lt;BR /&gt;&lt;BR /&gt;MP3EncoderParams.m_info_out.bitrate = 128000;&lt;BR /&gt;MP3EncoderParams.m_info_out.sample_frequency = wavInfo.sample_rate;&lt;BR /&gt;MP3EncoderParams.m_info_out.channels = wavInfo.channels_number;&lt;BR /&gt;MP3EncoderParams.m_info_out.channel_mask = wavInfo.channel_mask;&lt;BR /&gt;MP3EncoderParams.m_info_out.stream_type = UMC::MP1L3_AUDIO;&lt;BR /&gt;MP3EncoderParams.m_info_out.bitPerSample = wavInfo.resolution;&lt;BR /&gt;&lt;BR /&gt;// Initialize encoder&lt;BR /&gt;MP3Encoder MP3Encoder;&lt;BR /&gt;MP3Encoder.Init(&amp;amp;MP3EncoderParams);&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.</description>
      <pubDate>Thu, 28 May 2009 19:59:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MP3Encoder-and-bits-per-sample/m-p/892630#M11704</guid>
      <dc:creator>mhand75</dc:creator>
      <dc:date>2009-05-28T19:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: MP3Encoder and bits per sample.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MP3Encoder-and-bits-per-sample/m-p/892631#M11705</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Hello, what version of IPP do you use?&lt;BR /&gt;&lt;BR /&gt;Vladimir&lt;BR /&gt;</description>
      <pubDate>Fri, 29 May 2009 06:23:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MP3Encoder-and-bits-per-sample/m-p/892631#M11705</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2009-05-29T06:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: MP3Encoder and bits per sample.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MP3Encoder-and-bits-per-sample/m-p/892632#M11706</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336498"&gt;Vladimir Dudnik (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Hello, what version of IPP do you use?&lt;BR /&gt;&lt;BR /&gt;Vladimir&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Hi Vladimir,&lt;BR /&gt;&lt;BR /&gt;We are using 6.0, Update 2.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 May 2009 11:02:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MP3Encoder-and-bits-per-sample/m-p/892632#M11706</guid>
      <dc:creator>mhand75</dc:creator>
      <dc:date>2009-05-29T11:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: MP3Encoder and bits per sample.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/MP3Encoder-and-bits-per-sample/m-p/892633#M11707</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;There is comment from our expert:&lt;BR /&gt;
&lt;P&gt;&lt;BR /&gt;Input stream format for all UMC audio encoders is 16 bit PCM. To encode 8 bit per sample audio stream you should convert it to 16 bit audio stream. You should also take into account that 8 bit stream can have linear, mu-law or a-law format (information about actual format of your file you can find in the WAV file header)&lt;/P&gt;
&lt;BR /&gt;Regards,&lt;BR /&gt; Vladimir</description>
      <pubDate>Fri, 29 May 2009 13:07:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/MP3Encoder-and-bits-per-sample/m-p/892633#M11707</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2009-05-29T13:07:56Z</dc:date>
    </item>
  </channel>
</rss>

