OpenIPC Wiki

Table of Content

Majestic Streamer


Majestic is a video streaming application, the heart of our firmware (in relation to camera/video surveillance functionality). Majestic is configurable via /etc/majestic.yaml file, and has many features/services enabled by default. Unneeded options can be switched off for better security and performance.

Majestic supports multiple audio, video and still image formats, and more. You can find the full list of available endpoints on this page.

The long JPEG control parameter did not fit into the example on the site and we publish it here:


How to convert YUV image to a more common image format

Use convert command from ImageMagick software. Run it like this:

convert -verbose -sampling-factor 4:2:0 -size 1920x1080 -depth 8 image.yuv image.png

where 1920x1080 is the picture resolution of video0, and .png is the target image format.

How to play audio stream

Use ffplay utility from ffmpeg package.

ffplay -ar 48000 -ac 1 -f s16le
ffplay -ar 48000 -ac 1 -f alaw
ffplay -ar 48000 -ac 1 -f mulaw
ffplay -ar 8000 -ac 1 -f alaw

How to create an audio file to play on camera’s speaker over network

Using sox program convert any source audio file to PCM 8kbps audio:

sox speech.mp3 -t raw -r 8000 -e signed -b 16 -c 1 test.pcm