-
-
Notifications
You must be signed in to change notification settings - Fork 382
Description
Majestic is crashing occasionally (no errors), cropping is not working and fps are limited to 30fps.
Defconfig reads BR2_cortex_a35=y but the SSC37X are Cortex-A53.
Any advice?
IM50Q01
NOR16
256MB
lite image
Edit:
I've swapped mi.ko (chagall.bin, iqfile0.bin) to my vendor ones as they are newer (20240618<>20241230). No majestic crashes so far but needs more testing. Still crashes...
Regarding fps issues:
majestic set to 60fps (or lower):
Sensor index 1: 2560x1920@60fps (Majestic log)
This mode is 4:3 and will stretch 2560x1920 to any resolution you put in. Any manual crop (like 0x0x1920x1080) results in null rtsp video stream. The fps is capped to 30 (or lower).
majestic set to 120fps:
Sensor index 3: 1920x1080@120fps
This one is 16:9 cropped 1920x1080@120fps. Looks ok. Not sure though if its really 1080p (shouldn't it be 720p@120?).
I guess Sensor index 2 mode is missing (60fps mode?).
Is there an option to tweak this with majestic? Auto Focus (AF) Auto Exposure (AE) Auto White Balance (AWB).
[MI_ISP_CUS3A_Enable] AE = 1, AWB = 1, AF = 1
Edit2:
Here is a log from majestic crash. Looks like a wget attempt is the culprit here (randomly timed telemetry data?).
root@openipc-ssc377qe:~# majestic
19:28:21 < majestic> [ main] main@237 Majestic Lite for SigmaStar, version master+47984cb, built on 2026-03-11
19:28:21 < majestic> [app_conf] parse_app_config@404 Main audio codec is opus (other options: aac, pcm, alaw, ulaw)
19:28:21 < majestic> [watchdog] watchdog_start@94 Detected SSTAR Watchdog
19:28:21 < majestic> [watchdog] watchdog_start@115 Watchdog timeout set to 10 seconds
19:28:21 < majestic> [ httpd] start_web_server@373 Set server path: /var/www
19:28:21 < majestic> [ httpd] new_http_server@359 HTTP server started on 0.0.0.0:80
19:28:21 < majestic> [app_conf] parse_app_config@404 Main audio codec is opus (other options: aac, pcm, alaw, ulaw)
19:28:21 < majestic> [ main] init_sdk@66 Loading main configuration: /etc/majestic.yaml
19:28:21 < majestic> [ sdk] start_sdk@1583 Initializing Sigmastar SDK, mi_sys_version_3.011
19:28:21 < majestic> [ sdk] mi_snr_get_resolution@540 Sensor index 0: 2560x1920@30fps
19:28:21 < majestic> [ log] printf@292 [MI_ISP_CUS3A_Enable] AE = 1, AWB = 1, AF = 1
[ AeInit] FPS (Init, Input, Output, Cur, Deband) = ( 30, 30, 30, 30, 30)
[ AeInit] HW Sensor Gain = (1024,1445888,1024,1445888)
[ AeInit] HW Shutter = ( 72, 333333, 72, 333333)
[ AeInit] Use AE Short Histogram = Valid
[ AeInit] Sensor delay frame cnt = 3
[AeInit ] --> Calculation mode = FLOAT
[ AeInit] --> Change : 1, CurYx10 : 0, CurY1x10 : 0 , Targetx10 : 470, BVx16384 : 26236, FNx10 : 18, IspGain : 1024, SensorGain : 10240, Shutter : 3337 us, Step : 8080 ns
19:28:21 < majestic> [ log] printf@292 [MI_ISP_CUS3A_Enable] AE = 1, AWB = 1, AF = 1
19:28:21 < majestic> [ log] printf@292 [MI_ISP_CUS3A_Enable] AE = 1, AWB = 1, AF = 1
19:28:21 < majestic> [ sdk] mi_venc_create_chn@1044 Channel 0: 1440x1080@30fps
19:28:21 < majestic> [ sdk] mi_venc_create_chn@1045 - [H264, 16384kbps, RC2, GOP60]
19:28:21 < majestic> [ sdk] mi_venc_create_chn@1109 - [minQp: 12, maxQp: 48, qpDelta: -4, slice: 0]
19:28:21 < majestic> [ audio] mi_ai_init@239 Input: 48kHz, 14dB
[ DoAe] FPS (Input, Output, Cur, Deband) = ( 30, 30,30000, 30)
[AF_InitParameters-1932] Error!! Initial motor parameters got from motor driver are unreasonable.
[AF_InitParameters-1933] InitPos = 0, MinMotorPos = 0, MaxMotorPos = 0, MinMotorStep = 1, MaxMotorStep = 0
19:28:22 < majestic> [ sdk] mi_isp_get_file@150 Load isp file /etc/sensors/imx335.bin
19:28:22 < majestic> [ log] printf@292 [MAJOR]: ispversion(1) in sdk, ispversion(1) in binfile.
19:28:22 < majestic> [ log] printf@292 [MINOR]: ispversion(4) in sdk, ispversion(2) in binfile.
19:28:22 < majestic> [ puts] warning warning!!!SDK & iqbinfile minor version is not match.
[ pAE_SetPlainShortExpTbl]-------------HW:1024/1445888/72/333333-----TBL:1024/8192/30/1400-----Plain Table is not valid!
[pAF_SetMotor-0230] Error paramters!! u16MinMotorPos = 320, u16MaxMotorPos = 700, u16HWMinMotorPos = 0, u16HWMaxMotorPos = 0
19:28:22 < majestic> [ log] printf@292 ******************** Load api bin Success - /etc/sensors/imx335.bin ********************
19:28:22 < majestic> [ sdk] mi_isp_set_image@260 Set dynamic range: 128
19:28:22 < majestic> [ sdk] mi_isp_set_image@303 Set exposure: 33ms, analog: 63
19:28:22 < majestic> [ rtsp] rtsp_init@28 RTSP server started on port 554
19:28:22 < majestic> [ gpio] set_gpio@26 set_gpio(80, 0)
19:28:22 < majestic> [ gpio] set_gpio@26 set_gpio(81, 1)
19:28:22 < majestic> [ gpio] set_gpio@26 set_gpio(80, 0)
19:28:22 < majestic> [ gpio] set_gpio@26 set_gpio(81, 0)
19:28:33 < majestic> [ night] set_night_mode@128 Change mode to NIGHT
19:28:33 < majestic> [ gpio] set_gpio@26 set_gpio(80, 1)
19:28:33 < majestic> [ gpio] set_gpio@26 set_gpio(81, 0)
19:28:33 < majestic> [ sdk] mi_isp_set_image@303 Set exposure: 33ms, analog: 63
19:28:33 < majestic> [ gpio] set_gpio@26 set_gpio(80, 0)
19:28:33 < majestic> [ gpio] set_gpio@26 set_gpio(81, 0)
19:31:48 < majestic> [ server] RtspServer_add_connection@101 RTSP authentication omitted for client
19:31:48 < majestic> [ client] RtspClient_before@408 RTSP OPTIONS rtsp://192.168.1.10:554/stream=0 CSeq=1 from 192.168.1.2:44534
19:31:48 < majestic> [ client] RtspClient_before@408 RTSP DESCRIBE rtsp://192.168.1.10:554/stream=0 CSeq=2 from 192.168.1.2:44534
19:31:48 < majestic> [ nal] NalCodec_describe@108 RTSP chn 0 sps_len 25
19:31:48 < majestic> [ nal] NalCodec_describe@110 RTSP chn 0 pps_len 8
19:31:48 < majestic> [ nal] NalCodec_describe@112 RTSP chn 0 profile_level_id 640028
19:31:48 < majestic> [ client] RtspClient_before@408 RTSP SETUP rtsp://192.168.1.10:554/stream=0/video CSeq=3 from 192.168.1.2:44534
19:31:48 < majestic> [ client] RtspClient_setup@319 TCP RTSP SETUP done, stream_id=0 from 192.168.1.2:44534
19:31:48 < majestic> [ client] RtspClient_before@408 RTSP SETUP rtsp://192.168.1.10:554/stream=0/audio CSeq=4 from 192.168.1.2:44534
19:31:48 < majestic> [ client] RtspClient_setup@319 TCP RTSP SETUP done, stream_id=0 from 192.168.1.2:44534
19:31:48 < majestic> [ client] RtspClient_before@408 RTSP PLAY rtsp://192.168.1.10:554/stream=0 CSeq=5 from 192.168.1.2:44534
19:32:18 < majestic> [ client] RtspClient_before@408 RTSP OPTIONS rtsp://192.168.1.10:554/stream=0 CSeq=6 from 192.168.1.2:44534
wget: error getting response: Invalid argument
sh: write error: Broken pipe
Segmentation fault
root@openipc-ssc377qe:~#