mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-04-19 12:57:16 +00:00
consolidate mjpeg defaults
This commit is contained in:
parent
c27b8a9f51
commit
1cecd8f75d
@ -416,7 +416,7 @@ def _get_streameye_settings(camera_id):
|
||||
'seMJPEGWidth': 640,
|
||||
'seMJPEGHeight': 480,
|
||||
'seMJPEGFramerate': 5,
|
||||
'seMJPEGBitrate': 1000000
|
||||
'seMJPEGBitrate': 800000
|
||||
}
|
||||
|
||||
if os.path.exists(STREAMEYE_CONF):
|
||||
@ -478,7 +478,7 @@ def _set_streameye_settings(camera_id, s):
|
||||
s.setdefault('seMJPEGWidth', 640)
|
||||
s.setdefault('seMJPEGHeight', 480)
|
||||
s.setdefault('seMJPEGFramerate', 5)
|
||||
s.setdefault('seMJPEGBitrate', 2000000)
|
||||
s.setdefault('seMJPEGBitrate', 800000)
|
||||
|
||||
main_config = config.get_main()
|
||||
username = main_config['@normal_username']
|
||||
@ -1283,9 +1283,9 @@ def seMJPEGBitrate():
|
||||
|
||||
return {
|
||||
'label': 'MJPEG Bitrate',
|
||||
'description': 'the MJPEG Bitrate fed to the frontend and used for motion detection on remote machines when streaming RTSP; for motion detection, 2000000 works good',
|
||||
'description': 'the MJPEG Bitrate fed to the frontend and used for motion detection on remote machines when streaming RTSP; for motion detection, 800000 works good',
|
||||
'type': 'number',
|
||||
'min': 1000000,
|
||||
'min': 0,
|
||||
'max': 25000000,
|
||||
'section': 'streaming',
|
||||
'camera': True,
|
||||
|
@ -61,8 +61,8 @@ function start() {
|
||||
RTSP_PORT=${RTSP_PORT:-554}
|
||||
MJPEG_WIDTH=${MJPEG_WIDTH:-640}
|
||||
MJPEG_HEIGHT=${MJPEG_HEIGHT:-480}
|
||||
MJPEG_FRAMERATE=${MJPEG_FRAMERATE:-2}
|
||||
MJPEG_BITRATE=${MJPEG_BITRATE:-2000000}
|
||||
MJPEG_FRAMERATE=${MJPEG_FRAMERATE:-5}
|
||||
MJPEG_BITRATE=${MJPEG_BITRATE:-800000}
|
||||
|
||||
audio_path=""
|
||||
audio_opts=""
|
||||
|
@ -416,7 +416,7 @@ def _get_streameye_settings(camera_id):
|
||||
'seMJPEGWidth': 640,
|
||||
'seMJPEGHeight': 480,
|
||||
'seMJPEGFramerate': 5,
|
||||
'seMJPEGBitrate': 1000000
|
||||
'seMJPEGBitrate': 800000
|
||||
}
|
||||
|
||||
if os.path.exists(STREAMEYE_CONF):
|
||||
@ -478,7 +478,7 @@ def _set_streameye_settings(camera_id, s):
|
||||
s.setdefault('seMJPEGWidth', 640)
|
||||
s.setdefault('seMJPEGHeight', 480)
|
||||
s.setdefault('seMJPEGFramerate', 5)
|
||||
s.setdefault('seMJPEGBitrate', 2000000)
|
||||
s.setdefault('seMJPEGBitrate', 800000)
|
||||
|
||||
main_config = config.get_main()
|
||||
username = main_config['@normal_username']
|
||||
@ -1283,9 +1283,9 @@ def seMJPEGBitrate():
|
||||
|
||||
return {
|
||||
'label': 'MJPEG Bitrate',
|
||||
'description': 'the MJPEG Bitrate fed to the frontend and used for motion detection on remote machines when streaming RTSP; for motion detection, 2000000 works good',
|
||||
'description': 'the MJPEG Bitrate fed to the frontend and used for motion detection on remote machines when streaming RTSP; for motion detection, 800000 works good',
|
||||
'type': 'number',
|
||||
'min': 1000000,
|
||||
'min': 0,
|
||||
'max': 25000000,
|
||||
'section': 'streaming',
|
||||
'camera': True,
|
||||
|
@ -61,8 +61,8 @@ function start() {
|
||||
RTSP_PORT=${RTSP_PORT:-554}
|
||||
MJPEG_WIDTH=${MJPEG_WIDTH:-640}
|
||||
MJPEG_HEIGHT=${MJPEG_HEIGHT:-480}
|
||||
MJPEG_FRAMERATE=${MJPEG_FRAMERATE:-2}
|
||||
MJPEG_BITRATE=${MJPEG_BITRATE:-2000000}
|
||||
MJPEG_FRAMERATE=${MJPEG_FRAMERATE:-5}
|
||||
MJPEG_BITRATE=${MJPEG_BITRATE:-800000}
|
||||
|
||||
audio_path=""
|
||||
audio_opts=""
|
||||
|
@ -416,7 +416,7 @@ def _get_streameye_settings(camera_id):
|
||||
'seMJPEGWidth': 640,
|
||||
'seMJPEGHeight': 480,
|
||||
'seMJPEGFramerate': 5,
|
||||
'seMJPEGBitrate': 1000000
|
||||
'seMJPEGBitrate': 800000
|
||||
}
|
||||
|
||||
if os.path.exists(STREAMEYE_CONF):
|
||||
@ -478,7 +478,7 @@ def _set_streameye_settings(camera_id, s):
|
||||
s.setdefault('seMJPEGWidth', 640)
|
||||
s.setdefault('seMJPEGHeight', 480)
|
||||
s.setdefault('seMJPEGFramerate', 5)
|
||||
s.setdefault('seMJPEGBitrate', 2000000)
|
||||
s.setdefault('seMJPEGBitrate', 800000)
|
||||
|
||||
main_config = config.get_main()
|
||||
username = main_config['@normal_username']
|
||||
@ -1283,9 +1283,9 @@ def seMJPEGBitrate():
|
||||
|
||||
return {
|
||||
'label': 'MJPEG Bitrate',
|
||||
'description': 'the MJPEG Bitrate fed to the frontend and used for motion detection on remote machines when streaming RTSP; for motion detection, 2000000 works good',
|
||||
'description': 'the MJPEG Bitrate fed to the frontend and used for motion detection on remote machines when streaming RTSP; for motion detection, 800000 works good',
|
||||
'type': 'number',
|
||||
'min': 1000000,
|
||||
'min': 0,
|
||||
'max': 25000000,
|
||||
'section': 'streaming',
|
||||
'camera': True,
|
||||
|
@ -61,8 +61,8 @@ function start() {
|
||||
RTSP_PORT=${RTSP_PORT:-554}
|
||||
MJPEG_WIDTH=${MJPEG_WIDTH:-640}
|
||||
MJPEG_HEIGHT=${MJPEG_HEIGHT:-480}
|
||||
MJPEG_FRAMERATE=${MJPEG_FRAMERATE:-2}
|
||||
MJPEG_BITRATE=${MJPEG_BITRATE:-2000000}
|
||||
MJPEG_FRAMERATE=${MJPEG_FRAMERATE:-5}
|
||||
MJPEG_BITRATE=${MJPEG_BITRATE:-800000}
|
||||
|
||||
audio_path=""
|
||||
audio_opts=""
|
||||
|
@ -416,7 +416,7 @@ def _get_streameye_settings(camera_id):
|
||||
'seMJPEGWidth': 640,
|
||||
'seMJPEGHeight': 480,
|
||||
'seMJPEGFramerate': 5,
|
||||
'seMJPEGBitrate': 1000000
|
||||
'seMJPEGBitrate': 800000
|
||||
}
|
||||
|
||||
if os.path.exists(STREAMEYE_CONF):
|
||||
@ -478,7 +478,7 @@ def _set_streameye_settings(camera_id, s):
|
||||
s.setdefault('seMJPEGWidth', 640)
|
||||
s.setdefault('seMJPEGHeight', 480)
|
||||
s.setdefault('seMJPEGFramerate', 5)
|
||||
s.setdefault('seMJPEGBitrate', 2000000)
|
||||
s.setdefault('seMJPEGBitrate', 800000)
|
||||
|
||||
main_config = config.get_main()
|
||||
username = main_config['@normal_username']
|
||||
@ -1283,9 +1283,9 @@ def seMJPEGBitrate():
|
||||
|
||||
return {
|
||||
'label': 'MJPEG Bitrate',
|
||||
'description': 'the MJPEG Bitrate fed to the frontend and used for motion detection on remote machines when streaming RTSP; for motion detection, 2000000 works good',
|
||||
'description': 'the MJPEG Bitrate fed to the frontend and used for motion detection on remote machines when streaming RTSP; for motion detection, 800000 works good',
|
||||
'type': 'number',
|
||||
'min': 1000000,
|
||||
'min': 0,
|
||||
'max': 25000000,
|
||||
'section': 'streaming',
|
||||
'camera': True,
|
||||
|
@ -61,8 +61,8 @@ function start() {
|
||||
RTSP_PORT=${RTSP_PORT:-554}
|
||||
MJPEG_WIDTH=${MJPEG_WIDTH:-640}
|
||||
MJPEG_HEIGHT=${MJPEG_HEIGHT:-480}
|
||||
MJPEG_FRAMERATE=${MJPEG_FRAMERATE:-2}
|
||||
MJPEG_BITRATE=${MJPEG_BITRATE:-2000000}
|
||||
MJPEG_FRAMERATE=${MJPEG_FRAMERATE:-5}
|
||||
MJPEG_BITRATE=${MJPEG_BITRATE:-800000}
|
||||
|
||||
audio_path=""
|
||||
audio_opts=""
|
||||
|
Loading…
x
Reference in New Issue
Block a user