Giter Club home page Giter Club logo

Comments (8)

widgetii avatar widgetii commented on June 20, 2024 1

В последней версии Majestic для настройки gopMode: smart добавлен настраиваемый параметр bgInvernal (минимальное значение равно количеству фреймов в GOP, по умолчанию 200 кадров, согласно документации должен быть кратен fps)

from majestic.

widgetii avatar widgetii commented on June 20, 2024

Покажите, пожалуйста, логи загрузки majestic с проблемными настройками:
killall majestic; sleep 3; majestic

from majestic.

oaidar avatar oaidar commented on June 20, 2024
11:36:15  <       majestic> [    main] main@123                      Majestic Lite for HiSilicon, version master+b5b5dfe, built on 2023-11-17
11:36:15  <       majestic> [app_conf] load_config@108               Using /etc/majestic.yaml as main configuration
11:36:15  <       majestic> [watchdog] watchdog_start@101            Detected Watchdog
11:36:15  <       majestic> [watchdog] watchdog_start@121            Watchdog timeout set to 10 seconds
11:36:15  <       majestic> [     sdk] try_sensor_config@3363        SENSOR=imx335
11:36:15  <       majestic> [     sdk] find_sensor_config@3326       matched sensor config: imx335_i2c_4M.ini
11:36:15  <       majestic> [     sdk] start_sdk@415                 Using /etc/sensors/imx335_i2c_4M.ini sensor configuration file
11:36:15  <       majestic> [     sdk] start_sdk@422                 App was built with MPP version: Gk7205V200_MPP_V1.0.1.0.B020 Release
11:36:15  <       majestic> [     sdk] start_sdk@427                 Current MPP version: VERSION=MPP_V1.0.1.0 B020 Release NoLog
11:36:15  <       majestic> [sensor_c] parse_sensor_config@936       Set custom sensor clock mode: 27MHz
11:36:15  <       majestic> [     sdk] start_sdk@447                 sensor stSnsImx335Obj
11:36:15  <       majestic> [     sdk] start_sdk@450                   input_mode MIPI, WDR NONE
11:36:15  <       majestic> [     sdk] start_sdk@455                   dev [2592x1520]@200x20 25fps, RGGB
11:36:15  <       majestic> [  sensor] try_to_load@19                trying to load /usr/lib/sensors/libsns_imx335.so
11:36:15  <       majestic> [     hal] hisi_free_mem_ex@755          Free MMZ mem before allocation: 98272KB
11:36:15  <       majestic> [     sdk] dump_vb_configuration@2224    VB configuration:
11:36:15  <       majestic> [     sdk] dump_vb_configuration@2227      [0]: 5909760 x 3
11:36:15  <       majestic> [     sdk] dump_vb_configuration@2227      [1]: 4924800 x 1
11:36:15  <       majestic> [     sdk] dump_vb_configuration@2227      [2]: 608256 x 1
11:36:15  <       majestic> [     hal] hisi_free_mem_ex@755          Free MMZ mem after allocation: 75536KB
11:36:15  <       majestic> [     sdk] init_sensor@2420              Sensor driver loaded
11:36:15  <       majestic> [     sdk] init_vi@2877                  SDK is in 'VI_OFFLINE_VPSS_ONLINE' mode
11:36:15  <       majestic> [    puts]                               linear mode
11:36:15  <       majestic> [    puts]                               binit false IMX335 i2c init
11:36:15  <       majestic> [    puts]                               -------Sony IMX335_init_5M_2592x1944_12bit_linear30 Initial OK!-------
11:36:16  <     iq_monitor> [     sdk] monitor_thread@344            Loading IQ profile /etc/sensors/iq/default.ini
11:36:16  <       majestic> [     sdk] log_venc_chn@1255             H.265 2592x1520 25fps 4096Kbit  25 GOP
11:36:16  <       majestic> [     sdk] create_vpss_chn@1000            new venc: 0   vpss_grp: 0,   vpss_chn: 0
11:36:16  <       majestic> [     hal] show_blocks@686                 allocated Ct x 1=40, Str x 1=2896, PInfo x 2=616, Rcn x 2=11752
11:36:16  <       majestic> [     sdk] start_video@1969                venc took 15304KB of MMZ [2885]
11:36:16  <       majestic> [     sdk] log_venc_chn@1255             H.265 704x576 15fps 1024Kbit  15 GOP
11:36:16  <       majestic> [     sdk] create_vpss_chn@1000            new venc: 1   vpss_grp: 0,   vpss_chn: 1
11:36:16  <       majestic> [     hal] HiSi_HAL_VENC_CreateChn@245   Cannot create VENC chn 1
11:36:16  <       majestic> [     hal] HiSi_HAL_VENC_CreateChn@245   ERR_VENC_ILLEGAL_PARAM: The parameter is invalid
11:36:16  <       majestic> [     sdk] start_sdk@559                 HiSilicon SDK started
11:36:16  <       majestic> [     hal] hisi_free_mem_ex@755          Free MMZ mem finally: 53924KB
11:36:16  <       majestic> [   httpd] new_http_server@373           HTTP server started on :::80
11:36:16  <       majestic> [    rtsp] rtsp_init@31                  RTSP server started on port 554
11:36:55  <       majestic> [  client] RtspClient_before@402         RTSP OPTIONS rtsp://192.168.0.183:554/stream=1 CSeq=1 from 192.168.0.151:59046
11:36:55  <       majestic> [  client] RtspClient_before@402         RTSP OPTIONS rtsp://192.168.0.183:554/stream=1 CSeq=2 from 192.168.0.151:59046
11:36:55  <       majestic> [  client] RtspClient_before@402         RTSP DESCRIBE rtsp://192.168.0.183:554/stream=1 CSeq=3 from 192.168.0.151:59046
11:36:55  <       majestic> [     nal] NalCodec_describe@127         RTSP chn 1 sps_len 0
11:36:55  <       majestic> [     nal] NalCodec_describe@130         RTSP chn 1 pps_len 0
11:36:55  <       majestic> [     nal] NalCodec_describe@138         RTSP chn 1 profile_level_id 000000
11:36:55  <       majestic> [  client] RtspClient_before@402         RTSP SETUP rtsp://192.168.0.183:554/stream=1/video CSeq=4 from 192.168.0.151:59046
11:36:55  <       majestic> [  client] RtspClient_setup@313          TCP RTSP SETUP done, stream_id=1 from 192.168.0.151:59046
11:36:55  <       majestic> [  client] RtspClient_before@402         RTSP PLAY rtsp://192.168.0.183:554/stream=1 CSeq=5 from 192.168.0.151:59046

