<?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 Hi Petter,  in Media (Intel® Video Processing Library, Intel Media SDK)</title>
    <link>https://community.intel.com/t5/Media-Intel-Video-Processing/H-264-sample-encode-for-quality-parameter/m-p/981162#M3748</link>
    <description>&lt;P&gt;Hi Petter,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;Yes, I'm using Media SDK 2013.&lt;/P&gt;
&lt;P&gt;I also check the "sampe_encode.cpp" for parsing the cmd line and &amp;nbsp;"pipeline_encode.cpp" for InitMfxEncParams.&lt;/P&gt;
&lt;P&gt;But I can not find anu related parameter for processing the&amp;nbsp;quality.&lt;/P&gt;
&lt;P&gt;Ex: I can find the code for&amp;nbsp;parsing the bit rate or frame rate in&amp;nbsp;"sampe_encode.cpp". &amp;nbsp;But it's without the quality parameter.&lt;/P&gt;
&lt;P&gt;case MSDK_CHAR('b'):&lt;BR /&gt; GET_OPTION_POINTER(strArgument);&lt;BR /&gt;pParams-&amp;gt;nBitRate = (mfxU16)msdk_strtol(strArgument, &amp;amp;stopCharacter, 10);&lt;BR /&gt; break;&lt;/P&gt;
&lt;P&gt;And in&amp;nbsp;"pipeline_encode.cpp" , I can find the "m_mfxEncParams.mfx.TargetKbps." for&amp;nbsp;bit rate setting. But it's still without quality parameter.&lt;/P&gt;
&lt;P&gt;Do I miss the other items? &amp;nbsp;Thanks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2013 05:08:02 GMT</pubDate>
    <dc:creator>Lu_N_</dc:creator>
    <dc:date>2013-06-06T05:08:02Z</dc:date>
    <item>
      <title>H.264 sample encode for quality parameter</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/H-264-sample-encode-for-quality-parameter/m-p/981160#M3746</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I'm using Media SDK for the H.264 encoder by sample code(sample_encode).&lt;/P&gt;
&lt;P&gt;As the document menstined =&amp;gt;[-q quality] - quality parameter for JPEG codec. In range [1,100]. 100 is the&amp;nbsp;best quality.&lt;/P&gt;
&lt;P&gt;But when I trace the source code, I can not find any parameter for the&amp;nbsp;quality parameter.&lt;/P&gt;
&lt;P&gt;Does Media SDK create the interface for "quality parameter" ? &amp;nbsp;thanks !&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2013 10:37:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/H-264-sample-encode-for-quality-parameter/m-p/981160#M3746</guid>
      <dc:creator>Lu_N_</dc:creator>
      <dc:date>2013-06-05T10:37:04Z</dc:date>
    </item>
    <item>
      <title>Hi Lu,</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/H-264-sample-encode-for-quality-parameter/m-p/981161#M3747</link>
      <description>&lt;P&gt;Hi Lu,&lt;/P&gt;
&lt;P&gt;The "sample_encode" sample code handles the MJPEG quality parameter both in sample_encode.cpp (when parsing the cmd line) and in pipeline_encode.cpp (in InitMfxEncParams() when setting the Media SDK API parameter named Quality).&lt;/P&gt;
&lt;P&gt;Please check the sample source code again. I'm assuming you are using Media SDK 2013 release?&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Petter&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 02:13:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/H-264-sample-encode-for-quality-parameter/m-p/981161#M3747</guid>
      <dc:creator>Petter_L_Intel</dc:creator>
      <dc:date>2013-06-06T02:13:57Z</dc:date>
    </item>
    <item>
      <title>Hi Petter, </title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/H-264-sample-encode-for-quality-parameter/m-p/981162#M3748</link>
      <description>&lt;P&gt;Hi Petter,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;Yes, I'm using Media SDK 2013.&lt;/P&gt;
