Coder Social home page Coder Social logo

majestic's Introduction

Majestic Community edition support

Information

Majestic project internally uses smolrtsp project. Contribute there to improve majestic.

Issues

Feel free to open an issue and provide us information to reproduce the bug

Integration

RTP video stream could be sent via local unix socket to deliver data to custom clouds and CV applications. See example as reference.

majestic's People

Contributors

widgetii avatar ystinia avatar yuukihogo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

majestic's Issues

Majestic падает, если перевести подсветку в режим ШИМ

  • Camera board id: goke7205v200
  • OpenIPC version: master+8931ae1, 2021-12-20
  • installation method: sysupgrade -k -r -n
  • modified majestic.yaml: yes

Issue description

Majestic падает, если перевести подсветку в режим ШИМ командой:

 devmem 0x100c0010 32 0x1001

То есть подсветка отключена в 0

Steps to reproduce

  1. Воспроизводиться только в темное время суток, при отсутствии снега))
  2. Штатно загрузиться
  3. Подсветка должна быть включена
  4. Подключиться к консоли по SSH
  5. Ввести команду: devmem 0x100c0010 32 0x1001
  6. 3-5 сек - замирает картинка, через 10 крашится majestic

majestic.yaml.txt

kmsg.log

logread.log

ONVIF Device Manager discovery

Used hardware & software versions:

firmware:

  u-boot: "2016.11 (Oct 29 2018 - 16:06:38)"
  kernel: "4.9.37 (Mon May 3 14:10:21 UTC 2021)"
  toolchain: gcc version 7.5.0 (Buildroot 2020.02-ga15ab4b)
  sdk: "Hi3516EV200_MPP_V1.0.1.2 B030 Release (Oct 18 2019, 18:21:00)"
  god-app: /usr/bin/majestic (version master+5a756fb)

