A place for discussion of topics that are not specific to ZoneMinder. This could include Linux, Video4Linux, CCTV cameras or any other topic.
- Posts: 1
- Joined: Wed Dec 07, 2016 10:24 pm
I am running 2 Philips SPC900NC Webcams under Debian Jessie (3.4 and 4.7 kernels). The cam is doing great in low light situations, if FPS can be reduced to 10 FPS or even 5 FPS. This works fine e.g. by recording a video with ffmpeg via:
Code: Select all
ffmpeg -f v4l2 -framerate 5 -video_size 640x480 -i /dev/video0 test.mp4
But with surveillance tools like Motion and ZoneMinder, the cam always defaults to 15FPS - independently of any FPS rates I set in these programs. Also running "v4l2-ctl --set-parm 5" gets overwritten when Motion or ZoneMinder are started (I checked with: v4l2-ctl --get-parm).
I played with v4l2loopback and the following config is actually enforcing 5fps: /dev/video0 -> ffmpeg -> /dev/video1 -> Zoneminder. But the problem is additional CPU consumption of ffmpeg.
Is there any possibility to archive 5 FPS by enforcing the FPS in v4l2 natively (avoiding adding v4l2loopback/ffmpeg to the mix) or directly through ZoneMinder ?
P.S.: I asked the same question in stackoverflow a few days ago, but got no responses so far:
https://stackoverflow.com/questions/409 ... dev-video0
- Posts: 25
- Joined: Sat Dec 04, 2010 5:21 pm
I can only offer an alternative. I use two Logitech webcams, a C920 for detection and Quickcam Pro 9000 recording at high resolution and I have no problems with framerate. I don't remember the command to get resolutions and framerates for webcams but resolutions only work with certain framerates.
Mine are running on a different machine than the zoneminder server and using mjpg-streamer. I call a script in crontab
Code: Select all
# Logitech C920
# The higher resolution works but at 2 fps.
#/usr/bin/mjpg_streamer -i "input_uvc.so -r 2304x1536 -yuv -d /dev/video1" -o "output_http.so -w ./www -c USER:PASSWORD" &
# will do 10 fps at this resolution
/usr/bin/mjpg_streamer -i "input_uvc.so -r 1280x720 -yuv -f 10 -d /dev/video1" -o "output_http.so -w ./www -c USER:PASSWORD" &
# Logitech Pro 9000
# at this resolution will only do 5 fps
/usr/bin/mjpg_streamer -i "input_uvc.so -r 1600x1200 -yuv -d /dev/video0" -o "output_http.so -p 8077 -w ./www -c USER:PASSWORD" &
C920 image quality is not very good no matter what setting I tried but detection is good.
- Posts: 2306
- Joined: Thu Oct 18, 2007 1:55 pm
- Location: Shiloh, IL
Since the device in question is a local device and not an IP stream, you should be able to control the framerate directly from zoneminder by placing a value into the max fps field.
Who is online
Users browsing this forum: No registered users and 2 guests