&lt;P&gt;I also check the "sampe_encode.cpp" for parsing the cmd line and &amp;nbsp;"pipeline_encode.cpp" for InitMfxEncParams.&lt;/P&gt;
&lt;P&gt;But I can not find anu related parameter for processing the&amp;nbsp;quality.&lt;/P&gt;
&lt;P&gt;Ex: I can find the code for&amp;nbsp;parsing the bit rate or frame rate in&amp;nbsp;"sampe_encode.cpp". &amp;nbsp;But it's without the quality parameter.&lt;/P&gt;
&lt;P&gt;case MSDK_CHAR('b'):&lt;BR /&gt; GET_OPTION_POINTER(strArgument);&lt;BR /&gt;pParams-&amp;gt;nBitRate = (mfxU16)msdk_strtol(strArgument, &amp;amp;stopCharacter, 10);&lt;BR /&gt; break;&lt;/P&gt;
&lt;P&gt;And in&amp;nbsp;"pipeline_encode.cpp" , I can find the "m_mfxEncParams.mfx.TargetKbps." for&amp;nbsp;bit rate setting. But it's still without quality parameter.&lt;/P&gt;
&lt;P&gt;Do I miss the other items? &amp;nbsp;Thanks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 05:08:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/H-264-sample-encode-for-quality-parameter/m-p/981162#M3748</guid>
      <dc:creator>Lu_N_</dc:creator>
      <dc:date>2013-06-06T05:08:02Z</dc:date>
    </item>
    <item>
      <title>I was curious, so I looked:</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/H-264-sample-encode-for-quality-parameter/m-p/981163#M3749</link>
      <description>&lt;P&gt;I was curious, so I looked:&lt;/P&gt;
&lt;P&gt;On lines 211-214 of sample_encode.cpp, you will find:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;case MSDK_CHAR('q'):&lt;BR /&gt; GET_OPTION_POINTER(strArgument); &lt;BR /&gt; pParams-&amp;gt;nQuality = (mfxU16)msdk_strtol(strArgument, &amp;amp;stopCharacter, 10);&lt;BR /&gt; break;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;and this is where it is used to setup the appropriate element in the mfxVideoParam struct.&lt;/P&gt;
&lt;P&gt;pipeline_encode.cpp(381): m_mfxEncParams.mfx.Quality = pInParams-&amp;gt;nQuality;&lt;/P&gt;
&lt;P&gt;Are you aware of the mouse right click -&amp;gt; find all references in VS2010/VS2012?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While editing a successfully compiling solution, such as sample_encode, right click with the mouse on an element such as 'nQuality' and select 'find all references', it should show you all the lines the symbol in question is used on.&lt;/P&gt;
&lt;P&gt;That's how I found that reference mentioned above.&lt;/P&gt;
&lt;P&gt;Cameron&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 05:22:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/H-264-sample-encode-for-quality-parameter/m-p/981163#M3749</guid>
      <dc:creator>celli4</dc:creator>
      <dc:date>2013-06-06T05:22:48Z</dc:date>
    </item>
    <item>
      <title>Hi camkego,</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/H-264-sample-encode-for-quality-parameter/m-p/981164#M3750</link>
      <description>&lt;P&gt;Hi&amp;nbsp;camkego,&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;P&gt;I think I found the root cause. I use Media SDK R3 (Version 3.5.915.45249), it's without the prarameter as you menstioned.&lt;/P&gt;
&lt;P&gt;But when I upgrade it to&amp;nbsp;Version 4.0.0000554.52230, it appears &amp;nbsp;"pParams-&amp;gt;nQuality" and"&amp;nbsp;m_mfxEncParams.mfx.Quality" these two parameters.&lt;/P&gt;
&lt;P&gt;Now, it's working. Thanks for your help again.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2013 16:25:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/H-264-sample-encode-for-quality-parameter/m-p/981164#M3750</guid>
      <dc:creator>Lu_N_</dc:creator>
      <dc:date>2013-06-06T16:25:53Z</dc:date>
    </item>
  </channel>
</rss>

