How can I get the first frame from a video file using ffmpeg?
Hi, dear all, Can any one tell me how can I using ffmpeg to extract the first frame from a video file as a jpeg file? I recently downloaded ffmpeg 0.4.9, and compiled it under MSYS in a WinXP box. I have tried ffmpeg -i video.mp4 -img jpeg image%05d.jpg but ffmpeg crashed after extracted about 10 frames or so, I guess it may be caused by memory leaking. Any way, I only need the first frame or two. Any suggestion? Thanks in advance. Best regards Xiaogang
ffmpeg -i your_file.mpg -f singlejpeg -t 0:0:0.001 your_jpg_file.jpg
-----Original Message----- From: ffmpeg-user-bounces at mplayerhq.hu [mailto:ffmpeg-user- bounces at mplayerhq.hu] On Behalf Of Xiaogang Zhang Sent: Tuesday, 17 May 2005 2:06 PM To: ffmpeg-user at mplayerhq.hu Subject: [Ffmpeg-user] How can I get the first frame from a video file usingffmpeg?
Hi, dear all,
Can any one tell me how can I using ffmpeg to extract the first frame from a video file as a jpeg file?
I recently downloaded ffmpeg 0.4.9, and compiled it under MSYS in a WinXP box. I have tried
ffmpeg -i video.mp4 -img jpeg image%05d.jpg
but ffmpeg crashed after extracted about 10 frames or so, I guess it may be caused by memory leaking. Any way, I only need the first frame or two.
Any suggestion? Thanks in advance.
Best regards
Xiaogang
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/ffmpeg-user
participants (2)
-
triston.oconnor@uq.edu.au -
xzhang@cse.unsw.edu.au