ONVIF Device Manager (https://sourceforge.net/projects/onvifdm/files/onvifdm-v2.2.250/)

All stock camera's show up when i start the application. The one i am testing with does not show up after flashing OpenIPC

config used:

system:
  # ERROR, WARN, INFO, DEBUG or TRACE
  logLevel: TRACE

  # set the value to hardcode sensor configuration, otherwise
  # it will be inferred from SENSOR environment variable
  #sensorConfig: /etc/sensors/imx222_1080p_line.ini

  # set custom directory for sensor configs
  #sensorConfigDir: /etc/sensors

  webPort: 8888

  # testing, beta, stable, none
  updateChannel: stable

  # maximum buffer size of each client in Kbytes
  buffer: 1024

isp:
  # 'normal' mode or memory 'reduction'
  #memMode: normal

  alignWidth: 64

  # 4 for small memory systems and 10 and more for performant SoCs
  #blkCnt: 4
  # in Kbytes
  #threadStackSize: 16

image:
  mirror: false

  # turn image upside down
  flip: false

  # auto or 1-99 (50)
  contrast: auto

  hue: 50
  saturation: 50

  # auto or 1-99 (50)
  luminance: auto

osd:
  enabled: false
  font: /usr/lib/fonts/fonts.bin

  # add '%f' to show milliseconds (consumes more resources)
  template: "%a %e %B %Y %H:%M:%S %Z"

  # positive values count from left and top, negative ones from right and bottom
  #posX: -100
  #posY: -100

nightMode:
  enabled: false
  irSensorPin: 62
  irSensorPinInvert: false
  irCutPin1: 1
  irCutPin2: 2

  # switch delay in us on IRcut filter pins. WARNING!
  # a very long delay can damage the IRcut filter!!!
  pinSwitchDelayUs: 150

records:
  enabled: false
  path: /sdcard/%Y/%m/%d/%H.mp4

  # in %
  maxUsage: 95

video0:
  enabled: true
  #codec: h264
  # common values are 1920x1080, 1280x720, 704x576
  #size: 1920x1080
  # Kbits per second
  #fps: 25
  #bitrate: 4096
  # send I-frame each 1 second
  #gopSize: 1

video1:
  enabled: false
  #codec: h264
  # common values are 1920x1080, 1280x720, 704x576
  #size: 704x576
  # Kbits per second
  #fps: 15
  #bitrate: 4096
  #rcMode: avbr
  # send I-frame each 1 second
  #gopSize: 1
  # normal, dual or smart
  #gopMode: normal

jpeg:
  enabled: true
  #size: 1920x1080
  # [1..99] jpeg quality
  #qfactor: 50
  # make additional step to transform snapshot to Progressive JPEG
  #toprogressive: false

mjpeg:
  size: 640x360
  fps: 5

  # Kbits per second
  bitrate: 1024

audio:
  enabled: false
  volume: auto
  srate: 8000

rtsp:
  enabled: true
  port: 554

motionDetect:
  enabled: false
  visualize: true
  debug: true

ipeye:
  enabled: false

netip:
  enabled: false
  user: admin

  # 12345 password
  password: 6V0Y4HLF
  port: 34567
  snapshots: true

onvif:
  enabled: true

raw:
  # slow (no more than 1 snapshot at a time)
  # fast (supports snapshot series)
  # none (disabled)
  mode: slow

watchdog:
  enabled: true
  timeout: 10

Add manual set exposition

Add parameter in config file for manual set exposition. SlowShutter is not enough.
For example:

isp:
  # Set exposition in ms, from 0.1 to 30000 or auto
  exposition: 40

or:

isp:
  # Set exposition in seconds, from 0.0001 to 30 or auto
  exposition: 0.04

Adding an ACL to the configuration file

Quite often it is necessary to restrict access to the camera's video resources by IP addresses.
Please add the ACL section to the configuration file and check when connecting from which addresses connections come and are allowed.
This is a good security feature.
By default, you can allow everything, and in minimalism, allow access only from localhost, i.e. 127.0.0.1

Thanks a lot.

Switcam HS-303 - IR filter is controlled by a single gpio64

  • Camera board id: Rostelecom Switcam HS-303
  • OpenIPC version: v1.0 OpenWrt based
  • Commit: 8328d61
  • Branch: master

There is also no way to specify in the config that the IR filter is controlled by a single gpio64

Example of manual activation and deactivation IR filter from the console:

echo 1 >/sys/class/gpio/gpio64/value
echo 0 >/sys/class/gpio/gpio64/value

Also please see /usr/sbin/ircut sctipt and calling it from a file /etc/crontabs/root

Предложение по mjpeg

Здравствуйте.

3516ev200
HiSilicon, version master+6fbbadd, built on 2021-10-08

  1. Как я понял отключить mjpeg невозможно. Предлагаю добавить отключение mjpeg через "enabled: false"

  2. Я заметил что в wiki на странице https://github.com/OpenIPC/openipc-2.1/wiki/majestic_streamer указано, что mjpeg работает через url http://10.1.1.102/mjpeg.html, но у меня не заработало через этот урл.
    Через http://10.1.1.102/mjpeg работает.

Перезагрузки камеры

Прошил камеру 000529E9
Перезагружается 1-2 раза за 20 минут. Даже при отключеной настройке watchdog
прошил камеру 000529B2
Перестает работать сначала поток через netip(через 40 минут) и камера перезагружается.

Где и как собрать логи, чтобы предоставить вам для выявления причин перезагрузки?

Также обратил внимание на сенсор SoC temp.
При включеной подсветке и долгой работе камеры, данная температура поднимается до 116 градусов. Это нормальная температура для работы камеры? при условии что в помещении примерно 25 градусов.

The parameters for getting the specified image size do not work

The parameters for getting the specified image size do not work

16:02:15 [  evhttp] on_gen@491                   on request send /image.jpg?width=640&height=360 for 172.17.32.18
16:02:15 [   hisdk] take_jpeg@1466               take jpeg venc_chn(1)   640x360  q:50
16:02:15 [   hisdk] take_jpeg@1520               Cannot set VENC chn 1 attr
16:02:15 [   hisdk] take_jpeg@1520               ERR_VENC_NOT_PERM (0xA0088009): The operation, for example, modifying static parameters, is forbidden
16:02:15 [  evhttp] on_jpeg_data_cb@348          Taking JPEG is in progress, returning from on_jpeg_data_cb
16:02:17 [   jpege] jpege_check_attr@1243        jpege_check_attr: static param change refused!
16:02:17 [    venc] VencCheckChnAttr@8767        check chn attr err s32Ret:0xa00b8009!Venc:1
16:02:17 [    venc] VencSetChnAttr@9616          venc check Parm Failed

Build Time Information

Please add to the --version command the output of information about the build time of the program, as done in the logo header at startup. At the moment, the output of the version contains code only for machines, but not for people.
Thanks !

root@ipcam:~# majestic --version
master+0fdae09

Majestic version master+0fdae09, built on 2021-05-11

Игнорируются настройки FPS

Здравствуйте.
3516ev200
majestic master+6fbbadd, built on 2021-10-08

Игнорируются настройки FPS.
Пример, поток 0 - включён, фпс 15
поток 1 - выключен.
Поток 0 выдаёт максимальный фпс в 25

hi3516ev300

Required information

  • Camera board id: hi3516ev300
  • OpenIPC version: 2.1
  • Commit:
  • Branch:
  • Tag:
  • installation method: (by manual https://github.com/OpenIPC/openipc-2.1/wiki/install_hisi or another)
  • modified majestic.yaml: yes
  • cat /dev/kmsg
  • killall majestic
    ulimit -c unlimited
    echo /tmp/%e.%p.%s.%t.core > /proc/sys/kernel/core_pattern
    majestic
    Core dump file from /tmp/ , e.g. /tmp/majestic.806.11.1619707881.core

Issue description

  1. Не работает mirror - при включении в majestic.yaml вообще нет видеопотока
  2. Не работает ipeye при отсутствии соединения eth0 (соединение wifi установлено) при старте majestic ошибка: IPEYE: Unable generate TID, при установленном соединении eth0 все нормально, наличие физического соединения eth0 без доступа в сеть проблему не решает.

Expectations

Steps to reproduce

  1. Step one
  2. Step two
  3. Step three

Information to attach

  • Any relevant log output (logread -f)
  • majestic.yaml configuration (cat /etc/majestic.yaml)

Скачивается DNG файл неверного размера

Required information

  • Camera board id: IVG-85HG50PYA-ST (hi3516ev300 + imx335)
  • OpenIPC version: 2.2.02.11-lite, master+7230fa3, 2022-02-11
  • installation method: sysupgrade -k -r -n
  • modified majestic.yaml: yes

Issue description

Скачивается DNG файл неверного размера (462 байта), если выбрать файл конфигурации сенсора: /etc/sensors/5M_imx335.ini

Expectations

Ожидалось получить DNG файл корректного размера, как и в случае , если выбран файл конфигурации сенсора : /etc/sensors/imx335_i2c_4M.ini

Steps to reproduce

  1. Система чистая, обновлена до последней версии (OpenIPC version: 2.2.02.11-lite, master+7230fa3, 2022-02-11)
  2. Через веб-интерфейс изменить настройки маджестика: majestic settings -> isp -> path to sensor configuration file -> [/etc/sensors/5M_imx335.ini]
  3. перегрузить камеру
  4. В браузере ввести: http://ip_address/image.dng

kmsg.log

majestic.log

majestic.yaml.log

image-47.dng.log

majestic failed after attempt to connect from Onvifer

camera: IVG85HG50PYA-S
openipc.hi3516ev300-br.tgz
Commit: d9d0626
Branch: master
Tag: latest

Clean install by this man: https://github.com/OpenIPC/openipc-2.1/wiki/install_hisi
default /etc/majestic.yaml
steps to reproduce:

  1. open in browser http://ip:8888/
    video runs good
  2. open stream
    $ mpv rtsp://ip:554/stream=0
    video runs good
  3. open same rtsp://ip:554/stream=0 in android app Onvifer 15.27 (manual settings with transport protocol: TCP)
    Fail

what happened:
majestic gone away (pid=781)

# cat /dev/kmsg
3,181,132920576,-;mmz_userdev:mmz_userdev_release: 
0,182,132920598,-;MMB LEAK(pid=781): 0x45B80000, 249856 bytes, 'AENC(0)StrmBuf'
4,183,132920604,-;mmz_userdev:mmz_userdev_release: 
0,184,132920609,-;mmb<0x45b80000> mapped to userspace 0xb5d32000 will be unmaped!
3,185,132920667,-;mmz_userdev:mmz_userdev_release: 
0,186,132920673,-;MMB LEAK(pid=781): 0x420D4000, 16384 bytes, 'AENC(0) CirBuf'
4,187,132920675,-;mmz_userdev:mmz_userdev_release: 
0,188,132920679,-;mmb<0x420d4000> mapped to userspace 0xb5d2e000 will be unmaped!

Expectation:
WDT should up majestic.
During boot it was initialized, but seems don't work.

Hisilicon Watchdog Timer: 0.01 initialized. default_margin=60 sec (nodeamon= 0)

Reboot helps until Onvifer 15.27 will be launched.

Also, after reboot majestic comes up and running and after single connection from Onvifer 15.27 same gone away.

Request to add GPIO for sound speaker control

When conducting experiments with video cameras that have sound speaker, it turned out that you need to be able to control an additional GPIO (activates the low frequency amplifier).
Please add this to the functionality of the next release.

audio:           
  enabled: true                
  volume: auto                                              
  srate: 8000     
  SpeakerPin: 8                       <= Add this
  SpeakerPinInvert: false             <= and this, please

[Feature request] Motion detection regions + sensitivity option

хотелось бы иметь возможность указывать регионы для motion detection - игнорировать события вне регионов. пускай даже набор прямоугольников, заданных координатами х1, y1, x2, y2 в конфиге.

и хотелось бы иметь возможность регулировать чувствительность motion detection - возможно минимальный размер области детекта, возможно - threshold для отсечения помех по контрасту (или даже производное первого и второго еще добавить - чтобы большие малоконтрастные регионы движения не отсекались, но отсекались небольшие по размерам), возможно - кол-во кадров на которых присутствует движение для ивента. думаю, в имеющийся код добавить будет не очень сложно, в то же время - даст возможность подстроить чувствительность чтобы не срабатывала на мошку/пыль (минимальный размер области), шумы матрицы/пятна от света фонарей через качающиеся ветки (threshold по контрасту), пролетающих крупных насекомых/птиц в кадре (кол-во кадров на которых присутствует движение)

[Feature request] Авторизация по протоколу onvif

Хотелось бы иметь возможность указать что требуется авторизауия при подключении по протоколу onvif и rtsp для безопасной работы камер открытых в интернет для подключения к облокам.

Switcam HS-303 - not work netip, onvif, rtsp

  • Camera board id: Rostelecom Switcam HS-303
  • OpenIPC version: v1.0 OpenWrt based
  • Commit: 8328d61
  • Branch: master

The camera has two interfaces, namely eth0 and wlan0
Work in the local network is always carried out through the wlan0 interface
The video in the browser works fine, thank you

Network problems, maybe it's the same thing, the services are enabled in the config

  • no response on netip
  • no response on onvif
  • no response on rtsp

вероятно не работает DRC на 3518ev200

визуально не видно разницы между drc 1 и 800 ни в сумерках/ночью, ни днем

majestic 2.2.05.07-lite, билд мастер ветки с небольшими правками (убраны модули аудиокодека, добавлен wifi + hostapd) https://github.com/nitr0man/firmware/tree/16d006e7addf86e3d78e40e9348014264e825cbe

плата juan 18EV200_V205P (3518ev200 + sc1145)

конфиг majestic:

system:
  logLevel: TRACE
  updateChannel: stable
  buffer: 1024
  webPort: 80
isp:
  blkCnt: 10
  exposure: auto
  slowShutter: high
  antiFlicker: 50Hz
  memMode: normal
  rawMode: fast
  drc: 800
image:
  mirror: false
  flip: false
  rotate: 90
  contrast: auto
  hue: 50
  saturation: 50
  luminance: auto
osd:
  enabled: true
  font: /usr/share/fonts/truetype/UbuntuMono-Regular.ttf
  template: "%Y-%m-%d %H:%M:%S %Z"
  posX: 2
  posY: 2
nightMode:
  enabled: true
  irSensorPin: 62
  irCutPin1: 65
  irCutPin2: 64
  pinSwitchDelayUs: 150
  nightAPI: false
  irSensorPinInvert: true
records:
  enabled: false
  path: /mnt/mmc/%Y/%m/%d/%H.mp4
  maxUsage: 95
video0:
  enabled: true
  codec: h264
  gopMode: smart
  rcMode: avbr
  bitrate: 2000
  gopSize: 3
video1:
  enabled: true
  codec: h264
  gopMode: smart
  fps: 15
  rcMode: avbr
  gopSize: 1
  bitrate: 512
jpeg:
  enabled: true
  toProgressive: false
mjpeg:
  size: 640x360
  fps: 5
  bitrate: 1024
audio:
  enabled: false
  volume: auto
  srate: 8000
  codec: mp3
  outputEnabled: false
rtsp:
  enabled: true
  port: 554
hls:
  enabled: true
youtube:
  enabled: false
motionDetect:
  enabled: true
  profile: outdoor
  visualize: true
  debug: false
ipeye:
  enabled: false
netip:
  enabled: true
  user: admin
  password: 6V0Y4HLF
  port: 34567
  snapshots: true
  ignore_set_time: false
  ignore: false
onvif:
  enabled: true
raw:
  mode: slow
  enabled: false
watchdog:
  enabled: true
  timeout: 10
cloud:
  enabled: false

Подключение камеры по RTSP к облаку ipeye, нет звука

Hi3516Ev300 +IMX335/SC4236/SC2239
000529B2
majestic master+bb20aa0, 2022-02-10

При подключении rtsp потока в облако ipeye, нет звука. В настройках облака нет возможности указать отдельный поток для audio
При подключении других камер или этой же камервы на стоковой прошивке, звук есть.

switcam-hs303 Проблема с записью видео на SD карту

Добрый день.

Required information

  1. switcam-hs303. s/n 090000030832
  2. OpenIPC.org for Switcam HS303 v1 | 2021.01.24
  3. installation method: (by manual https://github.com/OpenIPC/openipc-2.1/wiki/install_hisi
  4. Файл majestic.yaml модифицирован.
    лог терминала.txt
    содержание конф файла.txt

Использую вашу прошивку в камере switcam-hs303.

Issue description

Столкнулся с проблемой - отсутствие записи на SD карту.
#Steps to reproduce

  1. Поправил конфиг файл : majestic.yaml . Изменил false на true в параметре records:
    enabled: true
    path: /sdcard/%Y/%m/%d/%H.mp4/

Expectations

Запись видео на sd карту

Результат

В логах пишет - daemon.info majestic: 10:12:02 ERROR [storage] save_mp4_to_storage@232: mp4: cannot write
Пробовал разные SD карты. Прилагаю Лог файл и Конфиг.
лог терминала.txt
содержание конф файла.txt

некорректная запись

Required information

  • Camera board id: hi3516ev300

  • OpenIPC version: 2.1

  • Commit: Majestic Free for HiSilicon, version master+6fbbadd, built on 2021-10-08

  • Branch:

  • Tag:

  • installation method: (by manual https://github.com/OpenIPC/openipc-2.1/wiki/install_hisi or another)

  • modified majestic.yaml: yes

  • .........

  • records:
    enabled: true
    path: /mnt/mmc/records/%Y/%m/%d/%H.mp4

in %

maxUsage: 95

video0:
enabled: true
codec: h264

  • .........

  • cat /dev/kmsg

  • 6,0,0,-;Booting Linux on physical CPU 0x0
    5,1,0,-;Linux version 4.9.37 (swit@zWolf) (gcc version 7.5.0 (Buildroot -g9f51889-dirty) ) #1 Wed Oct 13 17:45:02 MSK 2021
    6,2,0,-;CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
    6,3,0,-;CPU: div instructions available: patching division code
    6,4,0,-;CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    6,5,0,-;OF: fdt:Machine model: Hisilicon HI3516EV300 DEMO Board
    6,6,0,-;cma: Reserved 96 MiB at 0x42000000
    6,7,0,-;Memory policy: Data cache writeback
    7,8,0,-;On node 0 totalpages: 32768
    7,9,0,-;free_area_init_node: node 0, pgdat c04dfcac, node_mem_map c1eca000
    7,10,0,-; Normal zone: 256 pages used for memmap
    7,11,0,-; Normal zone: 0 pages reserved
    7,12,0,-; Normal zone: 32768 pages, LIFO batch:7
    6,13,0,-;CPU: All CPU(s) started in SVC mode.
    7,14,0,-;pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    7,15,0,-;pcpu-alloc: [0] 0
    6,16,0,-;Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
    5,17,0,-;Kernel command line: mem=128M console=ttyAMA0,115200 panic=20 rootfstype=squashfs root=/dev/mtdblock3 init=/init mtdparts=hi_sfc:256k(boot),64k(env),2048k(kernel),5120k(rootfs),-(rootfs_data) mmz_allocator=cma mmz=anonymous,0,0x42000000,96M
    6,18,0,-;PID hash table entries: 512 (order: -1, 2048 bytes)
    6,19,0,-;Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    6,20,0,-;Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    6,21,0,-;Memory: 26176K/131072K available (3809K kernel code, 129K rwdata, 840K rodata, 176K init, 179K bss, 6592K reserved, 98304K cma-reserved)
    5,22,0,-;Virtual kernel memory layout:\x0a vector : 0xffff0000 - 0xffff1000 ( 4 kB)\x0a fixmap : 0xffc00000 - 0xfff00000 (3072 kB)\x0a vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)\x0a lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)\x0a modules : 0xbf000000 - 0xc0000000 ( 16 MB)\x0a .text : 0xc0008000 - 0xc03c0660 (3810 kB)\x0a .init : 0xc0494000 - 0xc04c0000 ( 176 kB)\x0a .data : 0xc04c0000 - 0xc04e04a0 ( 130 kB)\x0a .bss : 0xc04e2000 - 0xc050eefc ( 180 kB)
    6,23,0,-;SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    6,24,0,-;NR_IRQS:16 nr_irqs:16 16
    4,25,0,-;Gic dist init...
    6,26,0,-;arm_arch_timer: Architected cp15 timer(s) running at 50.00MHz (phys).
    6,27,0,-;clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb8812736b, max_idle_ns: 440795202655 ns
    6,28,6,-;sched_clock: 56 bits at 50MHz, resolution 20ns, wraps every 4398046511100ns
    6,29,14,-;Switching to timer-based delay loop, resolution 20ns
    6,30,123,-;clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
    6,31,336,-;Console: colour dummy device 80x30
    6,32,354,-;Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=500000)
    6,33,364,-;pid_max: default: 32768 minimum: 301
    6,34,441,-;Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    6,35,450,-;Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    6,36,889,-;CPU: Testing write buffer coherency: ok
    6,37,1097,-;Setting up static identity map for 0x40008200 - 0x40008258
    6,38,1911,-;devtmpfs: initialized
    6,39,5436,-;VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
    6,40,5656,-;clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    6,41,5675,-;futex hash table entries: 256 (order: -1, 3072 bytes)
    6,42,8888,-;pinctrl core: initialized pinctrl subsystem
    6,43,9222,-;NET: Registered protocol family 16
    6,44,9521,-;DMA: preallocated 256 KiB pool for atomic coherent allocations
    6,45,10650,-;Serial: AMBA PL011 UART driver
    6,46,12109,-;12040000.uart: ttyAMA0 at MMIO 0x12040000 (irq = 20, base_baud = 0) is a PL011 rev2
    6,47,280110,-;console [ttyAMA0] enabled
    6,48,283191,-;12041000.uart: ttyAMA1 at MMIO 0x12041000 (irq = 21, base_baud = 0) is a PL011 rev2
    6,49,312103,-;ssp-pl022 12070000.spi: ARM PL022 driver, device ID: 0x00800022
    SUBSYSTEM=amba
    DEVICE=+amba:12070000.spi
    6,50,317790,-;ssp-pl022 12070000.spi: mapped registers from 0x12070000 to c886f000
    SUBSYSTEM=amba
    DEVICE=+amba:12070000.spi
    6,51,324844,-;ssp-pl022 12071000.spi: ARM PL022 driver, device ID: 0x00800022
    SUBSYSTEM=amba
    DEVICE=+amba:12071000.spi
    6,52,330541,-;ssp-pl022 12071000.spi: mapped registers from 0x12071000 to c8873000
    SUBSYSTEM=amba
    DEVICE=+amba:12071000.spi
    6,53,338185,-;usbcore: registered new interface driver usbfs
    6,54,342426,-;usbcore: registered new interface driver hub
    6,55,346475,-;usbcore: registered new device driver usb
    6,56,351115,-;clocksource: Switched to clocksource arch_sys_counter
    6,57,377878,-;NET: Registered protocol family 2
    6,58,381531,-;TCP established hash table entries: 1024 (order: 0, 4096 bytes)
    6,59,387198,-;TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
    6,60,392275,-;TCP: Hash tables configured (established 1024 bind 1024)
    6,61,397372,-;UDP hash table entries: 256 (order: 0, 4096 bytes)
    6,62,401919,-;UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    6,63,406990,-;NET: Registered protocol family 1
    6,64,410772,-;RPC: Registered named UNIX socket transport module.
    6,65,415419,-;RPC: Registered udp transport module.
    6,66,418810,-;RPC: Registered tcp transport module.
    6,67,422210,-;RPC: Registered tcp NFSv4.1 backchannel transport module.
    6,68,428832,-;workingset: timestamp_bits=30 max_order=15 bucket_order=0
    6,69,442255,-;squashfs: version 4.0 (2009/01/31) Phillip Lougher
    6,70,450516,-;jffs2: version 2.2 (NAND) (ZLIB) (RTIME) (c) 2001-2006 Red Hat, Inc.
    6,71,458985,-;Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
    6,72,465109,-;io scheduler noop registered
    6,73,467720,-;io scheduler deadline registered (default)
    6,74,473603,-;pl061_gpio 120b0000.gpio_chip: PL061 GPIO chip @0x120b0000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b0000.gpio_chip
    6,75,480846,-;pl061_gpio 120b1000.gpio_chip: PL061 GPIO chip @0x120b1000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b1000.gpio_chip
    6,76,488157,-;pl061_gpio 120b2000.gpio_chip: PL061 GPIO chip @0x120b2000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b2000.gpio_chip
    6,77,495426,-;pl061_gpio 120b3000.gpio_chip: PL061 GPIO chip @0x120b3000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b3000.gpio_chip
    6,78,502705,-;pl061_gpio 120b4000.gpio_chip: PL061 GPIO chip @0x120b4000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b4000.gpio_chip
    6,79,509952,-;pl061_gpio 120b5000.gpio_chip: PL061 GPIO chip @0x120b5000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b5000.gpio_chip
    6,80,517242,-;pl061_gpio 120b6000.gpio_chip: PL061 GPIO chip @0x120b6000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b6000.gpio_chip
    6,81,524555,-;pl061_gpio 120b7000.gpio_chip: PL061 GPIO chip @0x120b7000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b7000.gpio_chip
    6,82,531798,-;pl061_gpio 120b8000.gpio_chip: PL061 GPIO chip @0x120b8000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b8000.gpio_chip
    6,83,538982,-;pl061_gpio 120b9000.gpio_chip: PL061 GPIO chip @0x120b9000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b9000.gpio_chip
    6,84,562057,-;brd: module loaded
    6,85,564768,-;hisi-sfc hisi_spi_nor.0: SPI Nor ID Table Version 1.2
    SUBSYSTEM=platform
    DEVICE=+platform:hisi_spi_nor.0
    3,86,569571,-;hisi-sfc hisi_spi_nor.0: The ID: 0xa1 isn't in the BP table, Current device can't not protect
    SUBSYSTEM=platform
    DEVICE=+platform:hisi_spi_nor.0
    4,87,577860,-;@spi_nor_scan(), no "m25p,fast-read".
    4,88,581261,-;@spi_nor_scan(), modes->rd_modes:0xd.
    6,89,584660,-;hisi-sfc hisi_spi_nor.0: (Fast) Read: opcode=BBh, protocol=122, mode=8, wait=0
    SUBSYSTEM=platform
    DEVICE=+platform:hisi_spi_nor.0
    6,90,591711,-;hisi-sfc hisi_spi_nor.0: nor->read_opcode[3: Read; 0B: Fast Read; 3B: Dual; BB: Dual IO; 6B: Quad; EB: Quad IO]: 0xbb.
    SUBSYSTEM=platform
    DEVICE=+platform:hisi_spi_nor.0
    6,91,602143,-;hisi-sfc hisi_spi_nor.0: fm25q128a (Chipsize 16 Mbytes, Blocksize 64KiB)
    SUBSYSTEM=platform
    DEVICE=+platform:hisi_spi_nor.0
    5,92,608588,-;5 cmdlinepart partitions found on MTD device hi_sfc
    5,93,613207,-;5 cmdlinepart partitions found on MTD device hi_sfc
    5,94,617813,-;Creating 5 MTD partitions on "hi_sfc":
    5,95,621305,-;0x000000000000-0x000000040000 : "boot"
    5,96,626787,-;0x000000040000-0x000000050000 : "env"
    5,97,631751,-;0x000000050000-0x000000250000 : "kernel"
    5,98,637006,-;0x000000250000-0x000000750000 : "rootfs"
    5,99,642266,-;0x000000750000-0x000001000000 : "rootfs_data"
    6,100,696462,-;FEPHY:addr=1, la_am=0xc, ldo_am=0x4, r_tuning=0x20
    6,101,701169,-;libphy: hisi_femac_mii_bus: probed
    6,102,705181,-;libphy: Fixed MDIO Bus: probed
    6,103,847523,-;Generic PHY 10041100.mdio:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=10041100.mdio:01, irq=-1)
    SUBSYSTEM=mdio_bus
    DEVICE=+mdio_bus:10041100.mdio:01
    4,104,857008,-;phy_id=0x20669903, phy_mode=mii
    4,105,859896,-;hisi-femac 10040000.ethernet: using random MAC address 96:5e:07:51:1a:73
    SUBSYSTEM=platform
    DEVICE=+platform:10040000.ethernet
    6,106,871247,-;xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    SUBSYSTEM=platform
    DEVICE=+platform:xhci-hcd.0.auto
    6,107,875460,-;xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    SUBSYSTEM=platform
    DEVICE=+platform:xhci-hcd.0.auto
    6,108,882010,-;xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x20010010
    SUBSYSTEM=platform
    DEVICE=+platform:xhci-hcd.0.auto
    6,109,889437,-;xhci-hcd xhci-hcd.0.auto: irq 133, io mem 0x10030000
    SUBSYSTEM=platform
    DEVICE=+platform:xhci-hcd.0.auto
    6,110,895648,-;hub 1-0:1.0: USB hub found
    SUBSYSTEM=usb
    DEVICE=+usb:1-0:1.0
    6,111,898311,-;hub 1-0:1.0: 1 port detected
    SUBSYSTEM=usb
    DEVICE=+usb:1-0:1.0
    6,112,901372,-;xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    SUBSYSTEM=platform
    DEVICE=+platform:xhci-hcd.0.auto
    6,113,905568,-;xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
    SUBSYSTEM=platform
    DEVICE=+platform:xhci-hcd.0.auto
    6,114,912020,-;usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    SUBSYSTEM=usb
    DEVICE=+usb:usb2
    6,115,919654,-;hub 2-0:1.0: USB hub found
    SUBSYSTEM=usb
    DEVICE=+usb:2-0:1.0
    6,116,922350,-;hub 2-0:1.0: hub can't support USB3.0
    SUBSYSTEM=usb
    DEVICE=+usb:2-0:1.0
    6,117,1081571,-;hibvt_rtc 120e0000.rtc: rtc core: registered 120e0000.rtc as rtc0
    SUBSYSTEM=platform
    DEVICE=+platform:120e0000.rtc
    6,118,1087442,-;hibvt_rtc 120e0000.rtc: RTC driver for hibvt enabled
    SUBSYSTEM=platform
    DEVICE=+platform:120e0000.rtc
    6,119,1092259,-;i2c /dev entries driver
    6,120,1095265,-;hibvt-i2c 12060000.i2c: hibvt-i2c0@100000hz registered
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    6,121,1100787,-;hibvt-i2c 12061000.i2c: hibvt-i2c1@100000hz registered
    SUBSYSTEM=platform
    DEVICE=+platform:12061000.i2c
    6,122,1106374,-;hibvt-i2c 12062000.i2c: hibvt-i2c2@100000hz registered
    SUBSYSTEM=platform
    DEVICE=+platform:12062000.i2c
    6,123,1111794,-;sdhci: Secure Digital Host Controller Interface driver
    6,124,1116664,-;sdhci: Copyright(c) Pierre Ossman
    6,125,1119708,-;sdhci-pltfm: SDHCI platform and OF driver helper
    6,126,1181127,-;mmc0: SDHCI controller on 10010000.sdhci [10010000.sdhci] using ADMA in legacy mode
    6,127,1261128,-;mmc1: SDHCI controller on 10020000.sdhci [10020000.sdhci] using ADMA in legacy mode
    6,128,1269458,-;NET: Registered protocol family 10
    6,129,1278112,-;NET: Registered protocol family 17
    6,130,1371164,-;hibvt_rtc 120e0000.rtc: setting system clock to 2021-11-10 13:51:03 UTC (1636552263)
    SUBSYSTEM=platform
    DEVICE=+platform:120e0000.rtc
    6,131,1381075,-;VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
    6,132,1392915,-;devtmpfs: mounted
    6,133,1394797,-;Freeing unused kernel memory: 176K (c0494000 - c04c0000)
    4,134,1399837,-;This architecture does not have kernel memory protection.
    6,135,1744552,-;mmc0: new high speed SDHC card at address aaaa
    6,136,1799111,-;mmcblk0: mmc0:aaaa SC32G 29.7 GiB
    6,137,1813872,-; mmcblk0: p1
    4,138,1902165,-;jffs2: Node totlen on flash (0xffffffff) != totlen from node ref (0x00000044)
    4,139,2199847,-;jffs2: Node totlen on flash (0xffffffff) != totlen from node ref (0x00000044)
    5,140,2199921,-;random: dd: uninitialized urandom read (512 bytes read)
    4,141,2202708,-;jffs2: Node totlen on flash (0xffffffff) != totlen from node ref (0x00000044)
    4,142,2227218,-;random: crng init done
    4,143,2351557,-;FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    4,144,2357869,-;jffs2: Node totlen on flash (0xffffffff) != totlen from node ref (0x00000044)
    4,145,2357960,-;jffs2: Node totlen on flash (0xffffffff) != totlen from node ref (0x00000044)
    4,146,2359439,-;jffs2: Node totlen on flash (0xffffffff) != totlen from node ref (0x00000044)
    4,147,2362176,-;jffs2: Node totlen on flash (0xffffffff) != totlen from node ref (0x0000003c)
    6,148,2474213,-;IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    6,149,7780963,-;usbcore: registered new interface driver mt7601u
    6,150,7861151,-;usb 1-1: new high-speed USB device number 2 using xhci-hcd
    SUBSYSTEM=usb
    DEVICE=+usb:1-1
    6,151,8181173,-;usb 1-1: reset high-speed USB device number 2 using xhci-hcd
    SUBSYSTEM=usb
    DEVICE=c189:1
    6,152,8353688,-;mt7601u 1-1:1.0: ASIC revision: 76010001 MAC revision: 76010500
    SUBSYSTEM=usb
    DEVICE=+usb:1-1:1.0
    6,153,8367895,-;mt7601u 1-1:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
    SUBSYSTEM=usb
    DEVICE=+usb:1-1:1.0
    4,154,8864980,-;mt7601u 1-1:1.0: Warning: unsupported EEPROM version 0d
    SUBSYSTEM=usb
    DEVICE=+usb:1-1:1.0
    6,155,8864990,-;mt7601u 1-1:1.0: EEPROM ver:0d fae:00
    SUBSYSTEM=usb
    DEVICE=+usb:1-1:1.0
    7,156,9098037,-;ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
    SUBSYSTEM=ieee80211
    DEVICE=+ieee80211:phy0
    6,157,11182425,-;IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    6,158,12952984,-;wlan0: authenticate with c8:3a:35:1d:d2:40
    6,159,13013182,-;wlan0: send auth to c8:3a:35:1d:d2:40 (try 1/3)
    6,160,13014791,-;wlan0: authenticated
    6,161,13021372,-;wlan0: associate with c8:3a:35:1d:d2:40 (try 1/3)
    6,162,13024058,-;wlan0: RX AssocResp from c8:3a:35:1d:d2:40 (capab=0x411 status=0 aid=3)
    6,163,13051885,-;wlan0: associated
    6,164,13051953,-;IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    6,165,14345935,-;wireguard: WireGuard 1.0.20210124 loaded. See www.wireguard.com for information.
    6,166,14345942,-;wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld [email protected]. All Rights Reserved.
    4,167,14962902,-;sys_config: loading out-of-tree module taints kernel.
    0,168,14963678,-;==== online_flag=0, cmos_yuv_flag=0, sensor=imx335, chip=hi3516ev300, board=demo====
    0,169,14963683,-;==== g_quick_start_flag=0 ====
    0,170,14963685,-;sysconfig init success!
    0,171,14994561,-;Module himedia: init ok
    6,172,14994568,-;Hisilicon Media Memory Zone Manager
    0,173,14994578,-;cmz zone gfp 0x0, phys 0x42000000, nbytes 0x6000000
    0,174,14994876,-;hi_osal 1.0 init success!
    4,175,15025179,-;hi3516ev200_base: module license 'Proprietary' taints kernel.
    4,176,15025185,-;Disabling lock debugging due to kernel taint
    0,177,15067389,-;load sys.ko for Hi3516EV200...OK!
    0,178,15101442,-;load region.ko for Hi3516EV200...OK!
    0,179,15147154,-;load vgs.ko for Hi3516EV200...OK!
    0,180,15248189,-;load vi.ko for Hi3516EV200...OK !
    0,181,15291625,-;ISP Mod init!
    0,182,15380793,-;load vpss.ko for Hi3516EV200...OK!
    0,183,15394528,-;load chnl.ko for Hi3516EV200...OK!
    0,184,15417229,-;load vedu.ko for Hi3516EV200...OK!
    0,185,15452902,-;load rc.ko for Hi3516EV200...OK!
    0,186,15512365,-;load venc.ko for Hi3516EV200...OK!
    0,187,15555395,-;load h264e.ko for Hi3516EV200...OK!
    0,188,15599901,-;load h265e.ko for Hi3516EV200...OK!
    0,189,15619128,-;load jpege.ko for Hi3516EV200...OK!
    0,190,15670409,-;load ive.ko for Hi3516EV200...OK!
    0,191,15722063,-;Load sensor_spi.ko for Hi3516EV200...OK !
    0,192,15871920,-;load mipi_rx driver successful!
    0,193,15885999,-;register dev
    0,194,15891470,-;Hisilicon Watchdog Timer: 0.01 initialized. default_margin=60 sec (nodeamon= 0)
    0,195,15891478,-;hiwtdg init ok. ver=Oct 18 2019, 18:21:00.
    3,196,16667321,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,197,16667506,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    4,198,17096067,-;alloc_contig_range: [43d80, 43dc1) PFNs busy
    4,199,243170340,-;jffs2: Node totlen on flash (0xffffffff) != totlen from node ref (0x00000044)
    4,200,243170432,-;jffs2: Node totlen on flash (0xffffffff) != totlen from node ref (0x00000044)
    4,201,243170506,-;jffs2: Node totlen on flash (0xffffffff) != totlen from node ref (0x00000044)
    4,202,243170622,-;jffs2: Node totlen on flash (0xffffffff) != totlen from node ref (0x0000002c)
    4,203,243171412,-;jffs2: Node totlen on flash (0xffffffff) != totlen from node ref (0x00000044)
    4,204,243171690,-;jffs2: Node totlen on flash (0xffffffff) != totlen from node ref (0x00000048)
    0,205,261623994,-;Watchdog is disabled!
    4,206,292076358,-;jffs2: Node CRC ffffffff != calculated CRC f09e7845 for node at 00898e90

  • killall majestic
    ulimit -c unlimited
    echo /tmp/%e.%p.%s.%t.core > /proc/sys/kernel/core_pattern
    majestic
    .........................
    root@tehshield-hi3516ev300:~# majestic
    17:00:48 [ main] main@124 Majestic Free for HiSilicon, version master+6fbbadd, built on 2021-10-08
    17:00:48 [app_conf] load_config@121 Using /etc/majestic.yaml as main configuration
    17:00:48 [app_conf] load_config@136 Can't read all file majestic.yaml
    .........................
    при ребуте камеры majestic стартует нормально
    .........................
    Core dump file from /tmp/ , e.g. /tmp/majestic.806.11.1619707881.core

