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.
Creating video and frame rates?
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact: