title: How to save Intel Realsense images in list (pyrealsense2)
body: <p>I'm trying to save both, the depth and color images of the Intel Realsense D435i camera in a list of 300 images. Then I will use multiprocessing to save this chunk of 300 images onto my disk. But every time I try, the program successfully appends 15 images in the list and then I get this error:</p>
  
  <pre><code>    Frame didn't arrived within 5000
  </code></pre>
  
  <p>I made sure I had the 64 bit version on python 3.6 installed and the camera streams perfectly well when I do not try to save the images in a list. The real-sense viewer works great too. I also tried with different resolutions and frame rates but it doesn't seem to work either. What is interesting is if I only save the color images, I will not get the same error, instead I will get the same color image over and over in the list.</p>
  
  <pre><code>if __name__ == '__main__':
  pipeline = rs.pipeline()
  config = rs.config()
  
  config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30)
  config.enable_stream(rs.stream.color, 1280, 720, rs.format.bgr8, 30)
  profile = pipeline.start(config)
  
  depth_sensor = profile.get_device().first_depth_sensor()
  depth_sensor.set_option(
      rs.option.visual_preset, 3
  )  # Set high accuracy for depth sensor
  depth_scale = depth_sensor.get_depth_scale()
  
  align_to = rs.stream.color
  align = rs.align(align_to)
  
  #   Init variables
  im_count = 0
  image_chunk = []
  image_chunk2 = []
  # sentinel = True
  try:
      while True:
  
          # Wait for a coherent pair of frames: depth and color
          frames = pipeline.wait_for_frames()
          aligned_frames = align.process(frames)
          aligned_depth_frame = aligned_frames.get_depth_frame()
          color_frame = aligned_frames.get_color_frame()
  
  
          if not aligned_depth_frame or not color_frame:
              print("problem here")
              raise RuntimeError("Could not acquire depth or color frames.")
  
          depth_image = np.asanyarray(aligned_depth_frame.get_data())
          color_image = np.asanyarray(color_frame.get_data())
  
          image_chunk.append(color_image)
          image_chunk2.append(depth_image)
  
  
  
  
  except Exception as e:
      print(e)
  
  finally:
      # Stop streaming
      pipeline.stop()
  </code></pre>
  
  <p>I simply need it to save 300 images in a row, that's all, so I am quite troubled as to what is causing this issue.</p>