[FFmpeg-user] Create a thumbnail image every X seconds of the
Oliver Fromme
oliver at fromme.com
Mon Jul 7 15:54:11 CEST 2014
Lou wrote:
> On Sat, Jul 5, 2014, at 02:51 AM, zahid mahmood wrote:
> > hello i have following command to get every second images from video.
> >
> > ffmpeg -i input.flv -f image2 -vf fps=fps=1 out%d.png
> >
> > this command extract whole image every second . i want to get images from
> > specific (x,y) position. for example i want to get images from top of
> > left
> > side of video.
>
> Try the crop filter:
> http://ffmpeg.org/ffmpeg-filters.html#crop
Another possibility is to use third-party tools for the
cropping afterwards, e.g. the pbmtools (a.k.a. netpbm)
or ImageMagick or something similar.
The advantage of that approach is that it's more efficient
if you don't know the exact cropping positions beforehand.
When it turns out that the positions weren't quite right,
you don't have to decode the whole video again, but you
just re-crop the images that you extracted before.
Best regards
Oliver
--
``We are all but compressed light'' (Albert Einstein)
More information about the ffmpeg-user
mailing list