Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Chop video into PNG images for sample set?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
jlpoole
Guru
Guru


Joined: 01 Nov 2005
Posts: 489
Location: Salem, OR

PostPosted: Wed Sep 08, 2010 6:37 am    Post subject: [Solved] Chop video into PNG images for sample set? Reply with quote

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
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Wed Sep 08, 2010 7:05 am    Post subject: Re: Chop video into PNG images for sample set? Reply with quote

jlpoole wrote:
Suggestions?

Code:

$ ffmpeg -i input.mp4 -r 2 -f image2 eimg%03d.png

_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
ashtophet
Guru
Guru


Joined: 08 Aug 2004
Posts: 397

PostPosted: Wed Sep 08, 2010 7:06 am    Post subject: Reply with quote

From
Code:
man mplayer
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
View user's profile Send private message
jlpoole
Guru
Guru


Joined: 01 Nov 2005
Posts: 489
Location: Salem, OR

PostPosted: Wed Sep 08, 2010 7:30 am    Post subject: [SOLVED]Re: Chop video into PNG images for sample set? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum