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

[t31x] не меняется разрешение через конфиг стримера #112

Closed
oaidar opened this issue Apr 24, 2023 · 4 comments

Comments

@oaidar
Copy link
Member

oaidar commented Apr 24, 2023

t31x, sc5235, 16 MB Flash, 2.3.04.23-lite

Уменьшаю разрешение, хочу побольше fps. В плеере показывает, что разрешение поменялось. При этом картинка кривая (растянутая) и fps все те же ~15.

root@openipc-t31:~# cat /etc/majestic.yaml 
system:
  webAdmin: enabled
  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
records:
  enabled: false
  path: /mnt/mmc/%Y/%m/%d/%H.mp4
  maxUsage: 95
video0:
  enabled: true
  size: 1920x1080
  fps: 25
video1:
  enabled: false
jpeg:
  enabled: true
mjpeg:
  size: 640x360
  fps: 5
  bitrate: 1024
audio:
  enabled: false
  volume: auto
  srate: 8000
rtsp:
  enabled: true
  port: 554
hls:
  enabled: true
youtube:
  enabled: false
motionDetect:
  enabled: false
  visualize: true
  debug: true
ipeye:
  enabled: false
watchdog:
  enabled: true
  timeout: 10
root@openipc-t31:~# cat /proc/jz/isp/isp-m0 
****************** ISP INFO **********************
Software Version : H20220426a
SENSOR NAME : sc5235
SENSOR OUTPUT WIDTH : 2560
SENSOR OUTPUT HEIGHT : 1920
ISP OUTPUT FPS : 15 / 1
SENSOR OUTPUT RAW PATTERN : BGGR
ISP Top Value : 0xb5740249
ISP Runing Mode : Day
ISP Custom Mode : Disable
ISP WDR Mode : Disable
SENSOR Integration Time : 201 lines
SENSOR Max Integration Time : 2662 lines
SENSOR analog gain : 0
MAX SENSOR analog gain : 127
SENSOR digital gain : 0
MAX SENSOR digital gain : 0
ISP digital gain : 0
MAX ISP digital gain : 74
ISP Tgain DB : 0
ISP EV value: 201
ISP EV value log2: 501602
ISP EV value us: 5033
ISP EV min int: 3
ISP EV min again: 1024
ISP WB weighted rgain: 434
ISP WB weighted bgain: 455
ISP WB color temperature: 4948
ISP AWB Start rgain 255: bgain 260
Saturation : 127
Saturation : 127
Sharpness : 128
Contrast : 127
Brightness : 127
Antiflicker : 0
Mirror: Disable, Flip: Disable
Antiflicker nodes: 6: step : 399. 799. 1198. 1597. 1996. 2396. 
debug : ch0 done 56593,ip done 56650,0,0,0,0,0,0
debug1 : 0,0,900
root@openipc-t31:~# cat /proc/jz/isp/isp-fs 
############## framesource 0 ###############
chan status: running
output pixformat: NV12
output resolution: 1920 * 1080
scaler : enable
scaler width: 1920
scaler height: 1080
crop : disable
the state of buffers:
queue count: 2
queue addr: 0x05771f00
queue addr: 0x05474f00
done count: 0
the output buffers is: 0
the losted buffers is: 0
ch0_pre_dequeue_drop is: 0
ch0_pre_dequeue_intc_ahead_cnt is: 0
pdq cnt: 0, pdq intc cnt:0, pdq intc cnt1:0
---------------------------
buf:0, state:3, buf_state:30, buf_qcnt:15197, buf_dqcnt:15196
buf:1, state:3, buf_state:30, buf_qcnt:15196, buf_dqcnt:15195
############## framesource 1 ###############
chan status: stop
############## framesource 2 ###############
chan status: stop

При настройках по умолчанию:
2560x1920

При разрешении 1920х1080:
1920x1080

@oaidar oaidar changed the title [t31x] не меняется разрешение через настройки majestic [t31x] не меняется разрешение через конфиг стримера Apr 24, 2023
@dimerr
Copy link
Collaborator

dimerr commented Apr 24, 2023

Драйвер данного сенсора имеет 2 режима:
5MP 15fps
3MP WDR 15fps

Все остальные режимы получаются с помощью масштабирования(как и в любой другой платформе)

@oaidar
Copy link
Member Author

oaidar commented Apr 24, 2023

То бишь больше 15fps я никак не получу?

@oaidar oaidar closed this as not planned Won't fix, can't repro, duplicate, stale Apr 24, 2023
@oaidar oaidar reopened this Apr 24, 2023
@dimerr
Copy link
Collaborator

dimerr commented Apr 24, 2023

Без переделки драйвера - нет, никак. Если сенсор умеет другие режимы и соответствующие иниты добавить в драйвер - то да. Но в этих бюджетных моделях, чаще всего есть ограничение в 30 FPS, во всяком случае официально.

@dimerr
Copy link
Collaborator

dimerr commented Apr 24, 2023

https://github.com/cgrrty/Ingenic-SDK-T31-1.1.1-20200508/blob/main/opensource/drivers/sensors-t31/sc5235/sc5235.c#L271 вот, к примеру, в старой версии сдк вообще только 1 режим был, там же можно оценить другие сенсоры.

@oaidar oaidar closed this as completed May 3, 2023
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