Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9023747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:50:07+00:00 2026-06-16T05:50:07+00:00

Ok, so I am making a video. I want to know exactly how to

  • 0

Ok, so I am making a video. I want to know exactly how to use the FPS argument. It is a float, so I assumed it was what interval do I want between each frame. Can you give an example? I just want to know how the video would change with varying FPS argument values., because my video I made is way too fast now. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:50:08+00:00Added an answer on June 16, 2026 at 5:50 am

    It really is just that – frames per second. In other words, how many frames do you want to display every second?

    Here is an example:

    writer = cv2.VideoWriter(filename="my_video.avi",  #Provide a file to write the video to
    fourcc=cv2.cv.CV_FOURCC('i','Y', 'U', 'V'),            #Use whichever codec works for you...
    fps=15,                                        #How many frames do you want to display per second in your video?
    frameSize=(width, height))                     #The size of the frames you are writing
    

    Example usage:

    while True:
        flag, frame = capture.read()
        cv2.imshow("Camera", frame)
        key_pressed = cv2.waitKey(10)
        if key_pressed == 27:                           #Escape key
            break
        writer.write(frame)
    cv2.destroyAllWindows()
    

    Thus, you will have a video file that consists of all the still frames that your camera captured stitched together as a single video. The number of frames that are displayed per second will be as you set with the fps parameter. (If your video is too fast, I recommend setting a lower fps)

    I wrote this code off the top of my head, so I haven’t tested it, but it should work. Let me know if you have any questions or problems. I hope this helps you!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making an iPhone app that has information about different video games. How can
Here is the problem, lets say we are making a video game and want
I am making an app in which i want to paste video on facebook.But
I am making an app in which i want to post video on facebook.I
I'm making a HTML5 video player. I want it so that when the movie
I'm making a site which has a list of videos. Next to each video
I am making a video game for iPhone and I want to hide the
I am making a video playback website and I need to use a html5
I'm making a website and I want to embed a YouTube video. My senior
i want to know is there anyway that using Java one can capture the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.