Video Generation Too Fast

Support and queries relating to all previous versions of ZoneMinder
Locked
uri
Posts: 2
Joined: Wed Apr 12, 2006 9:03 am

Video Generation Too Fast

Post by uri »

I am trying to evaluate this nice software suite :)
It seems to be running for a few days on my server, unfortunately, i can't have any video generated at a "real" frame rate.
My camera is configured with a preset profile (PAL / 5 fps max) and the video I get seem to be 5x too fast.
Are there any way to force a real frame rate generation ?
I looked at the ffmpeg parameters , i didn't change them, the ZM_FFMPEG_OUTPUT_OPTIONS has a -r 25 value.
Any help would be appreciated :)
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Im not sure as i dont use ffmpeg on the web side but you passan input framerate to ffmpeg on thi input side so it might be worth adding -r 5 to in incoming framerate . Leave the out framrate at 25 as that will genertae a 25fps movie. I assume that it just duplicates the images x times to make 25fps from 5 but im no ffmpeg expert
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
uri
Posts: 2
Joined: Wed Apr 12, 2006 9:03 am

Post by uri »

jameswilson wrote:Im not sure as i dont use ffmpeg on the web side but you passan input framerate to ffmpeg on thi input side so it might be worth adding -r 5 to in incoming framerate . Leave the out framrate at 25 as that will genertae a 25fps movie. I assume that it just duplicates the images x times to make 25fps from 5 but im no ffmpeg expert
If I tail zmvideo.log i can see the cli used
for example
04/12/06 14:35:54.686463 zmvideo[9685].INF [/usr/bin/ffmpeg -y -r 10.87 -i 0000-capture.jpg -s 320x240 -r 25 'Event-279-r1-s1.mpg' > ffmpeg.log]

the -r parameter used by ffmeg is never the same. I don't know how it's defined..
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

ah it must be defined in code then i suppose no. of images/ section length. Im sorry then we need someone with more ffmpeg experience. Do all vids created i.e. formats have this issue?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
rockerBOO
Posts: 21
Joined: Wed Apr 12, 2006 3:03 pm

Post by rockerBOO »

http://ffmpeg.sourceforge.net/ffmpeg-doc.html

You will see that -r is for frame rate which is supplied from the camera probally

But for some reason you have 2 in there.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

You can get odd appearing frame rates if you have limit frame rate on alarms set to off. Otherwise is should basically be calculated from the number of images in the events and the duration of it.
Phil
Locked