Page 1 of 1

coverting video into seperate images.

Posted: Fri Feb 22, 2013 5:46 pm
by Sanocon
hi. so i'm trying to convert a movie file for a movie I'm making for school into separate images so i can import the images into flash(this way i can make an animated overly image using flash.) is there a way to split the movie so that i have 30 jpg or png images per second of the movie clip?

Re: coverting video into seperate images.

Posted: Fri Feb 22, 2013 7:34 pm
by bigj231
I know LiVeS works with seperating frames. You can also use VLC to separate frames. First Google result: http://www.isimonbrown.co.uk/vlc-export-frames/ (The tutorial is on Windows, but the steps should be the same.

Re: coverting video into seperate images.

Posted: Sat Feb 23, 2013 4:01 pm
by rich2005
It could very much depend on the video format, AVCH is a pita.

For regular mpeg or avi then the frame rate is usually 30 or 25 fps anyway (NTSC or PAL) and you can dump all the frames using ffmpeg on command line. Have the video clip in an empty directory, open a terminal there and use a command

ffmpeg -i filename.avi (or .mpg) -f image2 image-%07d.png (or .jpg)

If it is a AVCH 60 fps .mp4 you could try something like, might work

ffmpeg -y -r 60 -i filename.mp4 -r 30 image.%07d.jpg (or .png)

Re: coverting video into seperate images.

Posted: Sat Feb 23, 2013 6:28 pm
by Jamesc359
You can use -ss <offset> and -t <duration> so you don't have to dump a few thousand images to your drive.

e.g. ffmpeg -i <infile> -ss 60 -t 2 -f image2 image-%07d.png

Re: coverting video into seperate images.

Posted: Wed Feb 27, 2013 2:34 pm
by Sanocon
rich2005 wrote:It could very much depend on the video format, AVCH is a pita.

For regular mpeg or avi then the frame rate is usually 30 or 25 fps anyway (NTSC or PAL) and you can dump all the frames using ffmpeg on command line. Have the video clip in an empty directory, open a terminal there and use a command

ffmpeg -i filename.avi (or .mpg) -f image2 image-%07d.png (or .jpg)

If it is a AVCH 60 fps .mp4 you could try something like, might work

ffmpeg -y -r 60 -i filename.mp4 -r 30 image.%07d.jpg (or .png)
Im tryint to figure this all out. Is it via a linux terminal or a vlc terminal?

Re: coverting video into seperate images.

Posted: Wed Feb 27, 2013 5:07 pm
by bigj231
Linux terminal, you have to have ffmpeg. The VLC stream way I posted might be easiest. You will have to watch the entire video though. The ffmpeg way will transcode it much faster.