Issue description

df -h показал

Filesystem Size Used Available Use% Mounted on
/dev/root 4.9M 4.9M 0 100% /rom
devtmpfs 12.8M 0 12.8M 0% /dev
/dev/mtdblock4 8.7M 364.0K 8.3M 4% /overlay
overlay 8.7M 364.0K 8.3M 4% /
tmpfs 60.9M 0 60.9M 0% /dev/shm
tmpfs 60.9M 8.0K 60.9M 0% /tmp
tmpfs 60.9M 44.0K 60.8M 0% /run
/dev/mmcblk0p1 29.7G 29,6G 0 100% /mnt/mmc

хотя в majestic.yaml указано maxUsage: 95
после заполнения SD полились ошибки jffs2 и на камере невозможно ничего изменить в настройках
после этого не помогает ни flash_eraseall -j /dev/mtd4 ни firstboot только перепрошивка из uboot
крутил на 4 камерах, на трех была включена запись и на всех трех эта картина, на четвертой записи не было - выжила,

  • Any relevant log output (logread -f)
  • majestic.yaml configuration (cat /etc/majestic.yaml)

Switcam HS-303 - additional option to turn on the IR backlight

In the majestic config.yaml there is no possibility to specify the GPIO to enable IR illumination

Example of manual activation and deactivation IR light from the console:

echo 1 >/sys/class/gpio/gpio65/value
echo 0 >/sys/class/gpio/gpio65/value

Also please see /usr/sbin/ircut sctipt and calling it from a file /etc/crontabs/root

Different color palette when working in night mode

HI3518EV200 + OV9732 = HS303v2

Different color palette when working in night mode.
The jpeg and hls channels look adequate in night mode, and the mjpeg channel glows pink (there is an idea that some kind of software filter does not work)

Зависает поток rtsp в облаке ipeye и vlc

Камера hi3516ev300
Прошивка
Версия:2.2.05.11-lite
Сборка:master+8cdf302, 2022-05-11
Mahestic master+b5bceef, 2022-05-09

Перестает писаться через rtsp поток в облако ipeye, в vlc долго очень прогружает картинку и потом она замирает на месте.
В это же время в другое облако(двор24) котрое получает также поток через rtsp идет запись без прерываний. Обычно перестает работать ночью. Детектор что камера перестала работать и что она офлайн в ipeye не срабатывает.

ipeye + vlc одновременно перестают работать корректно.
После перезагрузки камеры начинают работать корректно.

[Feature request] Linux named pipe for motion detection

Introduction

Currently it isn't possible to get the motion detection events from Majestic streamer from 3rd party applications. The solution of running a "motion-detect" example from Hi3516EV200 MPP alongside Majestic isn't possible, because of the implementation of the SDK. Having a 3rd-party app on the camera side would allow the user to send "motion detect" events to the server.

