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()