Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Опция isp.antiFlicker ломает картинку. #113

Closed
tamerlan311 opened this issue Apr 28, 2023 · 3 comments
Closed

Опция isp.antiFlicker ломает картинку. #113

tamerlan311 opened this issue Apr 28, 2023 · 3 comments

Comments

@tamerlan311
Copy link

tamerlan311 commented Apr 28, 2023

hi3516ev200, imx307_i2c, master+1266a5c4, 2023-04-27

После обновления камеры (примерно спустя год) днём картинка начала резко засвечивать.

isp:
exposure: auto
slowShutter: high
antiFlicker: 50Hz
sensorConfig: /etc/sensors/imx307_i2c_2l_1080p.ini

Проблема решилась путём комментирования опции antiFlicker. Причем попытки убрать Hz или поставить значение 60 результата не давали.

@tamerlan311
Copy link
Author

Лог с опцией:
13:45:15 < majestic> [ main] main@125 Majestic Lite for HiSilicon, version HEAD+0c031d6, built on 2023-04-27 13:45:15 < majestic> [app_conf] load_config@89 Using /etc/majestic.yaml as main configuration 13:45:15 < majestic> [watchdog] watchdog_start@101 Detected Watchdog 13:45:15 < majestic> [watchdog] watchdog_start@121 Watchdog timeout set to 10 seconds 13:45:15 < majestic> [ sdk] start_sdk@415 Using /etc/sensors/imx307_i2c_2l_1080p.ini sensor configuration file 13:45:15 < majestic> [ sdk] start_sdk@424 App was built with MPP version: Hi3516EV200_MPP_V1.0.1.2.B030 Release 13:45:15 < majestic> [ sdk] start_sdk@427 Current MPP version: HI_VERSION=Hi3516EV200_MPP_V1.0.1.2 B030 Release 13:45:15 < majestic> [ sdk] start_sdk@447 sensor stSnsImx307_2l_Obj 13:45:15 < majestic> [ sdk] start_sdk@452 input_mode MIPI, WDR NONE 13:45:15 < majestic> [ sdk] start_sdk@459 dev [1920x1080]@200x20 25fps, RGGB 13:45:15 < majestic> [ sensor] try_to_load@19 trying to load /usr/lib/sensors/libsns_imx307_2l.so 13:45:15 < majestic> [ hal] hisi_free_mem_ex@755 Free MMZ mem before allocation: 32736KB 13:45:15 < majestic> [ sdk] dump_vb_configuration@2206 VB configuration: 13:45:15 < majestic> [ sdk] dump_vb_configuration@2216 [0]: 3110400 x 3 13:45:15 < majestic> [ sdk] dump_vb_configuration@2216 [1]: 3110400 x 1 13:45:15 < majestic> [ hal] hisi_free_mem_ex@755 Free MMZ mem after allocation: 20572KB 13:45:16 < majestic> [ sdk] init_sensor@2402 Sensor driver loaded 13:45:16 < majestic> [ sdk] init_vi@2859 SDK is in 'VI_ONLINE_VPSS_ONLINE' mode 13:45:16 < majestic> [ puts] linear mode 13:45:16 < majestic> [ puts] ============================================================== 13:45:16 < majestic> [ puts] =====Sony imx307_2l sensor 1080P30fps(MIPI) init success!===== 13:45:16 < majestic> [ puts] ============================================================== 13:45:16 < majestic> [json_cfg] config_get_enum_generic@107 Incorrect '50Hz' parameter specified for 'isp.antiFlicker' 13:45:16 < majestic> [json_cfg] config_get_enum_generic@107 Incorrect '50Hz' parameter specified for 'isp.antiFlicker' 13:45:16 < majestic> [ sdk] log_venc_chn@1255 H.264 1920x1080 25fps 4096Kbit 25 GOP 13:45:16 < majestic> [ sdk] create_vpss_chn@1002 new venc: 0 vpss_grp: 0, vpss_chn: 0 13:45:16 < iq_monitor> [ sdk] monitor_thread@344 Loading IQ profile /etc/sensors/iq/default.ini 13:45:16 < majestic> [ hal] show_blocks@686 allocated Rcn x 2=6160, Str x 1=1528, PInfo x 2=264, Node x 1=36 13:45:16 < majestic> [ sdk] start_video@1956 venc took 7988KB of MMZ [1518] 13:45:16 < majestic> [ osd] init_osd@106 OSD initialized 13:45:16 < majestic> [ sdk] start_sdk@533 OSD took 404KB of MMZ 13:45:16 < majestic> [image_tu] start_image_params_tuning@63 Image tuning task started 13:45:16 < majestic> [ sdk] start_sdk@559 HiSilicon SDK started 13:45:16 < majestic> [ hal] hisi_free_mem_ex@755 Free MMZ mem finally: 9132KB 13:45:16 < majestic> [ httpd] new_http_server@368 HTTP server started on :::80 13:45:16 < majestic> [ rtsp] rtsp_init@31 RTSP server started on port 554 13:45:16 < majestic> [ netip] netip_start@2055 NETIP server started on port 34567 13:45:18 < majestic> [ client] RtspClient_before@405 RTSP OPTIONS rtsp://10.12.119.212:554/stream=0 CSeq=1 from 10.12.119.119:46668 13:45:18 < majestic> [ client] RtspClient_before@405 RTSP OPTIONS rtsp://10.12.119.212:554/stream=0 CSeq=2 from 10.12.119.119:46668 13:45:18 < majestic> [ client] RtspClient_before@405 RTSP DESCRIBE rtsp://10.12.119.212:554/stream=0 CSeq=3 from 10.12.119.119:46668 13:45:18 < majestic> [ nal] NalCodec_describe@123 RTSP chn 0 sps_len 0 13:45:18 < majestic> [ nal] NalCodec_describe@126 RTSP chn 0 pps_len 0 13:45:18 < majestic> [ nal] NalCodec_describe@132 RTSP chn 0 profile_level_id 000000 13:45:18 < majestic> [ client] RtspClient_before@405 RTSP SETUP rtsp://10.12.119.212:554/stream=0/video CSeq=4 from 10.12.119.119:46668 13:45:18 < majestic> [ client] RtspClient_setup@315 TCP RTSP SETUP done, stream_id=0 from 10.12.119.119:46668 13:45:18 < majestic> [ client] RtspClient_before@405 RTSP PLAY rtsp://10.12.119.212:554/stream=0 CSeq=5 from 10.12.119.119:46668 13:45:19 < thread-pool-1> [image_co] set_image_luminance@58 Autoadjust image param cscAttrLumaField from 50 to 55 13:45:19 < majestic> [ client] RtspClient_before@405 RTSP TEARDOWN rtsp://10.12.119.212:554/stream=0 CSeq=6 from 10.12.119.119:46668 13:45:19 < majestic> [ client] RtspClient_on_closed_conn@654 RTSP connection closed. 13:45:19 < majestic> [ client] RtspClient_before@405 RTSP OPTIONS rtsp://10.12.119.212:554/stream=0 CSeq=1 from 10.12.119.119:46670 13:45:19 < majestic> [ client] RtspClient_before@405 RTSP OPTIONS rtsp://10.12.119.212:554/stream=0 CSeq=2 from 10.12.119.119:46670 13:45:19 < majestic> [ client] RtspClient_before@405 RTSP DESCRIBE rtsp://10.12.119.212:554/stream=0 CSeq=3 from 10.12.119.119:46670 13:45:19 < majestic> [ nal] NalCodec_describe@123 RTSP chn 0 sps_len 24 13:45:19 < majestic> [ nal] NalCodec_describe@126 RTSP chn 0 pps_len 3 13:45:19 < majestic> [ nal] NalCodec_describe@132 RTSP chn 0 profile_level_id 002a96 13:45:19 < majestic> [ client] RtspClient_before@405 RTSP SETUP rtsp://10.12.119.212:554/stream=0/video CSeq=4 from 10.12.119.119:46670 13:45:19 < majestic> [ client] RtspClient_setup@315 TCP RTSP SETUP done, stream_id=0 from 10.12.119.119:46670 13:45:19 < majestic> [ client] RtspClient_before@405 RTSP PLAY rtsp://10.12.119.212:554/stream=0 CSeq=5 from 10.12.119.119:46670 ╭─ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╭│ ││ ││ ╭╯ ╭│ ╭╯ ╭─────────╯ ───────────────────────────────────────────────────────────────────────╯─────╯

