<?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 Re: Program skipping frames in Items with no label</title>
    <link>https://community.intel.com/t5/Items-with-no-label/Program-skipping-frames/m-p/600239#M12041</link>
    <description>&lt;P&gt;I have seen that thread but I don't think that solution will work for me. These .bag files I have are 20GB+ and looping though the entire thing and calling .keep() on each frameset would use (if not more) 20GB of memory. I need to find a way to slowly step though the .bag files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully someone who has experienced this issue will see this thread and be able to help me out, I highly doubt I am the first person in this use case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jun 2018 20:43:20 GMT</pubDate>
    <dc:creator>idata</dc:creator>
    <dc:date>2018-06-29T20:43:20Z</dc:date>
    <item>
      <title>Program skipping frames</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Program-skipping-frames/m-p/600235#M12037</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have rosbag files that I am trying to process and want to be able to process each frame without skipping any. Currently, when I call poll_for_frames or wait_for_frames I either get a duplicate frame, skip a 1+ frames, or get the next frame. How can I make sure that I am getting every single frame, even if my program is taking more than 1/60th of a second to process each frame?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using C++. My current code is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs2::config cfg;&lt;/P&gt;&lt;P&gt;cfg.enable_device_from_file("/path/to/file.bag", true);&lt;/P&gt;&lt;P&gt;rs2::pipeline pipe;&lt;/P&gt;&lt;P&gt;pipe.start(cfg);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while (true) {&lt;/P&gt;&lt;P&gt;     rs2::frameset frameset;&lt;/P&gt;&lt;P&gt;     pipe.poll_for_frames(&amp;amp;frameset);&lt;/P&gt;&lt;P&gt;     std::cout &amp;lt;&amp;lt; "Processing frame # " &amp;lt;&amp;lt; frameset.get_frame_number() &amp;lt;&amp;lt; std::endl;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got this example from here: &lt;A href="https://github.com/IntelRealSense/librealsense/blob/master/src/media/readme.md#"&gt;https://github.com/IntelRealSense/librealsense/blob/master/src/media/readme.md#&lt;/A&gt; using-rs2config-with-rs2pipeline librealsense/&lt;A href="http://readme.md"&gt;readme.md&lt;/A&gt; at master · IntelRealSense/librealsense · GitHub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 18:59:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Program-skipping-frames/m-p/600235#M12037</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-06-29T18:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Program skipping frames</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Program-skipping-frames/m-p/600236#M12038</link>
      <description>&lt;P&gt;If a "For loop" is used then it forces the frame to be checked repeatedly until a maximum number is reached.  For example, you might want it to check every frame for the next 30 frames before the loop can be concluded. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a randomly chosen example of a For loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;           for (int i = 0; i &amp;lt; frameset.size();&lt;P&gt;&amp;nbsp;&lt;/P&gt; i++) { rs2::frame new_frame = frameset[i];&lt;P&gt;&amp;nbsp;&lt;/P&gt; int stream_id = new_frame.get_profile().unique_id(); &lt;P&gt;&amp;nbsp;&lt;/P&gt;view.second.frames_per_stream[stream_id] = view.second.colorize_frame(new_frame);&lt;P&gt;&amp;nbsp;&lt;/P&gt; //update view port with the new stream &lt;P&gt;&amp;nbsp;&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;} &lt;P&gt;&amp;nbsp;&lt;/P&gt;}&lt;P&gt;The above code was sourced from the Multicam  tutorial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/IntelRealSense/librealsense/blob/master/examples/multicam/readme.md"&gt;https://github.com/IntelRealSense/librealsense/blob/master/examples/multicam/readme.md&lt;/A&gt; librealsense/&lt;A href="http://readme.md"&gt;readme.md&lt;/A&gt; at master · IntelRealSense/librealsense · GitHub&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 19:28:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Program-skipping-frames/m-p/600236#M12038</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-06-29T19:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Program skipping frames</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Program-skipping-frames/m-p/600237#M12039</link>
      <description>&lt;P&gt;Hello MartyG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for taking the time to help me out. My current understanding (and let me know if this is wrong) is that a frameset contains a view of each 'camera' in the device at a specific time. This way you can combine depth data and RGB data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I can not get consecutive framesets from the device (in this case the device is the recorded .bag file). The .bag file contains 10 minutes of 60FPS video, and I want to be able to get all 10 minutes * 60 seconds * 60 frames. Currently, my code skips certain frame numbers and repeats frames sometimes. My goal is to be able to fetch a specific frame one at a time when my program is ready.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first solution I thought of was pausing the playback, and then force seeking it 1/60th of a second and getting a frame, but I don't think this worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping there was a built in way in order to get one frame at a time without skipping any. I understand in most situations when you are processing a live feed from a camera, you would want to skip frames you missed and get the most recent, but in this scenario it doesn't matter how long it takes to process the .bag file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much,&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 20:12:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Program-skipping-frames/m-p/600237#M12039</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-06-29T20:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Program skipping frames</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Program-skipping-frames/m-p/600238#M12040</link>
      <description>&lt;P&gt;I am not the best person to ask how framesets work, as RealSense stream programming is not my best topic.  . I did though locate a discussion where someone wanted to store everything for future processing.  Apparently the Librealsense team created a function called Keep() for this purpose that can be used with framesets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/IntelRealSense/librealsense/issues/1000"&gt;https://github.com/IntelRealSense/librealsense/issues/1000&lt;/A&gt; Saving frames for future processing · Issue # 1000 · IntelRealSense/librealsense · GitHub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/IntelRealSense/librealsense/pull/1015"&gt;https://github.com/IntelRealSense/librealsense/pull/1015&lt;/A&gt; Adding frame.keep() API by dorodnic · Pull Request # 1015 · IntelRealSense/librealsense · GitHub &lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 20:32:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Program-skipping-frames/m-p/600238#M12040</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-06-29T20:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Program skipping frames</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Program-skipping-frames/m-p/600239#M12041</link>
      <description>&lt;P&gt;I have seen that thread but I don't think that solution will work for me. These .bag files I have are 20GB+ and looping though the entire thing and calling .keep() on each frameset would use (if not more) 20GB of memory. I need to find a way to slowly step though the .bag files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully someone who has experienced this issue will see this thread and be able to help me out, I highly doubt I am the first person in this use case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 20:43:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Program-skipping-frames/m-p/600239#M12041</guid>
      <dc:creator>idata</dc:creator>
      <dc:date>2018-06-29T20:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Program skipping frames</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Program-skipping-frames/m-p/600240#M12042</link>
      <description>&lt;P&gt;In the previous SDK release 2.12.0 a tool called Convert to convert bag files to a probably smaller format was released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/IntelRealSense/librealsense/tree/development/tools/convert"&gt;https://github.com/IntelRealSense/librealsense/tree/development/tools/convert&lt;/A&gt; librealsense/tools/convert at development · IntelRealSense/librealsense · GitHub &lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 20:51:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Program-skipping-frames/m-p/600240#M12042</guid>
      <dc:creator>MartyG</dc:creator>
      <dc:date>2018-06-29T20:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Program skipping frames</title>
      <link>https://community.intel.com/t5/Items-with-no-label/Program-skipping-frames/m-p/600241#M12043</link>
      <description>&lt;P&gt;idata&lt;/P&gt;&lt;P&gt;were you able to find a solution for your problem? &lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 01:37:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Items-with-no-label/Program-skipping-frames/m-p/600241#M12043</guid>
      <dc:creator>WAlea</dc:creator>
      <dc:date>2020-06-11T01:37:20Z</dc:date>
    </item>
  </channel>
</rss>