The suitable approach for this would be a linux pipe, because the implementation of sending "motion detect" event wouldn't depend on implementation in majestic. Analyzing such stream, a 3rd party app would send a request to the server, which will trigger the recording of the video on the server side.

Detailed design

The most straightforward approach is to create a pipe named e.g "/tmp/majestic_md" and send current motion detection status if it's changed. To keep the protocol simple, the pipe should output only '1' and '0' characters with the meaning: "Motion detection is present" and "Motion detection is absent".

A 'dummy' implementation for sending events to the pipe:

int main(int argc, char *argv[]) {
    signal(SIGPIPE, SIG_IGN); // Not to exit the app when the last reading process has been killed
    const char* pipeName = "/tmp/majestic_md";
    mkfifo(pipeName, 0777);                     
    int fd = open(pipeName, O_CREAT | O_WRONLY); 
    const char kOne = '1';
    const char kZero = '0';      
    for (int i = 0; i < 10000; i++) {         
       write(fd, &(i % 2 == 0 ? kZero : kOne), sizeof(char));
       usleep(1000);
    }
    close(fd);
    unlink(pipeName);
}

In order to test this sample, one should run the following command line:
cat /tmp/majestic_md

And reading such pipe programmatically in blocking mode should also be also pretty straightforward:

int main(int argc, char *argv[]) {
  const char* file = "/tmp/majestic_md";
  int fd = open(file, O_RDONLY);
  if (fd < 0) return -1;
  char motionDetected;
  while (1) {
    ssize_t count = read(fd, &motionDetected, sizeof(char));
    if (count > 0) { 
        printf("Motion Detected: %c\r\n", motionDetected);
    } else {
        break;
    }
  }
  close(fd);
  unlink(file);
}

Content-Type for files at staticDir

I was just testing the staticDir resource. I created a really basic HTML file foo.html (just a hello world) but the webserver (majestic) is sending the file with content-type: application/octet-stream. It makes my browser downloading instead of rendering.

Default settings for netip and onvif

Since our colleagues make interesting tools for automatic device firmware, please enable the onvif and netip services by default in the majestic configuration file
Thanks !

LOW: remove "has been" construction from log reports where no sense

Low priority text bug in log report.

To reproduce
When majestic is not able neither autodetect sensor nor find it in configuration it reports in log during running:

root@openipc-hi3516cv300:~# majestic
02:14:54 [    main] main@124                      Majestic Free for HiSilicon, version master+70ebb25, built on 2021-11-03
02:14:54 [app_conf] load_config@122               Using /etc/majestic.yaml as main configuration
02:14:54 [     sdk] sdk_specific_config@3434      sensor autodetection has been failed.
02:14:54 [     sdk] sdk_specific_config@3436      Use SENSOR environment variable to specify it explicitly.

There are inconsistency in reports as well:
"HiSilicon SDK has been started" and "RTSP server started on port 554"

10:51:00 [image_tu] start_image_params_tuning@63  Image tuning task has been started
10:51:00 [root_med] RootMediaSupplier_new@10      new RootMediaSupplier(NAL)
10:51:00 [root_med] RootMediaSupplier_new@10      new RootMediaSupplier(MJPEG)
10:51:00 [     sdk] start_sdk@736                 HiSilicon SDK has been started.
10:51:00 [     hal] hisi_free_mem_ex@694          Free MMZ mem finally: 53860KB
10:51:01 [  evhttp] new_http_server@290           HTTP server has been started on 0.0.0.0:80
10:51:01 [root_med] RootMediaSupplier_new@10      new RootMediaSupplier(MP4)
10:51:01 [root_med] RootMediaSupplier_new@10      new RootMediaSupplier(MP4A)
10:51:01 [    rtsp] rtsp_init@153                 RTSP server started on port 554

How to fix
Propose to change grammar construction from "sensor autodetection has been failed" to the same sense but more common and short "sensor autodetection failed". More to say, recommend not to use "has been" construction in other cases as well, unless it really has additional meaning"

Segfault or invalid instruction on SIGHUP

при обновлении конфига из WebUI сыпятся segfault, изредка - illegal instruction

18:44:02 [  levent] signal_hup_cb@50              Signal HUP received, reloading config
18:44:02 [    gpio] set_gpio@25                   set_gpio(65, 0)
18:44:02 [    gpio] set_gpio@25                   set_gpio(64, 0)
18:44:02 [     sdk] stop_chn@2179                 Stopped 1 channel
18:44:02 [    vpss] VPSS_DisableChn@5434          [  vpss] !! Disable VpssChn:0 timeout 120ms!!!
18:44:02 [     sdk] stop_chn@2179                 Stopped 0 channel
18:44:02 [     sdk] ISP_thread_proc@160           Shutdown isp_run thread
18:44:02 [     viu] VIU_DRV_DisableChn@1309       [   viu] !! Disable ViChn:0 timeout 120ms!!!
18:44:02 [     sdk] stop_sdk@3405                 Stop sdk Ok!
18:44:02 [app_conf] load_config@345               Using /etc/majestic.yaml as main configuration
18:44:02 [     sdk] sdk_specific_config@3530      SENSOR=sc1145_i2c
18:44:02 [     sdk] find_sensor_config@3487       matched sensor config: sc1145_i2c_720p.ini
18:44:02 [     sdk] find_sensor_config@3504       Using /etc/sensors/sc1145_i2c_720p.ini as sensor configuration
18:44:02 [app_conf] parse_app_config@684          app_config.osd_template %Y-%m-%d %H:%M:%S %Z
18:44:02 [     sdk] start_sdk@251                 App was built with MPP version: Hi3518EV200_MPP_V1.0.5.0.B060 Release
18:44:02 [     sdk] start_sdk@254                 Current MPP version: HI_VERSION=Hi3518EV200_MPP_V1.0.5.0 B060 Release
18:44:03 [     sdk] start_sdk@277                 sensor sc1145
18:44:03 [     sdk] start_sdk@282                   input_mode CMOS_18V, WDR NONE
18:44:03 [     sdk] start_sdk@289                   dev [1280x720]@0x0 30fps, BGGR
18:44:03 [  sensor] try_to_load@19                trying to load /usr/lib/sensors/libsns_sc1145.so
18:44:03 [     sdk] dump_vb_configuration@2456    VB configuration:
18:44:03 [     sdk] dump_vb_configuration@2466      [0]: 1399680 x 9
18:44:03 [     sdk] dump_vb_configuration@2466      [1]: 1843200 x 1
18:44:03 [     sdk] dump_vb_configuration@2466      [2]: 346368 x 1
18:44:03 [     sdk] init_sensor@2659              Sensor driver loaded
18:44:03 [    puts]                               linear mode
18:44:03 [    puts]                               =========================================================
18:44:03 [    puts]                               ==SC1145 sensor 720P30fps(Parallel port) init success! ==
18:44:03 [    puts]                               =========================================================
18:44:03 [     sdk] log_venc_chn@1573             H.264 1280x720 30fps 3072Kbit  30 GOP
18:44:03 [     sdk] create_vpss_chn@1326            new venc: 0   vpss_grp: 0,   vpss_chn: 0
18:44:03 [     sdk] init_chn@1608                 JPEG snapshot snapshot venc_chn 1  1280x720
18:44:03 [     osd] init_osd@92                   OSD initialized
18:44:03 [image_tu] start_image_params_tuning@63  Image tuning task started
18:44:03 [     sdk] start_sdk@830                 HiSilicon SDK started
18:44:03 [   httpd] new_http_server@349           HTTP server started on :::80
18:44:03 [    rtsp] rtsp_init@32                  RTSP server started on port 554
18:44:03 [   netip] netip_start@2013              NETIP server started on port 34567
18:44:03 [    gpio] set_gpio@25                   set_gpio(65, 0)
18:44:03 [    gpio] set_gpio@25                   set_gpio(64, 0)
18:44:03 [   night] dn_start@220                  Starting monitor for light sensor
18:44:03 [    gpio] set_gpio@25                   set_gpio(65, 1)
18:44:03 [    gpio] set_gpio@25                   set_gpio(64, 0)
18:44:03 [    gpio] set_gpio@25                   set_gpio(65, 0)
18:44:03 [    gpio] set_gpio@25                   set_gpio(64, 1)
18:44:03 [    gpio] set_gpio@25                   set_gpio(65, 0)
18:44:03 [    gpio] set_gpio@25                   set_gpio(64, 0)
Segmentation fault

в dmesg при этом

hi_i2c_wait_rxfifo_notempty->297: 
abort! int_raw_status: 0x550!

hi_i2c_abortprocess->103: 
tx_abrt_src is 1.

hi_i2c_wait_rxfifo_notempty->297: 
abort! int_raw_status: 0x550!

hi_i2c_abortprocess->103: 
tx_abrt_src is 1.

hi_i2c_wait_rxfifo_notempty->297: 
abort! int_raw_status: 0x550!

hi_i2c_abortprocess->103: 
tx_abrt_src is 1.

hi_i2c_wait_rxfifo_notempty->297: 
abort! int_raw_status: 0x550!

hi_i2c_abortprocess->103: 
tx_abrt_src is 1.

MMB LEAK(pid=4658): 0x83490000, 225280 bytes, ''
mmz_userdev_release: mmb<0x83490000> mapped to userspace 0xb6625000 will be force unmaped!
MMB LEAK(pid=4658): 0x834C7000, 225280 bytes, ''
mmz_userdev_release: mmb<0x834C7000> mapped to userspace 0xb65ee000 will be force unmaped!
MMB LEAK(pid=4658): 0x834FE000, 4096 bytes, ''
mmz_userdev_release: mmb<0x834FE000> mapped to userspace 0xb65ed000 will be force unmaped!
MMB LEAK(pid=4658): 0x83500000, 466944 bytes, 'MD_ASSIST'
mmz_userdev_release: mmb<0x83500000> mapped to userspace 0xb657a000 will be force unmaped!

воспроизводится 100% при смене isp: секции

один раз проскочило

18:57:15 [  levent] signal_hup_cb@50              Signal HUP received, reloading config
18:57:15 [    gpio] set_gpio@25                   set_gpio(65, 0)
18:57:15 [    gpio] set_gpio@25                   set_gpio(64, 0)
Illegal instruction

в dmesg были только ошибки i2c. в последнем случае менял только slowShutter

3518ev200 - Failed to join a multicast group при старте

при старте системы - majestic кидает Failed to join a multicast group

Jan  1 00:00:04 openipc-hi3518ev200 kern.info kernel: IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Jan  1 00:00:04 openipc-hi3518ev200 kern.info kernel: IPv6: ADDRCONF(NETDEV_UP): br0: link is not ready
Jan  1 00:00:07 openipc-hi3518ev200 kern.info kernel: hisi-femac 10090000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
Jan  1 00:00:07 openipc-hi3518ev200 kern.info kernel: IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
...
Jan  1 00:00:18 openipc-hi3518ev200 user.err majestic[837]: Failed to join a multicast group '239.255.255.250'
Jan  1 00:00:18 openipc-hi3518ev200 user.err majestic[837]: Failed to join a multicast group '224.0.0.251'

при остановке и запуске - работает нормально.

hi3516ev300 mirror

majestic.log

Required information

  • Camera board id: hi3516ev300

  • OpenIPC version: 2.1

  • Commit: 2021-09-02

  • Branch:

  • Tag:

  • installation method: manual

  • modified majestic.yaml: yes

  • cat /dev/kmsg

  • killall majestic
    ulimit -c unlimited
    echo /tmp/%e.%p.%s.%t.core > /proc/sys/kernel/core_pattern
    majestic
    Core dump file from /tmp/ , e.g. /tmp/majestic.806.11.1619707881.core

Issue description

при включении mirror в majestic.yaml картинки нет.

A brief description of the problem. Should include what you were
attempting to do, what you did, what happened and what you expected to
see happen.

Expectations

Steps to reproduce

  1. Step one
  2. Step two
  3. Step three

Information to attach

Crop works incorrect

при переключении камеры в коридорный режим кроп работает некорректно.

  1. вместо кропа по факту получается best fit (или что-то типа того) - картинка ужимается до требуемого размера с соотношением сторон, лишнее обрезается
  2. при повороте с изображением 720х1280 - максимальная высота 720 пикселей. так, например, crop=0x0x480x720 - работает, crop=0x0x360x736 - уже бьет ошибку (хотя размер картинки в блоках меньше), crop=0x0x32x736 - тоже выбивает ошибку.

Required information

в логах:

15:23:36 [     sdk] sdk_take_jpeg@1777            take jpeg venc_chn(2)   32x720  q:95
15:23:36 [     sdk] VENC_SaveJpeg@701             JPEG snapshot was received from hardware encoder
15:23:36 [  on_jpg] send_regular_jpeg@76          JPEG was sent to client
15:23:43 [     sdk] sdk_take_jpeg@1777            take jpeg venc_chn(2)   32x704  q:95
15:23:43 [     sdk] VENC_SaveJpeg@701             JPEG snapshot was received from hardware encoder
15:23:43 [  on_jpg] send_regular_jpeg@76          JPEG was sent to client
15:23:50 [     sdk] sdk_take_jpeg@1777            take jpeg venc_chn(2)   32x736  q:95
15:23:50 [   jpege] JpegeCheckChnAttr@1264        [ jpege] PicHeight(736) err! should be [32,8192]!
15:23:50 [   jpege] JPEGE_SetChnAttr@892          [ jpege] JPEGE_SetChnAttr: Chn Attr Invalid!
15:23:50 [    venc] VencSetChnAttr@10070          [  venc] Venc 2 set venc attr err. 
15:23:50 [     sdk] sdk_take_jpeg@1797            Cannot set VENC chn 2 attr
15:23:50 [     sdk] sdk_take_jpeg@1797            ERR_VENC_ILLEGAL_PARAM: The parameter is invalid
15:23:50 [  on_jpg] on_jpeg_data_cb@93            Empty data has been returned for JPEG request

majestic.yaml:

system:
  logLevel: TRACE
  updateChannel: stable
  buffer: 512
  webPort: 80
isp:
  blkCnt: 10
  exposure: auto
  slowShutter: high
  antiFlicker: 50Hz
  memMode: reduction
  rawMode: none
  drc: 800
image:
  mirror: false
  flip: false
  rotate: 90
  contrast: 60
  hue: 50
  saturation: 50
  luminance: auto
osd:
  enabled: true
  font: /usr/share/fonts/truetype/UbuntuMono-Regular.ttf
  template: "%Y-%m-%d %H:%M:%S %Z"
  posX: 2
  posY: 2
nightMode:
  enabled: true
  irSensorPin: 62
  irCutPin1: 65
  irCutPin2: 64
  pinSwitchDelayUs: 150
  nightAPI: false
  irSensorPinInvert: true
