[FFmpeg-user] Dropping frames from video to images
Lou Logan
lou at lrcd.com
Wed Mar 14 21:48:47 EET 2018
On Wed, Mar 14, 2018, at 3:06 AM, Johanna Andersson wrote:
> Hi!
>
> I am not an expert at all in ffmpeg, but I use it to cut videos into
> frames for scientific investigation of fluid flows. I want to get every
> image (Windows shows me the video has 29 fps). However I seem to drop
> frames.
> My code is as follows:
>
> ffmpeg -i D_CIMG7477.MOV -r 29 -f image2 D_CIMG7477-%3d.png
Your input is 29.97 (technically 30000/1001), but you told it to use 29, so to compensate for the lower value it dropped frames.
However, you don't need to deal with the frame rate options at all to output the images. Remove "-r 29".
"-f image2" isn't needed either.
More information about the ffmpeg-user
mailing list