can ZM work from a saved file, not a stream?
Posted: Tue Sep 30, 2014 2:51 pm
I just installed ZM 1.26.5 running on Ubuntu and my first test with a Logitech HD720p webcam works fine. I am wondering if ZM can work from a file saved on disc, instead of a live stream. That is, if I tell ZM the frame rate and the start time of the file, can it go through and do motion-detection on it?
I have a Raspberry Pi which has a good quality 5Mpix camera. I have a program that saves two files simultaneously (high-res H264 format and low-res MJPEG format) but I don't know how to stream the MJPEG in that mode. There is mjpeg-streamer to make it like a basic webcam but I want to keep the high-res file also, so I can get the full detail from a given frame.
if anyone's curious, here is the program that saves two resolutions at once. for 1 hour:
I have a Raspberry Pi which has a good quality 5Mpix camera. I have a program that saves two files simultaneously (high-res H264 format and low-res MJPEG format) but I don't know how to stream the MJPEG in that mode. There is mjpeg-streamer to make it like a basic webcam but I want to keep the high-res file also, so I can get the full detail from a given frame.
if anyone's curious, here is the program that saves two resolutions at once. for 1 hour:
Code: Select all
#!/usr/bin/python
# Python program for Raspberry Pi using picamera library
import picamera
with picamera.PiCamera() as camera:
camera.resolution = (1920, 1080)
camera.framerate = 8
camera.annotate_background = True # black rectangle behind white text for readibility
camera.annotate_frame_num = True # set 'True' if we should show the frame number on the video
camera.start_recording('highres.h264')
camera.start_recording('lowres.mjpeg', splitter_port=2, format='mjpeg', resize=(256, 144))
camera.wait_recording(3600)
camera.stop_recording(splitter_port=2)
camera.stop_recording()