from majestic.

widgetii avatar widgetii commented on June 20, 2024

Запустил конфиг на ev300 с расширенным логированием:

18:57:49  <      hi_logger> [      rc] RcCheckGopAttr@1257           BG interval 200 err,should be the multiple of gop:15. 
18:57:49  <      hi_logger> [      rc] RcCheckAttr@1452              RC check gop attr err.
18:57:49  <      hi_logger> [      rc] RC_CreateChn@2482             chn 1 user attr err. 
18:57:49  <      hi_logger> [    venc] VencCreateChnByType@4196      rc create chn error
18:57:49  <      hi_logger> [    venc] VencCreateChn@4657            chn:1 Creat chnl failed!!
18:57:49  <       majestic> [     hal] HiSi_HAL_VENC_CreateChn@247   Cannot create VENC chn 1
18:57:49  <       majestic> [     hal] HiSi_HAL_VENC_CreateChn@247   ERR_VENC_ILLEGAL_PARAM: The parameter is invalid

Пока самым правильным решением является закомменировать у video1 параметр gopMode: smart или оставить его и дополнительно выставить fps в 10 или 20 кадров

from majestic.

oaidar avatar oaidar commented on June 20, 2024

Если выставить gopMode: smart у основного потока и не выставлять такой же параметр у дополнительного потока, то перестают работать скрины (http://192.168.0.117:85/image.jpg). Но стрим есть)
* при включенной детекции

from majestic.

widgetii avatar widgetii commented on June 20, 2024

не выставлять такой же параметр у дополнительного потока, то перестают работать скрины

Логи? Возможно просто памяти на все не хватает?

from majestic.

oaidar avatar oaidar commented on June 20, 2024
Nov 24 16:11:17 openipc-ufanet user.debug majestic[1010]: JPEG snapshot snapshot venc_chn 3  1920x1080
Nov 24 16:11:17 openipc-ufanet user.err majestic[1010]: Cannot create VENC chn 3
Nov 24 16:11:17 openipc-ufanet user.err majestic[1010]: ERR_VENC_NOMEM: The memory fails to be allocated due to some causes such as insufficient system memory
Nov 24 16:11:17 openipc-ufanet user.err majestic[1010]: Empty data has been returned for JPEG request

from majestic.

widgetii avatar widgetii commented on June 20, 2024

Да, не хватает памяти ERR_VENC_NOMEM для JPEG канала

from majestic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.