Extract frames from video at 30 fps

ffmpeg -i file.mp4 -r 30 frames/file-%05d.png

Create video from frames:

ffmpeg -r 30 -f image2 -i file-%05d.png -crf 25 file.avi

Resources and documentation