Majestic
Majestic is the main OpenIPC camera streaming service. It is the core component behind the standard video surveillance workflow: live video, RTSP, snapshots, image settings, audio, OSD, night mode, motion detection, recording, and outgoing streams.
Where It Fits
Use Majestic when you need to:
- expose an OpenIPC camera as an IP camera;
- provide RTSP streams to an NVR or VMS;
- adjust codec, frame rate, bitrate, and image parameters;
- enable snapshots, audio, OSD, or motion detection;
- troubleshoot stream crashes or camera watchdog resets.
Configuration
The main configuration file is:
/etc/majestic.yamlA full example may be available as:
/etc/majestic.fullCommon sections include:
system: web ports, log level, buffer, plugins;isp: sensor and image pipeline options;image: mirror, flip, rotation, contrast, saturation, luminance;video0andvideo1: stream enablement, codec, size, FPS, bitrate;jpeg: snapshot settings;rtsp: RTSP enablement and port;audio: microphone and speaker options;nightMode: IR cut, light, and day/night behavior;motionDetect: motion detection and debug settings;records: local recording settings;outgoing: forwarding to external endpoints.
Reloading Settings
For many platforms, Majestic can reload configuration with HUP:
killall -HUP majesticFor debugging, run Majestic in the foreground:
killall majestic; sleep 3; majesticCLI Changes
The OpenIPC wiki documents the cli helper for changing config values:
cli -s .video0.codec h264cli -s .video0.fps 10killall -HUP majesticUsers
The wiki documents two user levels:
root: main system user for SSH and Web UI access;viewer: limited user for RTSP access without SSH or Web UI login.
Example viewer user creation:
adduser viewer -s /bin/false -D -Hecho viewer:123456 | chpasswdChange example passwords before using this on a real camera.
Endpoints
Majestic exposes camera resources such as video, snapshots, metrics, and control endpoints. The OpenIPC wiki links to the endpoint list at:
https://openipc.org/majestic-endpointsExample image endpoint:
/image.jpg?width=640&height=360&qfactor=73&color2gray=1Motion Detection
Motion detection can call:
/usr/sbin/motion.sh [count]Enable and debug from CLI:
cli -s .motionDetect.enabled truecli -s .motionDetect.debug truekillall majestic; sleep 3; majesticTroubleshooting
If the camera reboots because Majestic crashes and watchdog resets the system, capture logs from another machine:
ssh root@192.168.1.10 "killall majestic; sleep 2; majestic" > majestic-$(date +"%F").logReplace 192.168.1.10 with the camera IP.