Page 1 of 1

raspivid is always giving 25frames why??

Posted: Tue Mar 17, 2020 11:18 am
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

Re: raspivid is always giving 25frames why??

Posted: Tue Mar 17, 2020 11:46 am
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.

Re: raspivid is always giving 25frames why??

Posted: Tue Mar 17, 2020 12:00 pm
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

Re: raspivid is always giving 25frames why??

Posted: Tue Mar 17, 2020 12:15 pm
by Realizator
Bhavana, you say you see 25 fps.
Where did you get this number? How did you measured your FPS?

Re: raspivid is always giving 25frames why??

Posted: Tue Mar 17, 2020 12:36 pm
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

Re: raspivid is always giving 25frames why??

Posted: Tue Mar 17, 2020 12:50 pm
by Bhavya
Helloo..

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

best regards
bhavana

Re: raspivid is always giving 25frames why??

Posted: Tue Mar 17, 2020 7:36 pm
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