Majestic Endpoints
Video
- http://192.168.1.10/mjpeg
- MJPEG video stream.
- http://192.168.1.10/video.mp4
- fMP4 video stream.
- rtsp://username:password@192.168.1.10/stream=0
- RTSP main stream (video0).
- rtsp://username:password@192.168.1.10/stream=1
- RTSP substream (video1).
- http://192.168.1.10/hls
- HLS live-streaming in web browser.
- http://192.168.1.10/webrtc
- WebRTC live-streaming in web browser.
- http://192.168.1.10/mjpeg.html
- MJPEG & MP3 live-streaming in web browser.
Audio
- http://192.168.1.10/audio.opus
- Opus audio stream.
- http://192.168.1.10/audio.pcm
- Raw PCM audio stream.
- http://192.168.1.10/audio.m4a
- AAC audio stream.
- http://192.168.1.10/audio.mp3
- MP3 audio stream.
- http://192.168.1.10/audio.alaw
- A-law compressed audio stream.
- http://192.168.1.10/audio.ulaw
- μ-law compressed audio stream.
- http://192.168.1.10/audio.g711a
- G.711 A-law audio stream.
- http://192.168.1.10/play_audio
- Play audio file on camera's speaker.1,3
Accepts POST requests with audio file as a parameter.
Still Images
- http://192.168.1.10/image.jpg
- Snapshot in JPEG format.
Optional parameters:2,4- width, height - size of resulting image
- qfactor - JPEG quality factor (1-99)
- color2gray - convert to grayscale
- crop - crop resulting image as 16x16x320x320
- http://192.168.1.10/image.heif
- Snapshot in HEIF format.
- http://192.168.1.10/image.yuv420
- Snapshot in YUV420 format.
- http://192.168.1.10/image.dng
- Snapshot in Adobe DNG format (raw).3
Night API
- http://192.168.1.10/night/on
- Turn on night mode.
- http://192.168.1.10/night/off
- Turn off night mode.
- http://192.168.1.10/night/toggle
- Toggle current night mode.
Monitoring
- http://192.168.1.10/api/v1/config.json
- Actual Majestic config in JSON format.
- http://192.168.1.10/metrics
- Node exporter for Prometheus.
- Only HiSilicon and Goke SoCs.
- Only HiSilicon SoCs v2 and up.
- E.g. ffplay -ar 48000 -ac 1 -f s16le http://192.168.1.10/audio.pcm
- E.g. http://192.168.1.10/image.jpg?width=640&height=480&qfactor=50&color2gray=1&crop=80x32x512x400
More examples available in our wiki.