title: Loading only first frame of video
body: <p>I have an application that retrieve videos from mediafire. The first frame of the video is shown and clicking on the image takes you to a video page that plays that specific vide.</p>
  <pre><code>&lt;a href &lt;%=@video_page_link%&gt;&gt;
       &lt;video&gt;
            &lt;source src = &lt;%=video_link%&gt;&gt;
       &lt;/video&gt;
  &lt;/a&gt;
  </code></pre>
  <p>The problem is, there are around 20-30 videos on the page and it takes a lot of time to load each video. As a result, the application is very slow. I tried using stream io FFMPEG gem to extract an image from each video and then show the image instead in the link but it is even more slow.</p>
  <p>Is there a way if I can quickly grab only the first frame of the video and then show it? or just load the video s first frame instead of loading the whole video? I don't really need to load the whole video I just need a video poster that can be clicked to go to the video page.</p>
  <p>I can use the image of the video as a hyperlink but that would require me to take a screenshot of each video before uploading it and then store it somewhere which I don't want.</p>
  <p>Thanks</p>