records:
  enabled: false
  path: /mnt/mmc/%Y/%m/%d/%H.mp4
  maxUsage: 95
video0:
  enabled: true
  codec: h264
  gopMode: smart
  rcMode: avbr
  bitrate: 2000
  gopSize: 3
video1:
  enabled: true
  codec: h264
  gopMode: smart
  fps: 15
  rcMode: avbr
  gopSize: 1
  bitrate: 512
jpeg:
  enabled: true
  toProgressive: false
  qfactor: 95
#  size: 720x1280
mjpeg:
#  size: 720x1280
  fps: 5
  bitrate: 2048
audio:
  enabled: false
  volume: auto
  codec: mp3
  outputEnabled: false
rtsp:
  enabled: true
  port: 554
hls:
  enabled: true
youtube:
  enabled: false
motionDetect:
  enabled: true
  profile: outdoor
  visualize: true
  debug: false
ipeye:
  enabled: false
netip:
  enabled: true
  user: admin
  password: 6V0Y4HLF
  port: 34567
  snapshots: true
  ignore_set_time: false
  ignore: false
onvif:
  enabled: true
raw:
  mode: slow
  enabled: false
watchdog:
  enabled: true
  timeout: 10
cloud:
  enabled: false

Request to add GPIO for SD/MMC card control

When conducting experiments with video cameras that have SD/MMC card, it turned out that you need to be able to control an additional GPIO (activates the power for card).
Please add this to the functionality of the next release.

records:
  enabled: false
  path: /mnt/mmc/%Y/%m/%d/%H.mp4
  maxUsage: 95
  CardPin: 8                       <= Add this
  CardPinInvert: false             <= and this, please

/image.jpg fails after ~24h of work

  • Camera board id: IVG85HG50PYA-S (16ev300)
  • OpenIPC version: Free, master+6fbbadd, 2021-10-08
    Issue: Approximately after a 24 hours of work, the screenshots by url /image.jpg are stopped.
    Screenshots are seted up on narodmon.ru with an interval of 15 minutes.
    Same with wget
$ wget  192.168.1.172:8888/image.jpg
--2021-10-12 09:59:14--  http://192.168.1.172:8888/image.jpg
Connecting to 192.168.1.172:8888... connected.
HTTP request sent, awaiting response...
15:13:16 [  evhttp] incoming_req@110              on request send /image.jpg for 192.168.1.160
15:13:16 [  evhttp] on_jpeg_data_cb@435           Taking JPEG is in progress, returning from on_jpeg_data_cb

At the same time, it is observed that this problem occurs when netip: snapshots: true
15:13:19 [ netip] on_jpeg_data_cb@1699 Empty JPEG snapshot has been received from encoder, skipping it

However, if you turn it off, then everything works as it should be.
A series of 3 tests was performed, reproduced with 100% success.

Dmitry supposed:
The NVR is also requested not a full-sized JPEG, but something D1, so arrival two different requests at the same time

не работает вращение изоражения на 3518ev200

при включении вращения изображения (90 или 270) видеопотока hls/trsp нет, mjpeg.html - размер картинки повернут, сама картинка - нет (растянута/сжата под новый размер). в консоли majestic сыпет ошибки:

20:52:46 [    main] main@135                      Majestic Lite for HiSilicon, version master+912fa6f, built on 2022-03-08
20:52:46 [app_conf] load_config@345               Using /etc/majestic.yaml as main configuration
20:52:46 [app_conf] parse_app_config@689          app_config.osd_template %Y-%m-%d %H:%M:%S %Z
20:52:46 [watchdog] watchdog_start@101            Detected Hisilicon Watchdog
20:52:46 [watchdog] watchdog_start@121            Watchdog timeout set to 10 seconds
20:52:46 [     sdk] try_sensor_config@3095        Autodetected sensor as 'sc1145_i2c'
20:52:46 [     sdk] find_sensor_config@3049       matched sensor config: sc1145_i2c_720p.ini
20:52:46 [     sdk] start_sdk@246                 Using /etc/sensors/sc1145_i2c_720p.ini sensor configuration file
20:52:46 [     sdk] start_sdk@255                 App was built with MPP version: Hi3518EV200_MPP_V1.0.5.0.B060 Release
20:52:46 [     sdk] start_sdk@258                 Current MPP version: HI_VERSION=Hi3518EV200_MPP_V1.0.5.0 B060 Release
20:52:46 [     n/a]                               hi_logger
20:52:46 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:46 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
...
20:52:47 [     sdk] start_sdk@281                 sensor sc1145
20:52:47 [     sdk] start_sdk@286                   input_mode CMOS_18V, WDR NONE
20:52:47 [     sdk] start_sdk@293                   dev [1280x720]@0x0 30fps, BGGR
20:52:47 [  sensor] try_to_load@19                trying to load /usr/lib/sensors/libsns_sc1145.so
20:52:47 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:47 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:47 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
...
20:52:47 [     sdk] dump_vb_configuration@2018    VB configuration:
20:52:47 [     sdk] dump_vb_configuration@2028      [0]: 1843200 x 10
20:52:47 [     sdk] dump_vb_configuration@2028      [2]: 346368 x 1
20:52:47 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
...
20:52:47 [     sdk] init_sensor@2221              Sensor driver loaded
20:52:47 [    puts]                               linear mode
20:52:47 [    puts]                               =========================================================
20:52:47 [    puts]                               ==SC1145 sensor 720P30fps(Parallel port) init success! ==
20:52:47 [    puts]                               =========================================================
20:52:47 [     sdk] log_venc_chn@1136             H.264 720x1280 30fps 2000Kbit  90 GOP
20:52:47 [     sdk] create_vpss_chn@889             new venc: 0   vpss_grp: 0,   vpss_chn: 0
20:52:47 [     sdk] log_venc_chn@1136             H.264 576x704 15fps 512Kbit  15 GOP
20:52:47 [     sdk] create_vpss_chn@889             new venc: 1   vpss_grp: 0,   vpss_chn: 1
20:52:47 [     sdk] init_chn@1171                 JPEG snapshot snapshot venc_chn 2  1280x720
20:52:47 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:47 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:47 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:47 [     osd] init_osd@92                   OSD initialized
20:52:47 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:47 [image_tu] start_image_params_tuning@63  Image tuning task started
20:52:47 [     sdk] start_sdk@392                 HiSilicon SDK started
20:52:47 [   httpd] new_http_server@346           HTTP server started on :::80
20:52:47 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:47 [    rtsp] rtsp_init@30                  RTSP server started on port 554
20:52:47 [   netip] netip_start@2013              NETIP server started on port 34567
20:52:47 [    gpio] set_gpio@25                   set_gpio(65, 0)
20:52:47 [    gpio] set_gpio@25                   set_gpio(64, 0)
20:52:47 [   night] dn_start@220                  Starting monitor for light sensor
20:52:47 [    gpio] set_gpio@25                   set_gpio(65, 1)
20:52:47 [    gpio] set_gpio@25                   set_gpio(64, 0)
20:52:47 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:47 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:47 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:47 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:48 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:48 [    gpio] set_gpio@25                   set_gpio(65, 0)
20:52:48 [    gpio] set_gpio@25                   set_gpio(64, 1)
20:52:48 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:48 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:48 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:48 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:48 [    gpio] set_gpio@25                   set_gpio(65, 0)
20:52:48 [    gpio] set_gpio@25                   set_gpio(64, 0)
20:52:48 [   night] set_night_mode@117            Change mode to NIGHT
20:52:48 [    gpio] set_gpio@25                   set_gpio(65, 1)
20:52:48 [    gpio] set_gpio@25                   set_gpio(64, 0)
20:52:48 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:48 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:48 [    gpio] set_gpio@25                   set_gpio(65, 0)
20:52:48 [    gpio] set_gpio@25                   set_gpio(64, 0)
20:52:48 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:48 [  client] RtspClient_before@414         RTSP OPTIONS rtsp://172.31.99.12:554/1 CSeq=1 from 172.31.99.2:45560
20:52:48 [  client] RtspClient_before@414         RTSP DESCRIBE rtsp://172.31.99.12:554/1 CSeq=2 from 172.31.99.2:45560
20:52:48 [     nal] NalCodec_describe@110         RTSP chn 0 sps_len 0
20:52:48 [     nal] NalCodec_describe@113         RTSP chn 0 pps_len 0
20:52:48 [     nal] NalCodec_describe@119         RTSP chn 0 profile_level_id 000000
20:52:48 [  client] RtspClient_before@414         RTSP SETUP rtsp://172.31.99.12:554/1/video CSeq=3 from 172.31.99.2:45560
20:52:48 [  client] RtspClient_setup@328          TCP RTSP SETUP done, stream_id=0 from 172.31.99.2:45560
20:52:48 [  client] RtspClient_before@414         RTSP PLAY rtsp://172.31.99.12:554/1 CSeq=4 from 172.31.99.2:45560
20:52:48 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:48 [  client] RtspClient_before@414         RTSP OPTIONS rtsp://172.31.99.12:554/0 CSeq=1 from 172.31.99.2:45562
20:52:48 [  client] RtspClient_before@414         RTSP DESCRIBE rtsp://172.31.99.12:554/0 CSeq=2 from 172.31.99.2:45562
20:52:48 [     nal] NalCodec_describe@110         RTSP chn 0 sps_len 0
20:52:48 [     nal] NalCodec_describe@113         RTSP chn 0 pps_len 0
20:52:48 [     nal] NalCodec_describe@119         RTSP chn 0 profile_level_id 000000
20:52:48 [  client] RtspClient_before@414         RTSP SETUP rtsp://172.31.99.12:554/0/video CSeq=3 from 172.31.99.2:45562
20:52:48 [  client] RtspClient_setup@328          TCP RTSP SETUP done, stream_id=0 from 172.31.99.2:45562
20:52:48 [  client] RtspClient_before@414         RTSP PLAY rtsp://172.31.99.12:554/0 CSeq=4 from 172.31.99.2:45562
20:52:48 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:48 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:49 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:49 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:49 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:49 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 
20:52:49 [     sdk] venc_read@814                 Timeout get any data from venc channel 0
20:52:49 [     sdk] venc_read@834                 NOTE: Current frame is NULL!
20:52:49 [    venc] VencCheckVpssSendInfo@1027    [  venc] Venc 0 : Sendinfo pic info err. 

загруженные модули ядра:

Module                  Size  Used by    Tainted: P  
wdt                     4147  0 
hi_mipi                22988  0 
pwm                     1840  0 
sensor_i2c              1792  0 
hi3518e_ive           192049  0 
hi3518e_jpege          46910  0 
hi3518e_h264e         163968  0 
hi3518e_chnl           30512  0 
hi3518e_venc          220133  2 hi3518e_jpege,hi3518e_h264e
hi3518e_rc             70552  0 
hi3518e_vpss          243231  0 
hi3518e_viu           246239  1 hi3518e_vpss
hi3518e_isp           112421  3 sensor_i2c,hi3518e_vpss,hi3518e_viu
hi3518e_vgs           125656  0 
hi3518e_region         65048  0 
hi3518e_tde           113380  1 hi3518e_region
hi3518e_sys            88874  3 hi3518e_venc,hi3518e_vpss,hi3518e_viu
hi3518e_base           51435 13 hi3518e_ive,hi3518e_jpege,hi3518e_h264e,hi3518e_chnl,hi3518e_venc,hi3518e_rc,hi3518e_vpss,hi3518e_viu,hi3518e_isp,hi3518e_vgs,hi3518e_region,hi3518e_tde,hi3518e_sys
hi_media                5917 11 hi_mipi,hi3518e_ive,hi3518e_jpege,hi3518e_h264e,hi3518e_vpss,hi3518e_viu,hi3518e_isp,hi3518e_vgs,hi3518e_tde,hi3518e_sys,hi3518e_base
mmz                    19902  8 hi3518e_ive,hi3518e_jpege,hi3518e_h264e,hi3518e_viu,hi3518e_isp,hi3518e_tde,hi3518e_sys,hi3518e_base
sys_config              5172  0 
bridge                105312  0 
stp                     1355  1 bridge
llc                     3224  2 bridge,stp
8188eu               1027043  0 
cfg80211              233887  1 8188eu

majestic 2.2.05.07-lite, билд мастер ветки с небольшими правками (убраны модули аудиокодека, добавлен wifi + hostapd) https://github.com/nitr0man/firmware/tree/16d006e7addf86e3d78e40e9348014264e825cbe

плата juan 18EV200_V205P

majestic.yaml:

system:
  logLevel: TRACE
  updateChannel: stable
  buffer: 1024
  webPort: 80
isp:
  blkCnt: 10
  exposure: auto
  slowShutter: high
  antiFlicker: 50Hz
  memMode: normal
  rawMode: fast
  drc: 800
image:
  mirror: false
  flip: false
  rotate: 90
  contrast: auto
  hue: 50
  saturation: 50
  luminance: auto
osd:
  enabled: true
  font: /usr/share/fonts/truetype/UbuntuMono-Regular.ttf
  template: "%Y-%m-%d %H:%M:%S %Z"
  posX: 2
  posY: 2
nightMode:
  enabled: true
  irSensorPin: 62
  irCutPin1: 65
  irCutPin2: 64
  pinSwitchDelayUs: 150
  nightAPI: false
  irSensorPinInvert: true
records:
  enabled: false
  path: /mnt/mmc/%Y/%m/%d/%H.mp4
  maxUsage: 95
video0:
  enabled: true
  codec: h264
  gopMode: smart
  rcMode: avbr
  bitrate: 2000
  gopSize: 3
video1:
  enabled: true
  codec: h264
  gopMode: smart
  fps: 15
  rcMode: avbr
  gopSize: 1
  bitrate: 512
jpeg:
  enabled: true
  toProgressive: false
mjpeg:
  size: 640x360
  fps: 5
  bitrate: 1024
audio:
  enabled: false
  volume: auto
  srate: 8000
  codec: mp3
  outputEnabled: false
rtsp:
  enabled: true
  port: 554
hls:
  enabled: true
youtube:
  enabled: false
motionDetect:
  enabled: true
  profile: outdoor
  visualize: true
  debug: false
ipeye:
  enabled: false
netip:
  enabled: true
  user: admin
  password: 6V0Y4HLF
  port: 34567
  snapshots: true
  ignore_set_time: false
  ignore: false
onvif:
  enabled: true
raw:
  mode: slow
  enabled: false
watchdog:
  enabled: true
  timeout: 10
cloud:
  enabled: false

Reboot camera in the absence of light

Required information

Issue description

