How to extract an Image from a video using FFMPEG and Node.JS

<p>Sometimes we need to execute some tasks that aren&rsquo;t as usual, such as we have a video and we need to get a thumbnail from that. In this article, we will use FFmpeg and Node.JS with Javascript to accomplish that.</p> <p>First of all, ensure that you have the FFmpeg, if you have a Debian-like distribution, you can use the APT. FFmpeg is a powerful tool for the processing of audio and video.</p> <pre> sudo apt install ffmpeg</pre> <p>Otherwise, you can access this&nbsp;<a href="https://ffmpeg.org/download.html#build-linux" rel="noopener ugc nofollow" target="_blank">link</a>&nbsp;and download and install the package for your operating system.</p> <p>Now let&#39;s import the spawn function from the Node.JS child process module.</p> <p><a href="https://medium.com/@brunowallison.fernandes/how-to-extract-an-image-from-a-video-using-ffmpeg-and-node-js-de030e02988e"><strong>Website</strong></a></p>
Tags: FFMPEG Node