<?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 SetFileName is not recording depth stream in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/SetFileName-is-not-recording-depth-stream/m-p/1011622#M34424</link>
    <description>&lt;P&gt;I'm using SetFileName() function for recording the depth stream. I have followed every thing mentioned in the documentation. Still I'm not able to save the depth streams to the specified file location.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Here's what I have tried so far:&lt;/P&gt;

&lt;P&gt;void RecordORPlayback(pxcCHAR *file, bool record){&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;// create a sensemanager instance&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//set file record or playback&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;sm-&amp;gt;QueryCaptureManager()-&amp;gt;SetFileName(file,record);&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//Enable the stream&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PXCImage *depthIm;&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;//initialize and record 300 frames&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;sm-&amp;gt;Init();&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;for(int i =0; i&amp;lt;300;i++){&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//this function blocks until a depth sample is ready&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(sm-&amp;gt;AcquireFrame(true)&amp;lt;PXC_STATUS_NO_ERROR) break;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//retrieve the sample&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;PXCCapture::Sample *sample=sm-&amp;gt;QuerySample();&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//work on the image sample-&amp;gt;depth&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; depthIm=sample-&amp;gt;depth;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//fetching the next frame/sample&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;sm-&amp;gt;ReleaseFrame();&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;//closing&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;sm-&amp;gt;Release();&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;In main function I have called the 'RecordORPlayback' like:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pxcCHAR *filename=(L"E:\\Output");&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;RecordORPlayback(filename,true);&lt;/P&gt;

&lt;P&gt;Still I'm not able to save the output(correct me if I'm wrong). Is there any other way to store the frames to a specified location?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Sep 2015 10:05:29 GMT</pubDate>
    <dc:creator>varsha_h_</dc:creator>
    <dc:date>2015-09-03T10:05:29Z</dc:date>
    <item>
      <title>SetFileName is not recording depth stream</title>
      <link>https://community.intel.com/t5/Software-Archive/SetFileName-is-not-recording-depth-stream/m-p/1011622#M34424</link>
      <description>&lt;P&gt;I'm using SetFileName() function for recording the depth stream. I have followed every thing mentioned in the documentation. Still I'm not able to save the depth streams to the specified file location.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Here's what I have tried so far:&lt;/P&gt;

&lt;P&gt;void RecordORPlayback(pxcCHAR *file, bool record){&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;// create a sensemanager instance&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//set file record or playback&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;sm-&amp;gt;QueryCaptureManager()-&amp;gt;SetFileName(file,record);&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//Enable the stream&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;PXCImage *depthIm;&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;//initialize and record 300 frames&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;sm-&amp;gt;Init();&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;for(int i =0; i&amp;lt;300;i++){&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//this function blocks until a depth sample is ready&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(sm-&amp;gt;AcquireFrame(true)&amp;lt;PXC_STATUS_NO_ERROR) break;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//retrieve the sample&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;PXCCapture::Sample *sample=sm-&amp;gt;QuerySample();&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//work on the image sample-&amp;gt;depth&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; depthIm=sample-&amp;gt;depth;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;//fetching the next frame/sample&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;sm-&amp;gt;ReleaseFrame();&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;//closing&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;sm-&amp;gt;Release();&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;In main function I have called the 'RecordORPlayback' like:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;pxcCHAR *filename=(L"E:\\Output");&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;RecordORPlayback(filename,true);&lt;/P&gt;

&lt;P&gt;Still I'm not able to save the output(correct me if I'm wrong). Is there any other way to store the frames to a specified location?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2015 10:05:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/SetFileName-is-not-recording-depth-stream/m-p/1011622#M34424</guid>
      <dc:creator>varsha_h_</dc:creator>
      <dc:date>2015-09-03T10:05:29Z</dc:date>
    </item>
    <item>
      <title>Hi</title>
      <link>https://community.intel.com/t5/Software-Archive/SetFileName-is-not-recording-depth-stream/m-p/1011623#M34425</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;In order to enable depth stream you should explicitly enable it using PXCSenseManager-&amp;gt;EnableStream&lt;BR /&gt;
	I have updated your code below (line 13 under //Enable the stream)&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;void RecordORPlayback(pxcCHAR *file, bool record){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // create a sensemanager instance

&amp;nbsp;&amp;nbsp;&amp;nbsp; //set file record or playback
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sm-&amp;gt;QueryCaptureManager()-&amp;gt;SetFileName(file,record);

&amp;nbsp;&amp;nbsp;&amp;nbsp; //Enable the stream
&amp;nbsp;&amp;nbsp;&amp;nbsp; sm-&amp;gt;EnableStream(PXCCapture::StreamType::STREAM_TYPE_DEPTH);
&amp;nbsp;&amp;nbsp;&amp;nbsp; PXCImage *depthIm;

&amp;nbsp;&amp;nbsp;&amp;nbsp; //initialize and record 300 frames
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sm-&amp;gt;Init();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(int i =0; i&amp;lt;300;i++){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //this function blocks until a depth sample is ready
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(sm-&amp;gt;AcquireFrame(true)&amp;lt;PXC_STATUS_NO_ERROR) break;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //retrieve the sample
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PXCCapture::Sample *sample=sm-&amp;gt;QuerySample();

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //work on the image sample-&amp;gt;depth
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; depthIm=sample-&amp;gt;depth;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //fetching the next frame/sample
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sm-&amp;gt;ReleaseFrame();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //closing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sm-&amp;gt;Release();
&amp;nbsp;}&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Have a nice day,&lt;/P&gt;

&lt;P&gt;Ron&lt;/P&gt;</description>
      <pubDate>Sun, 06 Sep 2015 07:25:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/SetFileName-is-not-recording-depth-stream/m-p/1011623#M34425</guid>
      <dc:creator>Ron_S_Intel</dc:creator>
      <dc:date>2015-09-06T07:25:12Z</dc:date>
    </item>
    <item>
      <title>Hey Ron,</title>
      <link>https://community.intel.com/t5/Software-Archive/SetFileName-is-not-recording-depth-stream/m-p/1011624#M34426</link>
      <description>&lt;P&gt;Hey Ron,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;I have mentioned it before. I have attached my code, take a look at it, and correct me if I'm wrong.&lt;/P&gt;

&lt;P&gt;Have a nice day.&lt;/P&gt;

&lt;P&gt;Varsha&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2015 05:16:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/SetFileName-is-not-recording-depth-stream/m-p/1011624#M34426</guid>
      <dc:creator>varsha_h_</dc:creator>
      <dc:date>2015-09-07T05:16:57Z</dc:date>
    </item>
  </channel>
</rss>

