<?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 Yes, they are thread-safe if in Media (Intel® Video Processing Library, Intel Media SDK)</title>
    <link>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095397#M9916</link>
    <description>&lt;P&gt;Yes, they are thread-safe if they are executing in their own session.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Here is how MSDK implementation works: Each session is similar to a process, and each session basically spawns multiple threads (thread/task pool) internally and schedules the work on it. The scheduler then manages each of these threads for the session in iterms of memory and synchronization. Now, the application only has control on creating sessions, everything after that is managed internally by MSDK.&lt;/P&gt;

&lt;P&gt;If you create multiple sessions in an application, and do not "join" them, then each session has its own resources. If you join the sessions, then MSDK creates a parent and multiple child sessions, all sharing the thread pool and scheduler managing it internally.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;All this is not visible to application layer, it is internal implementation. At application level, each session will behave like a process.&lt;/P&gt;

&lt;P&gt;Now, when you ask if it is thread safe, what thread are you talking about? If the answer above is not what you're looking for, give me some more context and may be an example.&lt;/P&gt;

&lt;P&gt;Req (2), yes, multiple sessions within an encode is a very common scenario. Esp when you want to encode multiple streams in parallel (N:N use-case), or have one feed to other (1:N). See the readme file in "sample_multi_transcode" folder for more details on 1:N, N:N, multiple session etc.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Dec 2015 22:09:48 GMT</pubDate>
    <dc:creator>Sravanthi_K_Intel</dc:creator>
    <dc:date>2015-12-08T22:09:48Z</dc:date>
    <item>
      <title>question on simple_encode</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095390#M9909</link>
      <description>&lt;P&gt;hello Intel-friends,&lt;/P&gt;

&lt;P style="word-wrap: break-word; color: rgb(217, 217, 217); line-height: normal; font-family: Calibri; font-size: 16px; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;OS: Ubuntu 12.04&lt;/P&gt;

&lt;P style="word-wrap: break-word; color: rgb(217, 217, 217); line-height: normal; font-family: Calibri; font-size: 16px; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;mediasdk-tutorials-0.0.3&lt;/P&gt;

&lt;P style="word-wrap: break-word; color: rgb(217, 217, 217); line-height: normal; font-family: Calibri; font-size: 16px; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MediaServerStudioEssentials2015R6&lt;/P&gt;

&lt;P style="word-wrap: break-word; color: rgb(217, 217, 217); line-height: normal; font-family: Calibri; font-size: 16px; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;Platform:&amp;nbsp;&amp;nbsp;i5-4570S&lt;/P&gt;

&lt;P style="word-wrap: break-word; color: rgb(217, 217, 217); line-height: normal; font-family: Calibri; font-size: 16px; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;As I trace the code of Simple_encode.cpp, I found something below and have question about reason of restriction of 2048. Do you know why?? Hardware design or else?? I have checked&amp;nbsp;https://software.intel.com/sites/default/files/mediasdk-man.pdf but found no answer.&lt;/P&gt;

&lt;P style="word-wrap: break-word; color: rgb(217, 217, 217); line-height: normal; font-family: Calibri; font-size: 16px; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;&amp;nbsp; &amp;nbsp; w /= 2;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; h /= 2;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; ptr = pData-&amp;gt;UV + pInfo-&amp;gt;CropX + (pInfo-&amp;gt;CropY / 2) * pitch;&lt;BR /&gt;
	&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; if (w &amp;gt; 2048) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;==&amp;gt; what the restriction means ??&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return MFX_ERR_UNSUPPORTED; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; color: rgb(217, 217, 217); line-height: normal; font-family: Calibri; font-size: 16px; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 05:06:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095390#M9909</guid>
      <dc:creator>MyMother</dc:creator>
      <dc:date>2015-12-04T05:06:12Z</dc:date>
    </item>
    <item>
      <title>If you see our Release Notes,</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095391#M9910</link>
      <description>&lt;P&gt;If you see our Release Notes, the maximum supported resolution for AVC encoder is 4096x2304.&amp;nbsp;https://software.intel.com/sites/default/files/managed/de/2e/media_server_studio_sdk_release_notes_linux.pdf&lt;/P&gt;

