I extract thumbnails from a .MOV
file using FFMPEG on Linus (Debian 64bit).
The file I extract the thumbnail from is about 430 Megabytes large.
I use the following command to do so:
ffmpeg -i 'largeVideoFile.mov' -ss 00:14:37 -vframes 1 'thumbnail.jpg'
It takes well over 3 minutes for a single frame to be extracted.
How can I speed it up?
I found this article, which suggests that one should use fast seeking to increase performance by simply defining -ss
in front of -i
rather than the other way around.
So my command now looks like this:
ffmpeg -ss 00:14:37 -i 'largeVideoFile.mov' -vframes:v 1 'thumbnail.jpg'
Notice that the arrangement of the parameters have been changed,
starting with -ss
and time, followed by -i
and source file, and finally -vframes:v
, 1
and the destination path.
The time is down to about 1 second which is nice.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With