coverting video into seperate images.
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
coverting video into seperate images.
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?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: coverting video into seperate images.
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.
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)
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.
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
e.g. ffmpeg -i <infile> -ss 60 -t 2 -f image2 image-%07d.png
Re: coverting video into seperate images.
Im tryint to figure this all out. Is it via a linux terminal or a vlc terminal?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)
Re: coverting video into seperate images.
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.