If I simply close camera lens by hand majestic eats all available RAM and system reboots.
Sometimes oom-killer fires earlier then watchdog reboot system.

Also I tried to change default settings for slow shutter to medium.
It gives some additional time before oom happenned.

Information to attach

logread -f output:

May 11 16:57:01 openipc-hi3516ev200 kern.warn kernel: crond invoked oom-killer: gfp_mask=0x24201ca(GFP_HIGHUSER_MOVABLE|__GFP_COLD), nodemask=0, order=0, oom_score_adj=0
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: CPU: 0 PID: 681 Comm: crond Tainted: P           O    4.9.37 #1
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: Hardware name: Generic DT based system
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: Backtrace:
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: [<c0013120>] (dump_backtrace) from [<c0013418>] (show_stack+0x18/0x1c)
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  r7:00000201 r6:c045c668 r5:00000001 r4:c0815d44
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: [<c0013400>] (show_stack) from [<c01a4758>] (dump_stack+0x24/0x28)
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: [<c01a4734>] (dump_stack) from [<c00adad0>] (dump_header.constprop.5+0x74/0x19c)
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: [<c00ada5c>] (dump_header.constprop.5) from [<c0073c2c>] (oom_kill_process+0x28c/0x454)
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  r10:c0514104 r9:00000015 r8:c04f5538 r7:00000201 r6:c045c668 r5:c0815d44
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  r4:c0857680
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: [<c00739a0>] (oom_kill_process) from [<c0074134>] (out_of_memory+0x124/0x42c)
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  r10:c0514104 r9:00000015 r8:c04f5538 r7:c04f5538 r6:c0815d44 r5:c04f2808
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  r4:c0857680
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: [<c0074010>] (out_of_memory) from [<c0078254>] (__alloc_pages_nodemask+0x604/0xb34)
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  r9:00000000 r8:00000000 r7:000000c0 r6:000000c0 r5:024201ca r4:00000000
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: [<c0077c50>] (__alloc_pages_nodemask) from [<c007258c>] (filemap_fault+0x30c/0x5a0)
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  r10:00080001 r9:024201ca r8:024000c0 r7:00000010 r6:c10ad180 r5:c140e87c
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  r4:00000000
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: [<c0072280>] (filemap_fault) from [<c0092f84>] (__do_fault+0x88/0x11c)
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  r10:00000010 r9:c0815e4c r8:00020000 r7:00000000 r6:c0815e68 r5:00000054
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  r4:c04f2808
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: [<c0092efc>] (__do_fault) from [<c00960c4>] (handle_mm_fault+0x668/0xf48)
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  r7:00000010 r6:0000001f r5:c111f058 r4:c04f2808
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: [<c0095a5c>] (handle_mm_fault) from [<c001698c>] (do_page_fault+0x12c/0x2c8)
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  r10:c0815fb0 r9:c10ebc74 r8:00000054 r7:00020c5c r6:80000007 r5:c10ebc40
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  r4:c10e4000
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: [<c0016860>] (do_page_fault) from [<c0009358>] (do_PrefetchAbort+0x50/0xc8)
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  r10:00000000 r9:627beaa0 r8:c0815fb0 r7:00020c5c r6:c04f69a4 r5:00000007
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  r4:c04f2808
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: [<c0009308>] (do_PrefetchAbort) from [<c0014460>] (ret_from_exception+0x0/0x20)
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: Exception stack(0xc0815fb0 to 0xc0815ff8)
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: 5fa0:                                     00000000 bed94c60 00000004 00000000
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: 5fc0: 000ac778 0000003c 00000000 627beaa0 00000037 627beaa0 00000000 00000001
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: 5fe0: bed94c28 bed94c90 b6ec2e3b 00020c5c 00000030 ffffffff
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  r9:627beaa0 r8:10c53c7d r7:10c53c7d r6:ffffffff r5:00000030 r4:00020c5c
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: Mem-Info:
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: active_anon:3671 inactive_anon:27 isolated_anon:0
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  active_file:23 inactive_file:31 isolated_file:0
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  unevictable:0 dirty:0 writeback:0 unstable:0
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  slab_reclaimable:96 slab_unreclaimable:942
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  mapped:46 shmem:29 pagetables:69 bounce:0
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel:  free:164 free_pcp:0 free_cma:0
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: Node 0 active_anon:14684kB inactive_anon:108kB active_file:92kB inactive_file:124kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:184kB dirty:0kB writeback:0kB shmem:11>
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: Normal free:656kB min:656kB low:820kB high:984kB active_anon:14684kB inactive_anon:108kB active_file:92kB inactive_file:124kB unevictable:0kB writepending:0kB present:32768kB managed:>
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: lowmem_reserve[]: 0 0
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: Normal: 112*4kB (UME) 26*8kB (UE) 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 656kB
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: 84 total pagecache pages
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: 8192 pages RAM
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: 0 pages HighMem/MovableOnly
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: 1394 pages reserved
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: 0 pages cma reserved
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: [ pid ]   uid  tgid total_vm      rss nr_ptes nr_pmds swapents oom_score_adj name
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: [  582]     0   582      314       30       4       0        0             0 syslogd
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: [  586]     0   586      298       14       3       0        0             0 klogd
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: [  621]     0   621      298       14       3       0        0             0 rngd
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: [  655]     0   655      298       13       3       0        0             0 udhcpc
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: [  660]     0   660      298       15       4       0        0             0 ntpd
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: [  667]     0   667      194       15       3       0        0             0 dropbear
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: [  669]     0   669      298       14       3       0        0             0 httpd
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: [  681]     0   681      298       19       4       0        0             0 crond
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: [  867]     0   867     7846     3576      20       0        0             0 majestic
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: [  868]     0   868      302       19       4       0        0             0 sh
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: [  881]     0   881      314       18       4       0        0             0 logread
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: [  885]     0   885      200       18       3       0        0             0 dropbear
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: [  886]     0   886      302       19       4       0        0             0 sh
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: [  894]     0   894      302       18       3       0        0             0 top
May 11 16:57:01 openipc-hi3516ev200 kern.err kernel: Out of memory: Kill process 867 (majestic) score 513 or sacrifice child
May 11 16:57:01 openipc-hi3516ev200 kern.err kernel: Killed process 867 (majestic) total-vm:31384kB, anon-rss:14200kB, file-rss:104kB, shmem-rss:0kB
May 11 16:57:01 openipc-hi3516ev200 kern.info kernel: oom_reaper: reaped process 867 (majestic), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
May 11 16:57:01 openipc-hi3516ev200 kern.err kernel: mmz_userdev:mmz_userdev_release:
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: MMB LEAK(pid=867): 0x4384F000, 249856 bytes, 'AENC(0)StrmBuf'
May 11 16:57:01 openipc-hi3516ev200 kern.warn kernel: mmz_userdev:mmz_userdev_release:
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: mmb<0x4384f000> mapped to userspace 0xb64b6000 will be unmaped!
May 11 16:57:01 openipc-hi3516ev200 kern.err kernel: mmz_userdev:mmz_userdev_release:
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: MMB LEAK(pid=867): 0x4388C000, 16384 bytes, 'AENC(0) CirBuf'
May 11 16:57:01 openipc-hi3516ev200 kern.warn kernel: mmz_userdev:mmz_userdev_release:
May 11 16:57:01 openipc-hi3516ev200 kern.emerg kernel: mmb<0x4388c000> mapped to userspace 0xb64b2000 will be unmaped!




System startup

Incorrect method name in fault message.

Unrecognized request does not return the method name in response body.

curl -s 192.168.1.123:80/onvif/device_service -d "<s:Envelope xmlns:s=\"http://www.w3.org/2003/05/soap-envelope\"><s:Body xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><GetServices xmlns=\"http://www.onvif.org/ver10/device/wsdl\"/></s:Body></s:Envelope>" | xmllint --format -

returns

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2000/10/XMLSchema" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:ns1="http://www.w3.org/2005/05/xmlmime" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:ns7="http://docs.oasis-open.org/wsrf/r-2" xmlns:ns2="http://docs.oasis-open.org/wsrf/bf-2" xmlns:dndl="http://www.onvif.org/ver10/network/wsdl/DiscoveryLookupBinding" xmlns:dnrd="http://www.onvif.org/ver10/network/wsdl/RemoteDiscoveryBinding" xmlns:d="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:dn="http://www.onvif.org/ver10/network/wsdl" xmlns:ns10="http://www.onvif.org/ver10/replay/wsdl" xmlns:ns11="http://www.onvif.org/ver10/search/wsdl" xmlns:ns13="http://www.onvif.org/ver20/analytics/wsdl/RuleEngineBinding" xmlns:ns14="http://www.onvif.org/ver20/analytics/wsdl/AnalyticsEngineBinding" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:ns15="http://www.onvif.org/ver10/events/wsdl/PullPointSubscriptionBinding" xmlns:ns16="http://www.onvif.org/ver10/events/wsdl/EventBinding" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:ns17="http://www.onvif.org/ver10/events/wsdl/SubscriptionManagerBinding" xmlns:ns18="http://www.onvif.org/ver10/events/wsdl/NotificationProducerBinding" xmlns:ns19="http://www.onvif.org/ver10/events/wsdl/NotificationConsumerBinding" xmlns:ns20="http://www.onvif.org/ver10/events/wsdl/PullPointBinding" xmlns:ns21="http://www.onvif.org/ver10/events/wsdl/CreatePullPointBinding" xmlns:ns22="http://www.onvif.org/ver10/events/wsdl/PausableSubscriptionManagerBinding" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:ns3="http://www.onvif.org/ver10/analyticsdevice/wsdl" xmlns:ns4="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:ns5="http://www.onvif.org/ver10/display/wsdl" xmlns:ns8="http://www.onvif.org/ver10/receiver/wsdl" xmlns:ns9="http://www.onvif.org/ver10/recording/wsdl" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:trt2="http://www.onvif.org/ver20/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tnsn="http://www.eventextension.com/2011/event/topics">
  <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
      <SOAP-ENV:Code>
        <SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value>
      </SOAP-ENV:Code>
      <SOAP-ENV:Reason>
        <SOAP-ENV:Text xml:lang="en">Method '' not implemented: method name or namespace not recognized</SOAP-ENV:Text>
      </SOAP-ENV:Reason>
    </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Expected to get

...
      <SOAP-ENV:Text xml:lang="en">Method 'GetServices' not implemented: method name or namespace not recognized</SOAP-ENV:Text>
....

osd posX and posY does not work

Changing osd posX and posY does not affect on label position, I tried different positive and negative values.

majestic version: master+37ff773, 2021-06-17

Stream codec definition works strange

Stream1 does not work properly when codec parameter in majestic.yaml was defined for video0 (for ex. h264) and not defined for video1. VLC connects to stream1 and show nothing (only audio), stream params show that codec was defined as MPEG-H Part2/HEVC (H.265). Accrording to comment in config file, in such case codec must be the same for video1 as defined in video0 section.

When video0 and video1 both have the same codec (tested h264 & h265) - all work correctly.

majestic: master+5e05922, 2021-06-20

vlc rtsp rpoblem after 1 march 2022 on xm530

good day

Required information

  • Camera board id: 30695 (xm530)
  • OpenIPC version:
  • Commit: 23e8b08
  • Branch: master
  • Tag: latest
  • installation method: (sysupgrade from november version.)
  • modified majestic.yaml: yes
  • cat /dev/kmsg
  • killall majestic
    ulimit -c unlimited
    echo /tmp/%e.%p.%s.%t.core > /proc/sys/kernel/core_pattern
    majestic
    Core dump file from /tmp/ , e.g. /tmp/majestic.806.11.1619707881.core

Issue description

  1. on xm530 board (30695) vlc rtsp stream work well on version from 1 march 2022
    (manual install, downgrade from 6 april 2022 version)

  2. if update to 6 april 2022 version, vlc is connect but see freeze picture without motions of video.
    ffplay can connect and see video rtsp stream

h264 stream0 on both experiments

Expectations

Steps to reproduce

  1. Step one
  2. Step two
  3. Step three

Information to attach

  • Any relevant log output (logread -f)
  • majestic.yaml configuration (cat /etc/majestic.yaml)

oot@openipc-xm530:~# logread -f
ffplay launch:
Apr 8 16:38:32 openipc-xm530 cron.info crond[473]: time disparity of 27490598 minutes detected
Apr 8 16:38:34 openipc-xm530 user.info majestic[541]: RTSP connection closed.
vlc launch:
Apr 8 16:39:19 openipc-xm530 user.err majestic[541]: Failed to send an RTP packet: Connection refused.
Apr 8 16:39:20 openipc-xm530 user.info majestic[541]: RTSP connection closed.

cat /etc/majestic.yaml
system:
buffer: 1024
image:
mirror: false
flip: false
rotate: none
contrast: auto
hue: 50
saturation: 50
luminance: auto
osd:
enabled: false
template: "%a %e %B %Y %H:%M:%S %Z"
nightMode:
enabled: false
pinSwitchDelayUs: 150
irSensorPinInvert: false
records:
enabled: false
path: /mnt/mmc/%Y/%m/%d/%H.mp4
maxUsage: 95
video0:
enabled: true
codec: h264
video1:
enabled: false
codec: h265
jpeg:
enabled: true
toProgressive: false
mjpeg:
size: 640x360
fps: 5
bitrate: 1024
audio:
enabled: true
volume: auto
srate: 16000
codec: opus
device: hw:2
rtsp:
enabled: true
port: 554
hls:
enabled: true
youtube:
enabled: false
motionDetect:
enabled: false
profile: outdoor
visualize: true
debug: true
ipeye:
enabled: false
onvif:
enabled: false
watchdog:
enabled: true
timeout: 10

[NETIP] Discovery is broken

Required information

  • Camera board id: hi3516ev200+sc2315e
  • OpenIPC version: latest
  • Commit: master

Issue description

Last commit breaks NETIP discovery, interface name isn't filled in from the first attempt
Furthermore, discovery in programs like VMS/VMS Lite issues 10 search requests + ONVIF search same time, which leads to situation, like in the log below, errors appear nonstop.

Steps to reproduce

  1. Enabled NETIP and ONVIF
  2. Initiate search in VMS
  3. No reply and endless errors in console
  4. Start another search
  5. Flood stops, interface and IP is filled in correctly, but still no valid response

Information to attach

