Recording MPEG streams directly?
Posted: Mon Sep 28, 2015 1:35 pm
Is it possible to be able to record an MPEG stream directly off the camera and to disk? The ideal would be only grabbing a few JPEGs during non-alarm mode, but to grab the MPEG stream when alarming but I haven't been able to get MPEG streams to disk at all so far.
My actual plan is to configure to cameras in ZoneMinder. One would be for a 320x240 B&W stream just grabbing JPEG frames off the camera and using that for motion detection. Then one would be the full on large stream which is linked to the B&W. The hope was to use less resources when tracking movement.
I have that almost setup now but if I'm not doing any motion detection on the large stream, it seemed like it would be better to just have it chucking streams directly to disk and not having to worry about it.
I have ffmpeg 2.8. In ZoneMinder, OPT_FFMPEG is checked, PATH_FFMPEG is set to '/usr/bin/ffmpeg' (which is the right place on my system for it). ZoneMidner added "-r 25" to the FFMPEG_OUTPUT_OPTIONS. FFMPEG_INPUT_OPTIONS is blank.
For the camera I wanted MPEG recording on, I tried setting the Source Type to both remote (RTSP) and Ffmpeg. I can monitor both but when enabling record, I still see JPEGs being generated on disk.
Thoughts?
My actual plan is to configure to cameras in ZoneMinder. One would be for a 320x240 B&W stream just grabbing JPEG frames off the camera and using that for motion detection. Then one would be the full on large stream which is linked to the B&W. The hope was to use less resources when tracking movement.
I have that almost setup now but if I'm not doing any motion detection on the large stream, it seemed like it would be better to just have it chucking streams directly to disk and not having to worry about it.
I have ffmpeg 2.8. In ZoneMinder, OPT_FFMPEG is checked, PATH_FFMPEG is set to '/usr/bin/ffmpeg' (which is the right place on my system for it). ZoneMidner added "-r 25" to the FFMPEG_OUTPUT_OPTIONS. FFMPEG_INPUT_OPTIONS is blank.
For the camera I wanted MPEG recording on, I tried setting the Source Type to both remote (RTSP) and Ffmpeg. I can monitor both but when enabling record, I still see JPEGs being generated on disk.
Thoughts?