<?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 Adding border bands, padding instead of rescaling while transcoding in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Adding-border-bands-padding-instead-of-rescaling-while/m-p/1071634#M6991</link>
    <description>&lt;P&gt;Doing video transcoding with different aspect ratio&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Input :&lt;/P&gt;

&lt;P&gt;Codec Type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: Advanced Video Coding (H.264) (AVC1)&lt;BR /&gt;
	&amp;nbsp;Format Profile &amp;nbsp; &amp;nbsp; &amp;nbsp;: Main@L4.0&lt;BR /&gt;
	&amp;nbsp;CABAC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : Yes&lt;BR /&gt;
	&amp;nbsp;Image Size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 1280 x 536 (160 : 67)&lt;BR /&gt;
	&amp;nbsp;Frame Rate &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 7200.00 Frame/Sec&lt;/P&gt;

&lt;P&gt;Output:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;Codec Type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: Advanced Video Coding (H.264) (AVC1)&lt;BR /&gt;
	&amp;nbsp;Format Profile &amp;nbsp; &amp;nbsp; &amp;nbsp;: Baseline@L3.1&lt;BR /&gt;
	&amp;nbsp;CABAC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : No&lt;BR /&gt;
	&amp;nbsp;Image Size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 1280 x 720 (16 : 9)&lt;BR /&gt;
	&amp;nbsp;Average Bit Rate &amp;nbsp; &amp;nbsp;: 1.84 MBits/Sec&lt;BR /&gt;
	&amp;nbsp;Frame Rate &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 35.00 Frame/Sec&lt;/P&gt;

&lt;P&gt;As you can see aspect is changed, and frame height is changed which is ok. But by default frame is scaled in height ( frame is unnaturally elongated in height, example: round face becomes oval face, ie: longer face), but need to keep original picture ratio but add border padding on top, bottom instead.&lt;/P&gt;

&lt;P&gt;How can it be transcoded without rescaling/resizing picture but just adding border &lt;SPAN style="font-size: 13.008px;"&gt;padding&amp;nbsp;&lt;/SPAN&gt;on top and bottom position?&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Which parameters in Intel Media sdk needs to be changed ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I couldn't get meaningful info from mfxVideoParam. mfxFrameInfo has &amp;nbsp;AspectRatioW, AspectRatioH &amp;nbsp;&amp;amp; crop x,y,w,h. Do I have to use that?&lt;/P&gt;

&lt;P&gt;Please provide steps, parameters...&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2017 07:00:14 GMT</pubDate>
    <dc:creator>shavkat_n_</dc:creator>
    <dc:date>2017-01-17T07:00:14Z</dc:date>
    <item>
      <title>Adding border bands, padding instead of rescaling while transcoding</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Adding-border-bands-padding-instead-of-rescaling-while/m-p/1071634#M6991</link>
      <description>&lt;P&gt;Doing video transcoding with different aspect ratio&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Input :&lt;/P&gt;

&lt;P&gt;Codec Type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: Advanced Video Coding (H.264) (AVC1)&lt;BR /&gt;
	&amp;nbsp;Format Profile &amp;nbsp; &amp;nbsp; &amp;nbsp;: Main@L4.0&lt;BR /&gt;
	&amp;nbsp;CABAC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : Yes&lt;BR /&gt;
	&amp;nbsp;Image Size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 1280 x 536 (160 : 67)&lt;BR /&gt;
	&amp;nbsp;Frame Rate &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 7200.00 Frame/Sec&lt;/P&gt;

&lt;P&gt;Output:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;Codec Type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: Advanced Video Coding (H.264) (AVC1)&lt;BR /&gt;
	&amp;nbsp;Format Profile &amp;nbsp; &amp;nbsp; &amp;nbsp;: Baseline@L3.1&lt;BR /&gt;
	&amp;nbsp;CABAC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : No&lt;BR /&gt;
	&amp;nbsp;Image Size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 1280 x 720 (16 : 9)&lt;BR /&gt;
	&amp;nbsp;Average Bit Rate &amp;nbsp; &amp;nbsp;: 1.84 MBits/Sec&lt;BR /&gt;
	&amp;nbsp;Frame Rate &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 35.00 Frame/Sec&lt;/P&gt;

&lt;P&gt;As you can see aspect is changed, and frame height is changed which is ok. But by default frame is scaled in height ( frame is unnaturally elongated in height, example: round face becomes oval face, ie: longer face), but need to keep original picture ratio but add border padding on top, bottom instead.&lt;/P&gt;

&lt;P&gt;How can it be transcoded without rescaling/resizing picture but just adding border &lt;SPAN style="font-size: 13.008px;"&gt;padding&amp;nbsp;&lt;/SPAN&gt;on top and bottom position?&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Which parameters in Intel Media sdk needs to be changed ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I couldn't get meaningful info from mfxVideoParam. mfxFrameInfo has &amp;nbsp;AspectRatioW, AspectRatioH &amp;nbsp;&amp;amp; crop x,y,w,h. Do I have to use that?&lt;/P&gt;

&lt;P&gt;Please provide steps, parameters...&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 07:00:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Adding-border-bands-padding-instead-of-rescaling-while/m-p/1071634#M6991</guid>
      <dc:creator>shavkat_n_</dc:creator>
      <dc:date>2017-01-17T07:00:14Z</dc:date>
    </item>
    <item>
      <title>Add 92 rows(lines) at the top</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Adding-border-bands-padding-instead-of-rescaling-while/m-p/1071635#M6992</link>
      <description>&lt;P&gt;Add 92 rows(lines) at the top and 92 at the bottom, each row(line) 1280. Choose whatever color you want.&lt;/P&gt;

&lt;P&gt;IOW preallocate 720 lines of 1280, prefill top 92 and bottom 92 with color of choice, and either copy frames into buffer at 92*128, or use that as your input frame and avoid the copy.&lt;/P&gt;

&lt;P&gt;Jim Demspey&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 23:09:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Adding-border-bands-padding-instead-of-rescaling-while/m-p/1071635#M6992</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2017-01-18T23:09:13Z</dc:date>
    </item>
    <item>
      <title>Thank you Jim
 
 </title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Adding-border-bands-padding-instead-of-rescaling-while/m-p/1071636#M6993</link>
      <description>&lt;P&gt;Thank you Jim&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 12:39:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Adding-border-bands-padding-instead-of-rescaling-while/m-p/1071636#M6993</guid>
      <dc:creator>shavkat_n_</dc:creator>
      <dc:date>2017-01-20T12:39:17Z</dc:date>
    </item>
  </channel>
</rss>

