Generate images at given time from flv video using ffmpeg -


I am using the following command in ffmpeg to generate thumbnails: This is working correctly.

  ffmpeg -i videofile.flv -an -ss 01:00:00 -an -r 1 -vframes 1 -y ". $ Outputdir." / "$ $ But the problem is that I have different videos from which the thumbnail is to be generated and Iam is still using a loop. It is very slow I found the reason because FFPAP is for every command For the time given, I tried to trap this process but is not effective. Can I customize the command anyway so that the repeated efforts can be avoided?   

Try it out:

  ffmpeg -ss 01:00:00 -i videofile.flv ....   

Using -ss as an input option is often faster but may be less accurate FFMPEG immediately Be desired and then start decoding on your desired -ss value; However, this is probably not as accurate as an output option in the form of -ss Code> -ss before decoding.

Comments