raspivid is always giving 25frames why??

OpenCV, Python and other image processing questions
Post Reply
Bhavya
Posts: 23
Joined: Fri Feb 21, 2020 7:25 am

raspivid is always giving 25frames why??

Post by Bhavya »

Helloo..
I'm running the raspivid command,the thing here is it is giving 25fps for all the different resolution. whats wrong with this?can anyone tell why it is happening like this?

Thanks and Regards
Bhavana

User avatar
Realizator
Site Admin
Posts: 914
Joined: Tue Apr 16, 2019 9:23 am
Contact:

Re: raspivid is always giving 25frames why??

Post by Realizator »

Hi Bhavana,
raspivid usually has default FPS (25 or 30). Try to set FPS directly in your raspivid settings, like this:
-fps 30
or
--framerate 30

You can find more details here:
https://www.raspberrypi.org/documentati ... /camera.md

By the way, how do you estimate your FPS?

upd> I moved this topic from "Other questions" to "OpenCV, Python and other image processing" section.
Eugene a.k.a. Realizator

Bhavya
Posts: 23
Joined: Fri Feb 21, 2020 7:25 am

Re: raspivid is always giving 25frames why??

Post by Bhavya »

Helloo..
I have changed the -fps in raspivid then also im able to get only 25,whatever i gave it showing only 25fps.

Reffered this but it is not solving.
https://www.raspberrypi.org/documentati ... /camera.md

By the way, how do you estimate your FPS?
I'm just checking for HD and VGA resolution(without giving -fps)then also it is giving 25. how to come out of this?

Thanks and regards
Bhavana

User avatar
Realizator
Site Admin
Posts: 914
Joined: Tue Apr 16, 2019 9:23 am
Contact:

Re: raspivid is always giving 25frames why??

Post by Realizator »

Bhavana, you say you see 25 fps.
Where did you get this number? How did you measured your FPS?
Eugene a.k.a. Realizator

Bhavya
Posts: 23
Joined: Fri Feb 21, 2020 7:25 am

Re: raspivid is always giving 25frames why??

Post by Bhavya »

Helloo..
If we run the command it will record the video right? again im taking that recoded copy and playing in vlc in windows just for conformation.

Thanks and regards
Bhavana

Bhavya
Posts: 23
Joined: Fri Feb 21, 2020 7:25 am

Re: raspivid is always giving 25frames why??

Post by Bhavya »

Helloo..

How can we controll the sensor here? like giving exposure,shutter width and all?how it is possible?

best regards
bhavana

User avatar
Realizator
Site Admin
Posts: 914
Joined: Tue Apr 16, 2019 9:23 am
Contact:

Re: raspivid is always giving 25frames why??

Post by Realizator »

Bhavya wrote:
Tue Mar 17, 2020 12:36 pm
Helloo..
If we run the command it will record the video right? again im taking that recoded copy and playing in vlc in windows just for conformation.

Thanks and regards
Bhavana
Raw h264 video can have a wrong timings, and VLC will show you incorrect FPS. It's better to use another FPS measuring tools, like calculating by OpenCV (as you use it for processing). 25 FPS is often used by VLC as default, if actual FPS can not be calculated. In my C++ code I was able to get up to 90 FPS, so 25 looks a bit strange.
Bhavya wrote:
Tue Mar 17, 2020 12:50 pm
How can we controll the sensor here? like giving exposure,shutter width and all?how it is possible?
All exposure and other parameters are described here, with details and examples:
https://www.raspberrypi.org/documentati ... /camera.md
Eugene a.k.a. Realizator

Post Reply