Hi, I am attempting to extract a number of frames from the movie and save them to jpg files. I tried the following (to extract a single frame): ffmpeg -i <input-file> -ss <time> -vframes 1 -img jpeg frame.jpg but I got an error: Unknown image format: jpeg Same error occured for jpg (as far as I know jpeg is supported by ffmpeg, according to documentation) I succeeded with gif, however this is not what I need. Do you know maybe what I should do? Besides is that possible to specify times at which frames should be caught and saved as jpeg. The extraction apparently reads all frames before the specified one which causes it to be slow...is there a way to make extraction faster? Thanks in advance, Lukasz
On 7/10/05, video expert <expert.video at gmail.com> wrote:
Hi,
I am attempting to extract a number of frames from the movie and save them to jpg files.
I tried the following (to extract a single frame):
ffmpeg -i <input-file> -ss <time> -vframes 1 -img jpeg frame.jpg but I got an error: Unknown image format: jpeg Same error occured for jpg (as far as I know jpeg is supported by ffmpeg, according to documentation) I succeeded with gif, however this is not what I need.
Do you know maybe what I should do? Besides is that possible to specify times at which frames should be caught and saved as jpeg. The extraction apparently reads all frames before the specified one which causes it to be slow...is there a way to make extraction faster?
Thanks in advance, Lukasz
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/ffmpeg-user
Try ffmpeg -i test.mpeg -vframes 1 test%d.jpg The "%d" tells ffmpeg where the frame number should go. If you leave out the vframes option, you'll get one JPEG per frame in your file. This was suggested by Martin Boehme and it worked great. -- Sincerely, ========= Aritrim Basu Webmaster Media Maker http://www.webmastermediamaker.com
Thanks a lot , works great for me too :) Lukasz On 7/10/05, Aritrim Basu <aritrim at gmail.com> wrote:
On 7/10/05, video expert <expert.video at gmail.com> wrote:
Hi,
I am attempting to extract a number of frames from the movie and save them to jpg files.
I tried the following (to extract a single frame):
ffmpeg -i <input-file> -ss <time> -vframes 1 -img jpeg frame.jpg but I got an error: Unknown image format: jpeg Same error occured for jpg (as far as I know jpeg is supported by ffmpeg, according to documentation) I succeeded with gif, however this is not what I need.
Do you know maybe what I should do? Besides is that possible to specify times at which frames should be caught and saved as jpeg. The extraction apparently reads all frames before the specified one which causes it to be slow...is there a way to make extraction faster?
Thanks in advance, Lukasz
_______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/ffmpeg-user
Try
ffmpeg -i test.mpeg -vframes 1 test%d.jpg
The "%d" tells ffmpeg where the frame number should go. If you leave out the vframes option, you'll get one JPEG per frame in your file.
This was suggested by Martin Boehme and it worked great.
-- Sincerely, ========= Aritrim Basu Webmaster Media Maker http://www.webmastermediamaker.com _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/ffmpeg-user
participants (2)
-
aritrim@gmail.com -
expert.video@gmail.com