11:18:53 [   netip] reply_discovery@415          NETIP: Sent discovery reply to 192.168.1.254
11:18:55 [ mdetect] motion_detect_thread@716     Motion detection has been started on 3 ext channel                                                                                     
11:18:55 [ mdetect] motion_detect_thread@717       frame size 960x528
11:18:55 [      vi] VI_DRV_GetFrmVbBlk@4106      Pipe 0 chn 0 get buffer fail,size 3110400 !
11:18:55 [hisi_hal] analyse_log@392              VB fail
11:18:55 [      vi] VI_COMM_CapPrepareFrame@2915 pipe id 0 get vb fail
11:18:55 [      vi] VI_DRV_GetFrmVbBlk@4106      Pipe 0 chn 0 get buffer fail,size 3110400 !
11:18:55 [hisi_hal] analyse_log@392              VB fail
11:18:55 [      vi] VI_COMM_CapPrepareFrame@2915 pipe id 0 get vb fail
11:18:56 [      vi] VI_DRV_GetFrmVbBlk@4106      Pipe 0 chn 0 get buffer fail,size 3110400 !
11:18:56 [hisi_hal] analyse_log@392              VB fail
11:18:56 [      vi] VI_COMM_CapPrepareFrame@2915 pipe id 0 get vb fail
11:18:56 [      vi] VI_DRV_GetFrmVbBlk@4106      Pipe 0 chn 0 get buffer fail,size 3110400 !
11:18:56 [hisi_hal] analyse_log@392              VB fail
11:18:56 [      vi] VI_COMM_CapPrepareFrame@2915 pipe id 0 get vb fail
11:18:56 [      vi] VI_DRV_GetFrmVbBlk@4106      Pipe 0 chn 0 get buffer fail,size 3110400 !
11:18:56 [hisi_hal] analyse_log@392              VB fail
11:18:56 [      vi] VI_COMM_CapPrepareFrame@2915 pipe id 0 get vb fail
11:18:56 [discover] udp_read@52                  onvif discovery probe from 172.16.1.10:3702
11:18:56 [      vi] VI_DRV_GetFrmVbBlk@4106      Pipe 0 chn 0 get buffer fail,size 3110400 !
11:18:56 [hisi_hal] analyse_log@392              VB fail
11:18:56 [      vi] VI_COMM_CapPrepareFrame@2915 pipe id 0 get vb fail
11:18:56 [      vi] VI_DRV_GetFrmVbBlk@4106      Pipe 0 chn 0 get buffer fail,size 3110400 !
11:18:56 [hisi_hal] analyse_log@392              VB fail
11:18:56 [      vi] VI_COMM_CapPrepareFrame@2915 pipe id 0 get vb fail
11:18:57 [discover] udp_read@52                  onvif discovery probe from 192.168.1.254:50370
11:19:02 [   h265e] h265e_drv_read_regs@4656     hevc stream buf full! 
11:19:02 [      rc] RC_EndOneFrame@3616          stream buffer full!!!!
11:19:02 [    venc] VENC_InqTask@3370            Venc 0 stream buffer is full. 
11:19:02 [    venc] VENC_InqTask@3370            Venc 0 stream buffer is full. 
11:19:02 [    venc] VENC_InqTask@3370            Venc 0 stream buffer is full. 
11:19:02 [    venc] VENC_InqTask@3370            Venc 0 stream buffer is full. 
11:19:02 [    venc] VENC_InqTask@3370            Venc 0 stream buffer is full. 
11:19:02 [    venc] VENC_InqTask@3370            Venc 0 stream buffer is full. 
11:19:02 [    venc] VENC_InqTask@3370            Venc 0 stream buffer is full. 
11:19:02 [      vi] VI_DRV_GetFrmVbBlk@4106      Pipe 0 chn 0 get buffer fail,size 3110400 !
11:19:02 [hisi_hal] analyse_log@392              VB fail
11:19:02 [      vi] VI_COMM_CapPrepareFrame@2915 pipe id 0 get vb fail
11:19:02 [    venc] VENC_InqTask@3370            Venc 0 stream buffer is full. 
11:19:02 [    venc] VENC_InqTask@3370            Venc 0 stream buffer is full. 
11:19:02 [    venc] VENC_InqTask@3370            Venc 0 stream buffer is full. 
11:19:02 [      vi] VI_DRV_GetFrmVbBlk@4106      Pipe 0 chn 0 get buffer fail,size 3110400 !
11:19:02 [hisi_hal] analyse_log@392              VB fail

< REPEATS NONSTOP >

...

<NEW SEARCH REQEST >
11:40:51 [   netip] udp_cb@432                   UDP packet received len = 20                                                                                         
11:40:51 [   netip] reply_discovery@415          NETIP: Sent discovery reply to 192.168.1.254
11:40:51 [      vi] VI_DRV_GetFrmVbBlk@4106      Pipe 0 chn 0 get buffer fail,size 3110400 !
11:40:51 [hisi_hal] analyse_log@392              VB fail
11:40:56 [      vi] VI_DRV_GetFrmVbBlk@4106      Pipe 0 chn 0 get buffer fail,size 3110400 !
11:40:56 [hisi_hal] analyse_log@392              VB fail
11:40:56 [      vi] VI_COMM_CapPrepareFrame@2915 pipe id 0 get vb fail

Add option "ignore netip_set_system_time: true"

Please add option to /etc/majestic.yaml
ignore netip_set_system_time: true with default value false for devices without internet access that receive time from NVR
to avoid competing time correction between netip and ntpd

17:10:57 [   netip] set_system_time@1643          [5] Set 2021-10-08 16:10:57 time UTC

некорректный DTS в архивных файлах записи видео.

