Page 1 of 1

Video Generation Too Fast

Posted: Wed Apr 12, 2006 9:10 am
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 :)

Posted: Wed Apr 12, 2006 10:20 am
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

Posted: Wed Apr 12, 2006 12:40 pm
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..

Posted: Wed Apr 12, 2006 2:55 pm
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?

Posted: Thu Apr 13, 2006 3:31 pm
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.

Posted: Mon Apr 17, 2006 8:01 pm
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.