@tamerlan311
Copy link
Author

Лог с закоментированным isp.antiFlicker:
13:45:55 < majestic> [ main] main@125 Majestic Lite for HiSilicon, version HEAD+0c031d6, built on 2023-04-27 13:45:55 < majestic> [app_conf] load_config@89 Using /etc/majestic.yaml as main configuration 13:45:55 < majestic> [watchdog] watchdog_start@101 Detected Watchdog 13:45:55 < majestic> [watchdog] watchdog_start@121 Watchdog timeout set to 10 seconds 13:45:55 < majestic> [ sdk] start_sdk@415 Using /etc/sensors/imx307_i2c_2l_1080p.ini sensor configuration file 13:45:55 < majestic> [ sdk] start_sdk@424 App was built with MPP version: Hi3516EV200_MPP_V1.0.1.2.B030 Release 13:45:55 < majestic> [ sdk] start_sdk@427 Current MPP version: HI_VERSION=Hi3516EV200_MPP_V1.0.1.2 B030 Release 13:45:55 < majestic> [ sdk] start_sdk@447 sensor stSnsImx307_2l_Obj 13:45:55 < majestic> [ sdk] start_sdk@452 input_mode MIPI, WDR NONE 13:45:55 < majestic> [ sdk] start_sdk@459 dev [1920x1080]@200x20 25fps, RGGB 13:45:55 < majestic> [ sensor] try_to_load@19 trying to load /usr/lib/sensors/libsns_imx307_2l.so 13:45:55 < majestic> [ hal] hisi_free_mem_ex@755 Free MMZ mem before allocation: 32736KB 13:45:55 < majestic> [ sdk] dump_vb_configuration@2206 VB configuration: 13:45:55 < majestic> [ sdk] dump_vb_configuration@2216 [0]: 3110400 x 3 13:45:55 < majestic> [ sdk] dump_vb_configuration@2216 [1]: 3110400 x 1 13:45:55 < majestic> [ hal] hisi_free_mem_ex@755 Free MMZ mem after allocation: 20572KB 13:45:55 < majestic> [ sdk] init_sensor@2402 Sensor driver loaded 13:45:55 < majestic> [ sdk] init_vi@2859 SDK is in 'VI_ONLINE_VPSS_ONLINE' mode 13:45:55 < majestic> [ puts] linear mode 13:45:55 < majestic> [ puts] ============================================================== 13:45:55 < majestic> [ puts] =====Sony imx307_2l sensor 1080P30fps(MIPI) init success!===== 13:45:55 < majestic> [ puts] ============================================================== 13:45:55 < majestic> [ sdk] log_venc_chn@1255 H.264 1920x1080 25fps 4096Kbit 25 GOP 13:45:55 < majestic> [ sdk] create_vpss_chn@1002 new venc: 0 vpss_grp: 0, vpss_chn: 0 13:45:55 < iq_monitor> [ sdk] monitor_thread@344 Loading IQ profile /etc/sensors/iq/default.ini 13:45:55 < majestic> [ hal] show_blocks@686 allocated Rcn x 2=6160, Str x 1=1528, PInfo x 2=264, Node x 1=36 13:45:55 < majestic> [ sdk] start_video@1956 venc took 7988KB of MMZ [1518] 13:45:55 < majestic> [ osd] init_osd@106 OSD initialized 13:45:55 < majestic> [ sdk] start_sdk@533 OSD took 404KB of MMZ 13:45:55 < majestic> [image_tu] start_image_params_tuning@63 Image tuning task started 13:45:55 < majestic> [ sdk] start_sdk@559 HiSilicon SDK started 13:45:55 < majestic> [ hal] hisi_free_mem_ex@755 Free MMZ mem finally: 9132KB 13:45:55 < majestic> [ httpd] new_http_server@368 HTTP server started on :::80 13:45:55 < majestic> [ rtsp] rtsp_init@31 RTSP server started on port 554 13:45:55 < majestic> [ netip] netip_start@2055 NETIP server started on port 34567 13:45:59 < majestic> [ client] RtspClient_before@405 RTSP OPTIONS rtsp://10.12.119.212:554/stream=0 CSeq=1 from 10.12.119.119:44040 13:45:59 < majestic> [ client] RtspClient_before@405 RTSP OPTIONS rtsp://10.12.119.212:554/stream=0 CSeq=2 from 10.12.119.119:44040 13:45:59 < majestic> [ client] RtspClient_before@405 RTSP DESCRIBE rtsp://10.12.119.212:554/stream=0 CSeq=3 from 10.12.119.119:44040 13:45:59 < majestic> [ nal] NalCodec_describe@123 RTSP chn 0 sps_len 0 13:45:59 < majestic> [ nal] NalCodec_describe@126 RTSP chn 0 pps_len 0 13:45:59 < majestic> [ nal] NalCodec_describe@132 RTSP chn 0 profile_level_id 000000 13:45:59 < majestic> [ client] RtspClient_before@405 RTSP SETUP rtsp://10.12.119.212:554/stream=0/video CSeq=4 from 10.12.119.119:44040 13:45:59 < majestic> [ client] RtspClient_setup@315 TCP RTSP SETUP done, stream_id=0 from 10.12.119.119:44040 13:45:59 < majestic> [ client] RtspClient_before@405 RTSP PLAY rtsp://10.12.119.212:554/stream=0 CSeq=5 from 10.12.119.119:44040 13:45:59 < thread-pool-1> [image_co] set_image_contrast@54 Autoadjust image param cscAttrContrField from 50 to 90 13:46:00 < majestic> [ client] RtspClient_before@405 RTSP TEARDOWN rtsp://10.12.119.212:554/stream=0 CSeq=6 from 10.12.119.119:44040 13:46:00 < majestic> [ client] RtspClient_on_closed_conn@654 RTSP connection closed. 13:46:00 < majestic> [ client] RtspClient_before@405 RTSP OPTIONS rtsp://10.12.119.212:554/stream=0 CSeq=1 from 10.12.119.119:35942 13:46:00 < majestic> [ client] RtspClient_before@405 RTSP OPTIONS rtsp://10.12.119.212:554/stream=0 CSeq=2 from 10.12.119.119:35942 13:46:00 < majestic> [ client] RtspClient_before@405 RTSP DESCRIBE rtsp://10.12.119.212:554/stream=0 CSeq=3 from 10.12.119.119:35942 13:46:00 < majestic> [ nal] NalCodec_describe@123 RTSP chn 0 sps_len 24 13:46:00 < majestic> [ nal] NalCodec_describe@126 RTSP chn 0 pps_len 3 13:46:00 < majestic> [ nal] NalCodec_describe@132 RTSP chn 0 profile_level_id 002a96 13:46:00 < majestic> [ client] RtspClient_before@405 RTSP SETUP rtsp://10.12.119.212:554/stream=0/video CSeq=4 from 10.12.119.119:35942 13:46:00 < majestic> [ client] RtspClient_setup@315 TCP RTSP SETUP done, stream_id=0 from 10.12.119.119:35942 13:46:00 < majestic> [ client] RtspClient_before@405 RTSP PLAY rtsp://10.12.119.212:554/stream=0 CSeq=5 from 10.12.119.119:35942 13:46:00 < majestic> [ sdk] init_chn@1290 JPEG snapshot snapshot venc_chn 1 1920x1080 13:46:00 < majestic> [ sdk] start_jpeg@1372 jpeg_enc took 520KB of MMZ [510] 13:46:00 < majestic> [ jpeg] sdk_take_jpeg@84 take jpeg venc_chn(1) 1920x1080 q:50 13:46:01 < majestic> [ jpeg] VENC_SaveJpeg@265 JPEG 419131 bytes received from hardware encoder 13:46:01 < majestic> [ on_jpg] send_regular_jpeg@55 JPEG was sent to client 13:46:01 < majestic> [ jpeg] sdk_take_jpeg@84 take jpeg venc_chn(1) 960x528 q:50 13:46:01 < majestic> [ jpeg] VENC_SaveJpeg@265 JPEG 102156 bytes received from hardware encoder 13:46:01 < majestic> [ on_jpg] send_regular_jpeg@55 JPEG was sent to client 13:46:02 < majestic> [ jpeg] sdk_take_jpeg@84 take jpeg venc_chn(1) 960x528 q:50 13:46:02 < hi_logger> [ venc] VencSendPic2VgsByJob@2687 get VB fail,for Venc 1 Vgs scale 13:46:02 < hi_logger> [ venc] VencVgsCallbackByJob@1607 Venc: 1 Vgs finish this task error:3. 13:46:02 < hi_logger> [ venc] VencSendPic@1665 Venc:1 send pic to vgs failed!,u64PTS=196643826 13:46:02 < hi_logger> [ venc] VencSendPic2VgsByJob@2687 get VB fail,for Venc 1 Vgs scale 13:46:02 < hi_logger> [ venc] VencVgsCallbackByJob@1607 Venc: 1 Vgs finish this task error:3. 13:46:02 < hi_logger> [ venc] VencSendPic@1665 Venc:1 send pic to vgs failed!,u64PTS=196683877 13:46:02 < hi_logger> [ venc] VencSendPic2VgsByJob@2687 get VB fail,for Venc 1 Vgs scale 13:46:02 < hi_logger> [ venc] VencVgsCallbackByJob@1607 Venc: 1 Vgs finish this task error:3. 13:46:02 < hi_logger> [ venc] VencSendPic@1665 Venc:1 send pic to vgs failed!,u64PTS=196723908 ╭╮ ╭─╮ ││ │ │ ││ ╭─╯ │ ││ ╭─╯ ╰╮ ││ │ │ ││ ╭╯ ╰╮ ││ │ ╰╮ ││ │ ╰╮ ││ ╭╯ ╰───╮ ││ ╭╯ ╰╮ ││ │ │ ││ ╭╯ ╰╮ ╯│ ╭╯ │ │ ╭─╯╭───╮ ╰╮ ╰╮ ╭────╯ ╰╮ ╰╮ │ ╭─╯╯ ╰──╮ ╰╮ │ ╭──╯─╯ ╰────╮ ╰╮╭─╮ │ ╭──╯│ ╰───────╮ ╰╯ ╰───╮ ╰─────────╯ ╭╯ ╰─╮ ╰──╮ ╭──╯ ╰───╮ ╰─╮ ╭─╯ ╰────────╮╮ ╭─ ╭╮ ╭─╯ ╰─────────────╮ │ ╯╰──────╯ ╰────╮ ╰───────╯ ╰─────────────── 13:46:02 < majestic> [ jpeg] VENC_SaveJpeg@265 JPEG 102472 bytes received from hardware encoder 13:46:02 < majestic> [ on_jpg] send_regular_jpeg@55 JPEG was sent to client

@tamerlan311
Copy link
Author

Deffected
Fixed

@skilurius skilurius closed this as not planned Won't fix, can't repro, duplicate, stale Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants