<?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 Timeshift: Problems with file access and file size in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Timeshift-Problems-with-file-access-and-file-size/m-p/907095#M13667</link>
    <description>Hello,&lt;BR /&gt;I'm experimenting with timeshifting. (Reading and writing from/to the same file.)&lt;BR /&gt;I have two problems&lt;BR /&gt;&lt;BR /&gt;1) Writing and reading at the same time with the default FIOReader and FileWriter is not possible, because the read/write-permissions in vm_file_fopen is set to zero (mds[1] = 0). Is it possible to set these permissions default to &lt;I&gt;mds[1] = FILE_SHARE_READ|FILE_SHARE_WRITE&lt;/I&gt;?&lt;BR /&gt;It would also be nice if it is possible to create the file, when reading from it and it doesn't exist&lt;BR /&gt;(Set in the &lt;I&gt;case 'r'&lt;/I&gt;-case the value of &lt;I&gt;mds[2]&lt;/I&gt; to &lt;I&gt;OPEN_ALWAYS&lt;/I&gt;.) &lt;BR /&gt;&lt;BR /&gt;2) Jumping to a specific position is not possible, because it's based on the file size, which is only initialized at the begining, but the size increases over the time.&lt;BR /&gt;=&amp;gt; In &lt;I&gt;FIOReader&lt;/I&gt; only set the size at the initialization. I think updating this value in &lt;I&gt;GetSize()&lt;/I&gt; or when &lt;I&gt;m_stPos&lt;/I&gt; is updated whould be more usefull.&lt;BR /&gt;=&amp;gt; In &lt;I&gt;StreamParser&lt;/I&gt; is the size also set at the initialization. An up-to-date value of &lt;I&gt;m_uiSourceSize&lt;/I&gt; whould be necessary for &lt;I&gt;SetPosition()&lt;/I&gt; and &lt;I&gt;GetSize()&lt;/I&gt;. &lt;BR /&gt;=&amp;gt; In &lt;I&gt;Demuxer&lt;/I&gt; is the size also only set at the initialization. Also the value of &lt;I&gt;m_uiSourceSize&lt;/I&gt; should be updated in &lt;I&gt;SetTimePosition()&lt;/I&gt;, &lt;I&gt;GetExactDuration()&lt;/I&gt; and &lt;I&gt;GetDuration()&lt;/I&gt;.&lt;BR /&gt;&lt;BR /&gt;With these modifications a timeshift is possible.&lt;BR /&gt;Is it possible to update the UMC in a future release?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
    <pubDate>Thu, 07 Aug 2008 09:20:10 GMT</pubDate>
    <dc:creator>dewildt</dc:creator>
    <dc:date>2008-08-07T09:20:10Z</dc:date>
    <item>
      <title>Timeshift: Problems with file access and file size</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Timeshift-Problems-with-file-access-and-file-size/m-p/907095#M13667</link>
      <description>Hello,&lt;BR /&gt;I'm experimenting with timeshifting. (Reading and writing from/to the same file.)&lt;BR /&gt;I have two problems&lt;BR /&gt;&lt;BR /&gt;1) Writing and reading at the same time with the default FIOReader and FileWriter is not possible, because the read/write-permissions in vm_file_fopen is set to zero (mds[1] = 0). Is it possible to set these permissions default to &lt;I&gt;mds[1] = FILE_SHARE_READ|FILE_SHARE_WRITE&lt;/I&gt;?&lt;BR /&gt;It would also be nice if it is possible to create the file, when reading from it and it doesn't exist&lt;BR /&gt;(Set in the &lt;I&gt;case 'r'&lt;/I&gt;-case the value of &lt;I&gt;mds[2]&lt;/I&gt; to &lt;I&gt;OPEN_ALWAYS&lt;/I&gt;.) &lt;BR /&gt;&lt;BR /&gt;2) Jumping to a specific position is not possible, because it's based on the file size, which is only initialized at the begining, but the size increases over the time.&lt;BR /&gt;=&amp;gt; In &lt;I&gt;FIOReader&lt;/I&gt; only set the size at the initialization. I think updating this value in &lt;I&gt;GetSize()&lt;/I&gt; or when &lt;I&gt;m_stPos&lt;/I&gt; is updated whould be more usefull.&lt;BR /&gt;=&amp;gt; In &lt;I&gt;StreamParser&lt;/I&gt; is the size also set at the initialization. An up-to-date value of &lt;I&gt;m_uiSourceSize&lt;/I&gt; whould be necessary for &lt;I&gt;SetPosition()&lt;/I&gt; and &lt;I&gt;GetSize()&lt;/I&gt;. &lt;BR /&gt;=&amp;gt; In &lt;I&gt;Demuxer&lt;/I&gt; is the size also only set at the initialization. Also the value of &lt;I&gt;m_uiSourceSize&lt;/I&gt; should be updated in &lt;I&gt;SetTimePosition()&lt;/I&gt;, &lt;I&gt;GetExactDuration()&lt;/I&gt; and &lt;I&gt;GetDuration()&lt;/I&gt;.&lt;BR /&gt;&lt;BR /&gt;With these modifications a timeshift is possible.&lt;BR /&gt;Is it possible to update the UMC in a future release?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Aug 2008 09:20:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Timeshift-Problems-with-file-access-and-file-size/m-p/907095#M13667</guid>
      <dc:creator>dewildt</dc:creator>
      <dc:date>2008-08-07T09:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Timeshift: Problems with file access and file size</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Timeshift-Problems-with-file-access-and-file-size/m-p/907096#M13668</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;there is comments from our expert:&lt;/P&gt;
