Page 1 of 1

Creating video and frame rates?

Posted: Wed Aug 25, 2004 5:43 pm
by george_s
I'm running Zoneminder 1.19.4 on Fedora Core2 with a no-name ebay wireless camera on a cheap bt-style capture card. The camera runs at around 10fps but I have ZM_WEB_L_VIDEO_MAXFPS set to 5 fps to conserve disk space. So far I have the camera and motion detection working but not streaming video at the browser. That's not a huge issue to me but I would like to make video's of events. However, I'm getting strange (to me) behavior out of the video option from the event window. If I choose the default settings, Real Frame Rate and Actual Video Size it fails. /tmp/zmvideo.log reports:

Error: 1 at /usr/local/bin/zmvideo.pl line 259.
Creating video file Event-665.mpg for event 665
/usr/local/bin/ffmpeg -y -hq -intra -r 7.98 -s 320x240 -i %03d-capture.jpg Event-665.mpg > mpeg.log
[mjpeg @ 0x82b76b0]get_buffer() failed
Input #0, image, from '%03d-capture.jpg':
Duration: 00:00:08.3, bitrate: N/A
Stream #0.0: Video: rawvideo, yuvj420p, 320x240, 7.98 fps
Output #0, mpeg, to 'Event-665.mpg':
Stream #0.0: Video: mpeg1video (hq), 320x240, 10.00 fps, q=2-31, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
[mpeg1video @ 0x82b76b0]MPEG1/2 doesnt support 10/1 fps
Error while opening codec for stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height

Error: 1 at /usr/local/bin/zmvideo.pl line 259.

I saw in the archives the suggestion of trying different frame rates so I did , 2x reporting the same error though it tried a frame rate of 15.96fps. Finally, at 4x it works at a frame rate of 31.92. Unfortunately, at that speed the video is not very usable. I reproduced the behavior on another event but this one had an even slower initial speed and I had to go all the way to 10x to create a video.

Is there a way for me to create a video at lower speeds? If this has been answered before and I missed it, please accept my apologies.

Posted: Fri Dec 24, 2004 10:53 am
by DarkSSJ
Same problem here, how can I fix this?

P.S.: sorry for massive posting :-)

Posted: Fri Dec 24, 2004 5:58 pm
by zoneminder
Creating low frame rate videos can be done as I've successfully done it a number of times. I'll run a couple and post some sample lines here when I get chance.

Phil,

ffmpeg

Posted: Mon Dec 27, 2004 9:18 am
by ma77hias
which version of ffmpeg and ffmpeg-devel are you using.
I have had the same problem on my FC2 system when using the latest
ffmpeg 0.4.9-0.20041110
I downgraded to 0.4.8-3 from the dag repository and the problem has disapeared