CreatBotCrowsnest/libs/messages.sh
Stephan Wendel 95c1dca13f
feat!: adds camera-streamer to crowsnest
This introduces camera-streamer as streamer option
via `mode: multi`

camera-streamer is a feature packed stream service.
It is capable to deliver mjpg/snapshots/webrtc and rtsp

Limited to raspberry pi sbc's for now.

This should also resolv
Feature request #51
Feature request #37
Fixes #83
Closes #85
Fixes #89

BREAKING CHANGES:

Dropping support for Debian Buster based images and kernels older than
5.15y

Dropping RTSP support due aler9/simple-rtsp-server

Dropping usage of ffmpeg

No support anymore for Raspicam V1 (EOL)

Signed-off-by: Stephan Wendel <me@stephanwe.de>

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-03-11 18:57:19 +01:00

67 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
#### message library
#### crowsnest - A webcam Service for multiple Cams and Stream Services.
####
#### Written by Stephan Wendel aka KwadFan <me@stephanwe.de>
#### Copyright 2021
#### https://github.com/mainsail-crew/crowsnest
####
#### This File is distributed under GPLv3
####
# shellcheck enable=require-variable-braces
# Exit upon Errors
set -Ee
## Message Helpers
## core lib
function missing_args_msg {
echo -e "crowsnest: Missing Arguments!"
echo -e "\n\tTry: crowsnest -h\n"
}
function wrong_args_msg {
echo -e "crowsnest: Wrong Arguments!"
echo -e "\n\tTry: crowsnest -h\n"
}
function help_msg {
echo -e "crowsnest - webcam deamon\nUsage:"
echo -e "\t crowsnest [Options]"
echo -e "\n\t\t-h Prints this help."
echo -e "\n\t\t-v Prints Version of crowsnest."
echo -e "\n\t\t-c </path/to/configfile>\n\t\t\tPath to your webcam.conf\n"
}
function deprecated_msg_1 {
log_msg "Parameter 'streamer' is deprecated!"
log_msg "Please use mode: [ mjpg | multi ]"
log_msg "ERROR: Please update your crowsnest.conf! Stopped."
}
function unknown_mode_msg {
log_msg "WARN: Unknown Mode configured!"
log_msg "WARN: Using 'mode: mjpg' as fallback!"
}
## v4l2_control lib
function detected_broken_dev_msg {
log_msg "WARN: Detected 'brokenfocus' device."
log_msg "INFO: Trying to set to configured Value."
}
# call debug_focus_val_msg <value>
# ex.: debug_focus_val_msg focus_absolute=30
function debug_focus_val_msg {
log_msg "DEBUG: Value is now: ${1}"
}
## blockyfix
function blockyfix_msg_1 {
log_msg "INFO: Blockyfix: Setting video_bitrate_mode to constant."
}