Required information

  • Camera board id: hi3516ev300
  • OpenIPC version: 2.2.04.05-lite
  • installation method: by manual https://github.com/OpenIPC/openipc-2.1/wiki/install_hisi
  • modified majestic.yaml: yes
  • cat /dev/kmsg
    6,0,0,-;Booting Linux on physical CPU 0x0
    5,1,0,-;Linux version 4.9.37 (spectre@DESKTOP-GSTDM2J) (gcc version 7.5.0 (Buildroot -g23e8b08-dirty) ) #1 Tue Apr 5 13:59:31 MSK 2022
    6,2,0,-;CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
    6,3,0,-;CPU: div instructions available: patching division code
    6,4,0,-;CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    6,5,0,-;OF: fdt:Machine model: Hisilicon HI3516EV300 DEMO Board
    6,6,0,-;cma: Reserved 96 MiB at 0x42000000
    6,7,0,-;Memory policy: Data cache writeback
    7,8,0,-;On node 0 totalpages: 32768
    7,9,0,-;free_area_init_node: node 0, pgdat c0513b4c, node_mem_map c1eca000
    7,10,0,-; Normal zone: 256 pages used for memmap
    7,11,0,-; Normal zone: 0 pages reserved
    7,12,0,-; Normal zone: 32768 pages, LIFO batch:7
    6,13,0,-;CPU: All CPU(s) started in SVC mode.
    7,14,0,-;pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    7,15,0,-;pcpu-alloc: [0] 0
    6,16,0,-;Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
    5,17,0,-;Kernel command line: mem=128M console=ttyAMA0,115200 panic=20 rootfstype=squashfs root=/dev/mtdblock3 init=/init mtdparts=hi_sfc:256k(boot),64k(env),2048k(kernel),7168k(rootfs),-(rootfs_data) mmz_allocator=cma mmz=anonymous,0,0x42000000,96M
    6,18,0,-;PID hash table entries: 512 (order: -1, 2048 bytes)
    6,19,0,-;Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    6,20,0,-;Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    6,21,0,-;Memory: 25968K/131072K available (3943K kernel code, 144K rwdata, 880K rodata, 192K init, 180K bss, 6800K reserved, 98304K cma-reserved)
    5,22,0,-;Virtual kernel memory layout:\x0a vector : 0xffff0000 - 0xffff1000 ( 4 kB)\x0a fixmap : 0xffc00000 - 0xfff00000 (3072 kB)\x0a vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)\x0a lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)\x0a modules : 0xbf000000 - 0xc0000000 ( 16 MB)\x0a .text : 0xc0008000 - 0xc03e2170 (3945 kB)\x0a .init : 0xc04c0000 - 0xc04f0000 ( 192 kB)\x0a .data : 0xc04f0000 - 0xc0514360 ( 145 kB)\x0a .bss : 0xc0516000 - 0xc054314c ( 181 kB)
    6,23,0,-;SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    6,24,0,-;NR_IRQS:16 nr_irqs:16 16
    3,25,0,-;Gic dist init...
    6,26,0,-;arm_arch_timer: Architected cp15 timer(s) running at 50.00MHz (phys).
    6,27,0,-;clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xb8812736b, max_idle_ns: 440795202655 ns
    6,28,6,-;sched_clock: 56 bits at 50MHz, resolution 20ns, wraps every 4398046511100ns
    6,29,14,-;Switching to timer-based delay loop, resolution 20ns
    6,30,123,-;clocksource: arm,sp804: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
    6,31,337,-;Console: colour dummy device 80x30
    6,32,354,-;Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=500000)
    6,33,364,-;pid_max: default: 32768 minimum: 301
    6,34,445,-;Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    6,35,453,-;Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    6,36,893,-;CPU: Testing write buffer coherency: ok
    6,37,1101,-;Setting up static identity map for 0x40008200 - 0x40008258
    6,38,1920,-;devtmpfs: initialized
    6,39,5463,-;VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
    6,40,5691,-;clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    6,41,5710,-;futex hash table entries: 256 (order: -1, 3072 bytes)
    6,42,9089,-;pinctrl core: initialized pinctrl subsystem
    6,43,9413,-;NET: Registered protocol family 16
    6,44,9717,-;DMA: preallocated 256 KiB pool for atomic coherent allocations
    6,45,10828,-;Serial: AMBA PL011 UART driver
    6,46,12507,-;12040000.uart: ttyAMA0 at MMIO 0x12040000 (irq = 21, base_baud = 0) is a PL011 rev2
    6,47,281663,-;console [ttyAMA0] enabled
    6,48,284732,-;12041000.uart: ttyAMA1 at MMIO 0x12041000 (irq = 22, base_baud = 0) is a PL011 rev2
    6,49,313854,-;ssp-pl022 12070000.spi: ARM PL022 driver, device ID: 0x00800022
    SUBSYSTEM=amba
    DEVICE=+amba:12070000.spi
    6,50,319542,-;ssp-pl022 12070000.spi: mapped registers from 0x12070000 to c886f000
    SUBSYSTEM=amba
    DEVICE=+amba:12070000.spi
    6,51,326565,-;ssp-pl022 12071000.spi: ARM PL022 driver, device ID: 0x00800022
    SUBSYSTEM=amba
    DEVICE=+amba:12071000.spi
    6,52,332263,-;ssp-pl022 12071000.spi: mapped registers from 0x12071000 to c8873000
    SUBSYSTEM=amba
    DEVICE=+amba:12071000.spi
    6,53,339874,-;usbcore: registered new interface driver usbfs
    6,54,344128,-;usbcore: registered new interface driver hub
    6,55,348182,-;usbcore: registered new device driver usb
    6,56,352792,-;clocksource: Switched to clocksource arch_sys_counter
    6,57,379180,-;NET: Registered protocol family 2
    6,58,382828,-;TCP established hash table entries: 1024 (order: 0, 4096 bytes)
    6,59,388494,-;TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
    6,60,393557,-;TCP: Hash tables configured (established 1024 bind 1024)
    6,61,398654,-;UDP hash table entries: 256 (order: 0, 4096 bytes)
    6,62,403200,-;UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    6,63,408281,-;NET: Registered protocol family 1
    6,64,412057,-;RPC: Registered named UNIX socket transport module.
    6,65,416703,-;RPC: Registered udp transport module.
    6,66,420094,-;RPC: Registered tcp transport module.
    6,67,423494,-;RPC: Registered tcp NFSv4.1 backchannel transport module.
    6,68,430105,-;workingset: timestamp_bits=30 max_order=15 bucket_order=0
    6,69,443440,-;squashfs: version 4.0 (2009/01/31) Phillip Lougher
    6,70,451701,-;jffs2: version 2.2 (NAND) (ZLIB) (RTIME) (c) 2001-2006 Red Hat, Inc.
    7,71,458784,-;yaffs: yaffs Installing.
    6,72,460152,-;Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
    6,73,466274,-;io scheduler noop registered
    6,74,468885,-;io scheduler deadline registered (default)
    6,75,474774,-;pl061_gpio 120b0000.gpio_chip: PL061 GPIO chip @0x120b0000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b0000.gpio_chip
    6,76,482009,-;pl061_gpio 120b1000.gpio_chip: PL061 GPIO chip @0x120b1000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b1000.gpio_chip
    6,77,489312,-;pl061_gpio 120b2000.gpio_chip: PL061 GPIO chip @0x120b2000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b2000.gpio_chip
    6,78,496577,-;pl061_gpio 120b3000.gpio_chip: PL061 GPIO chip @0x120b3000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b3000.gpio_chip
    6,79,503856,-;pl061_gpio 120b4000.gpio_chip: PL061 GPIO chip @0x120b4000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b4000.gpio_chip
    6,80,511104,-;pl061_gpio 120b5000.gpio_chip: PL061 GPIO chip @0x120b5000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b5000.gpio_chip
    6,81,518409,-;pl061_gpio 120b6000.gpio_chip: PL061 GPIO chip @0x120b6000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b6000.gpio_chip
    6,82,525727,-;pl061_gpio 120b7000.gpio_chip: PL061 GPIO chip @0x120b7000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b7000.gpio_chip
    6,83,532954,-;pl061_gpio 120b8000.gpio_chip: PL061 GPIO chip @0x120b8000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b8000.gpio_chip
    6,84,540132,-;pl061_gpio 120b9000.gpio_chip: PL061 GPIO chip @0x120b9000 registered
    SUBSYSTEM=amba
    DEVICE=+amba:120b9000.gpio_chip
    6,85,563157,-;brd: module loaded
    6,86,573413,-;loop: module loaded
    6,87,576194,-;hisi-sfc hisi_spi_nor.0: SPI Nor ID Table Version 1.2
    SUBSYSTEM=platform
    DEVICE=+platform:hisi_spi_nor.0
    3,88,581000,-;hisi-sfc hisi_spi_nor.0: The ID: 0x20 isn't in the BP table, Current device can't not protect
    SUBSYSTEM=platform
    DEVICE=+platform:hisi_spi_nor.0
    3,89,589289,-;@spi_nor_scan(), no "m25p,fast-read".
    3,90,592681,-;@spi_nor_scan(), modes->rd_modes:0xd.
    6,91,596092,-;hisi-sfc hisi_spi_nor.0: (Fast) Read: opcode=BBh, protocol=122, mode=0, wait=8
    SUBSYSTEM=platform
    DEVICE=+platform:hisi_spi_nor.0
    6,92,603141,-;hisi-sfc hisi_spi_nor.0: nor->read_opcode[3: Read; 0B: Fast Read; 3B: Dual; BB: Dual IO; 6B: Quad; EB: Quad IO]: 0xbb.
    SUBSYSTEM=platform
    DEVICE=+platform:hisi_spi_nor.0
    6,93,613571,-;hisi-sfc hisi_spi_nor.0: xm25qh128a (Chipsize 16 Mbytes, Blocksize 64KiB)
    SUBSYSTEM=platform
    DEVICE=+platform:hisi_spi_nor.0
    5,94,620101,-;5 cmdlinepart partitions found on MTD device hi_sfc
    5,95,624719,-;5 cmdlinepart partitions found on MTD device hi_sfc
    5,96,629325,-;Creating 5 MTD partitions on "hi_sfc":
    5,97,632817,-;0x000000000000-0x000000040000 : "boot"
    5,98,638320,-;0x000000040000-0x000000050000 : "env"
    5,99,643236,-;0x000000050000-0x000000250000 : "kernel"
    5,100,648399,-;0x000000250000-0x000000950000 : "rootfs"
    5,101,653610,-;0x000000950000-0x000001000000 : "rootfs_data"
    6,102,659498,-;SPI Nand ID Table Version 2.7
    3,103,663216,-;Cannot found a valid SPI Nand Device
    6,104,666530,-;hisi_spi_nand_probe(175): Error: driver probe, result: -19
    6,105,718137,-;FEPHY:addr=1, la_am=0xc, ldo_am=0x5, r_tuning=0x1b
    6,106,722825,-;libphy: hisi_femac_mii_bus: probed
    6,107,726766,-;libphy: Fixed MDIO Bus: probed
    6,108,869196,-;Generic PHY 10041100.mdio:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=10041100.mdio:01, irq=-1)
    SUBSYSTEM=mdio_bus
    DEVICE=+mdio_bus:10041100.mdio:01
    3,109,878679,-;phy_id=0x20669903, phy_mode=mii
    4,110,881567,-;hisi-femac 10040000.ethernet: using random MAC address e2:0a:a8:09:e6:53
    SUBSYSTEM=platform
    DEVICE=+platform:10040000.ethernet
    6,111,893009,-;xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    SUBSYSTEM=platform
    DEVICE=+platform:xhci-hcd.0.auto
    6,112,897220,-;xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
    SUBSYSTEM=platform
    DEVICE=+platform:xhci-hcd.0.auto
    6,113,903771,-;xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x20010010
    SUBSYSTEM=platform
    DEVICE=+platform:xhci-hcd.0.auto
    6,114,911199,-;xhci-hcd xhci-hcd.0.auto: irq 133, io mem 0x10030000
    SUBSYSTEM=platform
    DEVICE=+platform:xhci-hcd.0.auto
    6,115,917483,-;hub 1-0:1.0: USB hub found
    SUBSYSTEM=usb
    DEVICE=+usb:1-0:1.0
    6,116,920161,-;hub 1-0:1.0: 1 port detected
    SUBSYSTEM=usb
    DEVICE=+usb:1-0:1.0
    6,117,923250,-;xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
    SUBSYSTEM=platform
    DEVICE=+platform:xhci-hcd.0.auto
    6,118,927443,-;xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
    SUBSYSTEM=platform
    DEVICE=+platform:xhci-hcd.0.auto
    6,119,933883,-;usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    SUBSYSTEM=usb
    DEVICE=+usb:usb2
    6,120,941510,-;hub 2-0:1.0: USB hub found
    SUBSYSTEM=usb
    DEVICE=+usb:2-0:1.0
    6,121,944205,-;hub 2-0:1.0: hub can't support USB3.0
    SUBSYSTEM=usb
    DEVICE=+usb:2-0:1.0
    6,122,1103271,-;hibvt_rtc 120e0000.rtc: rtc core: registered 120e0000.rtc as rtc0
    SUBSYSTEM=platform
    DEVICE=+platform:120e0000.rtc
    6,123,1109143,-;hibvt_rtc 120e0000.rtc: RTC driver for hibvt enabled
    SUBSYSTEM=platform
    DEVICE=+platform:120e0000.rtc
    6,124,1113963,-;i2c /dev entries driver
    6,125,1116958,-;hibvt-i2c 12060000.i2c: hibvt-i2c0@100000hz registered
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    6,126,1122482,-;hibvt-i2c 12061000.i2c: hibvt-i2c1@100000hz registered
    SUBSYSTEM=platform
    DEVICE=+platform:12061000.i2c
    6,127,1128026,-;hibvt-i2c 12062000.i2c: hibvt-i2c2@100000hz registered
    SUBSYSTEM=platform
    DEVICE=+platform:12062000.i2c
    6,128,1133450,-;sdhci: Secure Digital Host Controller Interface driver
    6,129,1138321,-;sdhci: Copyright(c) Pierre Ossman
    6,130,1141364,-;sdhci-pltfm: SDHCI platform and OF driver helper
    6,131,1202803,-;mmc0: SDHCI controller on 10010000.sdhci [10010000.sdhci] using ADMA in legacy mode
    6,132,1211091,-;NET: Registered protocol family 10
    6,133,1216804,-;NET: Registered protocol family 17
    6,134,1292836,-;hibvt_rtc 120e0000.rtc: setting system clock to 1970-01-01 00:00:04 UTC (4)
    SUBSYSTEM=platform
    DEVICE=+platform:120e0000.rtc
    6,135,1301751,-;VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
    6,136,1311021,-;devtmpfs: mounted
    6,137,1312948,-;Freeing unused kernel memory: 192K (c04c0000 - c04f0000)
    4,138,1317989,-;This architecture does not have kernel memory protection.
    5,139,2011353,-;random: dd: uninitialized urandom read (512 bytes read)
    3,140,2028581,-;random: crng init done
    6,141,2220387,-;IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    6,142,5313039,-;hisi-femac 10040000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    SUBSYSTEM=platform
    DEVICE=+platform:10040000.ethernet
    6,143,5313064,-;IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    6,144,7530126,-;usbcore: registered new interface driver mt7601u
    6,145,7632827,-;usb 1-1: new high-speed USB device number 2 using xhci-hcd
    SUBSYSTEM=usb
    DEVICE=+usb:1-1
    6,146,8072849,-;usb 1-1: reset high-speed USB device number 2 using xhci-hcd
    SUBSYSTEM=usb
    DEVICE=c189:1
    6,147,8245353,-;mt7601u 1-1:1.0: ASIC revision: 76010001 MAC revision: 76010500
    SUBSYSTEM=usb
    DEVICE=+usb:1-1:1.0
    6,148,8260909,-;mt7601u 1-1:1.0: Firmware Version: 0.1.00 Build: 7640 Build time: 201302052146____
    SUBSYSTEM=usb
    DEVICE=+usb:1-1:1.0
    6,149,8755909,-;mt7601u 1-1:1.0: EEPROM ver:0c fae:00
    SUBSYSTEM=usb
    DEVICE=+usb:1-1:1.0
    7,150,8989594,-;ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
    SUBSYSTEM=ieee80211
    DEVICE=+ieee80211:phy0
    6,151,10845155,-;IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    4,152,11169347,-;sys_config: loading out-of-tree module taints kernel.
    0,153,11170095,-;==== online_flag=0, cmos_yuv_flag=0, sensor=imx335, chip=hi3516ev300, board=demo====
    0,154,11170100,-;==== g_quick_start_flag=0 ====
    0,155,11170103,-;sysconfig init success!
    0,156,11201237,-;Module himedia: init ok
    6,157,11201244,-;Hisilicon Media Memory Zone Manager
    0,158,11201254,-;cmz zone gfp 0x0, phys 0x42000000, nbytes 0x6000000
    0,159,11201545,-;hi_osal 1.0 init success!
    4,160,11233048,-;hi3516ev200_base: module license 'Proprietary' taints kernel.
    4,161,11233055,-;Disabling lock debugging due to kernel taint
    0,162,11276391,-;load sys.ko for Hi3516EV200...OK!
    0,163,11310529,-;load region.ko for Hi3516EV200...OK!
    0,164,11360947,-;load vgs.ko for Hi3516EV200...OK!
    0,165,11459916,-;load vi.ko for Hi3516EV200...OK !
    0,166,11504301,-;ISP Mod init!
    0,167,11594051,-;load vpss.ko for Hi3516EV200...OK!
    0,168,11607682,-;load chnl.ko for Hi3516EV200...OK!
    0,169,11630591,-;load vedu.ko for Hi3516EV200...OK!
    0,170,11667394,-;load rc.ko for Hi3516EV200...OK!
    0,171,11730918,-;load venc.ko for Hi3516EV200...OK!
    0,172,11771319,-;load h264e.ko for Hi3516EV200...OK!
    0,173,11816659,-;load h265e.ko for Hi3516EV200...OK!
    0,174,11836321,-;load jpege.ko for Hi3516EV200...OK!
    0,175,11890662,-;load ive.ko for Hi3516EV200...OK!
    0,176,11939713,-;Load sensor_spi.ko for Hi3516EV200...OK !
    0,177,12091432,-;load mipi_rx driver successful!
    0,178,12103074,-;register dev
    0,179,12113079,-;Hisilicon Watchdog Timer: 0.01 initialized. default_margin=60 sec (nodeamon= 0)
    0,180,12113087,-;hiwtdg init ok. ver=Oct 18 2019, 18:21:00.
    6,181,12624545,-;hisi-femac 10040000.ethernet eth0: Link is Down
    SUBSYSTEM=platform
    DEVICE=+platform:10040000.ethernet
    3,182,13145670,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,183,13145852,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,184,13146027,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,185,13146201,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,186,13146372,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,187,13146543,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,188,13146713,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,189,13146885,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,190,13147056,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,191,13147226,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,192,13147396,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,193,13147569,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,194,13147740,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,195,13147910,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,196,13148081,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,197,13154120,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,198,13154303,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,199,13154478,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,200,13154652,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,201,13154824,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,202,13154995,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,203,13155166,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,204,13155339,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,205,13155511,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,206,13155682,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,207,13155854,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,208,13156026,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,209,13156198,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,210,13156369,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,211,13156540,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    6,212,13633047,-;hisi-femac 10040000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    SUBSYSTEM=platform
    DEVICE=+platform:10040000.ethernet
    4,213,13694748,-;alloc_contig_range: [44680, 446cd) PFNs busy
    6,214,19614536,-;IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    6,215,19755976,-;IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    3,216,1761559095,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,217,1761559278,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,218,1761559456,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,219,1761559629,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,220,1761559800,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,221,1761559971,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,222,1761560141,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,223,1761560313,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,224,1761560484,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,225,1761560655,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,226,1761560825,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,227,1761560997,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,228,1761561168,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,229,1761561338,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,230,1761561508,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,231,1771189835,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,232,1771190019,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,233,1771190194,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,234,1771190367,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,235,1771190539,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,236,1771190709,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,237,1771190880,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,238,1771191052,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,239,1771191223,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,240,1771191393,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,241,1771191563,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,242,1771191735,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,243,1771191906,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,244,1771192076,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
    3,245,1771192246,-;hibvt-i2c 12060000.i2c: wait idle abort!, RIS: 0x611
    SUBSYSTEM=platform
    DEVICE=+platform:12060000.i2c
  • killall majestic
    ulimit -c unlimited
    echo /tmp/%e.%p.%s.%t.core > /proc/sys/kernel/core_pattern
    majestic
    Core dump file from /tmp/ , e.g. /tmp/majestic.806.11.1619707881.core

06:55:30 [ main] main@135 Majestic Lite for HiSilicon, version master+83a0089, built on 2022-04-04
06:55:30 [app_conf] load_config@345 Using /etc/majestic.yaml as main configuration
06:55:30 [app_conf] parse_app_config@655 Main audio codec is opus (other options: mp3, aac, pcm, alaw, ulaw)
06:55:30 [watchdog] watchdog_start@101 Detected Hisilicon Watchdog
06:55:30 [watchdog] watchdog_start@121 Watchdog timeout set to 10 seconds
06:55:30 [ sdk] try_sensor_config@3094 Autodetected sensor as 'imx335_i2c'
06:55:30 [ sdk] find_sensor_config@3048 matched sensor config: imx335_i2c_4M.ini
06:55:30 [ sdk] start_sdk@246 Using /etc/sensors/imx335_i2c_4M.ini sensor configuration file
06:55:30 [ sdk] start_sdk@255 App was built with MPP version: Hi3516EV200_MPP_V1.0.1.2.B030 Release
06:55:30 [ sdk] start_sdk@258 Current MPP version: HI_VERSION=Hi3516EV200_MPP_V1.0.1.2 B030 Release
06:55:30 [ sdk] start_sdk@281 sensor stSnsImx335Obj
06:55:30 [ sdk] start_sdk@286 input_mode MIPI, WDR NONE
06:55:30 [ sdk] start_sdk@293 dev [2592x1520]@200x20 25fps, RGGB
06:55:30 [ sensor] try_to_load@19 trying to load /usr/lib/sensors/libsns_imx335.so
06:55:30 [ sdk] dump_vb_configuration@2017 VB configuration:
06:55:30 [ sdk] dump_vb_configuration@2027 [0]: 5909760 x 5
06:55:30 [ sdk] dump_vb_configuration@2027 [1]: 7879680 x 1
06:55:30 [ sdk] init_sensor@2220 Sensor driver loaded
06:55:30 [ puts] linear mode
06:55:30 [ puts] binit false IMX335 i2c init
06:55:30 [ puts] -------Sony IMX335_init_5M_2592x1944_12bit_linear30 Initial OK!-------
06:55:30 [ sdk] log_venc_chn@1135 H.265 2592x1520 25fps 4096Kbit 25 GOP
06:55:30 [ sdk] create_vpss_chn@888 new venc: 0 vpss_grp: 0, vpss_chn: 0
06:55:30 [ sdk] init_chn@1170 JPEG snapshot snapshot venc_chn 1 2592x1520
06:55:30 [ audio] init_audio_in@512 Ai(0,0) bind to AencChn:0 ok!
06:55:30 [image_tu] start_image_params_tuning@63 Image tuning task started
06:55:30 [ sdk] start_sdk@392 HiSilicon SDK started
06:55:30 [ httpd] new_http_server@346 HTTP server started on :::80
06:55:30 [ rtsp] rtsp_init@30 RTSP server started on port 554
06:55:30 [ netip] netip_start@2013 NETIP server started on port 34567
06:55:30 [ media] media_start_servers@156 Using Opus as an audio codec for MP4.
06:55:33 [image_co] set_image_contrast@55 Autoadjust image param cscAttrContrField from 50 to 90

Issue description

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

(https://skr.sh/sDQbKBaMVQY)

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.