View previous topic :: View next topic |
Author |
Message |
jlpoole Guru
Joined: 01 Nov 2005 Posts: 489 Location: Salem, OR
|
Posted: Wed Sep 08, 2010 6:37 am Post subject: [Solved] Chop video into PNG images for sample set? |
|
|
I have MP4 videos that I want to generate PNG or whatever format from. I want to set the interval to an image perhaps every 2 seconds or some rate. Example: a 20 second video would have 10 images representing timepoint 0, 2 seconds, 4 seconds &etc.
I'm installing Mplayer and will try FFmpeg. My quick review of their documentation did not seem to suggest this kind of extraction was readily available.
Suggestions?
Last edited by jlpoole on Thu Sep 09, 2010 2:20 pm; edited 1 time in total |
|
Back to top |
|
|
massimo Veteran
Joined: 22 Jun 2003 Posts: 1226
|
Posted: Wed Sep 08, 2010 7:05 am Post subject: Re: Chop video into PNG images for sample set? |
|
|
jlpoole wrote: | Suggestions? |
Code: |
$ ffmpeg -i input.mp4 -r 2 -f image2 eimg%03d.png
|
_________________ Hello 911? How are you? |
|
Back to top |
|
|
ashtophet Guru
Joined: 08 Aug 2004 Posts: 397
|
Posted: Wed Sep 08, 2010 7:06 am Post subject: |
|
|
From it seems that you may use '-vo png' to output png images from frames combined with '-sstep 2' (if I understood correctly, I'm not able to test it right now). .. |
|
Back to top |
|
|
jlpoole Guru
Joined: 01 Nov 2005 Posts: 489 Location: Salem, OR
|
Posted: Wed Sep 08, 2010 7:30 am Post subject: [SOLVED]Re: Chop video into PNG images for sample set? |
|
|
massimo wrote: | jlpoole wrote: | Suggestions? |
Code: |
$ ffmpeg -i input.mp4 -r 2 -f image2 eimg%03d.png
|
|
Worked like a charm. Thank you! |
|
Back to top |
|
|
|