Streaming Output with Motion
Jump to navigation
Jump to search
Streaming Camera Output to http[edit]
First of all, install motion and its dependencies:
apt-get install motion
Then, create a configuration file (e.g. motion.conf):
stream_port 8080 stream_localhost off output_pictures off width 1280 height 720 framerate 30 stream_maxrate 30
This is an example working at full frame rate and definition for fa-cam202.
Please note the 'output_pictures off' line, this is to avoid saving each frame on the disk.
Then, start motion:
motion -m -c ./motion.conf
The '-m' option is to disable motion detection if not necessary, the second to specify locatin of configuration file.
Note on the performances: this configuration will consume about 20% of CPU on a NanoPI Neo Quad Core system.
P.S. To use https, version 4.2.1 is needed.