Extract frames from video source ffmpeg -i myvideo.mp4 -vf fps=4 frm%06d.jpg Change frame rate of h264 video source ffmpeg -y -i source.mp4 -r 25 -c:v libx264 -b:v 3M -strict -2 -movflags faststart destination.mp4