Comments (8)
В последней версии Majestic для настройки gopMode: smart
добавлен настраиваемый параметр bgInvernal
(минимальное значение равно количеству фреймов в GOP, по умолчанию 200 кадров, согласно документации должен быть кратен fps)
from majestic.
Покажите, пожалуйста, логи загрузки majestic с проблемными настройками:
killall majestic; sleep 3; majestic
from majestic.
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.
Запустил конфиг на 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.
Если выставить gopMode: smart
у основного потока и не выставлять такой же параметр у дополнительного потока, то перестают работать скрины (http://192.168.0.117:85/image.jpg). Но стрим есть)
* при включенной детекции
from majestic.
не выставлять такой же параметр у дополнительного потока, то перестают работать скрины
Логи? Возможно просто памяти на все не хватает?
from majestic.
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.
Да, не хватает памяти ERR_VENC_NOMEM
для JPEG канала
from majestic.
Related Issues (20)
- Recording always in fast motion HOT 1
- SigmaStar SSC335: Majestic - Image - Flip horizontally or vertically does not work HOT 2
- bitrate setting not respected at startup on hi3518ev100 + ov9712 HOT 2
- exposure overblown on hi3518ev100 + ov9712 HOT 4
- PQTools binary profile not working HOT 1
- Text format IQ profiles not working HOT 4
- UDP/TCP Socket leaks after majestic config reload HOT 1
- Video bitrate setting stuck to 4096 on first start, loaded correctly after reload config HOT 2
- Non-monotonic DTS in output stream
- Broken audio in NETIP/ONVIF with AAC codec
- Camera reboots by watchdog
- RTSP server fails to start HOT 2
- gk7205v300 + imx335 /usr/sbin/motion.sh not executed HOT 7
- Changing the Severity of logging don't take effect to sending JPEG. HOT 1
- Exposure no more work? HOT 2
- Segfault when streaming from h264 endpoint
- RTMP reconnection and timeout settings HOT 2
- Can you add sensor IMX335 to hi3516dv100
- RTSP client connection causes segmentation fault on XM530 HOT 7
- gk7205v300 + imx 355 - image issue "Autoadjust image param scAttrContrField"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from majestic.