&lt;P&gt;w /= 2 is 2048, hence the check.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 08:39:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095391#M9910</guid>
      <dc:creator>Sravanthi_K_Intel</dc:creator>
      <dc:date>2015-12-04T08:39:14Z</dc:date>
    </item>
    <item>
      <title>hi Sravanthi ,</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095392#M9911</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;A href="https://software.intel.com/en-us/user/1029587" style="line-height: normal; font-family: Calibri; font-size: 16px; color: rgb(178, 93, 252) !important; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;Sravanthi&amp;nbsp;&lt;/A&gt;,&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;many thanks for your response. More question are&lt;/P&gt;

&lt;P&gt;Q1. &amp;nbsp;the maximum supported resolution is due to hardware of software?? if software, then what's max for hardware??&lt;/P&gt;

&lt;P&gt;H.264 decoder Supported Profiles:  Baseline  Main  High Maximum supported resolution: 4096x2304&lt;/P&gt;

&lt;P&gt;Q2. By your speaking, there should be more limitation like the following, right ??&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-weight: 700; color: rgb(217, 217, 217); line-height: normal; font-family: Calibri; font-size: 16px; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;&amp;nbsp;if (h &amp;gt; 1157) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR style="font-size: 12pt !important; background-image: none !important;" /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return MFX_ERR_UNSUPPORTED; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 10:05:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095392#M9911</guid>
      <dc:creator>MyMother</dc:creator>
      <dc:date>2015-12-04T10:05:00Z</dc:date>
    </item>
    <item>
      <title>Hi Medwin - good question. It</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095393#M9912</link>
      <description>&lt;P&gt;Hi Medwin - good question. It is our SW limitation (in the sense, validation wise). Our HW limitation is 4Kx4K - so you can feed up to 4Kx4K streams as well.&lt;/P&gt;

&lt;P&gt;You can remove the tutorial limitation for width and height - so long as you keep within 4Kx4K, you shoud be alright.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 20:51:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095393#M9912</guid>
      <dc:creator>Sravanthi_K_Intel</dc:creator>
      <dc:date>2015-12-04T20:51:01Z</dc:date>
    </item>
    <item>
      <title>hi Sravanthi ,</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095394#M9913</link>
      <description>&lt;P style="word-wrap: break-word; color: rgb(217, 217, 217); line-height: normal; font-family: Calibri; font-size: 16px; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;hi&amp;nbsp;&lt;A href="https://software.intel.com/en-us/user/1029587" style="font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif; color: rgb(178, 93, 252) !important; font-size: 12pt !important; background-image: none !important;"&gt;Sravanthi&amp;nbsp;&lt;/A&gt;,&lt;/P&gt;

&lt;P style="word-wrap: break-word; color: rgb(217, 217, 217); line-height: normal; font-family: Calibri; font-size: 16px; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;&amp;nbsp; &amp;nbsp;many thanks for your response. more question are&lt;/P&gt;

&lt;P style="word-wrap: break-word; color: rgb(217, 217, 217); line-height: normal; font-family: Calibri; font-size: 16px; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;Q1. the mentioned limitation is also for decoder ??&lt;/P&gt;

