coverting video into seperate images.

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
Sanocon
Level 2
Level 2
Posts: 60
Joined: Fri Dec 30, 2011 1:54 am

coverting video into seperate images.

Postby Sanocon » Fri Feb 22, 2013 5:46 pm

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?

User avatar
bigj231
Level 5
Level 5
Posts: 790
Joined: Fri Feb 26, 2010 10:16 am
Location: Middle of Nowhere
Contact:

Re: coverting video into seperate images.

Postby bigj231 » Fri Feb 22, 2013 7:34 pm

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.
Running on a 4-slot toaster @ 60Hz

rich2005
Level 3
Level 3
Posts: 184
Joined: Sun Nov 07, 2010 5:22 am

Re: coverting video into seperate images.

Postby rich2005 » Sat Feb 23, 2013 4:01 pm

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)

User avatar
Jamesc359
Level 3
Level 3
Posts: 149
Joined: Sun May 06, 2012 1:42 pm

Re: coverting video into seperate images.

Postby Jamesc359 » Sat Feb 23, 2013 6:28 pm

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
“Gosh, you've... really got some nice toys here.”

Sanocon
Level 2
Level 2
Posts: 60
Joined: Fri Dec 30, 2011 1:54 am

Re: coverting video into seperate images.

Postby Sanocon » Wed Feb 27, 2013 2:34 pm

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?

User avatar
bigj231
Level 5
Level 5
Posts: 790
Joined: Fri Feb 26, 2010 10:16 am
Location: Middle of Nowhere
Contact:

Re: coverting video into seperate images.

Postby bigj231 » Wed Feb 27, 2013 5:07 pm

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.
Running on a 4-slot toaster @ 60Hz


Return to “Sound, Multimedia, & Codecs”

Who is online

Users browsing this forum: jimallyn and 6 guests