title: How can you grab a video frame from an inputstream in java?
body: <p>I'm trying to generate a thumbnail from a video in java.</p>
  
  <p>I have found the javacv library and can see that it can be used to grab frames</p>
  
  <pre><code>    FFmpegFrameGrabber frameGrab = new FFmpegFrameGrabber("");
      frameGrab.start();
      Frame frame = frameGrab.grabImage();
  
      Buffer[] image = frame.image;
  </code></pre>
  
  <p><a href="https://github.com/bytedeco/javacv" rel="nofollow">https://github.com/bytedeco/javacv</a></p>
  
  <p>This code requires the video to be a local file</p>
  
  <p>But the video file is not local, I'm reading it as a stream from aws s3.</p>
  
  <p>I don't want to save the video locally as disk space is limited...</p>
  
  <p>How can this be done?</p>