Caner Bulut – R & D notes

Changing FPS rate of a video with FFMPEG

Posted in Image Processing by canerblt on July 10, 2011

If you want to change frame per second (fps) rate of a video file, you need a codec to achieve that. We can use FFMpeg to change this rate. You can run below script via CMD on windows or CLI on Linux.

 

ffmpeg -r 10 -f image2 -i C:\test\captures\image%d.png  C:\test\captures\test2.flv

A point to keep it mind that,

-r 10   : define new fps rate

image2 : image file format

C:\5d\captures\image%d.png : image files in a directory which will be converted a video

C:\5d\captures\test2.flv : destination file name

 

If you have any problem of this script please share it with a comment.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.