Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Crop works incorrect #51

Closed
nitr0man opened this issue May 19, 2022 · 0 comments
Closed

Crop works incorrect #51

nitr0man opened this issue May 19, 2022 · 0 comments

Comments

@nitr0man
Copy link

nitr0man commented May 19, 2022

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

  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

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

No branches or pull requests

2 participants