[FFmpeg-user] How to grab a jpg thumb image?

ashish ashish at oliveindesign.com
Wed Nov 2 06:42:19 CET 2011


Hello pranaw,

You can try this one 

exec("ffmpeg -i $ename.mp4 -f image2 -vframes 1 -s 320x240 $ename.png");

this is working fine 


Thanks & Regards
Ashish

-----Original Message-----
From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org]
On Behalf Of tank pranav
Sent: Wednesday, November 02, 2011 10:57 AM
To: FFmpeg user questions and RTFMs
Subject: Re: [FFmpeg-user] How to grab a jpg thumb image?

check this link.

http://blog.prashanthellina.com/2008/03/29/creating-video-thumbnails-using-f
fmpeg/


regards,
pranav.


________________________________
From: kadin 320 <kadin320 at gmail.com>
To: ffmpeg-user at ffmpeg.org
Sent: Wednesday, November 2, 2011 10:48 AM
Subject: [FFmpeg-user] How to grab a jpg thumb image?

I am trying to grab a frame of video and convert it to a jpg thumb image.
I am only seccessful at coverting it to a png thumb.
I tried putting the word jpg and jpeg in the exec()
and making sure the file ext. is jpg or jpeg, but I can't get it to work.
What am I doing wrong? Thanks.

exec("$ffmpegPath -y -i $srcFile -vframes 1 -ss 00:00:03 -an -vcodec png -f
rawvideo -s 110x90 $destThumb");
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user



More information about the ffmpeg-user mailing list