&lt;P style="word-wrap: break-word; color: rgb(217, 217, 217); line-height: normal; font-family: Calibri; font-size: 16px; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;Q2. what're the meaning of the following, because I can't find any info in&amp;nbsp;&lt;SPAN style="color: rgb(217, 217, 217); font-family: Calibri; font-size: 16px; line-height: normal; background-color: rgb(31, 79, 25);"&gt;&lt;A href="https://software.intel.com/sites/default/files/managed/de/2e/media_server_studio_sdk_release_notes_linux.pdf" target="_blank"&gt;https://software.intel.com/sites/default/files/managed/de/2e/media_server_studio_sdk_release_notes_linux.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="word-wrap: break-word; color: rgb(217, 217, 217); line-height: normal; font-family: Calibri; font-size: 16px; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;/* TargetUsages: from 1 to 7 inclusive */&lt;BR /&gt;
	enum {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; MFX_TARGETUSAGE_1 &amp;nbsp; &amp;nbsp;=1, &amp;nbsp; &amp;nbsp; &amp;nbsp;what's this??&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; MFX_TARGETUSAGE_2 &amp;nbsp; &amp;nbsp;=2, &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; MFX_TARGETUSAGE_3 &amp;nbsp; &amp;nbsp;=3, &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; MFX_TARGETUSAGE_4 &amp;nbsp; &amp;nbsp;=4, &amp;nbsp; &amp;nbsp; &amp;nbsp;...&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; MFX_TARGETUSAGE_5 &amp;nbsp; &amp;nbsp;=5,&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; MFX_TARGETUSAGE_6 &amp;nbsp; &amp;nbsp;=6,&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; MFX_TARGETUSAGE_7 &amp;nbsp; &amp;nbsp;=7,&lt;/P&gt;

&lt;P style="word-wrap: break-word; color: rgb(217, 217, 217); line-height: normal; font-family: Calibri; font-size: 16px; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="word-wrap: break-word; color: rgb(217, 217, 217); line-height: normal; font-family: Calibri; font-size: 16px; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2015 02:19:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095394#M9913</guid>
      <dc:creator>MyMother</dc:creator>
      <dc:date>2015-12-07T02:19:00Z</dc:date>
    </item>
    <item>
      <title>Yes, both decoder and encoder</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095395#M9914</link>
      <description>&lt;P&gt;Yes, both decoder and encoder.&lt;/P&gt;

&lt;P&gt;Reg Q2, what are you referring to? Can you please clarify?&lt;/P&gt;

&lt;P&gt;Reg TU modes, MSDK supports 7 target usage modes 1 through 7, with 1 being best quality and 7 being best speed (4 is balanced).So, the application developer can specify the target usage mode for his application.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If this was not what you asked, please clarify. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 01:09:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095395#M9914</guid>
      <dc:creator>Sravanthi_K_Intel</dc:creator>
      <dc:date>2015-12-08T01:09:25Z</dc:date>
    </item>
    <item>
      <title>hi Sravanthi,</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095396#M9915</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;A href="https://software.intel.com/en-us/user/1029587" style="line-height: normal; font-family: Calibri; font-size: 16px; color: rgb(178, 93, 252) !important; background-image: none !important; background-color: rgb(31, 79, 25);"&gt;Sravanthi&lt;/A&gt;,&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;Many thanks for your reply. I have several questions as below&lt;/P&gt;

&lt;P&gt;Q1. Is this API &amp;nbsp;EncodeFrameAsync() thread-safe??&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Q2. Is it normal to open multi session for encode ??&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 02:57:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095396#M9915</guid>
      <dc:creator>MyMother</dc:creator>
      <dc:date>2015-12-08T02:57:50Z</dc:date>
    </item>
    <item>
      <title>Yes, they are thread-safe if</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095397#M9916</link>
      <description>&lt;P&gt;Yes, they are thread-safe if they are executing in their own session.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Here is how MSDK implementation works: Each session is similar to a process, and each session basically spawns multiple threads (thread/task pool) internally and schedules the work on it. The scheduler then manages each of these threads for the session in iterms of memory and synchronization. Now, the application only has control on creating sessions, everything after that is managed internally by MSDK.&lt;/P&gt;

&lt;P&gt;If you create multiple sessions in an application, and do not "join" them, then each session has its own resources. If you join the sessions, then MSDK creates a parent and multiple child sessions, all sharing the thread pool and scheduler managing it internally.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;All this is not visible to application layer, it is internal implementation. At application level, each session will behave like a process.&lt;/P&gt;

&lt;P&gt;Now, when you ask if it is thread safe, what thread are you talking about? If the answer above is not what you're looking for, give me some more context and may be an example.&lt;/P&gt;

&lt;P&gt;Req (2), yes, multiple sessions within an encode is a very common scenario. Esp when you want to encode multiple streams in parallel (N:N use-case), or have one feed to other (1:N). See the readme file in "sample_multi_transcode" folder for more details on 1:N, N:N, multiple session etc.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 22:09:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095397#M9916</guid>
      <dc:creator>Sravanthi_K_Intel</dc:creator>
      <dc:date>2015-12-08T22:09:48Z</dc:date>
    </item>
    <item>
      <title>Hi there - your questions are</title>
      <link>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095398#M9917</link>
      <description>&lt;P&gt;Hi there - your questions are not related to your original form question on "question on simple_encode" anymore. Please do not add any more questions unrelated to simple_encode here. Start a new thread - it is easier for us to log and respond that way.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 22:27:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Media-Intel-Video-Processing/question-on-simple-encode/m-p/1095398#M9917</guid>
      <dc:creator>Sravanthi_K_Intel</dc:creator>
      <dc:date>2015-12-08T22:27:32Z</dc:date>
    </item>
  </channel>
</rss>