&lt;P&gt;1. &lt;SPAN&gt;[AM]&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;Simalteneous&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;reading and writing is possible for files opened by vm_file_open function. In your case it is not possible because you try to open for write file already opened by FIOReader to read only access.&lt;/SPAN&gt;&lt;SPAN&gt; &lt;SPAN&gt;VM library uses standard approach to vm_file primitives, so you can achive you requirements with ra access specifier, no changes in VM required. OPEN_ALWAYS for pure read access r is terrible  image you try open non-existent file and receive status open OK !???&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;2. Time shift is not that simple. You need to know relationship between playback time and number of bytes in stream.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2008 10:21:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Timeshift-Problems-with-file-access-and-file-size/m-p/907096#M13668</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2008-08-07T10:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Timeshift: Problems with file access and file size</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Timeshift-Problems-with-file-access-and-file-size/m-p/907097#M13669</link>
      <description>Thanks for the quick response &lt;IMG src="https://community.intel.com/file/6746" alt="smiley [:-)]" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;IMG src="https://community.intel.com/file/6745" /&gt; &lt;STRONG&gt;vdudnik:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;1. &lt;SPAN&gt;[AM]&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;Simalteneous&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;reading and writing is possible for files opened by vm_file_open function. In your case it is not possible because you try to open for write file already opened by FIOReader to read only access.&lt;/SPAN&gt;&lt;SPAN&gt; &lt;SPAN&gt;VM library uses standard approach to vm_file primitives, so you can achive you requirements with ra access specifier, no changes in VM required.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;I think the "a"-settings will (only) overwrite the "r"-settings. But I will try it.&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt; OPEN_ALWAYS for pure read access r is terrible  image you try open non-existent file and receive status open OK !???&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sorry, my attention was to add an additional mode-character like '+', but maybe the "a"-solution will also work, because it set &lt;I&gt;mds[2]&lt;/I&gt; to &lt;I&gt;OPEN_ALWAYS&lt;BR /&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;SPAN&gt;2. Time shift is not that simple. You need to know relationship between playback time and number of bytes in stream.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But doesn't I have this relationship, if I frequently update the actual stream/file-size and when I have the actual byte-position inside the stream? (Assuming that I have a constant bitrate)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2008 10:50:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Timeshift-Problems-with-file-access-and-file-size/m-p/907097#M13669</guid>
      <dc:creator>dewildt</dc:creator>
      <dc:date>2008-08-07T10:50:12Z</dc:date>
    </item>
  </channel>
</rss>

